Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for chealpix 3.30.0.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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='chealpix'
589 PACKAGE_TARNAME='chealpix'
590 PACKAGE_VERSION='3.30.0'
591 PACKAGE_STRING='chealpix 3.30.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 pkgconfig_libfile
636 pkgconfig_libdir
637 PKG_CONFIG_LIBDIR
638 PKG_CONFIG_PATH
639 PKG_CONFIG
640 CFITSIO_LIBS
641 CFITSIO_CFLAGS
642 CPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 DLLTOOL
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 ac_ct_AR
688 AR
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 with_sysroot
765 enable_libtool_lock
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 CFITSIO_CFLAGS
777 CFITSIO_LIBS
778 PKG_CONFIG
779 PKG_CONFIG_PATH
780 PKG_CONFIG_LIBDIR'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures chealpix 3.30.0 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/chealpix]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of chealpix 3.30.0:";;
1392 esac
1393 cat <<\_ACEOF
1394
1395 Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-sysroot=DIR Search for dependent libraries within DIR
1418 (or the compiler's sysroot if not specified).
1419
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CPP C preprocessor
1429 CFITSIO_CFLAGS
1430 compiler flags needed for building with cfitsio, if not found by
1431 pkg-config
1432 CFITSIO_LIBS
1433 linker flags needed for building with cfitsio, if not found by
1434 pkg-config
1435 PKG_CONFIG path to pkg-config utility
1436 PKG_CONFIG_PATH
1437 directories to add to pkg-config's search path
1438 PKG_CONFIG_LIBDIR
1439 path overriding pkg-config's built-in search path
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to the package provider.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 chealpix configure 3.30.0
1508 generated by GNU Autoconf 2.69
1509
1510 Copyright (C) 2012 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_link ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 test -x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594 fi
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_link
1604
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_header_compile
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_cpp
1672
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
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_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708 fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_run
1714
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730 #define $2 innocuous_$2
1731
1732 /* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below.
1734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735 <limits.h> exists even on freestanding compilers. */
1736
1737 #ifdef __STDC__
1738 # include <limits.h>
1739 #else
1740 # include <assert.h>
1741 #endif
1742
1743 #undef $2
1744
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1758
1759 int
1760 main ()
1761 {
1762 return $2 ();
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext \
1773 conftest$ac_exeext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_func
1781
1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785 # the include files in INCLUDES and setting the cache variable VAR
1786 # accordingly.
1787 ac_fn_c_check_header_mongrel ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if eval \${$3+:} false; then :
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 else
1800 # Is the header compilable?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802 $as_echo_n "checking $2 usability... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 $4
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_header_compiler=yes
1810 else
1811 ac_header_compiler=no
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815 $as_echo "$ac_header_compiler" >&6; }
1816
1817 # Is the header present?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819 $as_echo_n "checking $2 presence... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825 ac_header_preproc=yes
1826 else
1827 ac_header_preproc=no
1828 fi
1829 rm -f conftest.err conftest.i conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831 $as_echo "$ac_header_preproc" >&6; }
1832
1833 # So? What about this header?
1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 yes:no: )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ;;
1841 no:yes:* )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 esac
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 eval "$3=\$ac_header_compiler"
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 fi
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_header_mongrel
1868 cat >config.log <<_ACEOF
1869 This file contains any messages produced by compilers while
1870 running configure, to aid debugging if configure makes a mistake.
1871
1872 It was created by chealpix $as_me 3.30.0, which was
1873 generated by GNU Autoconf 2.69. Invocation command line was
1874
1875 $ $0 $@
1876
1877 _ACEOF
1878 exec 5>>config.log
1879 {
1880 cat <<_ASUNAME
1881 ## --------- ##
1882 ## Platform. ##
1883 ## --------- ##
1884
1885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890
1891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893
1894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901
1902 _ASUNAME
1903
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 $as_echo "PATH: $as_dir"
1910 done
1911 IFS=$as_save_IFS
1912
1913 } >&5
1914
1915 cat >&5 <<_ACEOF
1916
1917
1918 ## ----------- ##
1919 ## Core tests. ##
1920 ## ----------- ##
1921
1922 _ACEOF
1923
1924
1925 # Keep a trace of the command line.
1926 # Strip out --no-create and --no-recursion so they do not pile up.
1927 # Strip out --silent because we don't want to record it for future runs.
1928 # Also quote any args containing shell meta-characters.
1929 # Make two passes to allow for proper duplicate-argument suppression.
1930 ac_configure_args=
1931 ac_configure_args0=
1932 ac_configure_args1=
1933 ac_must_keep_next=false
1934 for ac_pass in 1 2
1935 do
1936 for ac_arg
1937 do
1938 case $ac_arg in
1939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941 | -silent | --silent | --silen | --sile | --sil)
1942 continue ;;
1943 *\'*)
1944 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945 esac
1946 case $ac_pass in
1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948 2)
1949 as_fn_append ac_configure_args1 " '$ac_arg'"
1950 if test $ac_must_keep_next = true; then
1951 ac_must_keep_next=false # Got value, back to normal.
1952 else
1953 case $ac_arg in
1954 *=* | --config-cache | -C | -disable-* | --disable-* \
1955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957 | -with-* | --with-* | -without-* | --without-* | --x)
1958 case "$ac_configure_args0 " in
1959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960 esac
1961 ;;
1962 -* ) ac_must_keep_next=true ;;
1963 esac
1964 fi
1965 as_fn_append ac_configure_args " '$ac_arg'"
1966 ;;
1967 esac
1968 done
1969 done
1970 { ac_configure_args0=; unset ac_configure_args0;}
1971 { ac_configure_args1=; unset ac_configure_args1;}
1972
1973 # When interrupted or exit'd, cleanup temporary files, and complete
1974 # config.log. We remove comments because anyway the quotes in there
1975 # would cause problems or look ugly.
1976 # WARNING: Use '\'' to represent an apostrophe within the trap.
1977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978 trap 'exit_status=$?
1979 # Save into config.log some information that might help in debugging.
1980 {
1981 echo
1982
1983 $as_echo "## ---------------- ##
1984 ## Cache variables. ##
1985 ## ---------------- ##"
1986 echo
1987 # The following way of writing the cache mishandles newlines in values,
1988 (
1989 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1990 eval ac_val=\$$ac_var
1991 case $ac_val in #(
1992 *${as_nl}*)
1993 case $ac_var in #(
1994 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1995 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1996 esac
1997 case $ac_var in #(
1998 _ | IFS | as_nl) ;; #(
1999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2000 *) { eval $ac_var=; unset $ac_var;} ;;
2001 esac ;;
2002 esac
2003 done
2004 (set) 2>&1 |
2005 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2006 *${as_nl}ac_space=\ *)
2007 sed -n \
2008 "s/'\''/'\''\\\\'\'''\''/g;
2009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2010 ;; #(
2011 *)
2012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013 ;;
2014 esac |
2015 sort
2016 )
2017 echo
2018
2019 $as_echo "## ----------------- ##
2020 ## Output variables. ##
2021 ## ----------------- ##"
2022 echo
2023 for ac_var in $ac_subst_vars
2024 do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 $as_echo "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2032
2033 if test -n "$ac_subst_files"; then
2034 $as_echo "## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##"
2037 echo
2038 for ac_var in $ac_subst_files
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2047 fi
2048
2049 if test -s confdefs.h; then
2050 $as_echo "## ----------- ##
2051 ## confdefs.h. ##
2052 ## ----------- ##"
2053 echo
2054 cat confdefs.h
2055 echo
2056 fi
2057 test "$ac_signal" != 0 &&
2058 $as_echo "$as_me: caught signal $ac_signal"
2059 $as_echo "$as_me: exit $exit_status"
2060 } >&5
2061 rm -f core *.core core.conftest.* &&
2062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2063 exit $exit_status
2064 ' 0
2065 for ac_signal in 1 2 13 15; do
2066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2067 done
2068 ac_signal=0
2069
2070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2071 rm -f -r conftest* confdefs.h
2072
2073 $as_echo "/* confdefs.h */" > confdefs.h
2074
2075 # Predefined preprocessor variables.
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_NAME "$PACKAGE_NAME"
2079 _ACEOF
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2083 _ACEOF
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_URL "$PACKAGE_URL"
2099 _ACEOF
2100
2101
2102 # Let the site file select an alternate cache file if it wants to.
2103 # Prefer an explicitly selected file to automatically selected ones.
2104 ac_site_file1=NONE
2105 ac_site_file2=NONE
2106 if test -n "$CONFIG_SITE"; then
2107 # We do not want a PATH search for config.site.
2108 case $CONFIG_SITE in #((
2109 -*) ac_site_file1=./$CONFIG_SITE;;
2110 */*) ac_site_file1=$CONFIG_SITE;;
2111 *) ac_site_file1=./$CONFIG_SITE;;
2112 esac
2113 elif test "x$prefix" != xNONE; then
2114 ac_site_file1=$prefix/share/config.site
2115 ac_site_file2=$prefix/etc/config.site
2116 else
2117 ac_site_file1=$ac_default_prefix/share/config.site
2118 ac_site_file2=$ac_default_prefix/etc/config.site
2119 fi
2120 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121 do
2122 test "x$ac_site_file" = xNONE && continue
2123 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2126 sed 's/^/| /' "$ac_site_file" >&5
2127 . "$ac_site_file" \
2128 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 as_fn_error $? "failed to load site script $ac_site_file
2131 See \`config.log' for more details" "$LINENO" 5; }
2132 fi
2133 done
2134
2135 if test -r "$cache_file"; then
2136 # Some versions of bash will fail to source /dev/null (special files
2137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2140 $as_echo "$as_me: loading cache $cache_file" >&6;}
2141 case $cache_file in
2142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2143 *) . "./$cache_file";;
2144 esac
2145 fi
2146 else
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2148 $as_echo "$as_me: creating cache $cache_file" >&6;}
2149 >$cache_file
2150 fi
2151
2152 # Check that the precious variables saved in the cache have kept the same
2153 # value.
2154 ac_cache_corrupted=false
2155 for ac_var in $ac_precious_vars; do
2156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2157 eval ac_new_set=\$ac_env_${ac_var}_set
2158 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2159 eval ac_new_val=\$ac_env_${ac_var}_value
2160 case $ac_old_set,$ac_new_set in
2161 set,)
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2164 ac_cache_corrupted=: ;;
2165 ,set)
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2167 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2168 ac_cache_corrupted=: ;;
2169 ,);;
2170 *)
2171 if test "x$ac_old_val" != "x$ac_new_val"; then
2172 # differences in whitespace do not lead to failure.
2173 ac_old_val_w=`echo x $ac_old_val`
2174 ac_new_val_w=`echo x $ac_new_val`
2175 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2177 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2178 ac_cache_corrupted=:
2179 else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2181 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2182 eval $ac_var=\$ac_old_val
2183 fi
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2185 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2187 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2188 fi;;
2189 esac
2190 # Pass precious variables to config.status.
2191 if test "$ac_new_set" = set; then
2192 case $ac_new_val in
2193 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 *) ac_arg=$ac_var=$ac_new_val ;;
2195 esac
2196 case " $ac_configure_args " in
2197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2198 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2199 esac
2200 fi
2201 done
2202 if $ac_cache_corrupted; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2206 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2207 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2208 fi
2209 ## -------------------- ##
2210 ## Main body of script. ##
2211 ## -------------------- ##
2212
2213 ac_ext=c
2214 ac_cpp='$CPP $CPPFLAGS'
2215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2218
2219
2220 am__api_version='1.15'
2221
2222 ac_aux_dir=
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 if test -f "$ac_dir/install-sh"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/install-sh -c"
2227 break
2228 elif test -f "$ac_dir/install.sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install.sh -c"
2231 break
2232 elif test -f "$ac_dir/shtool"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/shtool install -c"
2235 break
2236 fi
2237 done
2238 if test -z "$ac_aux_dir"; then
2239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2240 fi
2241
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2249
2250
2251 # Find a good install program. We prefer a C program (faster),
2252 # so one script is as good as another. But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2257 # AIX /bin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # OS/2's system install, which has a completely different semantic
2263 # ./install, which can be erroneously created by make from ./install.sh.
2264 # Reject install programs that cannot install multiple files.
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2267 if test -z "$INSTALL"; then
2268 if ${ac_cv_path_install+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 # Account for people who put trailing slashes in PATH elements.
2277 case $as_dir/ in #((
2278 ./ | .// | /[cC]/* | \
2279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2281 /usr/ucb/* ) ;;
2282 *)
2283 # OSF1 and SCO ODT 3.0 have their own names for install.
2284 # Don't use installbsd from OSF since it installs stuff as root
2285 # by default.
2286 for ac_prog in ginstall scoinst install; do
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2289 if test $ac_prog = install &&
2290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # AIX install. It has an incompatible calling convention.
2292 :
2293 elif test $ac_prog = install &&
2294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # program-specific install script used by HP pwplus--don't use.
2296 :
2297 else
2298 rm -rf conftest.one conftest.two conftest.dir
2299 echo one > conftest.one
2300 echo two > conftest.two
2301 mkdir conftest.dir
2302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2303 test -s conftest.one && test -s conftest.two &&
2304 test -s conftest.dir/conftest.one &&
2305 test -s conftest.dir/conftest.two
2306 then
2307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2308 break 3
2309 fi
2310 fi
2311 fi
2312 done
2313 done
2314 ;;
2315 esac
2316
2317 done
2318 IFS=$as_save_IFS
2319
2320 rm -rf conftest.one conftest.two conftest.dir
2321
2322 fi
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2325 else
2326 # As a last resort, use the slow shell script. Don't cache a
2327 # value for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the value is a relative name.
2330 INSTALL=$ac_install_sh
2331 fi
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2334 $as_echo "$INSTALL" >&6; }
2335
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2339
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2341
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2345 $as_echo_n "checking whether build environment is sane... " >&6; }
2346 # Reject unsafe characters in $srcdir or the absolute working directory
2347 # name. Accept space and tab only in the latter.
2348 am_lf='
2349 '
2350 case `pwd` in
2351 *[\\\"\#\$\&\'\`$am_lf]*)
2352 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2353 esac
2354 case $srcdir in
2355 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2356 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2357 esac
2358
2359 # Do 'set' in a subshell so we don't clobber the current shell's
2360 # arguments. Must try -L first in case configure is actually a
2361 # symlink; some systems play weird games with the mod time of symlinks
2362 # (eg FreeBSD returns the mod time of the symlink's containing
2363 # directory).
2364 if (
2365 am_has_slept=no
2366 for am_try in 1 2; do
2367 echo "timestamp, slept: $am_has_slept" > conftest.file
2368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2369 if test "$*" = "X"; then
2370 # -L didn't work.
2371 set X `ls -t "$srcdir/configure" conftest.file`
2372 fi
2373 if test "$*" != "X $srcdir/configure conftest.file" \
2374 && test "$*" != "X conftest.file $srcdir/configure"; then
2375
2376 # If neither matched, then we have a broken ls. This can happen
2377 # if, for instance, CONFIG_SHELL is bash and it inherits a
2378 # broken ls alias from the environment. This has actually
2379 # happened. Such a system could not be considered "sane".
2380 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2381 alias in your environment" "$LINENO" 5
2382 fi
2383 if test "$2" = conftest.file || test $am_try -eq 2; then
2384 break
2385 fi
2386 # Just in case.
2387 sleep 1
2388 am_has_slept=yes
2389 done
2390 test "$2" = conftest.file
2391 )
2392 then
2393 # Ok.
2394 :
2395 else
2396 as_fn_error $? "newly created file is older than distributed files!
2397 Check your system clock" "$LINENO" 5
2398 fi
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2400 $as_echo "yes" >&6; }
2401 # If we didn't sleep, we still need to ensure time stamps of config.status and
2402 # generated files are strictly newer.
2403 am_sleep_pid=
2404 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2405 ( sleep 1 ) &
2406 am_sleep_pid=$!
2407 fi
2408
2409 rm -f conftest.file
2410
2411 test "$program_prefix" != NONE &&
2412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2413 # Use a double $ so make ignores it.
2414 test "$program_suffix" != NONE &&
2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2416 # Double any \ or $.
2417 # By default was `s,x,x', remove it if useless.
2418 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2420
2421 # Expand $ac_aux_dir to an absolute path.
2422 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2423
2424 if test x"${MISSING+set}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2428 *)
2429 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2430 esac
2431 fi
2432 # Use eval to expand $SHELL
2433 if eval "$MISSING --is-lightweight"; then
2434 am_missing_run="$MISSING "
2435 else
2436 am_missing_run=
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2438 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2439 fi
2440
2441 if test x"${install_sh+set}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2445 *)
2446 install_sh="\${SHELL} $am_aux_dir/install-sh"
2447 esac
2448 fi
2449
2450 # Installed binaries are usually stripped using 'strip' when the user
2451 # run "make install-strip". However 'strip' might not be the right
2452 # tool to use in cross-compilation environments, therefore Automake
2453 # will honor the 'STRIP' environment variable to overrule this program.
2454 if test "$cross_compiling" != no; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}strip; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$STRIP"; then
2464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 STRIP=$ac_cv_prog_STRIP
2484 if test -n "$STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2486 $as_echo "$STRIP" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492
2493 fi
2494 if test -z "$ac_cv_prog_STRIP"; then
2495 ac_ct_STRIP=$STRIP
2496 # Extract the first word of "strip", so it can be a program name with args.
2497 set dummy strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$ac_ct_STRIP"; then
2504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_ac_ct_STRIP="strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524 if test -n "$ac_ct_STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2526 $as_echo "$ac_ct_STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532 if test "x$ac_ct_STRIP" = x; then
2533 STRIP=":"
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541 STRIP=$ac_ct_STRIP
2542 fi
2543 else
2544 STRIP="$ac_cv_prog_STRIP"
2545 fi
2546
2547 fi
2548 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2551 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2552 if test -z "$MKDIR_P"; then
2553 if ${ac_cv_path_mkdir+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_prog in mkdir gmkdir; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2564 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2565 'mkdir (GNU coreutils) '* | \
2566 'mkdir (coreutils) '* | \
2567 'mkdir (fileutils) '4.1*)
2568 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2569 break 3;;
2570 esac
2571 done
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577
2578 test -d ./--version && rmdir ./--version
2579 if test "${ac_cv_path_mkdir+set}" = set; then
2580 MKDIR_P="$ac_cv_path_mkdir -p"
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for MKDIR_P within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 MKDIR_P="$ac_install_sh -d"
2587 fi
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2590 $as_echo "$MKDIR_P" >&6; }
2591
2592 for ac_prog in gawk mawk nawk awk
2593 do
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_AWK+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$AWK"; then
2602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_AWK="$ac_prog"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 AWK=$ac_cv_prog_AWK
2622 if test -n "$AWK"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2624 $as_echo "$AWK" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 test -n "$AWK" && break
2632 done
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636 set x ${MAKE-make}
2637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2638 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 cat >conftest.make <<\_ACEOF
2642 SHELL = /bin/sh
2643 all:
2644 @echo '@@@%%%=$(MAKE)=@@@%%%'
2645 _ACEOF
2646 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2648 *@@@%%%=?*=@@@%%%*)
2649 eval ac_cv_prog_make_${ac_make}_set=yes;;
2650 *)
2651 eval ac_cv_prog_make_${ac_make}_set=no;;
2652 esac
2653 rm -f conftest.make
2654 fi
2655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2658 SET_MAKE=
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 SET_MAKE="MAKE=${MAKE-make}"
2663 fi
2664
2665 rm -rf .tst 2>/dev/null
2666 mkdir .tst 2>/dev/null
2667 if test -d .tst; then
2668 am__leading_dot=.
2669 else
2670 am__leading_dot=_
2671 fi
2672 rmdir .tst 2>/dev/null
2673
2674 # Check whether --enable-silent-rules was given.
2675 if test "${enable_silent_rules+set}" = set; then :
2676 enableval=$enable_silent_rules;
2677 fi
2678
2679 case $enable_silent_rules in # (((
2680 yes) AM_DEFAULT_VERBOSITY=0;;
2681 no) AM_DEFAULT_VERBOSITY=1;;
2682 *) AM_DEFAULT_VERBOSITY=1;;
2683 esac
2684 am_make=${MAKE-make}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2686 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2687 if ${am_cv_make_support_nested_variables+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if $as_echo 'TRUE=$(BAR$(V))
2691 BAR0=false
2692 BAR1=true
2693 V=1
2694 am__doit:
2695 @$(TRUE)
2696 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2697 am_cv_make_support_nested_variables=yes
2698 else
2699 am_cv_make_support_nested_variables=no
2700 fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2703 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2704 if test $am_cv_make_support_nested_variables = yes; then
2705 AM_V='$(V)'
2706 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2707 else
2708 AM_V=$AM_DEFAULT_VERBOSITY
2709 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2710 fi
2711 AM_BACKSLASH='\'
2712
2713 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2714 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2715 # is not polluted with repeated "-I."
2716 am__isrc=' -I$(srcdir)'
2717 # test to see if srcdir already configured
2718 if test -f $srcdir/config.status; then
2719 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2720 fi
2721 fi
2722
2723 # test whether we have cygpath
2724 if test -z "$CYGPATH_W"; then
2725 if (cygpath --version) >/dev/null 2>/dev/null; then
2726 CYGPATH_W='cygpath -w'
2727 else
2728 CYGPATH_W=echo
2729 fi
2730 fi
2731
2732
2733 # Define the identity of the package.
2734 PACKAGE='chealpix'
2735 VERSION='3.30.0'
2736
2737
2738 cat >>confdefs.h <<_ACEOF
2739 #define PACKAGE "$PACKAGE"
2740 _ACEOF
2741
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define VERSION "$VERSION"
2745 _ACEOF
2746
2747 # Some tools Automake needs.
2748
2749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750
2751
2752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753
2754
2755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756
2757
2758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759
2760
2761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2762
2763 # For better backward compatibility. To be removed once Automake 1.9.x
2764 # dies out for good. For more background, see:
2765 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2766 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2767 mkdir_p='$(MKDIR_P)'
2768
2769 # We need awk for the "check" target (and possibly the TAP driver). The
2770 # system "awk" is bad on some platforms.
2771 # Always define AMTAR for backward compatibility. Yes, it's still used
2772 # in the wild :-( We should find a proper way to deprecate it ...
2773 AMTAR='$${TAR-tar}'
2774
2775
2776 # We'll loop over all known methods to create a tar archive until one works.
2777 _am_tools='gnutar pax cpio none'
2778
2779 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2780
2781
2782
2783
2784
2785
2786 # POSIX will say in a future version that running "rm -f" with no argument
2787 # is OK; and we want to be able to make that assumption in our Makefile
2788 # recipes. So use an aggressive probe to check that the usage we want is
2789 # actually supported "in the wild" to an acceptable degree.
2790 # See automake bug#10828.
2791 # To make any issue more visible, cause the running configure to be aborted
2792 # by default if the 'rm' program in use doesn't match our expectations; the
2793 # user can still override this though.
2794 if rm -f && rm -fr && rm -rf; then : OK; else
2795 cat >&2 <<'END'
2796 Oops!
2797
2798 Your 'rm' program seems unable to run without file operands specified
2799 on the command line, even when the '-f' option is present. This is contrary
2800 to the behaviour of most rm programs out there, and not conforming with
2801 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2802
2803 Please tell [email protected] about your system, including the value
2804 of your $PATH and any error possibly output before this message. This
2805 can help us improve future automake versions.
2806
2807 END
2808 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2809 echo 'Configuration will proceed anyway, since you have set the' >&2
2810 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2811 echo >&2
2812 else
2813 cat >&2 <<'END'
2814 Aborting the configuration process, to ensure you take notice of the issue.
2815
2816 You can download and install GNU coreutils to get an 'rm' implementation
2817 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2818
2819 If you want to complete the configuration process using your problematic
2820 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2821 to "yes", and re-run configure.
2822
2823 END
2824 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2825 fi
2826 fi
2827
2828
2829 DEPDIR="${am__leading_dot}deps"
2830
2831 ac_config_commands="$ac_config_commands depfiles"
2832
2833
2834 am_make=${MAKE-make}
2835 cat > confinc << 'END'
2836 am__doit:
2837 @echo this is the am__doit target
2838 .PHONY: am__doit
2839 END
2840 # If we don't find an include directive, just comment out the code.
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2842 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2843 am__include="#"
2844 am__quote=
2845 _am_result=none
2846 # First try GNU make style include.
2847 echo "include confinc" > confmf
2848 # Ignore all kinds of additional output from 'make'.
2849 case `$am_make -s -f confmf 2> /dev/null` in #(
2850 *the\ am__doit\ target*)
2851 am__include=include
2852 am__quote=
2853 _am_result=GNU
2854 ;;
2855 esac
2856 # Now try BSD make style include.
2857 if test "$am__include" = "#"; then
2858 echo '.include "confinc"' > confmf
2859 case `$am_make -s -f confmf 2> /dev/null` in #(
2860 *the\ am__doit\ target*)
2861 am__include=.include
2862 am__quote="\""
2863 _am_result=BSD
2864 ;;
2865 esac
2866 fi
2867
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2870 $as_echo "$_am_result" >&6; }
2871 rm -f confinc confmf
2872
2873 # Check whether --enable-dependency-tracking was given.
2874 if test "${enable_dependency_tracking+set}" = set; then :
2875 enableval=$enable_dependency_tracking;
2876 fi
2877
2878 if test "x$enable_dependency_tracking" != xno; then
2879 am_depcomp="$ac_aux_dir/depcomp"
2880 AMDEPBACKSLASH='\'
2881 am__nodep='_no'
2882 fi
2883 if test "x$enable_dependency_tracking" != xno; then
2884 AMDEP_TRUE=
2885 AMDEP_FALSE='#'
2886 else
2887 AMDEP_TRUE='#'
2888 AMDEP_FALSE=
2889 fi
2890
2891
2892 ac_ext=c
2893 ac_cpp='$CPP $CPPFLAGS'
2894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_CC+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 CC=$ac_cv_prog_CC
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 fi
2936 if test -z "$ac_cv_prog_CC"; then
2937 ac_ct_CC=$CC
2938 # Extract the first word of "gcc", so it can be a program name with args.
2939 set dummy gcc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CC="gcc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966 if test -n "$ac_ct_CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2968 $as_echo "$ac_ct_CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974 if test "x$ac_ct_CC" = x; then
2975 CC=""
2976 else
2977 case $cross_compiling:$ac_tool_warned in
2978 yes:)
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned=yes ;;
2982 esac
2983 CC=$ac_ct_CC
2984 fi
2985 else
2986 CC="$ac_cv_prog_CC"
2987 fi
2988
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2992 set dummy ${ac_tool_prefix}cc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_CC+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_CC="${ac_tool_prefix}cc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 fi
3026
3027
3028 fi
3029 fi
3030 if test -z "$CC"; then
3031 # Extract the first word of "cc", so it can be a program name with args.
3032 set dummy cc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 ac_prog_rejected=no
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3050 ac_prog_rejected=yes
3051 continue
3052 fi
3053 ac_cv_prog_CC="cc"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 if test $ac_prog_rejected = yes; then
3062 # We found a bogon in the path, so make sure we never use it.
3063 set dummy $ac_cv_prog_CC
3064 shift
3065 if test $# != 0; then
3066 # We chose a different compiler from the bogus one.
3067 # However, it has the same basename, so the bogon will be chosen
3068 # first if we set CC to just the basename; use the full file name.
3069 shift
3070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3071 fi
3072 fi
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 fi
3086 if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
3088 for ac_prog in cl.exe
3089 do
3090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 test -n "$CC" && break
3128 done
3129 fi
3130 if test -z "$CC"; then
3131 ac_ct_CC=$CC
3132 for ac_prog in cl.exe
3133 do
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$ac_ct_CC"; then
3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_ac_ct_CC="$ac_prog"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3162 if test -n "$ac_ct_CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3164 $as_echo "$ac_ct_CC" >&6; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170
3171 test -n "$ac_ct_CC" && break
3172 done
3173
3174 if test "x$ac_ct_CC" = x; then
3175 CC=""
3176 else
3177 case $cross_compiling:$ac_tool_warned in
3178 yes:)
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned=yes ;;
3182 esac
3183 CC=$ac_ct_CC
3184 fi
3185 fi
3186
3187 fi
3188
3189
3190 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "no acceptable C compiler found in \$PATH
3193 See \`config.log' for more details" "$LINENO" 5; }
3194
3195 # Provide some information about the compiler.
3196 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3197 set X $ac_compile
3198 ac_compiler=$2
3199 for ac_option in --version -v -V -qversion; do
3200 { { ac_try="$ac_compiler $ac_option >&5"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3208 ac_status=$?
3209 if test -s conftest.err; then
3210 sed '10a\
3211 ... rest of stderr output deleted ...
3212 10q' conftest.err >conftest.er1
3213 cat conftest.er1 >&5
3214 fi
3215 rm -f conftest.er1 conftest.err
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3218 done
3219
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3222
3223 int
3224 main ()
3225 {
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 ac_clean_files_save=$ac_clean_files
3232 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3233 # Try to create an executable without -o first, disregard a.out.
3234 # It will help us diagnose broken compilers, and finding out an intuition
3235 # of exeext.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3237 $as_echo_n "checking whether the C compiler works... " >&6; }
3238 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3239
3240 # The possible output files:
3241 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3242
3243 ac_rmfiles=
3244 for ac_file in $ac_files
3245 do
3246 case $ac_file in
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3249 esac
3250 done
3251 rm -f $ac_rmfiles
3252
3253 if { { ac_try="$ac_link_default"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_link_default") 2>&5
3261 ac_status=$?
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; then :
3264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3267 # so that the user can short-circuit this test for compilers unknown to
3268 # Autoconf.
3269 for ac_file in $ac_files ''
3270 do
3271 test -f "$ac_file" || continue
3272 case $ac_file in
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3274 ;;
3275 [ab].out )
3276 # We found the default executable, but exeext='' is most
3277 # certainly right.
3278 break;;
3279 *.* )
3280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3281 then :; else
3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 fi
3284 # We set ac_cv_exeext here because the later test for it is not
3285 # safe: cross compilers may not add the suffix if given an `-o'
3286 # argument, so we may need to know it at that point already.
3287 # Even if this section looks crufty: it has the advantage of
3288 # actually working.
3289 break;;
3290 * )
3291 break;;
3292 esac
3293 done
3294 test "$ac_cv_exeext" = no && ac_cv_exeext=
3295
3296 else
3297 ac_file=''
3298 fi
3299 if test -z "$ac_file"; then :
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error 77 "C compiler cannot create executables
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3314 $as_echo_n "checking for C compiler default output file name... " >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3316 $as_echo "$ac_file" >&6; }
3317 ac_exeext=$ac_cv_exeext
3318
3319 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3320 ac_clean_files=$ac_clean_files_save
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3322 $as_echo_n "checking for suffix of executables... " >&6; }
3323 if { { ac_try="$ac_link"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3337 # `rm'.
3338 for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 break;;
3344 * ) break;;
3345 esac
3346 done
3347 else
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details" "$LINENO" 5; }
3352 fi
3353 rm -f conftest conftest$ac_cv_exeext
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3355 $as_echo "$ac_cv_exeext" >&6; }
3356
3357 rm -f conftest.$ac_ext
3358 EXEEXT=$ac_cv_exeext
3359 ac_exeext=$EXEEXT
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3362 #include <stdio.h>
3363 int
3364 main ()
3365 {
3366 FILE *f = fopen ("conftest.out", "w");
3367 return ferror (f) || fclose (f) != 0;
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 ac_clean_files="$ac_clean_files conftest.out"
3374 # Check that the compiler produces executables we can run. If not, either
3375 # the compiler is broken, or we cross compile.
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3377 $as_echo_n "checking whether we are cross compiling... " >&6; }
3378 if test "$cross_compiling" != yes; then
3379 { { ac_try="$ac_link"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_link") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }
3390 if { ac_try='./conftest$ac_cv_exeext'
3391 { { case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_try") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; }; then
3401 cross_compiling=no
3402 else
3403 if test "$cross_compiling" = maybe; then
3404 cross_compiling=yes
3405 else
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details" "$LINENO" 5; }
3411 fi
3412 fi
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3415 $as_echo "$cross_compiling" >&6; }
3416
3417 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3418 ac_clean_files=$ac_clean_files_save
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3420 $as_echo_n "checking for suffix of object files... " >&6; }
3421 if ${ac_cv_objext+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3426
3427 int
3428 main ()
3429 {
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.o conftest.obj
3436 if { { ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_compile") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 for ac_file in conftest.o conftest.obj conftest.*; do
3448 test -f "$ac_file" || continue;
3449 case $ac_file in
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3452 break;;
3453 esac
3454 done
3455 else
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "cannot compute suffix of object files: cannot compile
3462 See \`config.log' for more details" "$LINENO" 5; }
3463 fi
3464 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3467 $as_echo "$ac_cv_objext" >&6; }
3468 OBJEXT=$ac_cv_objext
3469 ac_objext=$OBJEXT
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3472 if ${ac_cv_c_compiler_gnu+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477
3478 int
3479 main ()
3480 {
3481 #ifndef __GNUC__
3482 choke me
3483 #endif
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_compiler_gnu=yes
3491 else
3492 ac_compiler_gnu=no
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3496
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3500 if test $ac_compiler_gnu = yes; then
3501 GCC=yes
3502 else
3503 GCC=
3504 fi
3505 ac_test_CFLAGS=${CFLAGS+set}
3506 ac_save_CFLAGS=$CFLAGS
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3509 if ${ac_cv_prog_cc_g+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 ac_save_c_werror_flag=$ac_c_werror_flag
3513 ac_c_werror_flag=yes
3514 ac_cv_prog_cc_g=no
3515 CFLAGS="-g"
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 int
3520 main ()
3521 {
3522
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_prog_cc_g=yes
3529 else
3530 CFLAGS=""
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533
3534 int
3535 main ()
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"; then :
3543
3544 else
3545 ac_c_werror_flag=$ac_save_c_werror_flag
3546 CFLAGS="-g"
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549
3550 int
3551 main ()
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_prog_cc_g=yes
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_c_werror_flag=$ac_save_c_werror_flag
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3569 $as_echo "$ac_cv_prog_cc_g" >&6; }
3570 if test "$ac_test_CFLAGS" = set; then
3571 CFLAGS=$ac_save_CFLAGS
3572 elif test $ac_cv_prog_cc_g = yes; then
3573 if test "$GCC" = yes; then
3574 CFLAGS="-g -O2"
3575 else
3576 CFLAGS="-g"
3577 fi
3578 else
3579 if test "$GCC" = yes; then
3580 CFLAGS="-O2"
3581 else
3582 CFLAGS=
3583 fi
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3587 if ${ac_cv_prog_cc_c89+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 ac_cv_prog_cc_c89=no
3591 ac_save_CC=$CC
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594 #include <stdarg.h>
3595 #include <stdio.h>
3596 struct stat;
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3601 char **p;
3602 int i;
3603 {
3604 return p[i];
3605 }
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3607 {
3608 char *s;
3609 va_list v;
3610 va_start (v,p);
3611 s = g (p, va_arg (v,int));
3612 va_end (v);
3613 return s;
3614 }
3615
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
3619 as 'x'. The following induces an error, until -std is added to get
3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
3622 that's true only with -std. */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3627 #define FOO(x) 'x'
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634 int argc;
3635 char **argv;
3636 int
3637 main ()
3638 {
3639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 do
3647 CC="$ac_save_CC $ac_arg"
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_c89=$ac_arg
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext
3652 test "x$ac_cv_prog_cc_c89" != "xno" && break
3653 done
3654 rm -f conftest.$ac_ext
3655 CC=$ac_save_CC
3656
3657 fi
3658 # AC_CACHE_VAL
3659 case "x$ac_cv_prog_cc_c89" in
3660 x)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3662 $as_echo "none needed" >&6; } ;;
3663 xno)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3665 $as_echo "unsupported" >&6; } ;;
3666 *)
3667 CC="$CC $ac_cv_prog_cc_c89"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670 esac
3671 if test "x$ac_cv_prog_cc_c89" != xno; then :
3672
3673 fi
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3687 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3688 if ${am_cv_prog_cc_c_o+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 # Make sure it works both with $CC and with simple cc.
3703 # Following AC_PROG_CC_C_O, we do the test twice because some
3704 # compilers refuse to overwrite an existing .o file with -o,
3705 # though they will create one.
3706 am_cv_prog_cc_c_o=yes
3707 for am_i in 1 2; do
3708 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3709 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } \
3713 && test -f conftest2.$ac_objext; then
3714 : OK
3715 else
3716 am_cv_prog_cc_c_o=no
3717 break
3718 fi
3719 done
3720 rm -f core conftest*
3721 unset am_i
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3724 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3725 if test "$am_cv_prog_cc_c_o" != yes; then
3726 # Losing compiler, so override with the script.
3727 # FIXME: It is wrong to rewrite CC.
3728 # But if we don't then we get into trouble of one sort or another.
3729 # A longer-term fix would be to have automake use am__CC in this case,
3730 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3731 CC="$am_aux_dir/compile $CC"
3732 fi
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739
3740 depcc="$CC" am_compiler_list=
3741
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3743 $as_echo_n "checking dependency style of $depcc... " >&6; }
3744 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748 # We make a subdir and do the tests there. Otherwise we can end up
3749 # making bogus files that we don't know about and never remove. For
3750 # instance it was reported that on HP-UX the gcc test will end up
3751 # making a dummy file named 'D' -- because '-MD' means "put the output
3752 # in D".
3753 rm -rf conftest.dir
3754 mkdir conftest.dir
3755 # Copy depcomp to subdir because otherwise we won't find it if we're
3756 # using a relative directory.
3757 cp "$am_depcomp" conftest.dir
3758 cd conftest.dir
3759 # We will build objects and dependencies in a subdirectory because
3760 # it helps to detect inapplicable dependency modes. For instance
3761 # both Tru64's cc and ICC support -MD to output dependencies as a
3762 # side effect of compilation, but ICC will put the dependencies in
3763 # the current directory while Tru64 will put them in the object
3764 # directory.
3765 mkdir sub
3766
3767 am_cv_CC_dependencies_compiler_type=none
3768 if test "$am_compiler_list" = ""; then
3769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3770 fi
3771 am__universal=false
3772 case " $depcc " in #(
3773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3774 esac
3775
3776 for depmode in $am_compiler_list; do
3777 # Setup a source with many dependencies, because some compilers
3778 # like to wrap large dependency lists on column 80 (with \), and
3779 # we should not choose a depcomp mode which is confused by this.
3780 #
3781 # We need to recreate these files for each test, as the compiler may
3782 # overwrite some of them when testing with obscure command lines.
3783 # This happens at least with the AIX C compiler.
3784 : > sub/conftest.c
3785 for i in 1 2 3 4 5 6; do
3786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3787 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3788 # Solaris 10 /bin/sh.
3789 echo '/* dummy */' > sub/conftst$i.h
3790 done
3791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792
3793 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3794 # mode. It turns out that the SunPro C++ compiler does not properly
3795 # handle '-M -o', and we need to detect this. Also, some Intel
3796 # versions had trouble with output in subdirs.
3797 am__obj=sub/conftest.${OBJEXT-o}
3798 am__minus_obj="-o $am__obj"
3799 case $depmode in
3800 gcc)
3801 # This depmode causes a compiler race in universal mode.
3802 test "$am__universal" = false || continue
3803 ;;
3804 nosideeffect)
3805 # After this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested.
3807 if test "x$enable_dependency_tracking" = xyes; then
3808 continue
3809 else
3810 break
3811 fi
3812 ;;
3813 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3814 # This compiler won't grok '-c -o', but also, the minuso test has
3815 # not run yet. These depmodes are late enough in the game, and
3816 # so weak that their functioning should not be impacted.
3817 am__obj=conftest.${OBJEXT-o}
3818 am__minus_obj=
3819 ;;
3820 none) break ;;
3821 esac
3822 if depmode=$depmode \
3823 source=sub/conftest.c object=$am__obj \
3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3826 >/dev/null 2>conftest.err &&
3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831 # icc doesn't choke on unknown options, it will just issue warnings
3832 # or remarks (even with -Werror). So we grep stderr for any message
3833 # that says an option was ignored or not supported.
3834 # When given -MP, icc 7.0 and 7.1 complain thusly:
3835 # icc: Command line warning: ignoring option '-M'; no argument required
3836 # The diagnosis changed in icc 8.0:
3837 # icc: Command line remark: option '-MP' not supported
3838 if (grep 'ignoring option' conftest.err ||
3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840 am_cv_CC_dependencies_compiler_type=$depmode
3841 break
3842 fi
3843 fi
3844 done
3845
3846 cd ..
3847 rm -rf conftest.dir
3848 else
3849 am_cv_CC_dependencies_compiler_type=none
3850 fi
3851
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3856
3857 if
3858 test "x$enable_dependency_tracking" != xno \
3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860 am__fastdepCC_TRUE=
3861 am__fastdepCC_FALSE='#'
3862 else
3863 am__fastdepCC_TRUE='#'
3864 am__fastdepCC_FALSE=
3865 fi
3866
3867
3868
3869 if test -n "$ac_tool_prefix"; then
3870 for ac_prog in ar lib "link -lib"
3871 do
3872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_AR+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$AR"; then
3880 ac_cv_prog_AR="$AR" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi
3898 fi
3899 AR=$ac_cv_prog_AR
3900 if test -n "$AR"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3902 $as_echo "$AR" >&6; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 fi
3907
3908
3909 test -n "$AR" && break
3910 done
3911 fi
3912 if test -z "$AR"; then
3913 ac_ct_AR=$AR
3914 for ac_prog in ar lib "link -lib"
3915 do
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$ac_ct_AR"; then
3924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_ac_ct_AR="$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi
3942 fi
3943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3944 if test -n "$ac_ct_AR"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3946 $as_echo "$ac_ct_AR" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3950 fi
3951
3952
3953 test -n "$ac_ct_AR" && break
3954 done
3955
3956 if test "x$ac_ct_AR" = x; then
3957 AR="false"
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965 AR=$ac_ct_AR
3966 fi
3967 fi
3968
3969 : ${AR=ar}
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3972 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3973 if ${am_cv_ar_interface+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 ac_ext=c
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981
3982 am_cv_ar_interface=ar
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985 int some_variable = 0;
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3990 (eval $am_ar_try) 2>&5
3991 ac_status=$?
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3994 if test "$ac_status" -eq 0; then
3995 am_cv_ar_interface=ar
3996 else
3997 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3999 (eval $am_ar_try) 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }
4003 if test "$ac_status" -eq 0; then
4004 am_cv_ar_interface=lib
4005 else
4006 am_cv_ar_interface=unknown
4007 fi
4008 fi
4009 rm -f conftest.lib libconftest.a
4010
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4021 $as_echo "$am_cv_ar_interface" >&6; }
4022
4023 case $am_cv_ar_interface in
4024 ar)
4025 ;;
4026 lib)
4027 # Microsoft lib, so override with the ar-lib wrapper script.
4028 # FIXME: It is wrong to rewrite AR.
4029 # But if we don't then we get into trouble of one sort or another.
4030 # A longer-term fix would be to have automake use am__AR in this case,
4031 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4032 # similar.
4033 AR="$am_aux_dir/ar-lib $AR"
4034 ;;
4035 unknown)
4036 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4037 ;;
4038 esac
4039
4040
4041 case `pwd` in
4042 *\ * | *\ *)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4044 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4045 esac
4046
4047
4048
4049 macro_version='2.4.2'
4050 macro_revision='1.3337'
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064 ltmain="$ac_aux_dir/ltmain.sh"
4065
4066 # Make sure we can run config.sub.
4067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4068 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4071 $as_echo_n "checking build system type... " >&6; }
4072 if ${ac_cv_build+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 ac_build_alias=$build_alias
4076 test "x$ac_build_alias" = x &&
4077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4078 test "x$ac_build_alias" = x &&
4079 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4081 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4082
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4085 $as_echo "$ac_cv_build" >&6; }
4086 case $ac_cv_build in
4087 *-*-*) ;;
4088 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4089 esac
4090 build=$ac_cv_build
4091 ac_save_IFS=$IFS; IFS='-'
4092 set x $ac_cv_build
4093 shift
4094 build_cpu=$1
4095 build_vendor=$2
4096 shift; shift
4097 # Remember, the first character of IFS is used to create $*,
4098 # except with old shells:
4099 build_os=$*
4100 IFS=$ac_save_IFS
4101 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4102
4103
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4105 $as_echo_n "checking host system type... " >&6; }
4106 if ${ac_cv_host+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test "x$host_alias" = x; then
4110 ac_cv_host=$ac_cv_build
4111 else
4112 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4113 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4114 fi
4115
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4118 $as_echo "$ac_cv_host" >&6; }
4119 case $ac_cv_host in
4120 *-*-*) ;;
4121 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4122 esac
4123 host=$ac_cv_host
4124 ac_save_IFS=$IFS; IFS='-'
4125 set x $ac_cv_host
4126 shift
4127 host_cpu=$1
4128 host_vendor=$2
4129 shift; shift
4130 # Remember, the first character of IFS is used to create $*,
4131 # except with old shells:
4132 host_os=$*
4133 IFS=$ac_save_IFS
4134 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4135
4136
4137 # Backslashify metacharacters that are still active within
4138 # double-quoted strings.
4139 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4140
4141 # Same as above, but do not quote variable references.
4142 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4143
4144 # Sed substitution to delay expansion of an escaped shell variable in a
4145 # double_quote_subst'ed string.
4146 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4147
4148 # Sed substitution to delay expansion of an escaped single quote.
4149 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4150
4151 # Sed substitution to avoid accidental globbing in evaled expressions
4152 no_glob_subst='s/\*/\\\*/g'
4153
4154 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4155 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4159 $as_echo_n "checking how to print strings... " >&6; }
4160 # Test print first, because it will be a builtin if present.
4161 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4162 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4163 ECHO='print -r --'
4164 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4165 ECHO='printf %s\n'
4166 else
4167 # Use this function as a fallback that always works.
4168 func_fallback_echo ()
4169 {
4170 eval 'cat <<_LTECHO_EOF
4171 $1
4172 _LTECHO_EOF'
4173 }
4174 ECHO='func_fallback_echo'
4175 fi
4176
4177 # func_echo_all arg...
4178 # Invoke $ECHO with all args, space-separated.
4179 func_echo_all ()
4180 {
4181 $ECHO ""
4182 }
4183
4184 case "$ECHO" in
4185 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4186 $as_echo "printf" >&6; } ;;
4187 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4188 $as_echo "print -r" >&6; } ;;
4189 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4190 $as_echo "cat" >&6; } ;;
4191 esac
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4207 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4208 if ${ac_cv_path_SED+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4212 for ac_i in 1 2 3 4 5 6 7; do
4213 ac_script="$ac_script$as_nl$ac_script"
4214 done
4215 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4216 { ac_script=; unset ac_script;}
4217 if test -z "$SED"; then
4218 ac_path_SED_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in sed gsed; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4228 as_fn_executable_p "$ac_path_SED" || continue
4229 # Check for GNU ac_path_SED and select it if it is found.
4230 # Check for GNU $ac_path_SED
4231 case `"$ac_path_SED" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4234 *)
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo '' >> "conftest.nl"
4243 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_SED_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_SED="$ac_path_SED"
4249 ac_path_SED_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257 $ac_path_SED_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_SED"; then
4263 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4264 fi
4265 else
4266 ac_cv_path_SED=$SED
4267 fi
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4271 $as_echo "$ac_cv_path_SED" >&6; }
4272 SED="$ac_cv_path_SED"
4273 rm -f conftest.sed
4274
4275 test -z "$SED" && SED=sed
4276 Xsed="$SED -e 1s/^X//"
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4289 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4290 if ${ac_cv_path_GREP+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -z "$GREP"; then
4294 ac_path_GREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_prog in grep ggrep; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4304 as_fn_executable_p "$ac_path_GREP" || continue
4305 # Check for GNU ac_path_GREP and select it if it is found.
4306 # Check for GNU $ac_path_GREP
4307 case `"$ac_path_GREP" --version 2>&1` in
4308 *GNU*)
4309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4310 *)
4311 ac_count=0
4312 $as_echo_n 0123456789 >"conftest.in"
4313 while :
4314 do
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'GREP' >> "conftest.nl"
4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321 as_fn_arith $ac_count + 1 && ac_count=$as_val
4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_GREP="$ac_path_GREP"
4325 ac_path_GREP_max=$ac_count
4326 fi
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4329 done
4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 esac
4332
4333 $ac_path_GREP_found && break 3
4334 done
4335 done
4336 done
4337 IFS=$as_save_IFS
4338 if test -z "$ac_cv_path_GREP"; then
4339 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4340 fi
4341 else
4342 ac_cv_path_GREP=$GREP
4343 fi
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4347 $as_echo "$ac_cv_path_GREP" >&6; }
4348 GREP="$ac_cv_path_GREP"
4349
4350
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4352 $as_echo_n "checking for egrep... " >&6; }
4353 if ${ac_cv_path_EGREP+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4357 then ac_cv_path_EGREP="$GREP -E"
4358 else
4359 if test -z "$EGREP"; then
4360 ac_path_EGREP_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4364 do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in egrep; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4370 as_fn_executable_p "$ac_path_EGREP" || continue
4371 # Check for GNU ac_path_EGREP and select it if it is found.
4372 # Check for GNU $ac_path_EGREP
4373 case `"$ac_path_EGREP" --version 2>&1` in
4374 *GNU*)
4375 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4376 *)
4377 ac_count=0
4378 $as_echo_n 0123456789 >"conftest.in"
4379 while :
4380 do
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 $as_echo 'EGREP' >> "conftest.nl"
4385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 as_fn_arith $ac_count + 1 && ac_count=$as_val
4388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_EGREP="$ac_path_EGREP"
4391 ac_path_EGREP_max=$ac_count
4392 fi
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397 esac
4398
4399 $ac_path_EGREP_found && break 3
4400 done
4401 done
4402 done
4403 IFS=$as_save_IFS
4404 if test -z "$ac_cv_path_EGREP"; then
4405 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4406 fi
4407 else
4408 ac_cv_path_EGREP=$EGREP
4409 fi
4410
4411 fi
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4414 $as_echo "$ac_cv_path_EGREP" >&6; }
4415 EGREP="$ac_cv_path_EGREP"
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4419 $as_echo_n "checking for fgrep... " >&6; }
4420 if ${ac_cv_path_FGREP+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4424 then ac_cv_path_FGREP="$GREP -F"
4425 else
4426 if test -z "$FGREP"; then
4427 ac_path_FGREP_found=false
4428 # Loop through the user's path and test for each of PROGNAME-LIST
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4431 do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_prog in fgrep; do
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4437 as_fn_executable_p "$ac_path_FGREP" || continue
4438 # Check for GNU ac_path_FGREP and select it if it is found.
4439 # Check for GNU $ac_path_FGREP
4440 case `"$ac_path_FGREP" --version 2>&1` in
4441 *GNU*)
4442 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4443 *)
4444 ac_count=0
4445 $as_echo_n 0123456789 >"conftest.in"
4446 while :
4447 do
4448 cat "conftest.in" "conftest.in" >"conftest.tmp"
4449 mv "conftest.tmp" "conftest.in"
4450 cp "conftest.in" "conftest.nl"
4451 $as_echo 'FGREP' >> "conftest.nl"
4452 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4454 as_fn_arith $ac_count + 1 && ac_count=$as_val
4455 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4456 # Best one so far, save it but keep looking for a better one
4457 ac_cv_path_FGREP="$ac_path_FGREP"
4458 ac_path_FGREP_max=$ac_count
4459 fi
4460 # 10*(2^10) chars as input seems more than enough
4461 test $ac_count -gt 10 && break
4462 done
4463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4464 esac
4465
4466 $ac_path_FGREP_found && break 3
4467 done
4468 done
4469 done
4470 IFS=$as_save_IFS
4471 if test -z "$ac_cv_path_FGREP"; then
4472 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4473 fi
4474 else
4475 ac_cv_path_FGREP=$FGREP
4476 fi
4477
4478 fi
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4481 $as_echo "$ac_cv_path_FGREP" >&6; }
4482 FGREP="$ac_cv_path_FGREP"
4483
4484
4485 test -z "$GREP" && GREP=grep
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 # Check whether --with-gnu-ld was given.
4506 if test "${with_gnu_ld+set}" = set; then :
4507 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4508 else
4509 with_gnu_ld=no
4510 fi
4511
4512 ac_prog=ld
4513 if test "$GCC" = yes; then
4514 # Check if gcc -print-prog-name=ld gives a path.
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4516 $as_echo_n "checking for ld used by $CC... " >&6; }
4517 case $host in
4518 *-*-mingw*)
4519 # gcc leaves a trailing carriage return which upsets mingw
4520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4521 *)
4522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4523 esac
4524 case $ac_prog in
4525 # Accept absolute paths.
4526 [\\/]* | ?:[\\/]*)
4527 re_direlt='/[^/][^/]*/\.\./'
4528 # Canonicalize the pathname of ld
4529 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4530 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4531 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4532 done
4533 test -z "$LD" && LD="$ac_prog"
4534 ;;
4535 "")
4536 # If it fails, then pretend we aren't using GCC.
4537 ac_prog=ld
4538 ;;
4539 *)
4540 # If it is relative, then search for the first ld in PATH.
4541 with_gnu_ld=unknown
4542 ;;
4543 esac
4544 elif test "$with_gnu_ld" = yes; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4546 $as_echo_n "checking for GNU ld... " >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4549 $as_echo_n "checking for non-GNU ld... " >&6; }
4550 fi
4551 if ${lt_cv_path_LD+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -z "$LD"; then
4555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4556 for ac_dir in $PATH; do
4557 IFS="$lt_save_ifs"
4558 test -z "$ac_dir" && ac_dir=.
4559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4560 lt_cv_path_LD="$ac_dir/$ac_prog"
4561 # Check to see if the program is GNU ld. I'd rather use --version,
4562 # but apparently some variants of GNU ld only accept -v.
4563 # Break only if it was the GNU/non-GNU ld that we prefer.
4564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4565 *GNU* | *'with BFD'*)
4566 test "$with_gnu_ld" != no && break
4567 ;;
4568 *)
4569 test "$with_gnu_ld" != yes && break
4570 ;;
4571 esac
4572 fi
4573 done
4574 IFS="$lt_save_ifs"
4575 else
4576 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4577 fi
4578 fi
4579
4580 LD="$lt_cv_path_LD"
4581 if test -n "$LD"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4583 $as_echo "$LD" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4590 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4591 if ${lt_cv_prog_gnu_ld+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4595 case `$LD -v 2>&1 </dev/null` in
4596 *GNU* | *'with BFD'*)
4597 lt_cv_prog_gnu_ld=yes
4598 ;;
4599 *)
4600 lt_cv_prog_gnu_ld=no
4601 ;;
4602 esac
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4605 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4606 with_gnu_ld=$lt_cv_prog_gnu_ld
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4617 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4618 if ${lt_cv_path_NM+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$NM"; then
4622 # Let the user override the test.
4623 lt_cv_path_NM="$NM"
4624 else
4625 lt_nm_to_check="${ac_tool_prefix}nm"
4626 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4627 lt_nm_to_check="$lt_nm_to_check nm"
4628 fi
4629 for lt_tmp_nm in $lt_nm_to_check; do
4630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4631 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4632 IFS="$lt_save_ifs"
4633 test -z "$ac_dir" && ac_dir=.
4634 tmp_nm="$ac_dir/$lt_tmp_nm"
4635 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4636 # Check to see if the nm accepts a BSD-compat flag.
4637 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4638 # nm: unknown option "B" ignored
4639 # Tru64's nm complains that /dev/null is an invalid object file
4640 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4641 */dev/null* | *'Invalid file or object type'*)
4642 lt_cv_path_NM="$tmp_nm -B"
4643 break
4644 ;;
4645 *)
4646 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4647 */dev/null*)
4648 lt_cv_path_NM="$tmp_nm -p"
4649 break
4650 ;;
4651 *)
4652 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4653 continue # so that we can try to find one that supports BSD flags
4654 ;;
4655 esac
4656 ;;
4657 esac
4658 fi
4659 done
4660 IFS="$lt_save_ifs"
4661 done
4662 : ${lt_cv_path_NM=no}
4663 fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4666 $as_echo "$lt_cv_path_NM" >&6; }
4667 if test "$lt_cv_path_NM" != "no"; then
4668 NM="$lt_cv_path_NM"
4669 else
4670 # Didn't find any BSD compatible name lister, look for dumpbin.
4671 if test -n "$DUMPBIN"; then :
4672 # Let the user override the test.
4673 else
4674 if test -n "$ac_tool_prefix"; then
4675 for ac_prog in dumpbin "link -dump"
4676 do
4677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_DUMPBIN+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$DUMPBIN"; then
4685 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698 done
4699 done
4700 IFS=$as_save_IFS
4701
4702 fi
4703 fi
4704 DUMPBIN=$ac_cv_prog_DUMPBIN
4705 if test -n "$DUMPBIN"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4707 $as_echo "$DUMPBIN" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713
4714 test -n "$DUMPBIN" && break
4715 done
4716 fi
4717 if test -z "$DUMPBIN"; then
4718 ac_ct_DUMPBIN=$DUMPBIN
4719 for ac_prog in dumpbin "link -dump"
4720 do
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy $ac_prog; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$ac_ct_DUMPBIN"; then
4729 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4749 if test -n "$ac_ct_DUMPBIN"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4751 $as_echo "$ac_ct_DUMPBIN" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757
4758 test -n "$ac_ct_DUMPBIN" && break
4759 done
4760
4761 if test "x$ac_ct_DUMPBIN" = x; then
4762 DUMPBIN=":"
4763 else
4764 case $cross_compiling:$ac_tool_warned in
4765 yes:)
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768 ac_tool_warned=yes ;;
4769 esac
4770 DUMPBIN=$ac_ct_DUMPBIN
4771 fi
4772 fi
4773
4774 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4775 *COFF*)
4776 DUMPBIN="$DUMPBIN -symbols"
4777 ;;
4778 *)
4779 DUMPBIN=:
4780 ;;
4781 esac
4782 fi
4783
4784 if test "$DUMPBIN" != ":"; then
4785 NM="$DUMPBIN"
4786 fi
4787 fi
4788 test -z "$NM" && NM=nm
4789
4790
4791
4792
4793
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4796 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4797 if ${lt_cv_nm_interface+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 lt_cv_nm_interface="BSD nm"
4801 echo "int some_variable = 0;" > conftest.$ac_ext
4802 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4803 (eval "$ac_compile" 2>conftest.err)
4804 cat conftest.err >&5
4805 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4806 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4807 cat conftest.err >&5
4808 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4809 cat conftest.out >&5
4810 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4811 lt_cv_nm_interface="MS dumpbin"
4812 fi
4813 rm -f conftest*
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4816 $as_echo "$lt_cv_nm_interface" >&6; }
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4819 $as_echo_n "checking whether ln -s works... " >&6; }
4820 LN_S=$as_ln_s
4821 if test "$LN_S" = "ln -s"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4823 $as_echo "yes" >&6; }
4824 else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4826 $as_echo "no, using $LN_S" >&6; }
4827 fi
4828
4829 # find the maximum length of command line arguments
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4831 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4832 if ${lt_cv_sys_max_cmd_len+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 i=0
4836 teststring="ABCD"
4837
4838 case $build_os in
4839 msdosdjgpp*)
4840 # On DJGPP, this test can blow up pretty badly due to problems in libc
4841 # (any single argument exceeding 2000 bytes causes a buffer overrun
4842 # during glob expansion). Even if it were fixed, the result of this
4843 # check would be larger than it should be.
4844 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4845 ;;
4846
4847 gnu*)
4848 # Under GNU Hurd, this test is not required because there is
4849 # no limit to the length of command line arguments.
4850 # Libtool will interpret -1 as no limit whatsoever
4851 lt_cv_sys_max_cmd_len=-1;
4852 ;;
4853
4854 cygwin* | mingw* | cegcc*)
4855 # On Win9x/ME, this test blows up -- it succeeds, but takes
4856 # about 5 minutes as the teststring grows exponentially.
4857 # Worse, since 9x/ME are not pre-emptively multitasking,
4858 # you end up with a "frozen" computer, even though with patience
4859 # the test eventually succeeds (with a max line length of 256k).
4860 # Instead, let's just punt: use the minimum linelength reported by
4861 # all of the supported platforms: 8192 (on NT/2K/XP).
4862 lt_cv_sys_max_cmd_len=8192;
4863 ;;
4864
4865 mint*)
4866 # On MiNT this can take a long time and run out of memory.
4867 lt_cv_sys_max_cmd_len=8192;
4868 ;;
4869
4870 amigaos*)
4871 # On AmigaOS with pdksh, this test takes hours, literally.
4872 # So we just punt and use a minimum line length of 8192.
4873 lt_cv_sys_max_cmd_len=8192;
4874 ;;
4875
4876 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4877 # This has been around since 386BSD, at least. Likely further.
4878 if test -x /sbin/sysctl; then
4879 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4880 elif test -x /usr/sbin/sysctl; then
4881 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4882 else
4883 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4884 fi
4885 # And add a safety zone
4886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4888 ;;
4889
4890 interix*)
4891 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4892 lt_cv_sys_max_cmd_len=196608
4893 ;;
4894
4895 os2*)
4896 # The test takes a long time on OS/2.
4897 lt_cv_sys_max_cmd_len=8192
4898 ;;
4899
4900 osf*)
4901 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4902 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4903 # nice to cause kernel panics so lets avoid the loop below.
4904 # First set a reasonable default.
4905 lt_cv_sys_max_cmd_len=16384
4906 #
4907 if test -x /sbin/sysconfig; then
4908 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4909 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4910 esac
4911 fi
4912 ;;
4913 sco3.2v5*)
4914 lt_cv_sys_max_cmd_len=102400
4915 ;;
4916 sysv5* | sco5v6* | sysv4.2uw2*)
4917 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4918 if test -n "$kargmax"; then
4919 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4920 else
4921 lt_cv_sys_max_cmd_len=32768
4922 fi
4923 ;;
4924 *)
4925 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4926 if test -n "$lt_cv_sys_max_cmd_len"; then
4927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4929 else
4930 # Make teststring a little bigger before we do anything with it.
4931 # a 1K string should be a reasonable start.
4932 for i in 1 2 3 4 5 6 7 8 ; do
4933 teststring=$teststring$teststring
4934 done
4935 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4936 # If test is not a shell built-in, we'll probably end up computing a
4937 # maximum length that is only half of the actual maximum length, but
4938 # we can't tell.
4939 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4940 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4941 test $i != 17 # 1/2 MB should be enough
4942 do
4943 i=`expr $i + 1`
4944 teststring=$teststring$teststring
4945 done
4946 # Only check the string length outside the loop.
4947 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4948 teststring=
4949 # Add a significant safety factor because C++ compilers can tack on
4950 # massive amounts of additional arguments before passing them to the
4951 # linker. It appears as though 1/2 is a usable value.
4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4953 fi
4954 ;;
4955 esac
4956
4957 fi
4958
4959 if test -n $lt_cv_sys_max_cmd_len ; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4961 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4964 $as_echo "none" >&6; }
4965 fi
4966 max_cmd_len=$lt_cv_sys_max_cmd_len
4967
4968
4969
4970
4971
4972
4973 : ${CP="cp -f"}
4974 : ${MV="mv -f"}
4975 : ${RM="rm -f"}
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4978 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4979 # Try some XSI features
4980 xsi_shell=no
4981 ( _lt_dummy="a/b/c"
4982 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4983 = c,a/b,b/c, \
4984 && eval 'test $(( 1 + 1 )) -eq 2 \
4985 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4986 && xsi_shell=yes
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4988 $as_echo "$xsi_shell" >&6; }
4989
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4992 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4993 lt_shell_append=no
4994 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4995 >/dev/null 2>&1 \
4996 && lt_shell_append=yes
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4998 $as_echo "$lt_shell_append" >&6; }
4999
5000
5001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5002 lt_unset=unset
5003 else
5004 lt_unset=false
5005 fi
5006
5007
5008
5009
5010
5011 # test EBCDIC or ASCII
5012 case `echo X|tr X '\101'` in
5013 A) # ASCII based system
5014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5015 lt_SP2NL='tr \040 \012'
5016 lt_NL2SP='tr \015\012 \040\040'
5017 ;;
5018 *) # EBCDIC based system
5019 lt_SP2NL='tr \100 \n'
5020 lt_NL2SP='tr \r\n \100\100'
5021 ;;
5022 esac
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5033 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5034 if ${lt_cv_to_host_file_cmd+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 case $host in
5038 *-*-mingw* )
5039 case $build in
5040 *-*-mingw* ) # actually msys
5041 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5042 ;;
5043 *-*-cygwin* )
5044 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5045 ;;
5046 * ) # otherwise, assume *nix
5047 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5048 ;;
5049 esac
5050 ;;
5051 *-*-cygwin* )
5052 case $build in
5053 *-*-mingw* ) # actually msys
5054 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5055 ;;
5056 *-*-cygwin* )
5057 lt_cv_to_host_file_cmd=func_convert_file_noop
5058 ;;
5059 * ) # otherwise, assume *nix
5060 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5061 ;;
5062 esac
5063 ;;
5064 * ) # unhandled hosts (and "normal" native builds)
5065 lt_cv_to_host_file_cmd=func_convert_file_noop
5066 ;;
5067 esac
5068
5069 fi
5070
5071 to_host_file_cmd=$lt_cv_to_host_file_cmd
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5073 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5074
5075
5076
5077
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5080 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5081 if ${lt_cv_to_tool_file_cmd+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 #assume ordinary cross tools, or native build.
5085 lt_cv_to_tool_file_cmd=func_convert_file_noop
5086 case $host in
5087 *-*-mingw* )
5088 case $build in
5089 *-*-mingw* ) # actually msys
5090 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5091 ;;
5092 esac
5093 ;;
5094 esac
5095
5096 fi
5097
5098 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5100 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5101
5102
5103
5104
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5107 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5108 if ${lt_cv_ld_reload_flag+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 lt_cv_ld_reload_flag='-r'
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5114 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5115 reload_flag=$lt_cv_ld_reload_flag
5116 case $reload_flag in
5117 "" | " "*) ;;
5118 *) reload_flag=" $reload_flag" ;;
5119 esac
5120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5121 case $host_os in
5122 cygwin* | mingw* | pw32* | cegcc*)
5123 if test "$GCC" != yes; then
5124 reload_cmds=false
5125 fi
5126 ;;
5127 darwin*)
5128 if test "$GCC" = yes; then
5129 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5130 else
5131 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5132 fi
5133 ;;
5134 esac
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_OBJDUMP+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$OBJDUMP"; then
5153 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 OBJDUMP=$ac_cv_prog_OBJDUMP
5173 if test -n "$OBJDUMP"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5175 $as_echo "$OBJDUMP" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 fi
5183 if test -z "$ac_cv_prog_OBJDUMP"; then
5184 ac_ct_OBJDUMP=$OBJDUMP
5185 # Extract the first word of "objdump", so it can be a program name with args.
5186 set dummy objdump; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$ac_ct_OBJDUMP"; then
5193 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5213 if test -n "$ac_ct_OBJDUMP"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5215 $as_echo "$ac_ct_OBJDUMP" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221 if test "x$ac_ct_OBJDUMP" = x; then
5222 OBJDUMP="false"
5223 else
5224 case $cross_compiling:$ac_tool_warned in
5225 yes:)
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5229 esac
5230 OBJDUMP=$ac_ct_OBJDUMP
5231 fi
5232 else
5233 OBJDUMP="$ac_cv_prog_OBJDUMP"
5234 fi
5235
5236 test -z "$OBJDUMP" && OBJDUMP=objdump
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5247 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5248 if ${lt_cv_deplibs_check_method+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 lt_cv_file_magic_cmd='$MAGIC_CMD'
5252 lt_cv_file_magic_test_file=
5253 lt_cv_deplibs_check_method='unknown'
5254 # Need to set the preceding variable on all platforms that support
5255 # interlibrary dependencies.
5256 # 'none' -- dependencies not supported.
5257 # `unknown' -- same as none, but documents that we really don't know.
5258 # 'pass_all' -- all dependencies passed with no checks.
5259 # 'test_compile' -- check by making test program.
5260 # 'file_magic [[regex]]' -- check by looking for files in library path
5261 # which responds to the $file_magic_cmd with a given extended regex.
5262 # If you have `file' or equivalent on your system and you're not sure
5263 # whether `pass_all' will *always* work, you probably want this one.
5264
5265 case $host_os in
5266 aix[4-9]*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270 beos*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 bsdi[45]*)
5275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5276 lt_cv_file_magic_cmd='/usr/bin/file -L'
5277 lt_cv_file_magic_test_file=/shlib/libc.so
5278 ;;
5279
5280 cygwin*)
5281 # func_win32_libid is a shell function defined in ltmain.sh
5282 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5283 lt_cv_file_magic_cmd='func_win32_libid'
5284 ;;
5285
5286 mingw* | pw32*)
5287 # Base MSYS/MinGW do not provide the 'file' command needed by
5288 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5289 # unless we find 'file', for example because we are cross-compiling.
5290 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5291 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5293 lt_cv_file_magic_cmd='func_win32_libid'
5294 else
5295 # Keep this pattern in sync with the one in func_win32_libid.
5296 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5297 lt_cv_file_magic_cmd='$OBJDUMP -f'
5298 fi
5299 ;;
5300
5301 cegcc*)
5302 # use the weaker test based on 'objdump'. See mingw*.
5303 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5304 lt_cv_file_magic_cmd='$OBJDUMP -f'
5305 ;;
5306
5307 darwin* | rhapsody*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311 freebsd* | dragonfly*)
5312 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5313 case $host_cpu in
5314 i*86 )
5315 # Not sure whether the presence of OpenBSD here was a mistake.
5316 # Let's accept both of them until this is cleared up.
5317 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5318 lt_cv_file_magic_cmd=/usr/bin/file
5319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5320 ;;
5321 esac
5322 else
5323 lt_cv_deplibs_check_method=pass_all
5324 fi
5325 ;;
5326
5327 gnu*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331 haiku*)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334
5335 hpux10.20* | hpux11*)
5336 lt_cv_file_magic_cmd=/usr/bin/file
5337 case $host_cpu in
5338 ia64*)
5339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5340 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5341 ;;
5342 hppa*64*)
5343 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]'
5344 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5345 ;;
5346 *)
5347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5348 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5349 ;;
5350 esac
5351 ;;
5352
5353 interix[3-9]*)
5354 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5356 ;;
5357
5358 irix5* | irix6* | nonstopux*)
5359 case $LD in
5360 *-32|*"-32 ") libmagic=32-bit;;
5361 *-n32|*"-n32 ") libmagic=N32;;
5362 *-64|*"-64 ") libmagic=64-bit;;
5363 *) libmagic=never-match;;
5364 esac
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
5367
5368 # This must be glibc/ELF.
5369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373 netbsd*)
5374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5376 else
5377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5378 fi
5379 ;;
5380
5381 newos6*)
5382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5383 lt_cv_file_magic_cmd=/usr/bin/file
5384 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5385 ;;
5386
5387 *nto* | *qnx*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
5391 openbsd*)
5392 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5394 else
5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5396 fi
5397 ;;
5398
5399 osf3* | osf4* | osf5*)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
5402
5403 rdos*)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406
5407 solaris*)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410
5411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5412 lt_cv_deplibs_check_method=pass_all
5413 ;;
5414
5415 sysv4 | sysv4.3*)
5416 case $host_vendor in
5417 motorola)
5418 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]'
5419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5420 ;;
5421 ncr)
5422 lt_cv_deplibs_check_method=pass_all
5423 ;;
5424 sequent)
5425 lt_cv_file_magic_cmd='/bin/file'
5426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5427 ;;
5428 sni)
5429 lt_cv_file_magic_cmd='/bin/file'
5430 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5431 lt_cv_file_magic_test_file=/lib/libc.so
5432 ;;
5433 siemens)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436 pc)
5437 lt_cv_deplibs_check_method=pass_all
5438 ;;
5439 esac
5440 ;;
5441
5442 tpf*)
5443 lt_cv_deplibs_check_method=pass_all
5444 ;;
5445 esac
5446
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5449 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5450
5451 file_magic_glob=
5452 want_nocaseglob=no
5453 if test "$build" = "$host"; then
5454 case $host_os in
5455 mingw* | pw32*)
5456 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5457 want_nocaseglob=yes
5458 else
5459 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5460 fi
5461 ;;
5462 esac
5463 fi
5464
5465 file_magic_cmd=$lt_cv_file_magic_cmd
5466 deplibs_check_method=$lt_cv_deplibs_check_method
5467 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_DLLTOOL+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$DLLTOOL"; then
5499 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 DLLTOOL=$ac_cv_prog_DLLTOOL
5519 if test -n "$DLLTOOL"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5521 $as_echo "$DLLTOOL" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527
5528 fi
5529 if test -z "$ac_cv_prog_DLLTOOL"; then
5530 ac_ct_DLLTOOL=$DLLTOOL
5531 # Extract the first word of "dlltool", so it can be a program name with args.
5532 set dummy dlltool; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$ac_ct_DLLTOOL"; then
5539 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5559 if test -n "$ac_ct_DLLTOOL"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5561 $as_echo "$ac_ct_DLLTOOL" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567 if test "x$ac_ct_DLLTOOL" = x; then
5568 DLLTOOL="false"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 DLLTOOL=$ac_ct_DLLTOOL
5577 fi
5578 else
5579 DLLTOOL="$ac_cv_prog_DLLTOOL"
5580 fi
5581
5582 test -z "$DLLTOOL" && DLLTOOL=dlltool
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5594 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5595 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 lt_cv_sharedlib_from_linklib_cmd='unknown'
5599
5600 case $host_os in
5601 cygwin* | mingw* | pw32* | cegcc*)
5602 # two different shell functions defined in ltmain.sh
5603 # decide which to use based on capabilities of $DLLTOOL
5604 case `$DLLTOOL --help 2>&1` in
5605 *--identify-strict*)
5606 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5607 ;;
5608 *)
5609 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5610 ;;
5611 esac
5612 ;;
5613 *)
5614 # fallback: assume linklib IS sharedlib
5615 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5616 ;;
5617 esac
5618
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5621 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5622 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5623 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5624
5625
5626
5627
5628
5629
5630
5631 if test -n "$ac_tool_prefix"; then
5632 for ac_prog in ar
5633 do
5634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_AR+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$AR"; then
5642 ac_cv_prog_AR="$AR" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 AR=$ac_cv_prog_AR
5662 if test -n "$AR"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5664 $as_echo "$AR" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670
5671 test -n "$AR" && break
5672 done
5673 fi
5674 if test -z "$AR"; then
5675 ac_ct_AR=$AR
5676 for ac_prog in ar
5677 do
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$ac_ct_AR"; then
5686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_ac_ct_AR="$ac_prog"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699 done
5700 done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5706 if test -n "$ac_ct_AR"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5708 $as_echo "$ac_ct_AR" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 fi
5713
5714
5715 test -n "$ac_ct_AR" && break
5716 done
5717
5718 if test "x$ac_ct_AR" = x; then
5719 AR="false"
5720 else
5721 case $cross_compiling:$ac_tool_warned in
5722 yes:)
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5725 ac_tool_warned=yes ;;
5726 esac
5727 AR=$ac_ct_AR
5728 fi
5729 fi
5730
5731 : ${AR=ar}
5732 : ${AR_FLAGS=cru}
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5745 $as_echo_n "checking for archiver @FILE support... " >&6; }
5746 if ${lt_cv_ar_at_file+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 lt_cv_ar_at_file=no
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752
5753 int
5754 main ()
5755 {
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762 echo conftest.$ac_objext > conftest.lst
5763 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5765 (eval $lt_ar_try) 2>&5
5766 ac_status=$?
5767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5768 test $ac_status = 0; }
5769 if test "$ac_status" -eq 0; then
5770 # Ensure the archiver fails upon bogus file names.
5771 rm -f conftest.$ac_objext libconftest.a
5772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5773 (eval $lt_ar_try) 2>&5
5774 ac_status=$?
5775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5776 test $ac_status = 0; }
5777 if test "$ac_status" -ne 0; then
5778 lt_cv_ar_at_file=@
5779 fi
5780 fi
5781 rm -f conftest.* libconftest.a
5782
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5788 $as_echo "$lt_cv_ar_at_file" >&6; }
5789
5790 if test "x$lt_cv_ar_at_file" = xno; then
5791 archiver_list_spec=
5792 else
5793 archiver_list_spec=$lt_cv_ar_at_file
5794 fi
5795
5796
5797
5798
5799
5800
5801
5802 if test -n "$ac_tool_prefix"; then
5803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5804 set dummy ${ac_tool_prefix}strip; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_STRIP+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$STRIP"; then
5811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 STRIP=$ac_cv_prog_STRIP
5831 if test -n "$STRIP"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5833 $as_echo "$STRIP" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839
5840 fi
5841 if test -z "$ac_cv_prog_STRIP"; then
5842 ac_ct_STRIP=$STRIP
5843 # Extract the first word of "strip", so it can be a program name with args.
5844 set dummy strip; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$ac_ct_STRIP"; then
5851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_ac_ct_STRIP="strip"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5871 if test -n "$ac_ct_STRIP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5873 $as_echo "$ac_ct_STRIP" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879 if test "x$ac_ct_STRIP" = x; then
5880 STRIP=":"
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 STRIP=$ac_ct_STRIP
5889 fi
5890 else
5891 STRIP="$ac_cv_prog_STRIP"
5892 fi
5893
5894 test -z "$STRIP" && STRIP=:
5895
5896
5897
5898
5899
5900
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_RANLIB+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 RANLIB=$ac_cv_prog_RANLIB
5930 if test -n "$RANLIB"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5932 $as_echo "$RANLIB" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939 fi
5940 if test -z "$ac_cv_prog_RANLIB"; then
5941 ac_ct_RANLIB=$RANLIB
5942 # Extract the first word of "ranlib", so it can be a program name with args.
5943 set dummy ranlib; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$ac_ct_RANLIB"; then
5950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_ac_ct_RANLIB="ranlib"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5970 if test -n "$ac_ct_RANLIB"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5972 $as_echo "$ac_ct_RANLIB" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978 if test "x$ac_ct_RANLIB" = x; then
5979 RANLIB=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 RANLIB=$ac_ct_RANLIB
5988 fi
5989 else
5990 RANLIB="$ac_cv_prog_RANLIB"
5991 fi
5992
5993 test -z "$RANLIB" && RANLIB=:
5994
5995
5996
5997
5998
5999
6000 # Determine commands to create old-style static archives.
6001 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6002 old_postinstall_cmds='chmod 644 $oldlib'
6003 old_postuninstall_cmds=
6004
6005 if test -n "$RANLIB"; then
6006 case $host_os in
6007 openbsd*)
6008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6009 ;;
6010 *)
6011 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6012 ;;
6013 esac
6014 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6015 fi
6016
6017 case $host_os in
6018 darwin*)
6019 lock_old_archive_extraction=yes ;;
6020 *)
6021 lock_old_archive_extraction=no ;;
6022 esac
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062 # If no C compiler was specified, use CC.
6063 LTCC=${LTCC-"$CC"}
6064
6065 # If no C compiler flags were specified, use CFLAGS.
6066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6067
6068 # Allow CC to be a program name with arguments.
6069 compiler=$CC
6070
6071
6072 # Check for command to grab the raw symbol name followed by C symbol from nm.
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6074 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6075 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078
6079 # These are sane defaults that work on at least a few old systems.
6080 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6081
6082 # Character class describing NM global symbol codes.
6083 symcode='[BCDEGRST]'
6084
6085 # Regexp to match symbols that can be accessed directly from C.
6086 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6087
6088 # Define system-specific variables.
6089 case $host_os in
6090 aix*)
6091 symcode='[BCDT]'
6092 ;;
6093 cygwin* | mingw* | pw32* | cegcc*)
6094 symcode='[ABCDGISTW]'
6095 ;;
6096 hpux*)
6097 if test "$host_cpu" = ia64; then
6098 symcode='[ABCDEGRST]'
6099 fi
6100 ;;
6101 irix* | nonstopux*)
6102 symcode='[BCDEGRST]'
6103 ;;
6104 osf*)
6105 symcode='[BCDEGQRST]'
6106 ;;
6107 solaris*)
6108 symcode='[BDRT]'
6109 ;;
6110 sco3.2v5*)
6111 symcode='[DT]'
6112 ;;
6113 sysv4.2uw2*)
6114 symcode='[DT]'
6115 ;;
6116 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6117 symcode='[ABDT]'
6118 ;;
6119 sysv4)
6120 symcode='[DFNSTU]'
6121 ;;
6122 esac
6123
6124 # If we're using GNU nm, then use its standard symbol codes.
6125 case `$NM -V 2>&1` in
6126 *GNU* | *'with BFD'*)
6127 symcode='[ABCDGIRSTW]' ;;
6128 esac
6129
6130 # Transform an extracted symbol line into a proper C declaration.
6131 # Some systems (esp. on ia64) link data and code symbols differently,
6132 # so use this general approach.
6133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6134
6135 # Transform an extracted symbol line into symbol name and symbol address
6136 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6137 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'"
6138
6139 # Handle CRLF in mingw tool chain
6140 opt_cr=
6141 case $build_os in
6142 mingw*)
6143 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6144 ;;
6145 esac
6146
6147 # Try without a prefix underscore, then with it.
6148 for ac_symprfx in "" "_"; do
6149
6150 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6151 symxfrm="\\1 $ac_symprfx\\2 \\2"
6152
6153 # Write the raw and C identifiers.
6154 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6155 # Fake it for dumpbin and say T for any non-static function
6156 # and D for any global variable.
6157 # Also find C++ and __fastcall symbols from MSVC++,
6158 # which start with @ or ?.
6159 lt_cv_sys_global_symbol_pipe="$AWK '"\
6160 " {last_section=section; section=\$ 3};"\
6161 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6162 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6163 " \$ 0!~/External *\|/{next};"\
6164 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6165 " {if(hide[section]) next};"\
6166 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6167 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6168 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6169 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6170 " ' prfx=^$ac_symprfx"
6171 else
6172 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6173 fi
6174 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6175
6176 # Check to see that the pipe works correctly.
6177 pipe_works=no
6178
6179 rm -f conftest*
6180 cat > conftest.$ac_ext <<_LT_EOF
6181 #ifdef __cplusplus
6182 extern "C" {
6183 #endif
6184 char nm_test_var;
6185 void nm_test_func(void);
6186 void nm_test_func(void){}
6187 #ifdef __cplusplus
6188 }
6189 #endif
6190 int main(){nm_test_var='a';nm_test_func();return(0);}
6191 _LT_EOF
6192
6193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6194 (eval $ac_compile) 2>&5
6195 ac_status=$?
6196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197 test $ac_status = 0; }; then
6198 # Now try to grab the symbols.
6199 nlist=conftest.nm
6200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6201 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6202 ac_status=$?
6203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204 test $ac_status = 0; } && test -s "$nlist"; then
6205 # Try sorting and uniquifying the output.
6206 if sort "$nlist" | uniq > "$nlist"T; then
6207 mv -f "$nlist"T "$nlist"
6208 else
6209 rm -f "$nlist"T
6210 fi
6211
6212 # Make sure that we snagged all the symbols we need.
6213 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6214 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6215 cat <<_LT_EOF > conftest.$ac_ext
6216 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6217 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6218 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6219 relocations are performed -- see ld's documentation on pseudo-relocs. */
6220 # define LT_DLSYM_CONST
6221 #elif defined(__osf__)
6222 /* This system does not cope well with relocations in const data. */
6223 # define LT_DLSYM_CONST
6224 #else
6225 # define LT_DLSYM_CONST const
6226 #endif
6227
6228 #ifdef __cplusplus
6229 extern "C" {
6230 #endif
6231
6232 _LT_EOF
6233 # Now generate the symbol file.
6234 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6235
6236 cat <<_LT_EOF >> conftest.$ac_ext
6237
6238 /* The mapping between symbol names and symbols. */
6239 LT_DLSYM_CONST struct {
6240 const char *name;
6241 void *address;
6242 }
6243 lt__PROGRAM__LTX_preloaded_symbols[] =
6244 {
6245 { "@PROGRAM@", (void *) 0 },
6246 _LT_EOF
6247 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6248 cat <<\_LT_EOF >> conftest.$ac_ext
6249 {0, (void *) 0}
6250 };
6251
6252 /* This works around a problem in FreeBSD linker */
6253 #ifdef FREEBSD_WORKAROUND
6254 static const void *lt_preloaded_setup() {
6255 return lt__PROGRAM__LTX_preloaded_symbols;
6256 }
6257 #endif
6258
6259 #ifdef __cplusplus
6260 }
6261 #endif
6262 _LT_EOF
6263 # Now try linking the two files.
6264 mv conftest.$ac_objext conftstm.$ac_objext
6265 lt_globsym_save_LIBS=$LIBS
6266 lt_globsym_save_CFLAGS=$CFLAGS
6267 LIBS="conftstm.$ac_objext"
6268 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6270 (eval $ac_link) 2>&5
6271 ac_status=$?
6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6274 pipe_works=yes
6275 fi
6276 LIBS=$lt_globsym_save_LIBS
6277 CFLAGS=$lt_globsym_save_CFLAGS
6278 else
6279 echo "cannot find nm_test_func in $nlist" >&5
6280 fi
6281 else
6282 echo "cannot find nm_test_var in $nlist" >&5
6283 fi
6284 else
6285 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6286 fi
6287 else
6288 echo "$progname: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6290 fi
6291 rm -rf conftest* conftst*
6292
6293 # Do not use the global_symbol_pipe unless it works.
6294 if test "$pipe_works" = yes; then
6295 break
6296 else
6297 lt_cv_sys_global_symbol_pipe=
6298 fi
6299 done
6300
6301 fi
6302
6303 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6304 lt_cv_sys_global_symbol_to_cdecl=
6305 fi
6306 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6308 $as_echo "failed" >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6311 $as_echo "ok" >&6; }
6312 fi
6313
6314 # Response file support.
6315 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6316 nm_file_list_spec='@'
6317 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6318 nm_file_list_spec='@'
6319 fi
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6348 $as_echo_n "checking for sysroot... " >&6; }
6349
6350 # Check whether --with-sysroot was given.
6351 if test "${with_sysroot+set}" = set; then :
6352 withval=$with_sysroot;
6353 else
6354 with_sysroot=no
6355 fi
6356
6357
6358 lt_sysroot=
6359 case ${with_sysroot} in #(
6360 yes)
6361 if test "$GCC" = yes; then
6362 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6363 fi
6364 ;; #(
6365 /*)
6366 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6367 ;; #(
6368 no|'')
6369 ;; #(
6370 *)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6372 $as_echo "${with_sysroot}" >&6; }
6373 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6374 ;;
6375 esac
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6378 $as_echo "${lt_sysroot:-no}" >&6; }
6379
6380
6381
6382
6383
6384 # Check whether --enable-libtool-lock was given.
6385 if test "${enable_libtool_lock+set}" = set; then :
6386 enableval=$enable_libtool_lock;
6387 fi
6388
6389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6390
6391 # Some flags need to be propagated to the compiler or linker for good
6392 # libtool support.
6393 case $host in
6394 ia64-*-hpux*)
6395 # Find out which ABI we are using.
6396 echo 'int i;' > conftest.$ac_ext
6397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398 (eval $ac_compile) 2>&5
6399 ac_status=$?
6400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401 test $ac_status = 0; }; then
6402 case `/usr/bin/file conftest.$ac_objext` in
6403 *ELF-32*)
6404 HPUX_IA64_MODE="32"
6405 ;;
6406 *ELF-64*)
6407 HPUX_IA64_MODE="64"
6408 ;;
6409 esac
6410 fi
6411 rm -rf conftest*
6412 ;;
6413 *-*-irix6*)
6414 # Find out which ABI we are using.
6415 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6418 ac_status=$?
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 if test "$lt_cv_prog_gnu_ld" = yes; then
6422 case `/usr/bin/file conftest.$ac_objext` in
6423 *32-bit*)
6424 LD="${LD-ld} -melf32bsmip"
6425 ;;
6426 *N32*)
6427 LD="${LD-ld} -melf32bmipn32"
6428 ;;
6429 *64-bit*)
6430 LD="${LD-ld} -melf64bmip"
6431 ;;
6432 esac
6433 else
6434 case `/usr/bin/file conftest.$ac_objext` in
6435 *32-bit*)
6436 LD="${LD-ld} -32"
6437 ;;
6438 *N32*)
6439 LD="${LD-ld} -n32"
6440 ;;
6441 *64-bit*)
6442 LD="${LD-ld} -64"
6443 ;;
6444 esac
6445 fi
6446 fi
6447 rm -rf conftest*
6448 ;;
6449
6450 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6451 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6452 # Find out which ABI we are using.
6453 echo 'int i;' > conftest.$ac_ext
6454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6455 (eval $ac_compile) 2>&5
6456 ac_status=$?
6457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458 test $ac_status = 0; }; then
6459 case `/usr/bin/file conftest.o` in
6460 *32-bit*)
6461 case $host in
6462 x86_64-*kfreebsd*-gnu)
6463 LD="${LD-ld} -m elf_i386_fbsd"
6464 ;;
6465 x86_64-*linux*)
6466 LD="${LD-ld} -m elf_i386"
6467 ;;
6468 ppc64-*linux*|powerpc64-*linux*)
6469 LD="${LD-ld} -m elf32ppclinux"
6470 ;;
6471 s390x-*linux*)
6472 LD="${LD-ld} -m elf_s390"
6473 ;;
6474 sparc64-*linux*)
6475 LD="${LD-ld} -m elf32_sparc"
6476 ;;
6477 esac
6478 ;;
6479 *64-bit*)
6480 case $host in
6481 x86_64-*kfreebsd*-gnu)
6482 LD="${LD-ld} -m elf_x86_64_fbsd"
6483 ;;
6484 x86_64-*linux*)
6485 LD="${LD-ld} -m elf_x86_64"
6486 ;;
6487 ppc*-*linux*|powerpc*-*linux*)
6488 LD="${LD-ld} -m elf64ppc"
6489 ;;
6490 s390*-*linux*|s390*-*tpf*)
6491 LD="${LD-ld} -m elf64_s390"
6492 ;;
6493 sparc*-*linux*)
6494 LD="${LD-ld} -m elf64_sparc"
6495 ;;
6496 esac
6497 ;;
6498 esac
6499 fi
6500 rm -rf conftest*
6501 ;;
6502
6503 *-*-sco3.2v5*)
6504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6505 SAVE_CFLAGS="$CFLAGS"
6506 CFLAGS="$CFLAGS -belf"
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6508 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6509 if ${lt_cv_cc_needs_belf+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 ac_ext=c
6513 ac_cpp='$CPP $CPPFLAGS'
6514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6517
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520
6521 int
6522 main ()
6523 {
6524
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 lt_cv_cc_needs_belf=yes
6531 else
6532 lt_cv_cc_needs_belf=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6536 ac_ext=c
6537 ac_cpp='$CPP $CPPFLAGS'
6538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6544 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6545 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6546 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6547 CFLAGS="$SAVE_CFLAGS"
6548 fi
6549 ;;
6550 *-*solaris*)
6551 # Find out which ABI we are using.
6552 echo 'int i;' > conftest.$ac_ext
6553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6554 (eval $ac_compile) 2>&5
6555 ac_status=$?
6556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6557 test $ac_status = 0; }; then
6558 case `/usr/bin/file conftest.o` in
6559 *64-bit*)
6560 case $lt_cv_prog_gnu_ld in
6561 yes*)
6562 case $host in
6563 i?86-*-solaris*)
6564 LD="${LD-ld} -m elf_x86_64"
6565 ;;
6566 sparc*-*-solaris*)
6567 LD="${LD-ld} -m elf64_sparc"
6568 ;;
6569 esac
6570 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6571 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6572 LD="${LD-ld}_sol2"
6573 fi
6574 ;;
6575 *)
6576 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6577 LD="${LD-ld} -64"
6578 fi
6579 ;;
6580 esac
6581 ;;
6582 esac
6583 fi
6584 rm -rf conftest*
6585 ;;
6586 esac
6587
6588 need_locks="$enable_libtool_lock"
6589
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}mt; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 if test -n "$MANIFEST_TOOL"; then
6599 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612 done
6613 done
6614 IFS=$as_save_IFS
6615
6616 fi
6617 fi
6618 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6619 if test -n "$MANIFEST_TOOL"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6621 $as_echo "$MANIFEST_TOOL" >&6; }
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627
6628 fi
6629 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6630 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6631 # Extract the first word of "mt", so it can be a program name with args.
6632 set dummy mt; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$ac_ct_MANIFEST_TOOL"; then
6639 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6659 if test -n "$ac_ct_MANIFEST_TOOL"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6661 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6668 MANIFEST_TOOL=":"
6669 else
6670 case $cross_compiling:$ac_tool_warned in
6671 yes:)
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6677 fi
6678 else
6679 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6680 fi
6681
6682 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6684 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6685 if ${lt_cv_path_mainfest_tool+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 lt_cv_path_mainfest_tool=no
6689 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6690 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6691 cat conftest.err >&5
6692 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6693 lt_cv_path_mainfest_tool=yes
6694 fi
6695 rm -f conftest*
6696 fi
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6698 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6699 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6700 MANIFEST_TOOL=:
6701 fi
6702
6703
6704
6705
6706
6707
6708 case $host_os in
6709 rhapsody* | darwin*)
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$DSYMUTIL"; then
6719 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6739 if test -n "$DSYMUTIL"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6741 $as_echo "$DSYMUTIL" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747
6748 fi
6749 if test -z "$ac_cv_prog_DSYMUTIL"; then
6750 ac_ct_DSYMUTIL=$DSYMUTIL
6751 # Extract the first word of "dsymutil", so it can be a program name with args.
6752 set dummy dsymutil; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$ac_ct_DSYMUTIL"; then
6759 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6779 if test -n "$ac_ct_DSYMUTIL"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6781 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787 if test "x$ac_ct_DSYMUTIL" = x; then
6788 DSYMUTIL=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791 yes:)
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6795 esac
6796 DSYMUTIL=$ac_ct_DSYMUTIL
6797 fi
6798 else
6799 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6800 fi
6801
6802 if test -n "$ac_tool_prefix"; then
6803 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6804 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_NMEDIT+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 if test -n "$NMEDIT"; then
6811 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824 done
6825 done
6826 IFS=$as_save_IFS
6827
6828 fi
6829 fi
6830 NMEDIT=$ac_cv_prog_NMEDIT
6831 if test -n "$NMEDIT"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6833 $as_echo "$NMEDIT" >&6; }
6834 else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6838
6839
6840 fi
6841 if test -z "$ac_cv_prog_NMEDIT"; then
6842 ac_ct_NMEDIT=$NMEDIT
6843 # Extract the first word of "nmedit", so it can be a program name with args.
6844 set dummy nmedit; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$ac_ct_NMEDIT"; then
6851 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6871 if test -n "$ac_ct_NMEDIT"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6873 $as_echo "$ac_ct_NMEDIT" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 fi
6878
6879 if test "x$ac_ct_NMEDIT" = x; then
6880 NMEDIT=":"
6881 else
6882 case $cross_compiling:$ac_tool_warned in
6883 yes:)
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6886 ac_tool_warned=yes ;;
6887 esac
6888 NMEDIT=$ac_ct_NMEDIT
6889 fi
6890 else
6891 NMEDIT="$ac_cv_prog_NMEDIT"
6892 fi
6893
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_LIPO+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 if test -n "$LIPO"; then
6903 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 LIPO=$ac_cv_prog_LIPO
6923 if test -n "$LIPO"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6925 $as_echo "$LIPO" >&6; }
6926 else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931
6932 fi
6933 if test -z "$ac_cv_prog_LIPO"; then
6934 ac_ct_LIPO=$LIPO
6935 # Extract the first word of "lipo", so it can be a program name with args.
6936 set dummy lipo; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -n "$ac_ct_LIPO"; then
6943 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_ac_ct_LIPO="lipo"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6963 if test -n "$ac_ct_LIPO"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6965 $as_echo "$ac_ct_LIPO" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971 if test "x$ac_ct_LIPO" = x; then
6972 LIPO=":"
6973 else
6974 case $cross_compiling:$ac_tool_warned in
6975 yes:)
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978 ac_tool_warned=yes ;;
6979 esac
6980 LIPO=$ac_ct_LIPO
6981 fi
6982 else
6983 LIPO="$ac_cv_prog_LIPO"
6984 fi
6985
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}otool; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_OTOOL+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$OTOOL"; then
6995 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 OTOOL=$ac_cv_prog_OTOOL
7015 if test -n "$OTOOL"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7017 $as_echo "$OTOOL" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7021 fi
7022
7023
7024 fi
7025 if test -z "$ac_cv_prog_OTOOL"; then
7026 ac_ct_OTOOL=$OTOOL
7027 # Extract the first word of "otool", so it can be a program name with args.
7028 set dummy otool; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$ac_ct_OTOOL"; then
7035 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_ac_ct_OTOOL="otool"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7055 if test -n "$ac_ct_OTOOL"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7057 $as_echo "$ac_ct_OTOOL" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063 if test "x$ac_ct_OTOOL" = x; then
7064 OTOOL=":"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067 yes:)
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7071 esac
7072 OTOOL=$ac_ct_OTOOL
7073 fi
7074 else
7075 OTOOL="$ac_cv_prog_OTOOL"
7076 fi
7077
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_OTOOL64+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$OTOOL64"; then
7087 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 OTOOL64=$ac_cv_prog_OTOOL64
7107 if test -n "$OTOOL64"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7109 $as_echo "$OTOOL64" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_OTOOL64"; then
7118 ac_ct_OTOOL64=$OTOOL64
7119 # Extract the first word of "otool64", so it can be a program name with args.
7120 set dummy otool64; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$ac_ct_OTOOL64"; then
7127 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_ac_ct_OTOOL64="otool64"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7147 if test -n "$ac_ct_OTOOL64"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7149 $as_echo "$ac_ct_OTOOL64" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155 if test "x$ac_ct_OTOOL64" = x; then
7156 OTOOL64=":"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7163 esac
7164 OTOOL64=$ac_ct_OTOOL64
7165 fi
7166 else
7167 OTOOL64="$ac_cv_prog_OTOOL64"
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7197 $as_echo_n "checking for -single_module linker flag... " >&6; }
7198 if ${lt_cv_apple_cc_single_mod+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 lt_cv_apple_cc_single_mod=no
7202 if test -z "${LT_MULTI_MODULE}"; then
7203 # By default we will add the -single_module flag. You can override
7204 # by either setting the environment variable LT_MULTI_MODULE
7205 # non-empty at configure time, or by adding -multi_module to the
7206 # link flags.
7207 rm -rf libconftest.dylib*
7208 echo "int foo(void){return 1;}" > conftest.c
7209 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7210 -dynamiclib -Wl,-single_module conftest.c" >&5
7211 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7212 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7213 _lt_result=$?
7214 # If there is a non-empty error log, and "single_module"
7215 # appears in it, assume the flag caused a linker warning
7216 if test -s conftest.err && $GREP single_module conftest.err; then
7217 cat conftest.err >&5
7218 # Otherwise, if the output was created with a 0 exit code from
7219 # the compiler, it worked.
7220 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7221 lt_cv_apple_cc_single_mod=yes
7222 else
7223 cat conftest.err >&5
7224 fi
7225 rm -rf libconftest.dylib*
7226 rm -f conftest.*
7227 fi
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7230 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7233 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7234 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 lt_cv_ld_exported_symbols_list=no
7238 save_LDFLAGS=$LDFLAGS
7239 echo "_main" > conftest.sym
7240 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243
7244 int
7245 main ()
7246 {
7247
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 if ac_fn_c_try_link "$LINENO"; then :
7253 lt_cv_ld_exported_symbols_list=yes
7254 else
7255 lt_cv_ld_exported_symbols_list=no
7256 fi
7257 rm -f core conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 LDFLAGS="$save_LDFLAGS"
7260
7261 fi
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7263 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7266 $as_echo_n "checking for -force_load linker flag... " >&6; }
7267 if ${lt_cv_ld_force_load+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 lt_cv_ld_force_load=no
7271 cat > conftest.c << _LT_EOF
7272 int forced_loaded() { return 2;}
7273 _LT_EOF
7274 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7275 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7276 echo "$AR cru libconftest.a conftest.o" >&5
7277 $AR cru libconftest.a conftest.o 2>&5
7278 echo "$RANLIB libconftest.a" >&5
7279 $RANLIB libconftest.a 2>&5
7280 cat > conftest.c << _LT_EOF
7281 int main() { return 0;}
7282 _LT_EOF
7283 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7284 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7285 _lt_result=$?
7286 if test -s conftest.err && $GREP force_load conftest.err; then
7287 cat conftest.err >&5
7288 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7289 lt_cv_ld_force_load=yes
7290 else
7291 cat conftest.err >&5
7292 fi
7293 rm -f conftest.err libconftest.a conftest conftest.c
7294 rm -rf conftest.dSYM
7295
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7298 $as_echo "$lt_cv_ld_force_load" >&6; }
7299 case $host_os in
7300 rhapsody* | darwin1.[012])
7301 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7302 darwin1.*)
7303 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7304 darwin*) # darwin 5.x on
7305 # if running on 10.5 or later, the deployment target defaults
7306 # to the OS version, if on x86, and 10.4, the deployment
7307 # target defaults to 10.4. Don't you love it?
7308 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7309 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7310 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7311 10.[012]*)
7312 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7313 10.*)
7314 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7315 esac
7316 ;;
7317 esac
7318 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7319 _lt_dar_single_mod='$single_module'
7320 fi
7321 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7322 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7323 else
7324 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7325 fi
7326 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7327 _lt_dsymutil='~$DSYMUTIL $lib || :'
7328 else
7329 _lt_dsymutil=
7330 fi
7331 ;;
7332 esac
7333
7334 ac_ext=c
7335 ac_cpp='$CPP $CPPFLAGS'
7336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7340 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7341 # On Suns, sometimes $CPP names a directory.
7342 if test -n "$CPP" && test -d "$CPP"; then
7343 CPP=
7344 fi
7345 if test -z "$CPP"; then
7346 if ${ac_cv_prog_CPP+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 # Double quotes because CPP needs to be expanded
7350 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7351 do
7352 ac_preproc_ok=false
7353 for ac_c_preproc_warn_flag in '' yes
7354 do
7355 # Use a header file that comes with gcc, so configuring glibc
7356 # with a fresh cross-compiler works.
7357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7358 # <limits.h> exists even on freestanding compilers.
7359 # On the NeXT, cc -E runs the code through the compiler's parser,
7360 # not just through cpp. "Syntax error" is here to catch this case.
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 #ifdef __STDC__
7364 # include <limits.h>
7365 #else
7366 # include <assert.h>
7367 #endif
7368 Syntax error
7369 _ACEOF
7370 if ac_fn_c_try_cpp "$LINENO"; then :
7371
7372 else
7373 # Broken: fails on valid input.
7374 continue
7375 fi
7376 rm -f conftest.err conftest.i conftest.$ac_ext
7377
7378 # OK, works on sane cases. Now check whether nonexistent headers
7379 # can be detected and how.
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 #include <ac_nonexistent.h>
7383 _ACEOF
7384 if ac_fn_c_try_cpp "$LINENO"; then :
7385 # Broken: success on invalid input.
7386 continue
7387 else
7388 # Passes both tests.
7389 ac_preproc_ok=:
7390 break
7391 fi
7392 rm -f conftest.err conftest.i conftest.$ac_ext
7393
7394 done
7395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7396 rm -f conftest.i conftest.err conftest.$ac_ext
7397 if $ac_preproc_ok; then :
7398 break
7399 fi
7400
7401 done
7402 ac_cv_prog_CPP=$CPP
7403
7404 fi
7405 CPP=$ac_cv_prog_CPP
7406 else
7407 ac_cv_prog_CPP=$CPP
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7410 $as_echo "$CPP" >&6; }
7411 ac_preproc_ok=false
7412 for ac_c_preproc_warn_flag in '' yes
7413 do
7414 # Use a header file that comes with gcc, so configuring glibc
7415 # with a fresh cross-compiler works.
7416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7417 # <limits.h> exists even on freestanding compilers.
7418 # On the NeXT, cc -E runs the code through the compiler's parser,
7419 # not just through cpp. "Syntax error" is here to catch this case.
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #ifdef __STDC__
7423 # include <limits.h>
7424 #else
7425 # include <assert.h>
7426 #endif
7427 Syntax error
7428 _ACEOF
7429 if ac_fn_c_try_cpp "$LINENO"; then :
7430
7431 else
7432 # Broken: fails on valid input.
7433 continue
7434 fi
7435 rm -f conftest.err conftest.i conftest.$ac_ext
7436
7437 # OK, works on sane cases. Now check whether nonexistent headers
7438 # can be detected and how.
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #include <ac_nonexistent.h>
7442 _ACEOF
7443 if ac_fn_c_try_cpp "$LINENO"; then :
7444 # Broken: success on invalid input.
7445 continue
7446 else
7447 # Passes both tests.
7448 ac_preproc_ok=:
7449 break
7450 fi
7451 rm -f conftest.err conftest.i conftest.$ac_ext
7452
7453 done
7454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7455 rm -f conftest.i conftest.err conftest.$ac_ext
7456 if $ac_preproc_ok; then :
7457
7458 else
7459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7461 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7462 See \`config.log' for more details" "$LINENO" 5; }
7463 fi
7464
7465 ac_ext=c
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470
7471
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7473 $as_echo_n "checking for ANSI C header files... " >&6; }
7474 if ${ac_cv_header_stdc+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 #include <stdlib.h>
7480 #include <stdarg.h>
7481 #include <string.h>
7482 #include <float.h>
7483
7484 int
7485 main ()
7486 {
7487
7488 ;
7489 return 0;
7490 }
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"; then :
7493 ac_cv_header_stdc=yes
7494 else
7495 ac_cv_header_stdc=no
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498
7499 if test $ac_cv_header_stdc = yes; then
7500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 #include <string.h>
7504
7505 _ACEOF
7506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7507 $EGREP "memchr" >/dev/null 2>&1; then :
7508
7509 else
7510 ac_cv_header_stdc=no
7511 fi
7512 rm -f conftest*
7513
7514 fi
7515
7516 if test $ac_cv_header_stdc = yes; then
7517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <stdlib.h>
7521
7522 _ACEOF
7523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7524 $EGREP "free" >/dev/null 2>&1; then :
7525
7526 else
7527 ac_cv_header_stdc=no
7528 fi
7529 rm -f conftest*
7530
7531 fi
7532
7533 if test $ac_cv_header_stdc = yes; then
7534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7535 if test "$cross_compiling" = yes; then :
7536 :
7537 else
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <ctype.h>
7541 #include <stdlib.h>
7542 #if ((' ' & 0x0FF) == 0x020)
7543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7545 #else
7546 # define ISLOWER(c) \
7547 (('a' <= (c) && (c) <= 'i') \
7548 || ('j' <= (c) && (c) <= 'r') \
7549 || ('s' <= (c) && (c) <= 'z'))
7550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7551 #endif
7552
7553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7554 int
7555 main ()
7556 {
7557 int i;
7558 for (i = 0; i < 256; i++)
7559 if (XOR (islower (i), ISLOWER (i))
7560 || toupper (i) != TOUPPER (i))
7561 return 2;
7562 return 0;
7563 }
7564 _ACEOF
7565 if ac_fn_c_try_run "$LINENO"; then :
7566
7567 else
7568 ac_cv_header_stdc=no
7569 fi
7570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7571 conftest.$ac_objext conftest.beam conftest.$ac_ext
7572 fi
7573
7574 fi
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7577 $as_echo "$ac_cv_header_stdc" >&6; }
7578 if test $ac_cv_header_stdc = yes; then
7579
7580 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7581
7582 fi
7583
7584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7586 inttypes.h stdint.h unistd.h
7587 do :
7588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7589 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7590 "
7591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7592 cat >>confdefs.h <<_ACEOF
7593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7594 _ACEOF
7595
7596 fi
7597
7598 done
7599
7600
7601 for ac_header in dlfcn.h
7602 do :
7603 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7604 "
7605 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7606 cat >>confdefs.h <<_ACEOF
7607 #define HAVE_DLFCN_H 1
7608 _ACEOF
7609
7610 fi
7611
7612 done
7613
7614
7615
7616
7617
7618 # Set options
7619
7620
7621
7622 enable_dlopen=no
7623
7624
7625 enable_win32_dll=no
7626
7627
7628 # Check whether --enable-shared was given.
7629 if test "${enable_shared+set}" = set; then :
7630 enableval=$enable_shared; p=${PACKAGE-default}
7631 case $enableval in
7632 yes) enable_shared=yes ;;
7633 no) enable_shared=no ;;
7634 *)
7635 enable_shared=no
7636 # Look at the argument we got. We use all the common list separators.
7637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7638 for pkg in $enableval; do
7639 IFS="$lt_save_ifs"
7640 if test "X$pkg" = "X$p"; then
7641 enable_shared=yes
7642 fi
7643 done
7644 IFS="$lt_save_ifs"
7645 ;;
7646 esac
7647 else
7648 enable_shared=yes
7649 fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659 # Check whether --enable-static was given.
7660 if test "${enable_static+set}" = set; then :
7661 enableval=$enable_static; p=${PACKAGE-default}
7662 case $enableval in
7663 yes) enable_static=yes ;;
7664 no) enable_static=no ;;
7665 *)
7666 enable_static=no
7667 # Look at the argument we got. We use all the common list separators.
7668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7669 for pkg in $enableval; do
7670 IFS="$lt_save_ifs"
7671 if test "X$pkg" = "X$p"; then
7672 enable_static=yes
7673 fi
7674 done
7675 IFS="$lt_save_ifs"
7676 ;;
7677 esac
7678 else
7679 enable_static=yes
7680 fi
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691 # Check whether --with-pic was given.
7692 if test "${with_pic+set}" = set; then :
7693 withval=$with_pic; lt_p=${PACKAGE-default}
7694 case $withval in
7695 yes|no) pic_mode=$withval ;;
7696 *)
7697 pic_mode=default
7698 # Look at the argument we got. We use all the common list separators.
7699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7700 for lt_pkg in $withval; do
7701 IFS="$lt_save_ifs"
7702 if test "X$lt_pkg" = "X$lt_p"; then
7703 pic_mode=yes
7704 fi
7705 done
7706 IFS="$lt_save_ifs"
7707 ;;
7708 esac
7709 else
7710 pic_mode=default
7711 fi
7712
7713
7714 test -z "$pic_mode" && pic_mode=default
7715
7716
7717
7718
7719
7720
7721
7722 # Check whether --enable-fast-install was given.
7723 if test "${enable_fast_install+set}" = set; then :
7724 enableval=$enable_fast_install; p=${PACKAGE-default}
7725 case $enableval in
7726 yes) enable_fast_install=yes ;;
7727 no) enable_fast_install=no ;;
7728 *)
7729 enable_fast_install=no
7730 # Look at the argument we got. We use all the common list separators.
7731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7732 for pkg in $enableval; do
7733 IFS="$lt_save_ifs"
7734 if test "X$pkg" = "X$p"; then
7735 enable_fast_install=yes
7736 fi
7737 done
7738 IFS="$lt_save_ifs"
7739 ;;
7740 esac
7741 else
7742 enable_fast_install=yes
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755 # This can be used to rebuild libtool when needed
7756 LIBTOOL_DEPS="$ltmain"
7757
7758 # Always use our own libtool.
7759 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 test -z "$LN_S" && LN_S="ln -s"
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 if test -n "${ZSH_VERSION+set}" ; then
7806 setopt NO_GLOB_SUBST
7807 fi
7808
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7810 $as_echo_n "checking for objdir... " >&6; }
7811 if ${lt_cv_objdir+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 rm -f .libs 2>/dev/null
7815 mkdir .libs 2>/dev/null
7816 if test -d .libs; then
7817 lt_cv_objdir=.libs
7818 else
7819 # MS-DOS does not allow filenames that begin with a dot.
7820 lt_cv_objdir=_libs
7821 fi
7822 rmdir .libs 2>/dev/null
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7825 $as_echo "$lt_cv_objdir" >&6; }
7826 objdir=$lt_cv_objdir
7827
7828
7829
7830
7831
7832 cat >>confdefs.h <<_ACEOF
7833 #define LT_OBJDIR "$lt_cv_objdir/"
7834 _ACEOF
7835
7836
7837
7838
7839 case $host_os in
7840 aix3*)
7841 # AIX sometimes has problems with the GCC collect2 program. For some
7842 # reason, if we set the COLLECT_NAMES environment variable, the problems
7843 # vanish in a puff of smoke.
7844 if test "X${COLLECT_NAMES+set}" != Xset; then
7845 COLLECT_NAMES=
7846 export COLLECT_NAMES
7847 fi
7848 ;;
7849 esac
7850
7851 # Global variables:
7852 ofile=libtool
7853 can_build_shared=yes
7854
7855 # All known linkers require a `.a' archive for static linking (except MSVC,
7856 # which needs '.lib').
7857 libext=a
7858
7859 with_gnu_ld="$lt_cv_prog_gnu_ld"
7860
7861 old_CC="$CC"
7862 old_CFLAGS="$CFLAGS"
7863
7864 # Set sane defaults for various variables
7865 test -z "$CC" && CC=cc
7866 test -z "$LTCC" && LTCC=$CC
7867 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7868 test -z "$LD" && LD=ld
7869 test -z "$ac_objext" && ac_objext=o
7870
7871 for cc_temp in $compiler""; do
7872 case $cc_temp in
7873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7875 \-*) ;;
7876 *) break;;
7877 esac
7878 done
7879 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880
7881
7882 # Only perform the check for file, if the check method requires it
7883 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7884 case $deplibs_check_method in
7885 file_magic*)
7886 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7888 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7889 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 case $MAGIC_CMD in
7893 [\\/*] | ?:[\\/]*)
7894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7895 ;;
7896 *)
7897 lt_save_MAGIC_CMD="$MAGIC_CMD"
7898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7900 for ac_dir in $ac_dummy; do
7901 IFS="$lt_save_ifs"
7902 test -z "$ac_dir" && ac_dir=.
7903 if test -f $ac_dir/${ac_tool_prefix}file; then
7904 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7905 if test -n "$file_magic_test_file"; then
7906 case $deplibs_check_method in
7907 "file_magic "*)
7908 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7911 $EGREP "$file_magic_regex" > /dev/null; then
7912 :
7913 else
7914 cat <<_LT_EOF 1>&2
7915
7916 *** Warning: the command libtool uses to detect shared libraries,
7917 *** $file_magic_cmd, produces output that libtool cannot recognize.
7918 *** The result is that libtool may fail to recognize shared libraries
7919 *** as such. This will affect the creation of libtool libraries that
7920 *** depend on shared libraries, but programs linked with such libtool
7921 *** libraries will work regardless of this problem. Nevertheless, you
7922 *** may want to report the problem to your system manager and/or to
7923 *** [email protected]
7924
7925 _LT_EOF
7926 fi ;;
7927 esac
7928 fi
7929 break
7930 fi
7931 done
7932 IFS="$lt_save_ifs"
7933 MAGIC_CMD="$lt_save_MAGIC_CMD"
7934 ;;
7935 esac
7936 fi
7937
7938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7939 if test -n "$MAGIC_CMD"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7941 $as_echo "$MAGIC_CMD" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946
7947
7948
7949
7950
7951 if test -z "$lt_cv_path_MAGIC_CMD"; then
7952 if test -n "$ac_tool_prefix"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7954 $as_echo_n "checking for file... " >&6; }
7955 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 case $MAGIC_CMD in
7959 [\\/*] | ?:[\\/]*)
7960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961 ;;
7962 *)
7963 lt_save_MAGIC_CMD="$MAGIC_CMD"
7964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7966 for ac_dir in $ac_dummy; do
7967 IFS="$lt_save_ifs"
7968 test -z "$ac_dir" && ac_dir=.
7969 if test -f $ac_dir/file; then
7970 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7971 if test -n "$file_magic_test_file"; then
7972 case $deplibs_check_method in
7973 "file_magic "*)
7974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7977 $EGREP "$file_magic_regex" > /dev/null; then
7978 :
7979 else
7980 cat <<_LT_EOF 1>&2
7981
7982 *** Warning: the command libtool uses to detect shared libraries,
7983 *** $file_magic_cmd, produces output that libtool cannot recognize.
7984 *** The result is that libtool may fail to recognize shared libraries
7985 *** as such. This will affect the creation of libtool libraries that
7986 *** depend on shared libraries, but programs linked with such libtool
7987 *** libraries will work regardless of this problem. Nevertheless, you
7988 *** may want to report the problem to your system manager and/or to
7989 *** [email protected]
7990
7991 _LT_EOF
7992 fi ;;
7993 esac
7994 fi
7995 break
7996 fi
7997 done
7998 IFS="$lt_save_ifs"
7999 MAGIC_CMD="$lt_save_MAGIC_CMD"
8000 ;;
8001 esac
8002 fi
8003
8004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005 if test -n "$MAGIC_CMD"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8007 $as_echo "$MAGIC_CMD" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013
8014 else
8015 MAGIC_CMD=:
8016 fi
8017 fi
8018
8019 fi
8020 ;;
8021 esac
8022
8023 # Use C for the default configuration in the libtool script
8024
8025 lt_save_CC="$CC"
8026 ac_ext=c
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031
8032
8033 # Source file extension for C test sources.
8034 ac_ext=c
8035
8036 # Object file extension for compiled C test sources.
8037 objext=o
8038 objext=$objext
8039
8040 # Code to be used in simple compile tests
8041 lt_simple_compile_test_code="int some_variable = 0;"
8042
8043 # Code to be used in simple link tests
8044 lt_simple_link_test_code='int main(){return(0);}'
8045
8046
8047
8048
8049
8050
8051
8052 # If no C compiler was specified, use CC.
8053 LTCC=${LTCC-"$CC"}
8054
8055 # If no C compiler flags were specified, use CFLAGS.
8056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8057
8058 # Allow CC to be a program name with arguments.
8059 compiler=$CC
8060
8061 # Save the default compiler, since it gets overwritten when the other
8062 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8063 compiler_DEFAULT=$CC
8064
8065 # save warnings/boilerplate of simple test code
8066 ac_outfile=conftest.$ac_objext
8067 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069 _lt_compiler_boilerplate=`cat conftest.err`
8070 $RM conftest*
8071
8072 ac_outfile=conftest.$ac_objext
8073 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075 _lt_linker_boilerplate=`cat conftest.err`
8076 $RM -r conftest*
8077
8078
8079 ## CAVEAT EMPTOR:
8080 ## There is no encapsulation within the following macros, do not change
8081 ## the running order or otherwise move them around unless you know exactly
8082 ## what you are doing...
8083 if test -n "$compiler"; then
8084
8085 lt_prog_compiler_no_builtin_flag=
8086
8087 if test "$GCC" = yes; then
8088 case $cc_basename in
8089 nvcc*)
8090 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8091 *)
8092 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8093 esac
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8096 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8097 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 lt_cv_prog_compiler_rtti_exceptions=no
8101 ac_outfile=conftest.$ac_objext
8102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8103 lt_compiler_flag="-fno-rtti -fno-exceptions"
8104 # Insert the option either (1) after the last *FLAGS variable, or
8105 # (2) before a word containing "conftest.", or (3) at the end.
8106 # Note that $ac_compile itself does not contain backslashes and begins
8107 # with a dollar sign (not a hyphen), so the echo should work correctly.
8108 # The option is referenced via a variable to avoid confusing sed.
8109 lt_compile=`echo "$ac_compile" | $SED \
8110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112 -e 's:$: $lt_compiler_flag:'`
8113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8114 (eval "$lt_compile" 2>conftest.err)
8115 ac_status=$?
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 if (exit $ac_status) && test -s "$ac_outfile"; then
8119 # The compiler can only warn and ignore the option if not recognized
8120 # So say no if there are warnings other than the usual output.
8121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124 lt_cv_prog_compiler_rtti_exceptions=yes
8125 fi
8126 fi
8127 $RM conftest*
8128
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8131 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8132
8133 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8135 else
8136 :
8137 fi
8138
8139 fi
8140
8141
8142
8143
8144
8145
8146 lt_prog_compiler_wl=
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_static=
8149
8150
8151 if test "$GCC" = yes; then
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_static='-static'
8154
8155 case $host_os in
8156 aix*)
8157 # All AIX code is PIC.
8158 if test "$host_cpu" = ia64; then
8159 # AIX 5 now supports IA64 processor
8160 lt_prog_compiler_static='-Bstatic'
8161 fi
8162 ;;
8163
8164 amigaos*)
8165 case $host_cpu in
8166 powerpc)
8167 # see comment about AmigaOS4 .so support
8168 lt_prog_compiler_pic='-fPIC'
8169 ;;
8170 m68k)
8171 # FIXME: we need at least 68020 code to build shared libraries, but
8172 # adding the `-m68020' flag to GCC prevents building anything better,
8173 # like `-m68040'.
8174 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8175 ;;
8176 esac
8177 ;;
8178
8179 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8180 # PIC is the default for these OSes.
8181 ;;
8182
8183 mingw* | cygwin* | pw32* | os2* | cegcc*)
8184 # This hack is so that the source file can tell whether it is being
8185 # built for inclusion in a dll (and should export symbols for example).
8186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8187 # (--disable-auto-import) libraries
8188 lt_prog_compiler_pic='-DDLL_EXPORT'
8189 ;;
8190
8191 darwin* | rhapsody*)
8192 # PIC is the default on this platform
8193 # Common symbols not allowed in MH_DYLIB files
8194 lt_prog_compiler_pic='-fno-common'
8195 ;;
8196
8197 haiku*)
8198 # PIC is the default for Haiku.
8199 # The "-static" flag exists, but is broken.
8200 lt_prog_compiler_static=
8201 ;;
8202
8203 hpux*)
8204 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8205 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8206 # sets the default TLS model and affects inlining.
8207 case $host_cpu in
8208 hppa*64*)
8209 # +Z the default
8210 ;;
8211 *)
8212 lt_prog_compiler_pic='-fPIC'
8213 ;;
8214 esac
8215 ;;
8216
8217 interix[3-9]*)
8218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8219 # Instead, we relocate shared libraries at runtime.
8220 ;;
8221
8222 msdosdjgpp*)
8223 # Just because we use GCC doesn't mean we suddenly get shared libraries
8224 # on systems that don't support them.
8225 lt_prog_compiler_can_build_shared=no
8226 enable_shared=no
8227 ;;
8228
8229 *nto* | *qnx*)
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 # it will coredump.
8232 lt_prog_compiler_pic='-fPIC -shared'
8233 ;;
8234
8235 sysv4*MP*)
8236 if test -d /usr/nec; then
8237 lt_prog_compiler_pic=-Kconform_pic
8238 fi
8239 ;;
8240
8241 *)
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244 esac
8245
8246 case $cc_basename in
8247 nvcc*) # Cuda Compiler Driver 2.2
8248 lt_prog_compiler_wl='-Xlinker '
8249 if test -n "$lt_prog_compiler_pic"; then
8250 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8251 fi
8252 ;;
8253 esac
8254 else
8255 # PORTME Check for flag to pass linker flags through the system compiler.
8256 case $host_os in
8257 aix*)
8258 lt_prog_compiler_wl='-Wl,'
8259 if test "$host_cpu" = ia64; then
8260 # AIX 5 now supports IA64 processor
8261 lt_prog_compiler_static='-Bstatic'
8262 else
8263 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8264 fi
8265 ;;
8266
8267 mingw* | cygwin* | pw32* | os2* | cegcc*)
8268 # This hack is so that the source file can tell whether it is being
8269 # built for inclusion in a dll (and should export symbols for example).
8270 lt_prog_compiler_pic='-DDLL_EXPORT'
8271 ;;
8272
8273 hpux9* | hpux10* | hpux11*)
8274 lt_prog_compiler_wl='-Wl,'
8275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8276 # not for PA HP-UX.
8277 case $host_cpu in
8278 hppa*64*|ia64*)
8279 # +Z the default
8280 ;;
8281 *)
8282 lt_prog_compiler_pic='+Z'
8283 ;;
8284 esac
8285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8286 lt_prog_compiler_static='${wl}-a ${wl}archive'
8287 ;;
8288
8289 irix5* | irix6* | nonstopux*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC (with -KPIC) is the default.
8292 lt_prog_compiler_static='-non_shared'
8293 ;;
8294
8295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8296 case $cc_basename in
8297 # old Intel for x86_64 which still supported -KPIC.
8298 ecc*)
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_pic='-KPIC'
8301 lt_prog_compiler_static='-static'
8302 ;;
8303 # icc used to be incompatible with GCC.
8304 # ICC 10 doesn't accept -KPIC any more.
8305 icc* | ifort*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-fPIC'
8308 lt_prog_compiler_static='-static'
8309 ;;
8310 # Lahey Fortran 8.1.
8311 lf95*)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='--shared'
8314 lt_prog_compiler_static='--static'
8315 ;;
8316 nagfor*)
8317 # NAG Fortran compiler
8318 lt_prog_compiler_wl='-Wl,-Wl,,'
8319 lt_prog_compiler_pic='-PIC'
8320 lt_prog_compiler_static='-Bstatic'
8321 ;;
8322 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8323 # Portland Group compilers (*not* the Pentium gcc compiler,
8324 # which looks to be a dead project)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-fpic'
8327 lt_prog_compiler_static='-Bstatic'
8328 ;;
8329 ccc*)
8330 lt_prog_compiler_wl='-Wl,'
8331 # All Alpha code is PIC.
8332 lt_prog_compiler_static='-non_shared'
8333 ;;
8334 xl* | bgxl* | bgf* | mpixl*)
8335 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_pic='-qpic'
8338 lt_prog_compiler_static='-qstaticlink'
8339 ;;
8340 *)
8341 case `$CC -V 2>&1 | sed 5q` in
8342 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8343 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8346 lt_prog_compiler_wl=''
8347 ;;
8348 *Sun\ F* | *Sun*Fortran*)
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_wl='-Qoption ld '
8352 ;;
8353 *Sun\ C*)
8354 # Sun C 5.9
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_wl='-Wl,'
8358 ;;
8359 *Intel*\ [CF]*Compiler*)
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_pic='-fPIC'
8362 lt_prog_compiler_static='-static'
8363 ;;
8364 *Portland\ Group*)
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='-fpic'
8367 lt_prog_compiler_static='-Bstatic'
8368 ;;
8369 esac
8370 ;;
8371 esac
8372 ;;
8373
8374 newsos6)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 ;;
8378
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
8384
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390
8391 rdos*)
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 solaris*)
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8399 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8400 lt_prog_compiler_wl='-Qoption ld ';;
8401 *)
8402 lt_prog_compiler_wl='-Wl,';;
8403 esac
8404 ;;
8405
8406 sunos4*)
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
8410 ;;
8411
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
8417
8418 sysv4*MP*)
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
8422 fi
8423 ;;
8424
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 unicos*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
8434 ;;
8435
8436 uts4*)
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440
8441 *)
8442 lt_prog_compiler_can_build_shared=no
8443 ;;
8444 esac
8445 fi
8446
8447 case $host_os in
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8449 *djgpp*)
8450 lt_prog_compiler_pic=
8451 ;;
8452 *)
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8454 ;;
8455 esac
8456
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8459 if ${lt_cv_prog_compiler_pic+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8465 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8466 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8467
8468 #
8469 # Check to make sure the PIC flag actually works.
8470 #
8471 if test -n "$lt_prog_compiler_pic"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8473 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8474 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 lt_cv_prog_compiler_pic_works=no
8478 ac_outfile=conftest.$ac_objext
8479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8480 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 # The option is referenced via a variable to avoid confusing sed.
8486 lt_compile=`echo "$ac_compile" | $SED \
8487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8489 -e 's:$: $lt_compiler_flag:'`
8490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8491 (eval "$lt_compile" 2>conftest.err)
8492 ac_status=$?
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 if (exit $ac_status) && test -s "$ac_outfile"; then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings other than the usual output.
8498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_pic_works=yes
8502 fi
8503 fi
8504 $RM conftest*
8505
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8508 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8509
8510 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8511 case $lt_prog_compiler_pic in
8512 "" | " "*) ;;
8513 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8514 esac
8515 else
8516 lt_prog_compiler_pic=
8517 lt_prog_compiler_can_build_shared=no
8518 fi
8519
8520 fi
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532 #
8533 # Check to make sure the static flag actually works.
8534 #
8535 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8537 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8538 if ${lt_cv_prog_compiler_static_works+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 lt_cv_prog_compiler_static_works=no
8542 save_LDFLAGS="$LDFLAGS"
8543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8544 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8546 # The linker can only warn and ignore the option if not recognized
8547 # So say no if there are warnings
8548 if test -s conftest.err; then
8549 # Append any errors to the config.log.
8550 cat conftest.err 1>&5
8551 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8553 if diff conftest.exp conftest.er2 >/dev/null; then
8554 lt_cv_prog_compiler_static_works=yes
8555 fi
8556 else
8557 lt_cv_prog_compiler_static_works=yes
8558 fi
8559 fi
8560 $RM -r conftest*
8561 LDFLAGS="$save_LDFLAGS"
8562
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8565 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8566
8567 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8568 :
8569 else
8570 lt_prog_compiler_static=
8571 fi
8572
8573
8574
8575
8576
8577
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8581 if ${lt_cv_prog_compiler_c_o+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 lt_cv_prog_compiler_c_o=no
8585 $RM -r conftest 2>/dev/null
8586 mkdir conftest
8587 cd conftest
8588 mkdir out
8589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590
8591 lt_compiler_flag="-o out/conftest2.$ac_objext"
8592 # Insert the option either (1) after the last *FLAGS variable, or
8593 # (2) before a word containing "conftest.", or (3) at the end.
8594 # Note that $ac_compile itself does not contain backslashes and begins
8595 # with a dollar sign (not a hyphen), so the echo should work correctly.
8596 lt_compile=`echo "$ac_compile" | $SED \
8597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8599 -e 's:$: $lt_compiler_flag:'`
8600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8601 (eval "$lt_compile" 2>out/conftest.err)
8602 ac_status=$?
8603 cat out/conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8606 then
8607 # The compiler can only warn and ignore the option if not recognized
8608 # So say no if there are warnings
8609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8612 lt_cv_prog_compiler_c_o=yes
8613 fi
8614 fi
8615 chmod u+w . 2>&5
8616 $RM conftest*
8617 # SGI C++ compiler will create directory out/ii_files/ for
8618 # template instantiation
8619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8620 $RM out/* && rmdir out
8621 cd ..
8622 $RM -r conftest
8623 $RM conftest*
8624
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8627 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8628
8629
8630
8631
8632
8633
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8636 if ${lt_cv_prog_compiler_c_o+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 lt_cv_prog_compiler_c_o=no
8640 $RM -r conftest 2>/dev/null
8641 mkdir conftest
8642 cd conftest
8643 mkdir out
8644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8645
8646 lt_compiler_flag="-o out/conftest2.$ac_objext"
8647 # Insert the option either (1) after the last *FLAGS variable, or
8648 # (2) before a word containing "conftest.", or (3) at the end.
8649 # Note that $ac_compile itself does not contain backslashes and begins
8650 # with a dollar sign (not a hyphen), so the echo should work correctly.
8651 lt_compile=`echo "$ac_compile" | $SED \
8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8654 -e 's:$: $lt_compiler_flag:'`
8655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8656 (eval "$lt_compile" 2>out/conftest.err)
8657 ac_status=$?
8658 cat out/conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8661 then
8662 # The compiler can only warn and ignore the option if not recognized
8663 # So say no if there are warnings
8664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8667 lt_cv_prog_compiler_c_o=yes
8668 fi
8669 fi
8670 chmod u+w . 2>&5
8671 $RM conftest*
8672 # SGI C++ compiler will create directory out/ii_files/ for
8673 # template instantiation
8674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8675 $RM out/* && rmdir out
8676 cd ..
8677 $RM -r conftest
8678 $RM conftest*
8679
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8683
8684
8685
8686
8687 hard_links="nottested"
8688 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8689 # do not overwrite the value of need_locks provided by the user
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8691 $as_echo_n "checking if we can lock with hard links... " >&6; }
8692 hard_links=yes
8693 $RM conftest*
8694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8695 touch conftest.a
8696 ln conftest.a conftest.b 2>&5 || hard_links=no
8697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8699 $as_echo "$hard_links" >&6; }
8700 if test "$hard_links" = no; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8702 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8703 need_locks=warn
8704 fi
8705 else
8706 need_locks=no
8707 fi
8708
8709
8710
8711
8712
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8715 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8716
8717 runpath_var=
8718 allow_undefined_flag=
8719 always_export_symbols=no
8720 archive_cmds=
8721 archive_expsym_cmds=
8722 compiler_needs_object=no
8723 enable_shared_with_static_runtimes=no
8724 export_dynamic_flag_spec=
8725 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8726 hardcode_automatic=no
8727 hardcode_direct=no
8728 hardcode_direct_absolute=no
8729 hardcode_libdir_flag_spec=
8730 hardcode_libdir_separator=
8731 hardcode_minus_L=no
8732 hardcode_shlibpath_var=unsupported
8733 inherit_rpath=no
8734 link_all_deplibs=unknown
8735 module_cmds=
8736 module_expsym_cmds=
8737 old_archive_from_new_cmds=
8738 old_archive_from_expsyms_cmds=
8739 thread_safe_flag_spec=
8740 whole_archive_flag_spec=
8741 # include_expsyms should be a list of space-separated symbols to be *always*
8742 # included in the symbol list
8743 include_expsyms=
8744 # exclude_expsyms can be an extended regexp of symbols to exclude
8745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8747 # as well as any symbol that contains `d'.
8748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8750 # platforms (ab)use it in PIC code, but their linkers get confused if
8751 # the symbol is explicitly referenced. Since portable code cannot
8752 # rely on this symbol name, it's probably fine to never include it in
8753 # preloaded symbol tables.
8754 # Exclude shared library initialization/finalization symbols.
8755 extract_expsyms_cmds=
8756
8757 case $host_os in
8758 cygwin* | mingw* | pw32* | cegcc*)
8759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8760 # When not using gcc, we currently assume that we are using
8761 # Microsoft Visual C++.
8762 if test "$GCC" != yes; then
8763 with_gnu_ld=no
8764 fi
8765 ;;
8766 interix*)
8767 # we just hope/assume this is gcc and not c89 (= MSVC++)
8768 with_gnu_ld=yes
8769 ;;
8770 openbsd*)
8771 with_gnu_ld=no
8772 ;;
8773 esac
8774
8775 ld_shlibs=yes
8776
8777 # On some targets, GNU ld is compatible enough with the native linker
8778 # that we're better off using the native interface for both.
8779 lt_use_gnu_ld_interface=no
8780 if test "$with_gnu_ld" = yes; then
8781 case $host_os in
8782 aix*)
8783 # The AIX port of GNU ld has always aspired to compatibility
8784 # with the native linker. However, as the warning in the GNU ld
8785 # block says, versions before 2.19.5* couldn't really create working
8786 # shared libraries, regardless of the interface used.
8787 case `$LD -v 2>&1` in
8788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8791 *)
8792 lt_use_gnu_ld_interface=yes
8793 ;;
8794 esac
8795 ;;
8796 *)
8797 lt_use_gnu_ld_interface=yes
8798 ;;
8799 esac
8800 fi
8801
8802 if test "$lt_use_gnu_ld_interface" = yes; then
8803 # If archive_cmds runs LD, not CC, wlarc should be empty
8804 wlarc='${wl}'
8805
8806 # Set some defaults for GNU ld with shared library support. These
8807 # are reset later if shared libraries are not supported. Putting them
8808 # here allows them to be overridden if necessary.
8809 runpath_var=LD_RUN_PATH
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 export_dynamic_flag_spec='${wl}--export-dynamic'
8812 # ancient GNU ld didn't support --whole-archive et. al.
8813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8815 else
8816 whole_archive_flag_spec=
8817 fi
8818 supports_anon_versioning=no
8819 case `$LD -v 2>&1` in
8820 *GNU\ gold*) supports_anon_versioning=yes ;;
8821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8824 *\ 2.11.*) ;; # other 2.11 versions
8825 *) supports_anon_versioning=yes ;;
8826 esac
8827
8828 # See if GNU ld supports shared libraries.
8829 case $host_os in
8830 aix[3-9]*)
8831 # On AIX/PPC, the GNU linker is very broken
8832 if test "$host_cpu" != ia64; then
8833 ld_shlibs=no
8834 cat <<_LT_EOF 1>&2
8835
8836 *** Warning: the GNU linker, at least up to release 2.19, is reported
8837 *** to be unable to reliably create shared libraries on AIX.
8838 *** Therefore, libtool is disabling shared libraries support. If you
8839 *** really care for shared libraries, you may want to install binutils
8840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8841 *** You will then need to restart the configuration process.
8842
8843 _LT_EOF
8844 fi
8845 ;;
8846
8847 amigaos*)
8848 case $host_cpu in
8849 powerpc)
8850 # see comment about AmigaOS4 .so support
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 archive_expsym_cmds=''
8853 ;;
8854 m68k)
8855 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)'
8856 hardcode_libdir_flag_spec='-L$libdir'
8857 hardcode_minus_L=yes
8858 ;;
8859 esac
8860 ;;
8861
8862 beos*)
8863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8864 allow_undefined_flag=unsupported
8865 # Joseph Beckenbach <[email protected]> says some releases of gcc
8866 # support --undefined. This deserves some investigation. FIXME
8867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 else
8869 ld_shlibs=no
8870 fi
8871 ;;
8872
8873 cygwin* | mingw* | pw32* | cegcc*)
8874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8875 # as there is no search path for DLLs.
8876 hardcode_libdir_flag_spec='-L$libdir'
8877 export_dynamic_flag_spec='${wl}--export-all-symbols'
8878 allow_undefined_flag=unsupported
8879 always_export_symbols=no
8880 enable_shared_with_static_runtimes=yes
8881 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'
8882 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8883
8884 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8886 # If the export-symbols file already is a .def file (1st line
8887 # is EXPORTS), use it as is; otherwise, prepend...
8888 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8889 cp $export_symbols $output_objdir/$soname.def;
8890 else
8891 echo EXPORTS > $output_objdir/$soname.def;
8892 cat $export_symbols >> $output_objdir/$soname.def;
8893 fi~
8894 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8895 else
8896 ld_shlibs=no
8897 fi
8898 ;;
8899
8900 haiku*)
8901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8902 link_all_deplibs=yes
8903 ;;
8904
8905 interix[3-9]*)
8906 hardcode_direct=no
8907 hardcode_shlibpath_var=no
8908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8909 export_dynamic_flag_spec='${wl}-E'
8910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8911 # Instead, shared libraries are loaded at an image base (0x10000000 by
8912 # default) and relocated if they conflict, which is a slow very memory
8913 # consuming and fragmenting process. To avoid this, we pick a random,
8914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8917 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'
8918 ;;
8919
8920 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8921 tmp_diet=no
8922 if test "$host_os" = linux-dietlibc; then
8923 case $cc_basename in
8924 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8925 esac
8926 fi
8927 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8928 && test "$tmp_diet" = no
8929 then
8930 tmp_addflag=' $pic_flag'
8931 tmp_sharedflag='-shared'
8932 case $cc_basename,$host_cpu in
8933 pgcc*) # Portland Group C compiler
8934 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'
8935 tmp_addflag=' $pic_flag'
8936 ;;
8937 pgf77* | pgf90* | pgf95* | pgfortran*)
8938 # Portland Group f77 and f90 compilers
8939 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'
8940 tmp_addflag=' $pic_flag -Mnomain' ;;
8941 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8942 tmp_addflag=' -i_dynamic' ;;
8943 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8944 tmp_addflag=' -i_dynamic -nofor_main' ;;
8945 ifc* | ifort*) # Intel Fortran compiler
8946 tmp_addflag=' -nofor_main' ;;
8947 lf95*) # Lahey Fortran 8.1
8948 whole_archive_flag_spec=
8949 tmp_sharedflag='--shared' ;;
8950 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8951 tmp_sharedflag='-qmkshrobj'
8952 tmp_addflag= ;;
8953 nvcc*) # Cuda Compiler Driver 2.2
8954 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'
8955 compiler_needs_object=yes
8956 ;;
8957 esac
8958 case `$CC -V 2>&1 | sed 5q` in
8959 *Sun\ C*) # Sun C 5.9
8960 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'
8961 compiler_needs_object=yes
8962 tmp_sharedflag='-G' ;;
8963 *Sun\ F*) # Sun Fortran 8.3
8964 tmp_sharedflag='-G' ;;
8965 esac
8966 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967
8968 if test "x$supports_anon_versioning" = xyes; then
8969 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8971 echo "local: *; };" >> $output_objdir/$libname.ver~
8972 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8973 fi
8974
8975 case $cc_basename in
8976 xlf* | bgf* | bgxlf* | mpixlf*)
8977 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8978 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8981 if test "x$supports_anon_versioning" = xyes; then
8982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8984 echo "local: *; };" >> $output_objdir/$libname.ver~
8985 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8986 fi
8987 ;;
8988 esac
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
8993
8994 netbsd*)
8995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8997 wlarc=
8998 else
8999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9001 fi
9002 ;;
9003
9004 solaris*)
9005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9008
9009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9010 *** create shared libraries on Solaris systems. Therefore, libtool
9011 *** is disabling shared libraries support. We urge you to upgrade GNU
9012 *** binutils to release 2.9.1 or newer. Another option is to modify
9013 *** your PATH or compiler configuration so that the native linker is
9014 *** used, and then restart.
9015
9016 _LT_EOF
9017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9022 fi
9023 ;;
9024
9025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9026 case `$LD -v 2>&1` in
9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9030
9031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9032 *** reliably create shared libraries on SCO systems. Therefore, libtool
9033 *** is disabling shared libraries support. We urge you to upgrade GNU
9034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9037
9038 _LT_EOF
9039 ;;
9040 *)
9041 # For security reasons, it is highly recommended that you always
9042 # use absolute paths for naming shared libraries, and exclude the
9043 # DT_RUNPATH tag from executables and libraries. But doing so
9044 # requires that you compile everything twice, which is a pain.
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9051 fi
9052 ;;
9053 esac
9054 ;;
9055
9056 sunos4*)
9057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058 wlarc=
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9061 ;;
9062
9063 *)
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067 else
9068 ld_shlibs=no
9069 fi
9070 ;;
9071 esac
9072
9073 if test "$ld_shlibs" = no; then
9074 runpath_var=
9075 hardcode_libdir_flag_spec=
9076 export_dynamic_flag_spec=
9077 whole_archive_flag_spec=
9078 fi
9079 else
9080 # PORTME fill in a description of your system's linker (not GNU ld)
9081 case $host_os in
9082 aix3*)
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=yes
9085 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'
9086 # Note: this linker hardcodes the directories in LIBPATH if there
9087 # are no directories specified by -L.
9088 hardcode_minus_L=yes
9089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9090 # Neither direct hardcoding nor static linking is supported with a
9091 # broken collect2.
9092 hardcode_direct=unsupported
9093 fi
9094 ;;
9095
9096 aix[4-9]*)
9097 if test "$host_cpu" = ia64; then
9098 # On IA64, the linker does run time linking by default, so we don't
9099 # have to do anything special.
9100 aix_use_runtimelinking=no
9101 exp_sym_flag='-Bexport'
9102 no_entry_flag=""
9103 else
9104 # If we're using GNU nm, then we don't want the "-C" option.
9105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9106 # Also, AIX nm treats weak defined symbols like other global
9107 # defined symbols, whereas GNU nm marks them as "W".
9108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9109 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'
9110 else
9111 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'
9112 fi
9113 aix_use_runtimelinking=no
9114
9115 # Test if we are trying to use run time linking or normal
9116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9117 # need to do runtime linking.
9118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9119 for ld_flag in $LDFLAGS; do
9120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9121 aix_use_runtimelinking=yes
9122 break
9123 fi
9124 done
9125 ;;
9126 esac
9127
9128 exp_sym_flag='-bexport'
9129 no_entry_flag='-bnoentry'
9130 fi
9131
9132 # When large executables or shared objects are built, AIX ld can
9133 # have problems creating the table of contents. If linking a library
9134 # or program results in "error TOC overflow" add -mminimal-toc to
9135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9137
9138 archive_cmds=''
9139 hardcode_direct=yes
9140 hardcode_direct_absolute=yes
9141 hardcode_libdir_separator=':'
9142 link_all_deplibs=yes
9143 file_list_spec='${wl}-f,'
9144
9145 if test "$GCC" = yes; then
9146 case $host_os in aix4.[012]|aix4.[012].*)
9147 # We only want to do this on AIX 4.2 and lower, the check
9148 # below for broken collect2 doesn't work under 4.3+
9149 collect2name=`${CC} -print-prog-name=collect2`
9150 if test -f "$collect2name" &&
9151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9152 then
9153 # We have reworked collect2
9154 :
9155 else
9156 # We have old collect2
9157 hardcode_direct=unsupported
9158 # It fails to find uninstalled libraries when the uninstalled
9159 # path is not listed in the libpath. Setting hardcode_minus_L
9160 # to unsupported forces relinking
9161 hardcode_minus_L=yes
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_libdir_separator=
9164 fi
9165 ;;
9166 esac
9167 shared_flag='-shared'
9168 if test "$aix_use_runtimelinking" = yes; then
9169 shared_flag="$shared_flag "'${wl}-G'
9170 fi
9171 else
9172 # not using gcc
9173 if test "$host_cpu" = ia64; then
9174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9175 # chokes on -Wl,-G. The following line is correct:
9176 shared_flag='-G'
9177 else
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag='${wl}-G'
9180 else
9181 shared_flag='${wl}-bM:SRE'
9182 fi
9183 fi
9184 fi
9185
9186 export_dynamic_flag_spec='${wl}-bexpall'
9187 # It seems that -bexpall does not export symbols beginning with
9188 # underscore (_), so it is better to generate a list of symbols to export.
9189 always_export_symbols=yes
9190 if test "$aix_use_runtimelinking" = yes; then
9191 # Warning - without using the other runtime loading flags (-brtl),
9192 # -berok will link without error, but may produce a broken library.
9193 allow_undefined_flag='-berok'
9194 # Determine the default libpath from the value encoded in an
9195 # empty executable.
9196 if test "${lt_cv_aix_libpath+set}" = set; then
9197 aix_libpath=$lt_cv_aix_libpath
9198 else
9199 if ${lt_cv_aix_libpath_+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204
9205 int
9206 main ()
9207 {
9208
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214
9215 lt_aix_libpath_sed='
9216 /Import File Strings/,/^$/ {
9217 /^0/ {
9218 s/^0 *\([^ ]*\) *$/\1/
9219 p
9220 }
9221 }'
9222 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 # Check for a 64-bit object if we didn't find anything.
9224 if test -z "$lt_cv_aix_libpath_"; then
9225 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 fi
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 if test -z "$lt_cv_aix_libpath_"; then
9231 lt_cv_aix_libpath_="/usr/lib:/lib"
9232 fi
9233
9234 fi
9235
9236 aix_libpath=$lt_cv_aix_libpath_
9237 fi
9238
9239 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9240 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"
9241 else
9242 if test "$host_cpu" = ia64; then
9243 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9244 allow_undefined_flag="-z nodefs"
9245 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"
9246 else
9247 # Determine the default libpath from the value encoded in an
9248 # empty executable.
9249 if test "${lt_cv_aix_libpath+set}" = set; then
9250 aix_libpath=$lt_cv_aix_libpath
9251 else
9252 if ${lt_cv_aix_libpath_+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257
9258 int
9259 main ()
9260 {
9261
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 if ac_fn_c_try_link "$LINENO"; then :
9267
9268 lt_aix_libpath_sed='
9269 /Import File Strings/,/^$/ {
9270 /^0/ {
9271 s/^0 *\([^ ]*\) *$/\1/
9272 p
9273 }
9274 }'
9275 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9276 # Check for a 64-bit object if we didn't find anything.
9277 if test -z "$lt_cv_aix_libpath_"; then
9278 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9279 fi
9280 fi
9281 rm -f core conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9283 if test -z "$lt_cv_aix_libpath_"; then
9284 lt_cv_aix_libpath_="/usr/lib:/lib"
9285 fi
9286
9287 fi
9288
9289 aix_libpath=$lt_cv_aix_libpath_
9290 fi
9291
9292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9293 # Warning - without using the other run time loading flags,
9294 # -berok will link without error, but may produce a broken library.
9295 no_undefined_flag=' ${wl}-bernotok'
9296 allow_undefined_flag=' ${wl}-berok'
9297 if test "$with_gnu_ld" = yes; then
9298 # We only use this code for GNU lds that support --whole-archive.
9299 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9300 else
9301 # Exported symbols can be pulled into shared objects from archives
9302 whole_archive_flag_spec='$convenience'
9303 fi
9304 archive_cmds_need_lc=yes
9305 # This is similar to how AIX traditionally builds its shared libraries.
9306 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'
9307 fi
9308 fi
9309 ;;
9310
9311 amigaos*)
9312 case $host_cpu in
9313 powerpc)
9314 # see comment about AmigaOS4 .so support
9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 archive_expsym_cmds=''
9317 ;;
9318 m68k)
9319 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)'
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 hardcode_minus_L=yes
9322 ;;
9323 esac
9324 ;;
9325
9326 bsdi[45]*)
9327 export_dynamic_flag_spec=-rdynamic
9328 ;;
9329
9330 cygwin* | mingw* | pw32* | cegcc*)
9331 # When not using gcc, we currently assume that we are using
9332 # Microsoft Visual C++.
9333 # hardcode_libdir_flag_spec is actually meaningless, as there is
9334 # no search path for DLLs.
9335 case $cc_basename in
9336 cl*)
9337 # Native MSVC
9338 hardcode_libdir_flag_spec=' '
9339 allow_undefined_flag=unsupported
9340 always_export_symbols=yes
9341 file_list_spec='@'
9342 # Tell ltmain to make .lib files, not .a files.
9343 libext=lib
9344 # Tell ltmain to make .dll files, not .so files.
9345 shrext_cmds=".dll"
9346 # FIXME: Setting linknames here is a bad hack.
9347 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9348 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9349 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9350 else
9351 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9352 fi~
9353 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9354 linknames='
9355 # The linker will not automatically build a static lib if we build a DLL.
9356 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9357 enable_shared_with_static_runtimes=yes
9358 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9360 # Don't use ranlib
9361 old_postinstall_cmds='chmod 644 $oldlib'
9362 postlink_cmds='lt_outputfile="@OUTPUT@"~
9363 lt_tool_outputfile="@TOOL_OUTPUT@"~
9364 case $lt_outputfile in
9365 *.exe|*.EXE) ;;
9366 *)
9367 lt_outputfile="$lt_outputfile.exe"
9368 lt_tool_outputfile="$lt_tool_outputfile.exe"
9369 ;;
9370 esac~
9371 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9373 $RM "$lt_outputfile.manifest";
9374 fi'
9375 ;;
9376 *)
9377 # Assume MSVC wrapper
9378 hardcode_libdir_flag_spec=' '
9379 allow_undefined_flag=unsupported
9380 # Tell ltmain to make .lib files, not .a files.
9381 libext=lib
9382 # Tell ltmain to make .dll files, not .so files.
9383 shrext_cmds=".dll"
9384 # FIXME: Setting linknames here is a bad hack.
9385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9386 # The linker will automatically build a .lib file if we build a DLL.
9387 old_archive_from_new_cmds='true'
9388 # FIXME: Should let the user specify the lib program.
9389 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9390 enable_shared_with_static_runtimes=yes
9391 ;;
9392 esac
9393 ;;
9394
9395 darwin* | rhapsody*)
9396
9397
9398 archive_cmds_need_lc=no
9399 hardcode_direct=no
9400 hardcode_automatic=yes
9401 hardcode_shlibpath_var=unsupported
9402 if test "$lt_cv_ld_force_load" = "yes"; then
9403 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\"`'
9404
9405 else
9406 whole_archive_flag_spec=''
9407 fi
9408 link_all_deplibs=yes
9409 allow_undefined_flag="$_lt_dar_allow_undefined"
9410 case $cc_basename in
9411 ifort*) _lt_dar_can_shared=yes ;;
9412 *) _lt_dar_can_shared=$GCC ;;
9413 esac
9414 if test "$_lt_dar_can_shared" = "yes"; then
9415 output_verbose_link_cmd=func_echo_all
9416 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9417 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9418 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}"
9419 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}"
9420
9421 else
9422 ld_shlibs=no
9423 fi
9424
9425 ;;
9426
9427 dgux*)
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_libdir_flag_spec='-L$libdir'
9430 hardcode_shlibpath_var=no
9431 ;;
9432
9433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9434 # support. Future versions do this automatically, but an explicit c++rt0.o
9435 # does not break anything, and helps significantly (at the cost of a little
9436 # extra space).
9437 freebsd2.2*)
9438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9439 hardcode_libdir_flag_spec='-R$libdir'
9440 hardcode_direct=yes
9441 hardcode_shlibpath_var=no
9442 ;;
9443
9444 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9445 freebsd2.*)
9446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_direct=yes
9448 hardcode_minus_L=yes
9449 hardcode_shlibpath_var=no
9450 ;;
9451
9452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9453 freebsd* | dragonfly*)
9454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9455 hardcode_libdir_flag_spec='-R$libdir'
9456 hardcode_direct=yes
9457 hardcode_shlibpath_var=no
9458 ;;
9459
9460 hpux9*)
9461 if test "$GCC" = yes; then
9462 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'
9463 else
9464 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'
9465 fi
9466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9467 hardcode_libdir_separator=:
9468 hardcode_direct=yes
9469
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9473 export_dynamic_flag_spec='${wl}-E'
9474 ;;
9475
9476 hpux10*)
9477 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9478 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9479 else
9480 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9481 fi
9482 if test "$with_gnu_ld" = no; then
9483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9484 hardcode_libdir_separator=:
9485 hardcode_direct=yes
9486 hardcode_direct_absolute=yes
9487 export_dynamic_flag_spec='${wl}-E'
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9491 fi
9492 ;;
9493
9494 hpux11*)
9495 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9496 case $host_cpu in
9497 hppa*64*)
9498 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 ;;
9500 ia64*)
9501 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9502 ;;
9503 *)
9504 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9505 ;;
9506 esac
9507 else
9508 case $host_cpu in
9509 hppa*64*)
9510 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 ;;
9512 ia64*)
9513 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9514 ;;
9515 *)
9516
9517 # Older versions of the 11.00 compiler do not understand -b yet
9518 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9520 $as_echo_n "checking if $CC understands -b... " >&6; }
9521 if ${lt_cv_prog_compiler__b+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 lt_cv_prog_compiler__b=no
9525 save_LDFLAGS="$LDFLAGS"
9526 LDFLAGS="$LDFLAGS -b"
9527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529 # The linker can only warn and ignore the option if not recognized
9530 # So say no if there are warnings
9531 if test -s conftest.err; then
9532 # Append any errors to the config.log.
9533 cat conftest.err 1>&5
9534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536 if diff conftest.exp conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler__b=yes
9538 fi
9539 else
9540 lt_cv_prog_compiler__b=yes
9541 fi
9542 fi
9543 $RM -r conftest*
9544 LDFLAGS="$save_LDFLAGS"
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9548 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9549
9550 if test x"$lt_cv_prog_compiler__b" = xyes; then
9551 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9552 else
9553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9554 fi
9555
9556 ;;
9557 esac
9558 fi
9559 if test "$with_gnu_ld" = no; then
9560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561 hardcode_libdir_separator=:
9562
9563 case $host_cpu in
9564 hppa*64*|ia64*)
9565 hardcode_direct=no
9566 hardcode_shlibpath_var=no
9567 ;;
9568 *)
9569 hardcode_direct=yes
9570 hardcode_direct_absolute=yes
9571 export_dynamic_flag_spec='${wl}-E'
9572
9573 # hardcode_minus_L: Not really in the search PATH,
9574 # but as the default location of the library.
9575 hardcode_minus_L=yes
9576 ;;
9577 esac
9578 fi
9579 ;;
9580
9581 irix5* | irix6* | nonstopux*)
9582 if test "$GCC" = yes; then
9583 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'
9584 # Try to use the -exported_symbol ld option, if it does not
9585 # work, assume that -exports_file does not work either and
9586 # implicitly export all symbols.
9587 # This should be the same for all languages, so no per-tag cache variable.
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9589 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9590 if ${lt_cv_irix_exported_symbol+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 save_LDFLAGS="$LDFLAGS"
9594 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597 int foo (void) { return 0; }
9598 _ACEOF
9599 if ac_fn_c_try_link "$LINENO"; then :
9600 lt_cv_irix_exported_symbol=yes
9601 else
9602 lt_cv_irix_exported_symbol=no
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9606 LDFLAGS="$save_LDFLAGS"
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9609 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9610 if test "$lt_cv_irix_exported_symbol" = yes; then
9611 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'
9612 fi
9613 else
9614 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'
9615 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'
9616 fi
9617 archive_cmds_need_lc='no'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator=:
9620 inherit_rpath=yes
9621 link_all_deplibs=yes
9622 ;;
9623
9624 netbsd*)
9625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9627 else
9628 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9629 fi
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_direct=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 newsos6)
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_direct=yes
9638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639 hardcode_libdir_separator=:
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 *nto* | *qnx*)
9644 ;;
9645
9646 openbsd*)
9647 if test -f /usr/libexec/ld.so; then
9648 hardcode_direct=yes
9649 hardcode_shlibpath_var=no
9650 hardcode_direct_absolute=yes
9651 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9653 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9655 export_dynamic_flag_spec='${wl}-E'
9656 else
9657 case $host_os in
9658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_libdir_flag_spec='-R$libdir'
9661 ;;
9662 *)
9663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9665 ;;
9666 esac
9667 fi
9668 else
9669 ld_shlibs=no
9670 fi
9671 ;;
9672
9673 os2*)
9674 hardcode_libdir_flag_spec='-L$libdir'
9675 hardcode_minus_L=yes
9676 allow_undefined_flag=unsupported
9677 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'
9678 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9679 ;;
9680
9681 osf3*)
9682 if test "$GCC" = yes; then
9683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9684 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'
9685 else
9686 allow_undefined_flag=' -expect_unresolved \*'
9687 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'
9688 fi
9689 archive_cmds_need_lc='no'
9690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9691 hardcode_libdir_separator=:
9692 ;;
9693
9694 osf4* | osf5*) # as osf3* with the addition of -msym flag
9695 if test "$GCC" = yes; then
9696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9697 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'
9698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9699 else
9700 allow_undefined_flag=' -expect_unresolved \*'
9701 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'
9702 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~
9703 $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'
9704
9705 # Both c and cxx compiler support -rpath directly
9706 hardcode_libdir_flag_spec='-rpath $libdir'
9707 fi
9708 archive_cmds_need_lc='no'
9709 hardcode_libdir_separator=:
9710 ;;
9711
9712 solaris*)
9713 no_undefined_flag=' -z defs'
9714 if test "$GCC" = yes; then
9715 wlarc='${wl}'
9716 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718 $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'
9719 else
9720 case `$CC -V 2>&1` in
9721 *"Compilers 5.0"*)
9722 wlarc=''
9723 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9726 ;;
9727 *)
9728 wlarc='${wl}'
9729 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9732 ;;
9733 esac
9734 fi
9735 hardcode_libdir_flag_spec='-R$libdir'
9736 hardcode_shlibpath_var=no
9737 case $host_os in
9738 solaris2.[0-5] | solaris2.[0-5].*) ;;
9739 *)
9740 # The compiler driver will combine and reorder linker options,
9741 # but understands `-z linker_flag'. GCC discards it without `$wl',
9742 # but is careful enough not to reorder.
9743 # Supported since Solaris 2.6 (maybe 2.5.1?)
9744 if test "$GCC" = yes; then
9745 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9746 else
9747 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9748 fi
9749 ;;
9750 esac
9751 link_all_deplibs=yes
9752 ;;
9753
9754 sunos4*)
9755 if test "x$host_vendor" = xsequent; then
9756 # Use $CC to link under sequent, because it throws in some extra .o
9757 # files that make .init and .fini sections work.
9758 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9759 else
9760 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9761 fi
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_direct=yes
9764 hardcode_minus_L=yes
9765 hardcode_shlibpath_var=no
9766 ;;
9767
9768 sysv4)
9769 case $host_vendor in
9770 sni)
9771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes # is this really true???
9773 ;;
9774 siemens)
9775 ## LD is ld it makes a PLAMLIB
9776 ## CC just makes a GrossModule.
9777 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9778 reload_cmds='$CC -r -o $output$reload_objs'
9779 hardcode_direct=no
9780 ;;
9781 motorola)
9782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9784 ;;
9785 esac
9786 runpath_var='LD_RUN_PATH'
9787 hardcode_shlibpath_var=no
9788 ;;
9789
9790 sysv4.3*)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_shlibpath_var=no
9793 export_dynamic_flag_spec='-Bexport'
9794 ;;
9795
9796 sysv4*MP*)
9797 if test -d /usr/nec; then
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_shlibpath_var=no
9800 runpath_var=LD_RUN_PATH
9801 hardcode_runpath_var=yes
9802 ld_shlibs=yes
9803 fi
9804 ;;
9805
9806 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9807 no_undefined_flag='${wl}-z,text'
9808 archive_cmds_need_lc=no
9809 hardcode_shlibpath_var=no
9810 runpath_var='LD_RUN_PATH'
9811
9812 if test "$GCC" = yes; then
9813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 else
9816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 fi
9819 ;;
9820
9821 sysv5* | sco3.2v5* | sco5v6*)
9822 # Note: We can NOT use -z defs as we might desire, because we do not
9823 # link with -lc, and that would cause any symbols used from libc to
9824 # always be unresolved, which means just about no library would
9825 # ever link correctly. If we're not using GNU ld we use -z text
9826 # though, which does catch some bad symbols but isn't as heavy-handed
9827 # as -z defs.
9828 no_undefined_flag='${wl}-z,text'
9829 allow_undefined_flag='${wl}-z,nodefs'
9830 archive_cmds_need_lc=no
9831 hardcode_shlibpath_var=no
9832 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9833 hardcode_libdir_separator=':'
9834 link_all_deplibs=yes
9835 export_dynamic_flag_spec='${wl}-Bexport'
9836 runpath_var='LD_RUN_PATH'
9837
9838 if test "$GCC" = yes; then
9839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 else
9842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844 fi
9845 ;;
9846
9847 uts4*)
9848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_shlibpath_var=no
9851 ;;
9852
9853 *)
9854 ld_shlibs=no
9855 ;;
9856 esac
9857
9858 if test x$host_vendor = xsni; then
9859 case $host in
9860 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9861 export_dynamic_flag_spec='${wl}-Blargedynsym'
9862 ;;
9863 esac
9864 fi
9865 fi
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9868 $as_echo "$ld_shlibs" >&6; }
9869 test "$ld_shlibs" = no && can_build_shared=no
9870
9871 with_gnu_ld=$with_gnu_ld
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887 #
9888 # Do we need to explicitly link libc?
9889 #
9890 case "x$archive_cmds_need_lc" in
9891 x|xyes)
9892 # Assume -lc should be added
9893 archive_cmds_need_lc=yes
9894
9895 if test "$enable_shared" = yes && test "$GCC" = yes; then
9896 case $archive_cmds in
9897 *'~'*)
9898 # FIXME: we may have to deal with multi-command sequences.
9899 ;;
9900 '$CC '*)
9901 # Test whether the compiler implicitly links with -lc since on some
9902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9903 # to ld, don't add -lc before -lgcc.
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9905 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9906 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 $RM conftest*
9910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9911
9912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9913 (eval $ac_compile) 2>&5
9914 ac_status=$?
9915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9916 test $ac_status = 0; } 2>conftest.err; then
9917 soname=conftest
9918 lib=conftest
9919 libobjs=conftest.$ac_objext
9920 deplibs=
9921 wl=$lt_prog_compiler_wl
9922 pic_flag=$lt_prog_compiler_pic
9923 compiler_flags=-v
9924 linker_flags=-v
9925 verstring=
9926 output_objdir=.
9927 libname=conftest
9928 lt_save_allow_undefined_flag=$allow_undefined_flag
9929 allow_undefined_flag=
9930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9931 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9932 ac_status=$?
9933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9934 test $ac_status = 0; }
9935 then
9936 lt_cv_archive_cmds_need_lc=no
9937 else
9938 lt_cv_archive_cmds_need_lc=yes
9939 fi
9940 allow_undefined_flag=$lt_save_allow_undefined_flag
9941 else
9942 cat conftest.err 1>&5
9943 fi
9944 $RM conftest*
9945
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9948 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9949 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9950 ;;
9951 esac
9952 fi
9953 ;;
9954 esac
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10108 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10109
10110 if test "$GCC" = yes; then
10111 case $host_os in
10112 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10113 *) lt_awk_arg="/^libraries:/" ;;
10114 esac
10115 case $host_os in
10116 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10117 *) lt_sed_strip_eq="s,=/,/,g" ;;
10118 esac
10119 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10120 case $lt_search_path_spec in
10121 *\;*)
10122 # if the path contains ";" then we assume it to be the separator
10123 # otherwise default to the standard path separator (i.e. ":") - it is
10124 # assumed that no part of a normal pathname contains ";" but that should
10125 # okay in the real world where ";" in dirpaths is itself problematic.
10126 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10127 ;;
10128 *)
10129 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10130 ;;
10131 esac
10132 # Ok, now we have the path, separated by spaces, we can step through it
10133 # and add multilib dir if necessary.
10134 lt_tmp_lt_search_path_spec=
10135 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10136 for lt_sys_path in $lt_search_path_spec; do
10137 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10138 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10139 else
10140 test -d "$lt_sys_path" && \
10141 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10142 fi
10143 done
10144 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10145 BEGIN {RS=" "; FS="/|\n";} {
10146 lt_foo="";
10147 lt_count=0;
10148 for (lt_i = NF; lt_i > 0; lt_i--) {
10149 if ($lt_i != "" && $lt_i != ".") {
10150 if ($lt_i == "..") {
10151 lt_count++;
10152 } else {
10153 if (lt_count == 0) {
10154 lt_foo="/" $lt_i lt_foo;
10155 } else {
10156 lt_count--;
10157 }
10158 }
10159 }
10160 }
10161 if (lt_foo != "") { lt_freq[lt_foo]++; }
10162 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10163 }'`
10164 # AWK program above erroneously prepends '/' to C:/dos/paths
10165 # for these hosts.
10166 case $host_os in
10167 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10168 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10169 esac
10170 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10171 else
10172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10173 fi
10174 library_names_spec=
10175 libname_spec='lib$name'
10176 soname_spec=
10177 shrext_cmds=".so"
10178 postinstall_cmds=
10179 postuninstall_cmds=
10180 finish_cmds=
10181 finish_eval=
10182 shlibpath_var=
10183 shlibpath_overrides_runpath=unknown
10184 version_type=none
10185 dynamic_linker="$host_os ld.so"
10186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10187 need_lib_prefix=unknown
10188 hardcode_into_libs=no
10189
10190 # when you set need_version to no, make sure it does not cause -set_version
10191 # flags to be left without arguments
10192 need_version=unknown
10193
10194 case $host_os in
10195 aix3*)
10196 version_type=linux # correct to gnu/linux during the next big refactor
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10198 shlibpath_var=LIBPATH
10199
10200 # AIX 3 has no versioning support, so we append a major version to the name.
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 ;;
10203
10204 aix[4-9]*)
10205 version_type=linux # correct to gnu/linux during the next big refactor
10206 need_lib_prefix=no
10207 need_version=no
10208 hardcode_into_libs=yes
10209 if test "$host_cpu" = ia64; then
10210 # AIX 5 supports IA64
10211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 else
10214 # With GCC up to 2.95.x, collect2 would create an import file
10215 # for dependence libraries. The import file would start with
10216 # the line `#! .'. This would cause the generated library to
10217 # depend on `.', always an invalid library. This was fixed in
10218 # development snapshots of GCC prior to 3.0.
10219 case $host_os in
10220 aix4 | aix4.[01] | aix4.[01].*)
10221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10222 echo ' yes '
10223 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10224 :
10225 else
10226 can_build_shared=no
10227 fi
10228 ;;
10229 esac
10230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10231 # soname into executable. Probably we can add versioning support to
10232 # collect2, so additional links can be useful in future.
10233 if test "$aix_use_runtimelinking" = yes; then
10234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10235 # instead of lib<name>.a to let people know that these are not
10236 # typical AIX shared libraries.
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 else
10239 # We preserve .a as extension for shared libraries through AIX4.2
10240 # and later when we are not doing run time linking.
10241 library_names_spec='${libname}${release}.a $libname.a'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 fi
10244 shlibpath_var=LIBPATH
10245 fi
10246 ;;
10247
10248 amigaos*)
10249 case $host_cpu in
10250 powerpc)
10251 # Since July 2007 AmigaOS4 officially supports .so libraries.
10252 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 ;;
10255 m68k)
10256 library_names_spec='$libname.ixlibrary $libname.a'
10257 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10258 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'
10259 ;;
10260 esac
10261 ;;
10262
10263 beos*)
10264 library_names_spec='${libname}${shared_ext}'
10265 dynamic_linker="$host_os ld.so"
10266 shlibpath_var=LIBRARY_PATH
10267 ;;
10268
10269 bsdi[45]*)
10270 version_type=linux # correct to gnu/linux during the next big refactor
10271 need_version=no
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10277 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10278 # the default ld.so.conf also contains /usr/contrib/lib and
10279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10280 # libtool to hard-code these into programs
10281 ;;
10282
10283 cygwin* | mingw* | pw32* | cegcc*)
10284 version_type=windows
10285 shrext_cmds=".dll"
10286 need_version=no
10287 need_lib_prefix=no
10288
10289 case $GCC,$cc_basename in
10290 yes,*)
10291 # gcc
10292 library_names_spec='$libname.dll.a'
10293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10294 postinstall_cmds='base_file=`basename \${file}`~
10295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10296 dldir=$destdir/`dirname \$dlpath`~
10297 test -d \$dldir || mkdir -p \$dldir~
10298 $install_prog $dir/$dlname \$dldir/$dlname~
10299 chmod a+x \$dldir/$dlname~
10300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10302 fi'
10303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10304 dlpath=$dir/\$dldll~
10305 $RM \$dlpath'
10306 shlibpath_overrides_runpath=yes
10307
10308 case $host_os in
10309 cygwin*)
10310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10312
10313 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10314 ;;
10315 mingw* | cegcc*)
10316 # MinGW DLLs use traditional 'lib' prefix
10317 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10318 ;;
10319 pw32*)
10320 # pw32 DLLs use 'pw' prefix rather than 'lib'
10321 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10322 ;;
10323 esac
10324 dynamic_linker='Win32 ld.exe'
10325 ;;
10326
10327 *,cl*)
10328 # Native MSVC
10329 libname_spec='$name'
10330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10331 library_names_spec='${libname}.dll.lib'
10332
10333 case $build_os in
10334 mingw*)
10335 sys_lib_search_path_spec=
10336 lt_save_ifs=$IFS
10337 IFS=';'
10338 for lt_path in $LIB
10339 do
10340 IFS=$lt_save_ifs
10341 # Let DOS variable expansion print the short 8.3 style file name.
10342 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10343 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10344 done
10345 IFS=$lt_save_ifs
10346 # Convert to MSYS style.
10347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10348 ;;
10349 cygwin*)
10350 # Convert to unix form, then to dos form, then back to unix form
10351 # but this time dos style (no spaces!) so that the unix form looks
10352 # like /cygdrive/c/PROGRA~1:/cygdr...
10353 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10354 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10355 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10356 ;;
10357 *)
10358 sys_lib_search_path_spec="$LIB"
10359 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10360 # It is most probably a Windows format PATH.
10361 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10362 else
10363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10364 fi
10365 # FIXME: find the short name or the path components, as spaces are
10366 # common. (e.g. "Program Files" -> "PROGRA~1")
10367 ;;
10368 esac
10369
10370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10371 postinstall_cmds='base_file=`basename \${file}`~
10372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10373 dldir=$destdir/`dirname \$dlpath`~
10374 test -d \$dldir || mkdir -p \$dldir~
10375 $install_prog $dir/$dlname \$dldir/$dlname'
10376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10377 dlpath=$dir/\$dldll~
10378 $RM \$dlpath'
10379 shlibpath_overrides_runpath=yes
10380 dynamic_linker='Win32 link.exe'
10381 ;;
10382
10383 *)
10384 # Assume MSVC wrapper
10385 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10386 dynamic_linker='Win32 ld.exe'
10387 ;;
10388 esac
10389 # FIXME: first we should search . and the directory the executable is in
10390 shlibpath_var=PATH
10391 ;;
10392
10393 darwin* | rhapsody*)
10394 dynamic_linker="$host_os dyld"
10395 version_type=darwin
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10399 soname_spec='${libname}${release}${major}$shared_ext'
10400 shlibpath_overrides_runpath=yes
10401 shlibpath_var=DYLD_LIBRARY_PATH
10402 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10403
10404 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10406 ;;
10407
10408 dgux*)
10409 version_type=linux # correct to gnu/linux during the next big refactor
10410 need_lib_prefix=no
10411 need_version=no
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 ;;
10416
10417 freebsd* | dragonfly*)
10418 # DragonFly does not have aout. When/if they implement a new
10419 # versioning mechanism, adjust this.
10420 if test -x /usr/bin/objformat; then
10421 objformat=`/usr/bin/objformat`
10422 else
10423 case $host_os in
10424 freebsd[23].*) objformat=aout ;;
10425 *) objformat=elf ;;
10426 esac
10427 fi
10428 version_type=freebsd-$objformat
10429 case $version_type in
10430 freebsd-elf*)
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10432 need_version=no
10433 need_lib_prefix=no
10434 ;;
10435 freebsd-*)
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10437 need_version=yes
10438 ;;
10439 esac
10440 shlibpath_var=LD_LIBRARY_PATH
10441 case $host_os in
10442 freebsd2.*)
10443 shlibpath_overrides_runpath=yes
10444 ;;
10445 freebsd3.[01]* | freebsdelf3.[01]*)
10446 shlibpath_overrides_runpath=yes
10447 hardcode_into_libs=yes
10448 ;;
10449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10451 shlibpath_overrides_runpath=no
10452 hardcode_into_libs=yes
10453 ;;
10454 *) # from 4.6 on, and DragonFly
10455 shlibpath_overrides_runpath=yes
10456 hardcode_into_libs=yes
10457 ;;
10458 esac
10459 ;;
10460
10461 gnu*)
10462 version_type=linux # correct to gnu/linux during the next big refactor
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=no
10469 hardcode_into_libs=yes
10470 ;;
10471
10472 haiku*)
10473 version_type=linux # correct to gnu/linux during the next big refactor
10474 need_lib_prefix=no
10475 need_version=no
10476 dynamic_linker="$host_os runtime_loader"
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 shlibpath_var=LIBRARY_PATH
10480 shlibpath_overrides_runpath=yes
10481 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10482 hardcode_into_libs=yes
10483 ;;
10484
10485 hpux9* | hpux10* | hpux11*)
10486 # Give a soname corresponding to the major version so that dld.sl refuses to
10487 # link against other versions.
10488 version_type=sunos
10489 need_lib_prefix=no
10490 need_version=no
10491 case $host_cpu in
10492 ia64*)
10493 shrext_cmds='.so'
10494 hardcode_into_libs=yes
10495 dynamic_linker="$host_os dld.so"
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 if test "X$HPUX_IA64_MODE" = X32; then
10501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10502 else
10503 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10504 fi
10505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10506 ;;
10507 hppa*64*)
10508 shrext_cmds='.sl'
10509 hardcode_into_libs=yes
10510 dynamic_linker="$host_os dld.sl"
10511 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10517 ;;
10518 *)
10519 shrext_cmds='.sl'
10520 dynamic_linker="$host_os dld.sl"
10521 shlibpath_var=SHLIB_PATH
10522 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 ;;
10526 esac
10527 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10528 postinstall_cmds='chmod 555 $lib'
10529 # or fails outright, so override atomically:
10530 install_override_mode=555
10531 ;;
10532
10533 interix[3-9]*)
10534 version_type=linux # correct to gnu/linux during the next big refactor
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=no
10542 hardcode_into_libs=yes
10543 ;;
10544
10545 irix5* | irix6* | nonstopux*)
10546 case $host_os in
10547 nonstopux*) version_type=nonstopux ;;
10548 *)
10549 if test "$lt_cv_prog_gnu_ld" = yes; then
10550 version_type=linux # correct to gnu/linux during the next big refactor
10551 else
10552 version_type=irix
10553 fi ;;
10554 esac
10555 need_lib_prefix=no
10556 need_version=no
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10559 case $host_os in
10560 irix5* | nonstopux*)
10561 libsuff= shlibsuff=
10562 ;;
10563 *)
10564 case $LD in # libtool.m4 will add one of these switches to LD
10565 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10566 libsuff= shlibsuff= libmagic=32-bit;;
10567 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10568 libsuff=32 shlibsuff=N32 libmagic=N32;;
10569 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10570 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10571 *) libsuff= shlibsuff= libmagic=never-match;;
10572 esac
10573 ;;
10574 esac
10575 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10576 shlibpath_overrides_runpath=no
10577 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10578 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10579 hardcode_into_libs=yes
10580 ;;
10581
10582 # No shared lib support for Linux oldld, aout, or coff.
10583 linux*oldld* | linux*aout* | linux*coff*)
10584 dynamic_linker=no
10585 ;;
10586
10587 # This must be glibc/ELF.
10588 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10589 version_type=linux # correct to gnu/linux during the next big refactor
10590 need_lib_prefix=no
10591 need_version=no
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath=no
10597
10598 # Some binutils ld are patched to set DT_RUNPATH
10599 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 lt_cv_shlibpath_overrides_runpath=no
10603 save_LDFLAGS=$LDFLAGS
10604 save_libdir=$libdir
10605 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10606 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609
10610 int
10611 main ()
10612 {
10613
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10620 lt_cv_shlibpath_overrides_runpath=yes
10621 fi
10622 fi
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LDFLAGS=$save_LDFLAGS
10626 libdir=$save_libdir
10627
10628 fi
10629
10630 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10631
10632 # This implies no fast_install, which is unacceptable.
10633 # Some rework will be needed to allow for fast_install
10634 # before this can be enabled.
10635 hardcode_into_libs=yes
10636
10637 # Append ld.so.conf contents to the search path
10638 if test -f /etc/ld.so.conf; then
10639 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' ' '`
10640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10641 fi
10642
10643 # We used to test for /lib/ld.so.1 and disable shared libraries on
10644 # powerpc, because MkLinux only supported shared libraries with the
10645 # GNU dynamic linker. Since this was broken with cross compilers,
10646 # most powerpc-linux boxes support dynamic linking these days and
10647 # people can always --disable-shared, the test was removed, and we
10648 # assume the GNU/Linux dynamic linker is in use.
10649 dynamic_linker='GNU/Linux ld.so'
10650 ;;
10651
10652 netbsd*)
10653 version_type=sunos
10654 need_lib_prefix=no
10655 need_version=no
10656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10659 dynamic_linker='NetBSD (a.out) ld.so'
10660 else
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 dynamic_linker='NetBSD ld.elf_so'
10664 fi
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=yes
10667 hardcode_into_libs=yes
10668 ;;
10669
10670 newsos6)
10671 version_type=linux # correct to gnu/linux during the next big refactor
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 ;;
10676
10677 *nto* | *qnx*)
10678 version_type=qnx
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 shlibpath_overrides_runpath=no
10685 hardcode_into_libs=yes
10686 dynamic_linker='ldqnx.so'
10687 ;;
10688
10689 openbsd*)
10690 version_type=sunos
10691 sys_lib_dlsearch_path_spec="/usr/lib"
10692 need_lib_prefix=no
10693 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10694 case $host_os in
10695 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10696 *) need_version=no ;;
10697 esac
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10702 case $host_os in
10703 openbsd2.[89] | openbsd2.[89].*)
10704 shlibpath_overrides_runpath=no
10705 ;;
10706 *)
10707 shlibpath_overrides_runpath=yes
10708 ;;
10709 esac
10710 else
10711 shlibpath_overrides_runpath=yes
10712 fi
10713 ;;
10714
10715 os2*)
10716 libname_spec='$name'
10717 shrext_cmds=".dll"
10718 need_lib_prefix=no
10719 library_names_spec='$libname${shared_ext} $libname.a'
10720 dynamic_linker='OS/2 ld.exe'
10721 shlibpath_var=LIBPATH
10722 ;;
10723
10724 osf3* | osf4* | osf5*)
10725 version_type=osf
10726 need_lib_prefix=no
10727 need_version=no
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10732 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10733 ;;
10734
10735 rdos*)
10736 dynamic_linker=no
10737 ;;
10738
10739 solaris*)
10740 version_type=linux # correct to gnu/linux during the next big refactor
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 shlibpath_overrides_runpath=yes
10747 hardcode_into_libs=yes
10748 # ldd complains unless libraries are executable
10749 postinstall_cmds='chmod +x $lib'
10750 ;;
10751
10752 sunos4*)
10753 version_type=sunos
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 shlibpath_overrides_runpath=yes
10758 if test "$with_gnu_ld" = yes; then
10759 need_lib_prefix=no
10760 fi
10761 need_version=yes
10762 ;;
10763
10764 sysv4 | sysv4.3*)
10765 version_type=linux # correct to gnu/linux during the next big refactor
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 case $host_vendor in
10770 sni)
10771 shlibpath_overrides_runpath=no
10772 need_lib_prefix=no
10773 runpath_var=LD_RUN_PATH
10774 ;;
10775 siemens)
10776 need_lib_prefix=no
10777 ;;
10778 motorola)
10779 need_lib_prefix=no
10780 need_version=no
10781 shlibpath_overrides_runpath=no
10782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10783 ;;
10784 esac
10785 ;;
10786
10787 sysv4*MP*)
10788 if test -d /usr/nec ;then
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10791 soname_spec='$libname${shared_ext}.$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 fi
10794 ;;
10795
10796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10797 version_type=freebsd-elf
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath=yes
10804 hardcode_into_libs=yes
10805 if test "$with_gnu_ld" = yes; then
10806 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10807 else
10808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10809 case $host_os in
10810 sco3.2v5*)
10811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10812 ;;
10813 esac
10814 fi
10815 sys_lib_dlsearch_path_spec='/usr/lib'
10816 ;;
10817
10818 tpf*)
10819 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10820 version_type=linux # correct to gnu/linux during the next big refactor
10821 need_lib_prefix=no
10822 need_version=no
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 shlibpath_overrides_runpath=no
10826 hardcode_into_libs=yes
10827 ;;
10828
10829 uts4*)
10830 version_type=linux # correct to gnu/linux during the next big refactor
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 ;;
10835
10836 *)
10837 dynamic_linker=no
10838 ;;
10839 esac
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10841 $as_echo "$dynamic_linker" >&6; }
10842 test "$dynamic_linker" = no && can_build_shared=no
10843
10844 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10845 if test "$GCC" = yes; then
10846 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10847 fi
10848
10849 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10850 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10851 fi
10852 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10853 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10854 fi
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10949 hardcode_action=
10950 if test -n "$hardcode_libdir_flag_spec" ||
10951 test -n "$runpath_var" ||
10952 test "X$hardcode_automatic" = "Xyes" ; then
10953
10954 # We can hardcode non-existent directories.
10955 if test "$hardcode_direct" != no &&
10956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10957 # have to relink, otherwise we might link with an installed library
10958 # when we should be linking with a yet-to-be-installed one
10959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10960 test "$hardcode_minus_L" != no; then
10961 # Linking always hardcodes the temporary library directory.
10962 hardcode_action=relink
10963 else
10964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10965 hardcode_action=immediate
10966 fi
10967 else
10968 # We cannot hardcode anything, or else we can only hardcode existing
10969 # directories.
10970 hardcode_action=unsupported
10971 fi
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10973 $as_echo "$hardcode_action" >&6; }
10974
10975 if test "$hardcode_action" = relink ||
10976 test "$inherit_rpath" = yes; then
10977 # Fast installation is not supported
10978 enable_fast_install=no
10979 elif test "$shlibpath_overrides_runpath" = yes ||
10980 test "$enable_shared" = no; then
10981 # Fast installation is not necessary
10982 enable_fast_install=needless
10983 fi
10984
10985
10986
10987
10988
10989
10990 if test "x$enable_dlopen" != xyes; then
10991 enable_dlopen=unknown
10992 enable_dlopen_self=unknown
10993 enable_dlopen_self_static=unknown
10994 else
10995 lt_cv_dlopen=no
10996 lt_cv_dlopen_libs=
10997
10998 case $host_os in
10999 beos*)
11000 lt_cv_dlopen="load_add_on"
11001 lt_cv_dlopen_libs=
11002 lt_cv_dlopen_self=yes
11003 ;;
11004
11005 mingw* | pw32* | cegcc*)
11006 lt_cv_dlopen="LoadLibrary"
11007 lt_cv_dlopen_libs=
11008 ;;
11009
11010 cygwin*)
11011 lt_cv_dlopen="dlopen"
11012 lt_cv_dlopen_libs=
11013 ;;
11014
11015 darwin*)
11016 # if libdl is installed we need to link against it
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11018 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11019 if ${ac_cv_lib_dl_dlopen+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-ldl $LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char dlopen ();
11034 int
11035 main ()
11036 {
11037 return dlopen ();
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_lib_dl_dlopen=yes
11044 else
11045 ac_cv_lib_dl_dlopen=no
11046 fi
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11052 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11053 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11055 else
11056
11057 lt_cv_dlopen="dyld"
11058 lt_cv_dlopen_libs=
11059 lt_cv_dlopen_self=yes
11060
11061 fi
11062
11063 ;;
11064
11065 *)
11066 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11067 if test "x$ac_cv_func_shl_load" = xyes; then :
11068 lt_cv_dlopen="shl_load"
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11071 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11072 if ${ac_cv_lib_dld_shl_load+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-ldld $LIBS"
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char shl_load ();
11087 int
11088 main ()
11089 {
11090 return shl_load ();
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 ac_cv_lib_dld_shl_load=yes
11097 else
11098 ac_cv_lib_dld_shl_load=no
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11105 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11106 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11107 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11108 else
11109 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11110 if test "x$ac_cv_func_dlopen" = xyes; then :
11111 lt_cv_dlopen="dlopen"
11112 else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11114 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11115 if ${ac_cv_lib_dl_dlopen+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 ac_check_lib_save_LIBS=$LIBS
11119 LIBS="-ldl $LIBS"
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122
11123 /* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 char dlopen ();
11130 int
11131 main ()
11132 {
11133 return dlopen ();
11134 ;
11135 return 0;
11136 }
11137 _ACEOF
11138 if ac_fn_c_try_link "$LINENO"; then :
11139 ac_cv_lib_dl_dlopen=yes
11140 else
11141 ac_cv_lib_dl_dlopen=no
11142 fi
11143 rm -f core conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
11145 LIBS=$ac_check_lib_save_LIBS
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11149 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11151 else
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11153 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11154 if ${ac_cv_lib_svld_dlopen+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 ac_check_lib_save_LIBS=$LIBS
11158 LIBS="-lsvld $LIBS"
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 char dlopen ();
11169 int
11170 main ()
11171 {
11172 return dlopen ();
11173 ;
11174 return 0;
11175 }
11176 _ACEOF
11177 if ac_fn_c_try_link "$LINENO"; then :
11178 ac_cv_lib_svld_dlopen=yes
11179 else
11180 ac_cv_lib_svld_dlopen=no
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184 LIBS=$ac_check_lib_save_LIBS
11185 fi
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11187 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11188 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11190 else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11192 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11193 if ${ac_cv_lib_dld_dld_link+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 ac_check_lib_save_LIBS=$LIBS
11197 LIBS="-ldld $LIBS"
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11204 #ifdef __cplusplus
11205 extern "C"
11206 #endif
11207 char dld_link ();
11208 int
11209 main ()
11210 {
11211 return dld_link ();
11212 ;
11213 return 0;
11214 }
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"; then :
11217 ac_cv_lib_dld_dld_link=yes
11218 else
11219 ac_cv_lib_dld_dld_link=no
11220 fi
11221 rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 LIBS=$ac_check_lib_save_LIBS
11224 fi
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11226 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11227 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11228 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11229 fi
11230
11231
11232 fi
11233
11234
11235 fi
11236
11237
11238 fi
11239
11240
11241 fi
11242
11243
11244 fi
11245
11246 ;;
11247 esac
11248
11249 if test "x$lt_cv_dlopen" != xno; then
11250 enable_dlopen=yes
11251 else
11252 enable_dlopen=no
11253 fi
11254
11255 case $lt_cv_dlopen in
11256 dlopen)
11257 save_CPPFLAGS="$CPPFLAGS"
11258 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11259
11260 save_LDFLAGS="$LDFLAGS"
11261 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11262
11263 save_LIBS="$LIBS"
11264 LIBS="$lt_cv_dlopen_libs $LIBS"
11265
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11267 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11268 if ${lt_cv_dlopen_self+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 if test "$cross_compiling" = yes; then :
11272 lt_cv_dlopen_self=cross
11273 else
11274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11275 lt_status=$lt_dlunknown
11276 cat > conftest.$ac_ext <<_LT_EOF
11277 #line $LINENO "configure"
11278 #include "confdefs.h"
11279
11280 #if HAVE_DLFCN_H
11281 #include <dlfcn.h>
11282 #endif
11283
11284 #include <stdio.h>
11285
11286 #ifdef RTLD_GLOBAL
11287 # define LT_DLGLOBAL RTLD_GLOBAL
11288 #else
11289 # ifdef DL_GLOBAL
11290 # define LT_DLGLOBAL DL_GLOBAL
11291 # else
11292 # define LT_DLGLOBAL 0
11293 # endif
11294 #endif
11295
11296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11297 find out it does not work in some platform. */
11298 #ifndef LT_DLLAZY_OR_NOW
11299 # ifdef RTLD_LAZY
11300 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11301 # else
11302 # ifdef DL_LAZY
11303 # define LT_DLLAZY_OR_NOW DL_LAZY
11304 # else
11305 # ifdef RTLD_NOW
11306 # define LT_DLLAZY_OR_NOW RTLD_NOW
11307 # else
11308 # ifdef DL_NOW
11309 # define LT_DLLAZY_OR_NOW DL_NOW
11310 # else
11311 # define LT_DLLAZY_OR_NOW 0
11312 # endif
11313 # endif
11314 # endif
11315 # endif
11316 #endif
11317
11318 /* When -fvisbility=hidden is used, assume the code has been annotated
11319 correspondingly for the symbols needed. */
11320 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11321 int fnord () __attribute__((visibility("default")));
11322 #endif
11323
11324 int fnord () { return 42; }
11325 int main ()
11326 {
11327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11328 int status = $lt_dlunknown;
11329
11330 if (self)
11331 {
11332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11333 else
11334 {
11335 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11336 else puts (dlerror ());
11337 }
11338 /* dlclose (self); */
11339 }
11340 else
11341 puts (dlerror ());
11342
11343 return status;
11344 }
11345 _LT_EOF
11346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11347 (eval $ac_link) 2>&5
11348 ac_status=$?
11349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11350 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11351 (./conftest; exit; ) >&5 2>/dev/null
11352 lt_status=$?
11353 case x$lt_status in
11354 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11355 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11356 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11357 esac
11358 else :
11359 # compilation failed
11360 lt_cv_dlopen_self=no
11361 fi
11362 fi
11363 rm -fr conftest*
11364
11365
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11368 $as_echo "$lt_cv_dlopen_self" >&6; }
11369
11370 if test "x$lt_cv_dlopen_self" = xyes; then
11371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11373 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11374 if ${lt_cv_dlopen_self_static+:} false; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 if test "$cross_compiling" = yes; then :
11378 lt_cv_dlopen_self_static=cross
11379 else
11380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11381 lt_status=$lt_dlunknown
11382 cat > conftest.$ac_ext <<_LT_EOF
11383 #line $LINENO "configure"
11384 #include "confdefs.h"
11385
11386 #if HAVE_DLFCN_H
11387 #include <dlfcn.h>
11388 #endif
11389
11390 #include <stdio.h>
11391
11392 #ifdef RTLD_GLOBAL
11393 # define LT_DLGLOBAL RTLD_GLOBAL
11394 #else
11395 # ifdef DL_GLOBAL
11396 # define LT_DLGLOBAL DL_GLOBAL
11397 # else
11398 # define LT_DLGLOBAL 0
11399 # endif
11400 #endif
11401
11402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11403 find out it does not work in some platform. */
11404 #ifndef LT_DLLAZY_OR_NOW
11405 # ifdef RTLD_LAZY
11406 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11407 # else
11408 # ifdef DL_LAZY
11409 # define LT_DLLAZY_OR_NOW DL_LAZY
11410 # else
11411 # ifdef RTLD_NOW
11412 # define LT_DLLAZY_OR_NOW RTLD_NOW
11413 # else
11414 # ifdef DL_NOW
11415 # define LT_DLLAZY_OR_NOW DL_NOW
11416 # else
11417 # define LT_DLLAZY_OR_NOW 0
11418 # endif
11419 # endif
11420 # endif
11421 # endif
11422 #endif
11423
11424 /* When -fvisbility=hidden is used, assume the code has been annotated
11425 correspondingly for the symbols needed. */
11426 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11427 int fnord () __attribute__((visibility("default")));
11428 #endif
11429
11430 int fnord () { return 42; }
11431 int main ()
11432 {
11433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11434 int status = $lt_dlunknown;
11435
11436 if (self)
11437 {
11438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11439 else
11440 {
11441 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11442 else puts (dlerror ());
11443 }
11444 /* dlclose (self); */
11445 }
11446 else
11447 puts (dlerror ());
11448
11449 return status;
11450 }
11451 _LT_EOF
11452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11453 (eval $ac_link) 2>&5
11454 ac_status=$?
11455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11457 (./conftest; exit; ) >&5 2>/dev/null
11458 lt_status=$?
11459 case x$lt_status in
11460 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11461 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11462 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11463 esac
11464 else :
11465 # compilation failed
11466 lt_cv_dlopen_self_static=no
11467 fi
11468 fi
11469 rm -fr conftest*
11470
11471
11472 fi
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11474 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11475 fi
11476
11477 CPPFLAGS="$save_CPPFLAGS"
11478 LDFLAGS="$save_LDFLAGS"
11479 LIBS="$save_LIBS"
11480 ;;
11481 esac
11482
11483 case $lt_cv_dlopen_self in
11484 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11485 *) enable_dlopen_self=unknown ;;
11486 esac
11487
11488 case $lt_cv_dlopen_self_static in
11489 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11490 *) enable_dlopen_self_static=unknown ;;
11491 esac
11492 fi
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510 striplib=
11511 old_striplib=
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11513 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11514 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11515 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11516 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11519 else
11520 # FIXME - insert some real tests, host_os isn't really good enough
11521 case $host_os in
11522 darwin*)
11523 if test -n "$STRIP" ; then
11524 striplib="$STRIP -x"
11525 old_striplib="$STRIP -S"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11527 $as_echo "yes" >&6; }
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11531 fi
11532 ;;
11533 *)
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11536 ;;
11537 esac
11538 fi
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551 # Report which library types will actually be built
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11553 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11555 $as_echo "$can_build_shared" >&6; }
11556
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11558 $as_echo_n "checking whether to build shared libraries... " >&6; }
11559 test "$can_build_shared" = "no" && enable_shared=no
11560
11561 # On AIX, shared libraries and static libraries use the same namespace, and
11562 # are all built from PIC.
11563 case $host_os in
11564 aix3*)
11565 test "$enable_shared" = yes && enable_static=no
11566 if test -n "$RANLIB"; then
11567 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11568 postinstall_cmds='$RANLIB $lib'
11569 fi
11570 ;;
11571
11572 aix[4-9]*)
11573 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11574 test "$enable_shared" = yes && enable_static=no
11575 fi
11576 ;;
11577 esac
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11579 $as_echo "$enable_shared" >&6; }
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11582 $as_echo_n "checking whether to build static libraries... " >&6; }
11583 # Make sure either enable_shared or enable_static is yes.
11584 test "$enable_shared" = yes || enable_static=yes
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11586 $as_echo "$enable_static" >&6; }
11587
11588
11589
11590
11591 fi
11592 ac_ext=c
11593 ac_cpp='$CPP $CPPFLAGS'
11594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11597
11598 CC="$lt_save_CC"
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614 ac_config_commands="$ac_config_commands libtool"
11615
11616
11617
11618
11619 # Only expand once:
11620
11621
11622
11623
11624 # Check whether --enable-silent-rules was given.
11625 if test "${enable_silent_rules+set}" = set; then :
11626 enableval=$enable_silent_rules;
11627 fi
11628
11629 case $enable_silent_rules in # (((
11630 yes) AM_DEFAULT_VERBOSITY=0;;
11631 no) AM_DEFAULT_VERBOSITY=1;;
11632 *) AM_DEFAULT_VERBOSITY=0;;
11633 esac
11634 am_make=${MAKE-make}
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11636 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11637 if ${am_cv_make_support_nested_variables+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 if $as_echo 'TRUE=$(BAR$(V))
11641 BAR0=false
11642 BAR1=true
11643 V=1
11644 am__doit:
11645 @$(TRUE)
11646 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11647 am_cv_make_support_nested_variables=yes
11648 else
11649 am_cv_make_support_nested_variables=no
11650 fi
11651 fi
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11653 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11654 if test $am_cv_make_support_nested_variables = yes; then
11655 AM_V='$(V)'
11656 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11657 else
11658 AM_V=$AM_DEFAULT_VERBOSITY
11659 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11660 fi
11661 AM_BACKSLASH='\'
11662
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11665 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11666 if ${ac_cv_prog_cc_c99+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 ac_cv_prog_cc_c99=no
11670 ac_save_CC=$CC
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673 #include <stdarg.h>
11674 #include <stdbool.h>
11675 #include <stdlib.h>
11676 #include <wchar.h>
11677 #include <stdio.h>
11678
11679 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11680 #define debug(...) fprintf (stderr, __VA_ARGS__)
11681 #define showlist(...) puts (#__VA_ARGS__)
11682 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11683 static void
11684 test_varargs_macros (void)
11685 {
11686 int x = 1234;
11687 int y = 5678;
11688 debug ("Flag");
11689 debug ("X = %d\n", x);
11690 showlist (The first, second, and third items.);
11691 report (x>y, "x is %d but y is %d", x, y);
11692 }
11693
11694 // Check long long types.
11695 #define BIG64 18446744073709551615ull
11696 #define BIG32 4294967295ul
11697 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11698 #if !BIG_OK
11699 your preprocessor is broken;
11700 #endif
11701 #if BIG_OK
11702 #else
11703 your preprocessor is broken;
11704 #endif
11705 static long long int bignum = -9223372036854775807LL;
11706 static unsigned long long int ubignum = BIG64;
11707
11708 struct incomplete_array
11709 {
11710 int datasize;
11711 double data[];
11712 };
11713
11714 struct named_init {
11715 int number;
11716 const wchar_t *name;
11717 double average;
11718 };
11719
11720 typedef const char *ccp;
11721
11722 static inline int
11723 test_restrict (ccp restrict text)
11724 {
11725 // See if C++-style comments work.
11726 // Iterate through items via the restricted pointer.
11727 // Also check for declarations in for loops.
11728 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11729 continue;
11730 return 0;
11731 }
11732
11733 // Check varargs and va_copy.
11734 static void
11735 test_varargs (const char *format, ...)
11736 {
11737 va_list args;
11738 va_start (args, format);
11739 va_list args_copy;
11740 va_copy (args_copy, args);
11741
11742 const char *str;
11743 int number;
11744 float fnumber;
11745
11746 while (*format)
11747 {
11748 switch (*format++)
11749 {
11750 case 's': // string
11751 str = va_arg (args_copy, const char *);
11752 break;
11753 case 'd': // int
11754 number = va_arg (args_copy, int);
11755 break;
11756 case 'f': // float
11757 fnumber = va_arg (args_copy, double);
11758 break;
11759 default:
11760 break;
11761 }
11762 }
11763 va_end (args_copy);
11764 va_end (args);
11765 }
11766
11767 int
11768 main ()
11769 {
11770
11771 // Check bool.
11772 _Bool success = false;
11773
11774 // Check restrict.
11775 if (test_restrict ("String literal") == 0)
11776 success = true;
11777 char *restrict newvar = "Another string";
11778
11779 // Check varargs.
11780 test_varargs ("s, d' f .", "string", 65, 34.234);
11781 test_varargs_macros ();
11782
11783 // Check flexible array members.
11784 struct incomplete_array *ia =
11785 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11786 ia->datasize = 10;
11787 for (int i = 0; i < ia->datasize; ++i)
11788 ia->data[i] = i * 1.234;
11789
11790 // Check named initializers.
11791 struct named_init ni = {
11792 .number = 34,
11793 .name = L"Test wide string",
11794 .average = 543.34343,
11795 };
11796
11797 ni.number = 58;
11798
11799 int dynamic_array[ni.number];
11800 dynamic_array[ni.number - 1] = 543;
11801
11802 // work around unused variable warnings
11803 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11804 || dynamic_array[ni.number - 1] != 543);
11805
11806 ;
11807 return 0;
11808 }
11809 _ACEOF
11810 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11811 do
11812 CC="$ac_save_CC $ac_arg"
11813 if ac_fn_c_try_compile "$LINENO"; then :
11814 ac_cv_prog_cc_c99=$ac_arg
11815 fi
11816 rm -f core conftest.err conftest.$ac_objext
11817 test "x$ac_cv_prog_cc_c99" != "xno" && break
11818 done
11819 rm -f conftest.$ac_ext
11820 CC=$ac_save_CC
11821
11822 fi
11823 # AC_CACHE_VAL
11824 case "x$ac_cv_prog_cc_c99" in
11825 x)
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11827 $as_echo "none needed" >&6; } ;;
11828 xno)
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11830 $as_echo "unsupported" >&6; } ;;
11831 *)
11832 CC="$CC $ac_cv_prog_cc_c99"
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11834 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11835 esac
11836 if test "x$ac_cv_prog_cc_c99" != xno; then :
11837
11838 fi
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11852 if test -n "$ac_tool_prefix"; then
11853 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11854 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 case $PKG_CONFIG in
11861 [\\/]* | ?:[\\/]*)
11862 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11863 ;;
11864 *)
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11867 do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876 done
11877 done
11878 IFS=$as_save_IFS
11879
11880 ;;
11881 esac
11882 fi
11883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11884 if test -n "$PKG_CONFIG"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11886 $as_echo "$PKG_CONFIG" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893 fi
11894 if test -z "$ac_cv_path_PKG_CONFIG"; then
11895 ac_pt_PKG_CONFIG=$PKG_CONFIG
11896 # Extract the first word of "pkg-config", so it can be a program name with args.
11897 set dummy pkg-config; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 case $ac_pt_PKG_CONFIG in
11904 [\\/]* | ?:[\\/]*)
11905 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11906 ;;
11907 *)
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11918 fi
11919 done
11920 done
11921 IFS=$as_save_IFS
11922
11923 ;;
11924 esac
11925 fi
11926 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11927 if test -n "$ac_pt_PKG_CONFIG"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11929 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935 if test "x$ac_pt_PKG_CONFIG" = x; then
11936 PKG_CONFIG=""
11937 else
11938 case $cross_compiling:$ac_tool_warned in
11939 yes:)
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11942 ac_tool_warned=yes ;;
11943 esac
11944 PKG_CONFIG=$ac_pt_PKG_CONFIG
11945 fi
11946 else
11947 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11948 fi
11949
11950 fi
11951 if test -n "$PKG_CONFIG"; then
11952 _pkg_min_version=0.9.0
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11954 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11955 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11957 $as_echo "yes" >&6; }
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11961 PKG_CONFIG=""
11962 fi
11963 fi
11964
11965 pkg_failed=no
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFITSIO" >&5
11967 $as_echo_n "checking for CFITSIO... " >&6; }
11968
11969 if test -n "$CFITSIO_CFLAGS"; then
11970 pkg_cv_CFITSIO_CFLAGS="$CFITSIO_CFLAGS"
11971 elif test -n "$PKG_CONFIG"; then
11972 if test -n "$PKG_CONFIG" && \
11973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cfitsio\""; } >&5
11974 ($PKG_CONFIG --exists --print-errors "cfitsio") 2>&5
11975 ac_status=$?
11976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11977 test $ac_status = 0; }; then
11978 pkg_cv_CFITSIO_CFLAGS=`$PKG_CONFIG --cflags "cfitsio" 2>/dev/null`
11979 test "x$?" != "x0" && pkg_failed=yes
11980 else
11981 pkg_failed=yes
11982 fi
11983 else
11984 pkg_failed=untried
11985 fi
11986 if test -n "$CFITSIO_LIBS"; then
11987 pkg_cv_CFITSIO_LIBS="$CFITSIO_LIBS"
11988 elif test -n "$PKG_CONFIG"; then
11989 if test -n "$PKG_CONFIG" && \
11990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cfitsio\""; } >&5
11991 ($PKG_CONFIG --exists --print-errors "cfitsio") 2>&5
11992 ac_status=$?
11993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994 test $ac_status = 0; }; then
11995 pkg_cv_CFITSIO_LIBS=`$PKG_CONFIG --libs "cfitsio" 2>/dev/null`
11996 test "x$?" != "x0" && pkg_failed=yes
11997 else
11998 pkg_failed=yes
11999 fi
12000 else
12001 pkg_failed=untried
12002 fi
12003
12004
12005
12006 if test $pkg_failed = yes; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009
12010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12011 _pkg_short_errors_supported=yes
12012 else
12013 _pkg_short_errors_supported=no
12014 fi
12015 if test $_pkg_short_errors_supported = yes; then
12016 CFITSIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cfitsio" 2>&1`
12017 else
12018 CFITSIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cfitsio" 2>&1`
12019 fi
12020 # Put the nasty error message in config.log where it belongs
12021 echo "$CFITSIO_PKG_ERRORS" >&5
12022
12023 CFITSIO_LIBS=-lcfitsio
12024 elif test $pkg_failed = untried; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12027 CFITSIO_LIBS=-lcfitsio
12028 else
12029 CFITSIO_CFLAGS=$pkg_cv_CFITSIO_CFLAGS
12030 CFITSIO_LIBS=$pkg_cv_CFITSIO_LIBS
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12032 $as_echo "yes" >&6; }
12033
12034 fi
12035 CFITSIO_LIBS="$CFITSIO_LIBS -lm"
12036
12037
12038 save_CFLAGS=$CFLAGS
12039 save_LIBS=$LIBS
12040 CFLAGS="$CFLAGS $CFITSIO_CFLAGS"
12041 LIBS="$LIBS $CFITSIO_LIBS"
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffgnrwll in -lcfitsio" >&5
12043 $as_echo_n "checking for ffgnrwll in -lcfitsio... " >&6; }
12044 if ${ac_cv_lib_cfitsio_ffgnrwll+:} false; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-lcfitsio $LIBS"
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char ffgnrwll ();
12059 int
12060 main ()
12061 {
12062 return ffgnrwll ();
12063 ;
12064 return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_link "$LINENO"; then :
12068 ac_cv_lib_cfitsio_ffgnrwll=yes
12069 else
12070 ac_cv_lib_cfitsio_ffgnrwll=no
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffgnrwll" >&5
12077 $as_echo "$ac_cv_lib_cfitsio_ffgnrwll" >&6; }
12078 if test "x$ac_cv_lib_cfitsio_ffgnrwll" = xyes; then :
12079 :
12080 else
12081 as_fn_error $? "could not find the cfitsio library" "$LINENO" 5
12082 fi
12083
12084 for ac_header in fitsio.h
12085 do :
12086 ac_fn_c_check_header_mongrel "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default"
12087 if test "x$ac_cv_header_fitsio_h" = xyes; then :
12088 cat >>confdefs.h <<_ACEOF
12089 #define HAVE_FITSIO_H 1
12090 _ACEOF
12091 :
12092 else
12093 as_fn_error $? "could not find the cfitsio header file" "$LINENO" 5
12094 fi
12095
12096 done
12097
12098 CFLAGS=$save_CFLAGS
12099 LIBS=$save_LIBS
12100
12101 $as_echo "#define ENABLE_FITSIO 1" >>confdefs.h
12102
12103
12104
12105
12106
12107 # we need the expanded forms...
12108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12110
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
12112 $as_echo_n "checking our pkgconfig libname... " >&6; }
12113 test ".$ax_create_pkgconfig_libname" != "." || \
12114 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
12115 test ".$ax_create_pkgconfig_libname" != "." || \
12116 ax_create_pkgconfig_libname="$PACKAGE"
12117 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
12118 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
12120 $as_echo "$ax_create_pkgconfig_libname" >&6; }
12121
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
12123 $as_echo_n "checking our pkgconfig version... " >&6; }
12124 test ".$ax_create_pkgconfig_version" != "." || \
12125 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
12126 test ".$ax_create_pkgconfig_version" != "." || \
12127 ax_create_pkgconfig_version="$VERSION"
12128 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
12129 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
12131 $as_echo "$ax_create_pkgconfig_version" >&6; }
12132
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
12134 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
12135 test ".$pkgconfig_libdir" = "." && \
12136 pkgconfig_libdir='${libdir}/pkgconfig'
12137 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
12138 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
12139 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
12141 $as_echo "$pkgconfig_libdir" >&6; }
12142 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
12144 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
12145
12146
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
12148 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
12149 test ".$pkgconfig_libfile" != "." || \
12150 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
12151 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
12152 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
12154 $as_echo "$pkgconfig_libfile" >&6; }
12155 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
12157 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
12158
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
12161 $as_echo_n "checking our package / suffix... " >&6; }
12162 ax_create_pkgconfig_suffix="$program_suffix"
12163 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
12165 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
12166
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
12168 $as_echo_n "checking our pkgconfig description... " >&6; }
12169 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
12170 test ".$ax_create_pkgconfig_description" != "." || \
12171 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
12172 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
12173 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
12175 $as_echo "$ax_create_pkgconfig_description" >&6; }
12176
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
12178 $as_echo_n "checking our pkgconfig requires... " >&6; }
12179 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
12180 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
12181 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
12183 $as_echo "$ax_create_pkgconfig_requires" >&6; }
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
12186 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
12187 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
12188 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
12189 ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS"
12190 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
12191 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
12193 $as_echo "$ax_create_pkgconfig_libs" >&6; }
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
12196 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
12197 ax_create_pkgconfig_cppflags="$CFITSIO_CFLAGS"
12198 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
12199 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
12201 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
12202
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
12204 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
12205 ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS"
12206 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
12207 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
12209 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
12210
12211 test ".$ax_create_pkgconfig_generate" != "." || \
12212 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
12213 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
12214 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
12215 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
12217 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
12218
12219 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
12220 ax_create_pkgconfig_src_libdir=`pwd`
12221 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
12222 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12223 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
12224 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
12225 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
12226 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
12227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12228 s//\1/
12229 q
12230 }
12231 /^X\(\/\/\)[^/].*/{
12232 s//\1/
12233 q
12234 }
12235 /^X\(\/\/\)$/{
12236 s//\1/
12237 q
12238 }
12239 /^X\(\/\).*/{
12240 s//\1/
12241 q
12242 }
12243 s/.*/./; q'`
12244 test ! -d $ax_create_pkgconfig_src_libdir/src || \
12245 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
12246 case ".$objdir" in
12247 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
12249 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
12250 fi
12251
12252 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
12253 ax_create_pkgconfig_src_headers=`pwd`
12254 v="$ac_top_srcdir" ;
12255 test ".$v" != "." || v="$ax_spec_dir"
12256 test ".$v" != "." || v="$srcdir"
12257 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
12258 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
12259 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12260 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
12261 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
12262 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
12263 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
12264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12265 s//\1/
12266 q
12267 }
12268 /^X\(\/\/\)[^/].*/{
12269 s//\1/
12270 q
12271 }
12272 /^X\(\/\/\)$/{
12273 s//\1/
12274 q
12275 }
12276 /^X\(\/\).*/{
12277 s//\1/
12278 q
12279 }
12280 s/.*/./; q'`
12281 test ! -d $ax_create_pkgconfig_src_headers/include || \
12282 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
12284 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
12285 fi
12286
12287
12288 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
12289
12290
12291 ac_config_files="$ac_config_files Makefile"
12292
12293 cat >confcache <<\_ACEOF
12294 # This file is a shell script that caches the results of configure
12295 # tests run on this system so they can be shared between configure
12296 # scripts and configure runs, see configure's option --config-cache.
12297 # It is not useful on other systems. If it contains results you don't
12298 # want to keep, you may remove or edit it.
12299 #
12300 # config.status only pays attention to the cache file if you give it
12301 # the --recheck option to rerun configure.
12302 #
12303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12305 # following values.
12306
12307 _ACEOF
12308
12309 # The following way of writing the cache mishandles newlines in values,
12310 # but we know of no workaround that is simple, portable, and efficient.
12311 # So, we kill variables containing newlines.
12312 # Ultrix sh set writes to stderr and can't be redirected directly,
12313 # and sets the high bit in the cache file unless we assign to the vars.
12314 (
12315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12316 eval ac_val=\$$ac_var
12317 case $ac_val in #(
12318 *${as_nl}*)
12319 case $ac_var in #(
12320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12322 esac
12323 case $ac_var in #(
12324 _ | IFS | as_nl) ;; #(
12325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12326 *) { eval $ac_var=; unset $ac_var;} ;;
12327 esac ;;
12328 esac
12329 done
12330
12331 (set) 2>&1 |
12332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12333 *${as_nl}ac_space=\ *)
12334 # `set' does not quote correctly, so add quotes: double-quote
12335 # substitution turns \\\\ into \\, and sed turns \\ into \.
12336 sed -n \
12337 "s/'/'\\\\''/g;
12338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12339 ;; #(
12340 *)
12341 # `set' quotes correctly as required by POSIX, so do not add quotes.
12342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12343 ;;
12344 esac |
12345 sort
12346 ) |
12347 sed '
12348 /^ac_cv_env_/b end
12349 t clear
12350 :clear
12351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12352 t end
12353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12354 :end' >>confcache
12355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12356 if test -w "$cache_file"; then
12357 if test "x$cache_file" != "x/dev/null"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12359 $as_echo "$as_me: updating cache $cache_file" >&6;}
12360 if test ! -f "$cache_file" || test -h "$cache_file"; then
12361 cat confcache >"$cache_file"
12362 else
12363 case $cache_file in #(
12364 */* | ?:*)
12365 mv -f confcache "$cache_file"$$ &&
12366 mv -f "$cache_file"$$ "$cache_file" ;; #(
12367 *)
12368 mv -f confcache "$cache_file" ;;
12369 esac
12370 fi
12371 fi
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12374 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12375 fi
12376 fi
12377 rm -f confcache
12378
12379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12380 # Let make expand exec_prefix.
12381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12382
12383 # Transform confdefs.h into DEFS.
12384 # Protect against shell expansion while executing Makefile rules.
12385 # Protect against Makefile macro expansion.
12386 #
12387 # If the first sed substitution is executed (which looks for macros that
12388 # take arguments), then branch to the quote section. Otherwise,
12389 # look for a macro that doesn't take arguments.
12390 ac_script='
12391 :mline
12392 /\\$/{
12393 N
12394 s,\\\n,,
12395 b mline
12396 }
12397 t clear
12398 :clear
12399 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12400 t quote
12401 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12402 t quote
12403 b any
12404 :quote
12405 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12406 s/\[/\\&/g
12407 s/\]/\\&/g
12408 s/\$/$$/g
12409 H
12410 :any
12411 ${
12412 g
12413 s/^\n//
12414 s/\n/ /g
12415 p
12416 }
12417 '
12418 DEFS=`sed -n "$ac_script" confdefs.h`
12419
12420
12421 ac_libobjs=
12422 ac_ltlibobjs=
12423 U=
12424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12425 # 1. Remove the extension, and $U if already installed.
12426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12429 # will be set to the directory where LIBOBJS objects are built.
12430 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12431 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12432 done
12433 LIBOBJS=$ac_libobjs
12434
12435 LTLIBOBJS=$ac_ltlibobjs
12436
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12439 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12440 if test -n "$am_sleep_pid"; then
12441 # Hide warnings about reused PIDs.
12442 wait $am_sleep_pid 2>/dev/null
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12445 $as_echo "done" >&6; }
12446 if test -n "$EXEEXT"; then
12447 am__EXEEXT_TRUE=
12448 am__EXEEXT_FALSE='#'
12449 else
12450 am__EXEEXT_TRUE='#'
12451 am__EXEEXT_FALSE=
12452 fi
12453
12454 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12455 as_fn_error $? "conditional \"AMDEP\" was never defined.
12456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12457 fi
12458 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12459 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12461 fi
12462
12463 : "${CONFIG_STATUS=./config.status}"
12464 ac_write_fail=0
12465 ac_clean_files_save=$ac_clean_files
12466 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12468 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12469 as_write_fail=0
12470 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12471 #! $SHELL
12472 # Generated by $as_me.
12473 # Run this file to recreate the current configuration.
12474 # Compiler output produced by configure, useful for debugging
12475 # configure, is in config.log if it exists.
12476
12477 debug=false
12478 ac_cs_recheck=false
12479 ac_cs_silent=false
12480
12481 SHELL=\${CONFIG_SHELL-$SHELL}
12482 export SHELL
12483 _ASEOF
12484 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12485 ## -------------------- ##
12486 ## M4sh Initialization. ##
12487 ## -------------------- ##
12488
12489 # Be more Bourne compatible
12490 DUALCASE=1; export DUALCASE # for MKS sh
12491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12492 emulate sh
12493 NULLCMD=:
12494 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12495 # is contrary to our usage. Disable this feature.
12496 alias -g '${1+"$@"}'='"$@"'
12497 setopt NO_GLOB_SUBST
12498 else
12499 case `(set -o) 2>/dev/null` in #(
12500 *posix*) :
12501 set -o posix ;; #(
12502 *) :
12503 ;;
12504 esac
12505 fi
12506
12507
12508 as_nl='
12509 '
12510 export as_nl
12511 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12512 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12513 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12514 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12515 # Prefer a ksh shell builtin over an external printf program on Solaris,
12516 # but without wasting forks for bash or zsh.
12517 if test -z "$BASH_VERSION$ZSH_VERSION" \
12518 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12519 as_echo='print -r --'
12520 as_echo_n='print -rn --'
12521 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12522 as_echo='printf %s\n'
12523 as_echo_n='printf %s'
12524 else
12525 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12526 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12527 as_echo_n='/usr/ucb/echo -n'
12528 else
12529 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12530 as_echo_n_body='eval
12531 arg=$1;
12532 case $arg in #(
12533 *"$as_nl"*)
12534 expr "X$arg" : "X\\(.*\\)$as_nl";
12535 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12536 esac;
12537 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12538 '
12539 export as_echo_n_body
12540 as_echo_n='sh -c $as_echo_n_body as_echo'
12541 fi
12542 export as_echo_body
12543 as_echo='sh -c $as_echo_body as_echo'
12544 fi
12545
12546 # The user is always right.
12547 if test "${PATH_SEPARATOR+set}" != set; then
12548 PATH_SEPARATOR=:
12549 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12550 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12551 PATH_SEPARATOR=';'
12552 }
12553 fi
12554
12555
12556 # IFS
12557 # We need space, tab and new line, in precisely that order. Quoting is
12558 # there to prevent editors from complaining about space-tab.
12559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12560 # splitting by setting IFS to empty value.)
12561 IFS=" "" $as_nl"
12562
12563 # Find who we are. Look in the path if we contain no directory separator.
12564 as_myself=
12565 case $0 in #((
12566 *[\\/]* ) as_myself=$0 ;;
12567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12573 done
12574 IFS=$as_save_IFS
12575
12576 ;;
12577 esac
12578 # We did not find ourselves, most probably we were run as `sh COMMAND'
12579 # in which case we are not to be found in the path.
12580 if test "x$as_myself" = x; then
12581 as_myself=$0
12582 fi
12583 if test ! -f "$as_myself"; then
12584 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12585 exit 1
12586 fi
12587
12588 # Unset variables that we do not need and which cause bugs (e.g. in
12589 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12590 # suppresses any "Segmentation fault" message there. '((' could
12591 # trigger a bug in pdksh 5.2.14.
12592 for as_var in BASH_ENV ENV MAIL MAILPATH
12593 do eval test x\${$as_var+set} = xset \
12594 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12595 done
12596 PS1='$ '
12597 PS2='> '
12598 PS4='+ '
12599
12600 # NLS nuisances.
12601 LC_ALL=C
12602 export LC_ALL
12603 LANGUAGE=C
12604 export LANGUAGE
12605
12606 # CDPATH.
12607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12608
12609
12610 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12611 # ----------------------------------------
12612 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12613 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12614 # script with STATUS, using 1 if that was 0.
12615 as_fn_error ()
12616 {
12617 as_status=$1; test $as_status -eq 0 && as_status=1
12618 if test "$4"; then
12619 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12620 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12621 fi
12622 $as_echo "$as_me: error: $2" >&2
12623 as_fn_exit $as_status
12624 } # as_fn_error
12625
12626
12627 # as_fn_set_status STATUS
12628 # -----------------------
12629 # Set $? to STATUS, without forking.
12630 as_fn_set_status ()
12631 {
12632 return $1
12633 } # as_fn_set_status
12634
12635 # as_fn_exit STATUS
12636 # -----------------
12637 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12638 as_fn_exit ()
12639 {
12640 set +e
12641 as_fn_set_status $1
12642 exit $1
12643 } # as_fn_exit
12644
12645 # as_fn_unset VAR
12646 # ---------------
12647 # Portably unset VAR.
12648 as_fn_unset ()
12649 {
12650 { eval $1=; unset $1;}
12651 }
12652 as_unset=as_fn_unset
12653 # as_fn_append VAR VALUE
12654 # ----------------------
12655 # Append the text in VALUE to the end of the definition contained in VAR. Take
12656 # advantage of any shell optimizations that allow amortized linear growth over
12657 # repeated appends, instead of the typical quadratic growth present in naive
12658 # implementations.
12659 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12660 eval 'as_fn_append ()
12661 {
12662 eval $1+=\$2
12663 }'
12664 else
12665 as_fn_append ()
12666 {
12667 eval $1=\$$1\$2
12668 }
12669 fi # as_fn_append
12670
12671 # as_fn_arith ARG...
12672 # ------------------
12673 # Perform arithmetic evaluation on the ARGs, and store the result in the
12674 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12675 # must be portable across $(()) and expr.
12676 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12677 eval 'as_fn_arith ()
12678 {
12679 as_val=$(( $* ))
12680 }'
12681 else
12682 as_fn_arith ()
12683 {
12684 as_val=`expr "$@" || test $? -eq 1`
12685 }
12686 fi # as_fn_arith
12687
12688
12689 if expr a : '\(a\)' >/dev/null 2>&1 &&
12690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12691 as_expr=expr
12692 else
12693 as_expr=false
12694 fi
12695
12696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12697 as_basename=basename
12698 else
12699 as_basename=false
12700 fi
12701
12702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12703 as_dirname=dirname
12704 else
12705 as_dirname=false
12706 fi
12707
12708 as_me=`$as_basename -- "$0" ||
12709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12710 X"$0" : 'X\(//\)$' \| \
12711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12712 $as_echo X/"$0" |
12713 sed '/^.*\/\([^/][^/]*\)\/*$/{
12714 s//\1/
12715 q
12716 }
12717 /^X\/\(\/\/\)$/{
12718 s//\1/
12719 q
12720 }
12721 /^X\/\(\/\).*/{
12722 s//\1/
12723 q
12724 }
12725 s/.*/./; q'`
12726
12727 # Avoid depending upon Character Ranges.
12728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12731 as_cr_digits='0123456789'
12732 as_cr_alnum=$as_cr_Letters$as_cr_digits
12733
12734 ECHO_C= ECHO_N= ECHO_T=
12735 case `echo -n x` in #(((((
12736 -n*)
12737 case `echo 'xy\c'` in
12738 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12739 xy) ECHO_C='\c';;
12740 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12741 ECHO_T=' ';;
12742 esac;;
12743 *)
12744 ECHO_N='-n';;
12745 esac
12746
12747 rm -f conf$$ conf$$.exe conf$$.file
12748 if test -d conf$$.dir; then
12749 rm -f conf$$.dir/conf$$.file
12750 else
12751 rm -f conf$$.dir
12752 mkdir conf$$.dir 2>/dev/null
12753 fi
12754 if (echo >conf$$.file) 2>/dev/null; then
12755 if ln -s conf$$.file conf$$ 2>/dev/null; then
12756 as_ln_s='ln -s'
12757 # ... but there are two gotchas:
12758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12760 # In both cases, we have to default to `cp -pR'.
12761 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12762 as_ln_s='cp -pR'
12763 elif ln conf$$.file conf$$ 2>/dev/null; then
12764 as_ln_s=ln
12765 else
12766 as_ln_s='cp -pR'
12767 fi
12768 else
12769 as_ln_s='cp -pR'
12770 fi
12771 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12772 rmdir conf$$.dir 2>/dev/null
12773
12774
12775 # as_fn_mkdir_p
12776 # -------------
12777 # Create "$as_dir" as a directory, including parents if necessary.
12778 as_fn_mkdir_p ()
12779 {
12780
12781 case $as_dir in #(
12782 -*) as_dir=./$as_dir;;
12783 esac
12784 test -d "$as_dir" || eval $as_mkdir_p || {
12785 as_dirs=
12786 while :; do
12787 case $as_dir in #(
12788 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12789 *) as_qdir=$as_dir;;
12790 esac
12791 as_dirs="'$as_qdir' $as_dirs"
12792 as_dir=`$as_dirname -- "$as_dir" ||
12793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12794 X"$as_dir" : 'X\(//\)[^/]' \| \
12795 X"$as_dir" : 'X\(//\)$' \| \
12796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12797 $as_echo X"$as_dir" |
12798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12799 s//\1/
12800 q
12801 }
12802 /^X\(\/\/\)[^/].*/{
12803 s//\1/
12804 q
12805 }
12806 /^X\(\/\/\)$/{
12807 s//\1/
12808 q
12809 }
12810 /^X\(\/\).*/{
12811 s//\1/
12812 q
12813 }
12814 s/.*/./; q'`
12815 test -d "$as_dir" && break
12816 done
12817 test -z "$as_dirs" || eval "mkdir $as_dirs"
12818 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12819
12820
12821 } # as_fn_mkdir_p
12822 if mkdir -p . 2>/dev/null; then
12823 as_mkdir_p='mkdir -p "$as_dir"'
12824 else
12825 test -d ./-p && rmdir ./-p
12826 as_mkdir_p=false
12827 fi
12828
12829
12830 # as_fn_executable_p FILE
12831 # -----------------------
12832 # Test if FILE is an executable regular file.
12833 as_fn_executable_p ()
12834 {
12835 test -f "$1" && test -x "$1"
12836 } # as_fn_executable_p
12837 as_test_x='test -x'
12838 as_executable_p=as_fn_executable_p
12839
12840 # Sed expression to map a string onto a valid CPP name.
12841 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12842
12843 # Sed expression to map a string onto a valid variable name.
12844 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12845
12846
12847 exec 6>&1
12848 ## ----------------------------------- ##
12849 ## Main body of $CONFIG_STATUS script. ##
12850 ## ----------------------------------- ##
12851 _ASEOF
12852 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12853
12854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12855 # Save the log message, to keep $0 and so on meaningful, and to
12856 # report actual input values of CONFIG_FILES etc. instead of their
12857 # values after options handling.
12858 ac_log="
12859 This file was extended by chealpix $as_me 3.30.0, which was
12860 generated by GNU Autoconf 2.69. Invocation command line was
12861
12862 CONFIG_FILES = $CONFIG_FILES
12863 CONFIG_HEADERS = $CONFIG_HEADERS
12864 CONFIG_LINKS = $CONFIG_LINKS
12865 CONFIG_COMMANDS = $CONFIG_COMMANDS
12866 $ $0 $@
12867
12868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12869 "
12870
12871 _ACEOF
12872
12873 case $ac_config_files in *"
12874 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12875 esac
12876
12877
12878
12879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12880 # Files that config.status was made for.
12881 config_files="$ac_config_files"
12882 config_commands="$ac_config_commands"
12883
12884 _ACEOF
12885
12886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12887 ac_cs_usage="\
12888 \`$as_me' instantiates files and other configuration actions
12889 from templates according to the current configuration. Unless the files
12890 and actions are specified as TAGs, all are instantiated by default.
12891
12892 Usage: $0 [OPTION]... [TAG]...
12893
12894 -h, --help print this help, then exit
12895 -V, --version print version number and configuration settings, then exit
12896 --config print configuration, then exit
12897 -q, --quiet, --silent
12898 do not print progress messages
12899 -d, --debug don't remove temporary files
12900 --recheck update $as_me by reconfiguring in the same conditions
12901 --file=FILE[:TEMPLATE]
12902 instantiate the configuration file FILE
12903
12904 Configuration files:
12905 $config_files
12906
12907 Configuration commands:
12908 $config_commands
12909
12910 Report bugs to the package provider."
12911
12912 _ACEOF
12913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12914 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12915 ac_cs_version="\\
12916 chealpix config.status 3.30.0
12917 configured by $0, generated by GNU Autoconf 2.69,
12918 with options \\"\$ac_cs_config\\"
12919
12920 Copyright (C) 2012 Free Software Foundation, Inc.
12921 This config.status script is free software; the Free Software Foundation
12922 gives unlimited permission to copy, distribute and modify it."
12923
12924 ac_pwd='$ac_pwd'
12925 srcdir='$srcdir'
12926 INSTALL='$INSTALL'
12927 MKDIR_P='$MKDIR_P'
12928 AWK='$AWK'
12929 test -n "\$AWK" || AWK=awk
12930 _ACEOF
12931
12932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12933 # The default lists apply if the user does not specify any file.
12934 ac_need_defaults=:
12935 while test $# != 0
12936 do
12937 case $1 in
12938 --*=?*)
12939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12940 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12941 ac_shift=:
12942 ;;
12943 --*=)
12944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12945 ac_optarg=
12946 ac_shift=:
12947 ;;
12948 *)
12949 ac_option=$1
12950 ac_optarg=$2
12951 ac_shift=shift
12952 ;;
12953 esac
12954
12955 case $ac_option in
12956 # Handling of the options.
12957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12958 ac_cs_recheck=: ;;
12959 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12960 $as_echo "$ac_cs_version"; exit ;;
12961 --config | --confi | --conf | --con | --co | --c )
12962 $as_echo "$ac_cs_config"; exit ;;
12963 --debug | --debu | --deb | --de | --d | -d )
12964 debug=: ;;
12965 --file | --fil | --fi | --f )
12966 $ac_shift
12967 case $ac_optarg in
12968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12969 '') as_fn_error $? "missing file argument" ;;
12970 esac
12971 as_fn_append CONFIG_FILES " '$ac_optarg'"
12972 ac_need_defaults=false;;
12973 --he | --h | --help | --hel | -h )
12974 $as_echo "$ac_cs_usage"; exit ;;
12975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12977 ac_cs_silent=: ;;
12978
12979 # This is an error.
12980 -*) as_fn_error $? "unrecognized option: \`$1'
12981 Try \`$0 --help' for more information." ;;
12982
12983 *) as_fn_append ac_config_targets " $1"
12984 ac_need_defaults=false ;;
12985
12986 esac
12987 shift
12988 done
12989
12990 ac_configure_extra_args=
12991
12992 if $ac_cs_silent; then
12993 exec 6>/dev/null
12994 ac_configure_extra_args="$ac_configure_extra_args --silent"
12995 fi
12996
12997 _ACEOF
12998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12999 if \$ac_cs_recheck; then
13000 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13001 shift
13002 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13003 CONFIG_SHELL='$SHELL'
13004 export CONFIG_SHELL
13005 exec "\$@"
13006 fi
13007
13008 _ACEOF
13009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13010 exec 5>>config.log
13011 {
13012 echo
13013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13014 ## Running $as_me. ##
13015 _ASBOX
13016 $as_echo "$ac_log"
13017 } >&5
13018
13019 _ACEOF
13020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13021 #
13022 # INIT-COMMANDS
13023 #
13024 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13025
13026
13027 # The HP-UX ksh and POSIX shell print the target directory to stdout
13028 # if CDPATH is set.
13029 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13030
13031 sed_quote_subst='$sed_quote_subst'
13032 double_quote_subst='$double_quote_subst'
13033 delay_variable_subst='$delay_variable_subst'
13034 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13035 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13036 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13037 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13038 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13039 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13040 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13041 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13042 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13043 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13044 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13045 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13046 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13047 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13048 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13049 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13050 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13051 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13052 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13053 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13054 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13055 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13056 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13057 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13058 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13059 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13060 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13061 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13062 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13063 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13064 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13065 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13066 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13067 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13068 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13069 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13070 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13071 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13072 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13073 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13074 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13075 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13076 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13077 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13078 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13079 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13080 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13081 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13082 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13083 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13084 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13085 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13086 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13087 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13088 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13089 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13090 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"`'
13091 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13092 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13093 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13094 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13095 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13096 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13097 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13098 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13099 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13100 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13101 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13102 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13103 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13104 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13105 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13106 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13107 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13108 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13109 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13110 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13111 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13112 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13113 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13114 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13115 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13116 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13117 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13118 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13119 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13120 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13121 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13122 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13123 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13124 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13125 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13126 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13127 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13128 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13129 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13130 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13131 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13132 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13133 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13134 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13135 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13136 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13137 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13138 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13139 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13140 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13141 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13142 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13143 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13144 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13145 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13146 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13147 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13148 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13149 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13150 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13151 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13152 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13153 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13154 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13155 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13156 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13157 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13158 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13159 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13160 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13161 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13162 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13163 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13164
13165 LTCC='$LTCC'
13166 LTCFLAGS='$LTCFLAGS'
13167 compiler='$compiler_DEFAULT'
13168
13169 # A function that is used when there is no print builtin or printf.
13170 func_fallback_echo ()
13171 {
13172 eval 'cat <<_LTECHO_EOF
13173 \$1
13174 _LTECHO_EOF'
13175 }
13176
13177 # Quote evaled strings.
13178 for var in SHELL \
13179 ECHO \
13180 PATH_SEPARATOR \
13181 SED \
13182 GREP \
13183 EGREP \
13184 FGREP \
13185 LD \
13186 NM \
13187 LN_S \
13188 lt_SP2NL \
13189 lt_NL2SP \
13190 reload_flag \
13191 OBJDUMP \
13192 deplibs_check_method \
13193 file_magic_cmd \
13194 file_magic_glob \
13195 want_nocaseglob \
13196 DLLTOOL \
13197 sharedlib_from_linklib_cmd \
13198 AR \
13199 AR_FLAGS \
13200 archiver_list_spec \
13201 STRIP \
13202 RANLIB \
13203 CC \
13204 CFLAGS \
13205 compiler \
13206 lt_cv_sys_global_symbol_pipe \
13207 lt_cv_sys_global_symbol_to_cdecl \
13208 lt_cv_sys_global_symbol_to_c_name_address \
13209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13210 nm_file_list_spec \
13211 lt_prog_compiler_no_builtin_flag \
13212 lt_prog_compiler_pic \
13213 lt_prog_compiler_wl \
13214 lt_prog_compiler_static \
13215 lt_cv_prog_compiler_c_o \
13216 need_locks \
13217 MANIFEST_TOOL \
13218 DSYMUTIL \
13219 NMEDIT \
13220 LIPO \
13221 OTOOL \
13222 OTOOL64 \
13223 shrext_cmds \
13224 export_dynamic_flag_spec \
13225 whole_archive_flag_spec \
13226 compiler_needs_object \
13227 with_gnu_ld \
13228 allow_undefined_flag \
13229 no_undefined_flag \
13230 hardcode_libdir_flag_spec \
13231 hardcode_libdir_separator \
13232 exclude_expsyms \
13233 include_expsyms \
13234 file_list_spec \
13235 variables_saved_for_relink \
13236 libname_spec \
13237 library_names_spec \
13238 soname_spec \
13239 install_override_mode \
13240 finish_eval \
13241 old_striplib \
13242 striplib; do
13243 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13244 *[\\\\\\\`\\"\\\$]*)
13245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13246 ;;
13247 *)
13248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13249 ;;
13250 esac
13251 done
13252
13253 # Double-quote double-evaled strings.
13254 for var in reload_cmds \
13255 old_postinstall_cmds \
13256 old_postuninstall_cmds \
13257 old_archive_cmds \
13258 extract_expsyms_cmds \
13259 old_archive_from_new_cmds \
13260 old_archive_from_expsyms_cmds \
13261 archive_cmds \
13262 archive_expsym_cmds \
13263 module_cmds \
13264 module_expsym_cmds \
13265 export_symbols_cmds \
13266 prelink_cmds \
13267 postlink_cmds \
13268 postinstall_cmds \
13269 postuninstall_cmds \
13270 finish_cmds \
13271 sys_lib_search_path_spec \
13272 sys_lib_dlsearch_path_spec; do
13273 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13274 *[\\\\\\\`\\"\\\$]*)
13275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13276 ;;
13277 *)
13278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13279 ;;
13280 esac
13281 done
13282
13283 ac_aux_dir='$ac_aux_dir'
13284 xsi_shell='$xsi_shell'
13285 lt_shell_append='$lt_shell_append'
13286
13287 # See if we are running on zsh, and set the options which allow our
13288 # commands through without removal of \ escapes INIT.
13289 if test -n "\${ZSH_VERSION+set}" ; then
13290 setopt NO_GLOB_SUBST
13291 fi
13292
13293
13294 PACKAGE='$PACKAGE'
13295 VERSION='$VERSION'
13296 TIMESTAMP='$TIMESTAMP'
13297 RM='$RM'
13298 ofile='$ofile'
13299
13300
13301
13302
13303 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
13304 pkgconfig_prefix='$prefix'
13305 pkgconfig_execprefix='$exec_prefix'
13306 pkgconfig_bindir='$bindir'
13307 pkgconfig_libdir='$libdir'
13308 pkgconfig_includedir='$includedir'
13309 pkgconfig_datarootdir='$datarootdir'
13310 pkgconfig_datadir='$datadir'
13311 pkgconfig_sysconfdir='$sysconfdir'
13312 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
13313 pkgconfig_package='$PACKAGE_NAME'
13314 pkgconfig_libname='$ax_create_pkgconfig_libname'
13315 pkgconfig_description='$ax_create_pkgconfig_description'
13316 pkgconfig_version='$ax_create_pkgconfig_version'
13317 pkgconfig_requires='$ax_create_pkgconfig_requires'
13318 pkgconfig_libs='$ax_create_pkgconfig_libs'
13319 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
13320 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
13321 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
13322 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
13323
13324
13325 _ACEOF
13326
13327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13328
13329 # Handling of arguments.
13330 for ac_config_target in $ac_config_targets
13331 do
13332 case $ac_config_target in
13333 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13334 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13335 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
13336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13337
13338 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13339 esac
13340 done
13341
13342
13343 # If the user did not use the arguments to specify the items to instantiate,
13344 # then the envvar interface is used. Set only those that are not.
13345 # We use the long form for the default assignment because of an extremely
13346 # bizarre bug on SunOS 4.1.3.
13347 if $ac_need_defaults; then
13348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13350 fi
13351
13352 # Have a temporary directory for convenience. Make it in the build tree
13353 # simply because there is no reason against having it here, and in addition,
13354 # creating and moving files from /tmp can sometimes cause problems.
13355 # Hook for its removal unless debugging.
13356 # Note that there is a small window in which the directory will not be cleaned:
13357 # after its creation but before its name has been assigned to `$tmp'.
13358 $debug ||
13359 {
13360 tmp= ac_tmp=
13361 trap 'exit_status=$?
13362 : "${ac_tmp:=$tmp}"
13363 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13364 ' 0
13365 trap 'as_fn_exit 1' 1 2 13 15
13366 }
13367 # Create a (secure) tmp directory for tmp files.
13368
13369 {
13370 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13371 test -d "$tmp"
13372 } ||
13373 {
13374 tmp=./conf$$-$RANDOM
13375 (umask 077 && mkdir "$tmp")
13376 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13377 ac_tmp=$tmp
13378
13379 # Set up the scripts for CONFIG_FILES section.
13380 # No need to generate them if there are no CONFIG_FILES.
13381 # This happens for instance with `./config.status config.h'.
13382 if test -n "$CONFIG_FILES"; then
13383
13384
13385 ac_cr=`echo X | tr X '\015'`
13386 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13387 # But we know of no other shell where ac_cr would be empty at this
13388 # point, so we can use a bashism as a fallback.
13389 if test "x$ac_cr" = x; then
13390 eval ac_cr=\$\'\\r\'
13391 fi
13392 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13393 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13394 ac_cs_awk_cr='\\r'
13395 else
13396 ac_cs_awk_cr=$ac_cr
13397 fi
13398
13399 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13400 _ACEOF
13401
13402
13403 {
13404 echo "cat >conf$$subs.awk <<_ACEOF" &&
13405 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13406 echo "_ACEOF"
13407 } >conf$$subs.sh ||
13408 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13409 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13410 ac_delim='%!_!# '
13411 for ac_last_try in false false false false false :; do
13412 . ./conf$$subs.sh ||
13413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13414
13415 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13416 if test $ac_delim_n = $ac_delim_num; then
13417 break
13418 elif $ac_last_try; then
13419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13420 else
13421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13422 fi
13423 done
13424 rm -f conf$$subs.sh
13425
13426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13427 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13428 _ACEOF
13429 sed -n '
13430 h
13431 s/^/S["/; s/!.*/"]=/
13432 p
13433 g
13434 s/^[^!]*!//
13435 :repl
13436 t repl
13437 s/'"$ac_delim"'$//
13438 t delim
13439 :nl
13440 h
13441 s/\(.\{148\}\)..*/\1/
13442 t more1
13443 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13444 p
13445 n
13446 b repl
13447 :more1
13448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13449 p
13450 g
13451 s/.\{148\}//
13452 t nl
13453 :delim
13454 h
13455 s/\(.\{148\}\)..*/\1/
13456 t more2
13457 s/["\\]/\\&/g; s/^/"/; s/$/"/
13458 p
13459 b
13460 :more2
13461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13462 p
13463 g
13464 s/.\{148\}//
13465 t delim
13466 ' <conf$$subs.awk | sed '
13467 /^[^""]/{
13468 N
13469 s/\n//
13470 }
13471 ' >>$CONFIG_STATUS || ac_write_fail=1
13472 rm -f conf$$subs.awk
13473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13474 _ACAWK
13475 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13476 for (key in S) S_is_set[key] = 1
13477 FS = ""
13478
13479 }
13480 {
13481 line = $ 0
13482 nfields = split(line, field, "@")
13483 substed = 0
13484 len = length(field[1])
13485 for (i = 2; i < nfields; i++) {
13486 key = field[i]
13487 keylen = length(key)
13488 if (S_is_set[key]) {
13489 value = S[key]
13490 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13491 len += length(value) + length(field[++i])
13492 substed = 1
13493 } else
13494 len += 1 + keylen
13495 }
13496
13497 print line
13498 }
13499
13500 _ACAWK
13501 _ACEOF
13502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13503 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13504 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13505 else
13506 cat
13507 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13508 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13509 _ACEOF
13510
13511 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13512 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13513 # trailing colons and then remove the whole line if VPATH becomes empty
13514 # (actually we leave an empty line to preserve line numbers).
13515 if test "x$srcdir" = x.; then
13516 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13517 h
13518 s///
13519 s/^/:/
13520 s/[ ]*$/:/
13521 s/:\$(srcdir):/:/g
13522 s/:\${srcdir}:/:/g
13523 s/:@srcdir@:/:/g
13524 s/^:*//
13525 s/:*$//
13526 x
13527 s/\(=[ ]*\).*/\1/
13528 G
13529 s/\n//
13530 s/^[^=]*=[ ]*$//
13531 }'
13532 fi
13533
13534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535 fi # test -n "$CONFIG_FILES"
13536
13537
13538 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13539 shift
13540 for ac_tag
13541 do
13542 case $ac_tag in
13543 :[FHLC]) ac_mode=$ac_tag; continue;;
13544 esac
13545 case $ac_mode$ac_tag in
13546 :[FHL]*:*);;
13547 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13548 :[FH]-) ac_tag=-:-;;
13549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13550 esac
13551 ac_save_IFS=$IFS
13552 IFS=:
13553 set x $ac_tag
13554 IFS=$ac_save_IFS
13555 shift
13556 ac_file=$1
13557 shift
13558
13559 case $ac_mode in
13560 :L) ac_source=$1;;
13561 :[FH])
13562 ac_file_inputs=
13563 for ac_f
13564 do
13565 case $ac_f in
13566 -) ac_f="$ac_tmp/stdin";;
13567 *) # Look for the file first in the build tree, then in the source tree
13568 # (if the path is not absolute). The absolute path cannot be DOS-style,
13569 # because $ac_f cannot contain `:'.
13570 test -f "$ac_f" ||
13571 case $ac_f in
13572 [\\/$]*) false;;
13573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13574 esac ||
13575 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13576 esac
13577 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13578 as_fn_append ac_file_inputs " '$ac_f'"
13579 done
13580
13581 # Let's still pretend it is `configure' which instantiates (i.e., don't
13582 # use $as_me), people would be surprised to read:
13583 # /* config.h. Generated by config.status. */
13584 configure_input='Generated from '`
13585 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13586 `' by configure.'
13587 if test x"$ac_file" != x-; then
13588 configure_input="$ac_file. $configure_input"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13590 $as_echo "$as_me: creating $ac_file" >&6;}
13591 fi
13592 # Neutralize special characters interpreted by sed in replacement strings.
13593 case $configure_input in #(
13594 *\&* | *\|* | *\\* )
13595 ac_sed_conf_input=`$as_echo "$configure_input" |
13596 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13597 *) ac_sed_conf_input=$configure_input;;
13598 esac
13599
13600 case $ac_tag in
13601 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13603 esac
13604 ;;
13605 esac
13606
13607 ac_dir=`$as_dirname -- "$ac_file" ||
13608 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13609 X"$ac_file" : 'X\(//\)[^/]' \| \
13610 X"$ac_file" : 'X\(//\)$' \| \
13611 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13612 $as_echo X"$ac_file" |
13613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13614 s//\1/
13615 q
13616 }
13617 /^X\(\/\/\)[^/].*/{
13618 s//\1/
13619 q
13620 }
13621 /^X\(\/\/\)$/{
13622 s//\1/
13623 q
13624 }
13625 /^X\(\/\).*/{
13626 s//\1/
13627 q
13628 }
13629 s/.*/./; q'`
13630 as_dir="$ac_dir"; as_fn_mkdir_p
13631 ac_builddir=.
13632
13633 case "$ac_dir" in
13634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13635 *)
13636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13637 # A ".." for each directory in $ac_dir_suffix.
13638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13639 case $ac_top_builddir_sub in
13640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13642 esac ;;
13643 esac
13644 ac_abs_top_builddir=$ac_pwd
13645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13646 # for backward compatibility:
13647 ac_top_builddir=$ac_top_build_prefix
13648
13649 case $srcdir in
13650 .) # We are building in place.
13651 ac_srcdir=.
13652 ac_top_srcdir=$ac_top_builddir_sub
13653 ac_abs_top_srcdir=$ac_pwd ;;
13654 [\\/]* | ?:[\\/]* ) # Absolute name.
13655 ac_srcdir=$srcdir$ac_dir_suffix;
13656 ac_top_srcdir=$srcdir
13657 ac_abs_top_srcdir=$srcdir ;;
13658 *) # Relative name.
13659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13660 ac_top_srcdir=$ac_top_build_prefix$srcdir
13661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13662 esac
13663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13664
13665
13666 case $ac_mode in
13667 :F)
13668 #
13669 # CONFIG_FILE
13670 #
13671
13672 case $INSTALL in
13673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13675 esac
13676 ac_MKDIR_P=$MKDIR_P
13677 case $MKDIR_P in
13678 [\\/$]* | ?:[\\/]* ) ;;
13679 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13680 esac
13681 _ACEOF
13682
13683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13684 # If the template does not know about datarootdir, expand it.
13685 # FIXME: This hack should be removed a few years after 2.60.
13686 ac_datarootdir_hack=; ac_datarootdir_seen=
13687 ac_sed_dataroot='
13688 /datarootdir/ {
13689 p
13690 q
13691 }
13692 /@datadir@/p
13693 /@docdir@/p
13694 /@infodir@/p
13695 /@localedir@/p
13696 /@mandir@/p'
13697 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13698 *datarootdir*) ac_datarootdir_seen=yes;;
13699 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13701 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13702 _ACEOF
13703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704 ac_datarootdir_hack='
13705 s&@datadir@&$datadir&g
13706 s&@docdir@&$docdir&g
13707 s&@infodir@&$infodir&g
13708 s&@localedir@&$localedir&g
13709 s&@mandir@&$mandir&g
13710 s&\\\${datarootdir}&$datarootdir&g' ;;
13711 esac
13712 _ACEOF
13713
13714 # Neutralize VPATH when `$srcdir' = `.'.
13715 # Shell code in configure.ac might set extrasub.
13716 # FIXME: do we really want to maintain this feature?
13717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13718 ac_sed_extra="$ac_vpsub
13719 $extrasub
13720 _ACEOF
13721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13722 :t
13723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13724 s|@configure_input@|$ac_sed_conf_input|;t t
13725 s&@top_builddir@&$ac_top_builddir_sub&;t t
13726 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13727 s&@srcdir@&$ac_srcdir&;t t
13728 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13729 s&@top_srcdir@&$ac_top_srcdir&;t t
13730 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13731 s&@builddir@&$ac_builddir&;t t
13732 s&@abs_builddir@&$ac_abs_builddir&;t t
13733 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13734 s&@INSTALL@&$ac_INSTALL&;t t
13735 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13736 $ac_datarootdir_hack
13737 "
13738 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13739 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13740
13741 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13742 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13743 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13744 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13746 which seems to be undefined. Please make sure it is defined" >&5
13747 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13748 which seems to be undefined. Please make sure it is defined" >&2;}
13749
13750 rm -f "$ac_tmp/stdin"
13751 case $ac_file in
13752 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13753 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13754 esac \
13755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13756 ;;
13757
13758
13759 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13760 $as_echo "$as_me: executing $ac_file commands" >&6;}
13761 ;;
13762 esac
13763
13764
13765 case $ac_file$ac_mode in
13766 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13767 # Older Autoconf quotes --file arguments for eval, but not when files
13768 # are listed without --file. Let's play safe and only enable the eval
13769 # if we detect the quoting.
13770 case $CONFIG_FILES in
13771 *\'*) eval set x "$CONFIG_FILES" ;;
13772 *) set x $CONFIG_FILES ;;
13773 esac
13774 shift
13775 for mf
13776 do
13777 # Strip MF so we end up with the name of the file.
13778 mf=`echo "$mf" | sed -e 's/:.*$//'`
13779 # Check whether this is an Automake generated Makefile or not.
13780 # We used to match only the files named 'Makefile.in', but
13781 # some people rename them; so instead we look at the file content.
13782 # Grep'ing the first line is not enough: some people post-process
13783 # each Makefile.in and add a new line on top of each file to say so.
13784 # Grep'ing the whole file is not good either: AIX grep has a line
13785 # limit of 2048, but all sed's we know have understand at least 4000.
13786 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13787 dirpart=`$as_dirname -- "$mf" ||
13788 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13789 X"$mf" : 'X\(//\)[^/]' \| \
13790 X"$mf" : 'X\(//\)$' \| \
13791 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13792 $as_echo X"$mf" |
13793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13794 s//\1/
13795 q
13796 }
13797 /^X\(\/\/\)[^/].*/{
13798 s//\1/
13799 q
13800 }
13801 /^X\(\/\/\)$/{
13802 s//\1/
13803 q
13804 }
13805 /^X\(\/\).*/{
13806 s//\1/
13807 q
13808 }
13809 s/.*/./; q'`
13810 else
13811 continue
13812 fi
13813 # Extract the definition of DEPDIR, am__include, and am__quote
13814 # from the Makefile without running 'make'.
13815 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13816 test -z "$DEPDIR" && continue
13817 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13818 test -z "$am__include" && continue
13819 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13820 # Find all dependency output files, they are included files with
13821 # $(DEPDIR) in their names. We invoke sed twice because it is the
13822 # simplest approach to changing $(DEPDIR) to its actual value in the
13823 # expansion.
13824 for file in `sed -n "
13825 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13826 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13827 # Make sure the directory exists.
13828 test -f "$dirpart/$file" && continue
13829 fdir=`$as_dirname -- "$file" ||
13830 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13831 X"$file" : 'X\(//\)[^/]' \| \
13832 X"$file" : 'X\(//\)$' \| \
13833 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13834 $as_echo X"$file" |
13835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13836 s//\1/
13837 q
13838 }
13839 /^X\(\/\/\)[^/].*/{
13840 s//\1/
13841 q
13842 }
13843 /^X\(\/\/\)$/{
13844 s//\1/
13845 q
13846 }
13847 /^X\(\/\).*/{
13848 s//\1/
13849 q
13850 }
13851 s/.*/./; q'`
13852 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13853 # echo "creating $dirpart/$file"
13854 echo '# dummy' > "$dirpart/$file"
13855 done
13856 done
13857 }
13858 ;;
13859 "libtool":C)
13860
13861 # See if we are running on zsh, and set the options which allow our
13862 # commands through without removal of \ escapes.
13863 if test -n "${ZSH_VERSION+set}" ; then
13864 setopt NO_GLOB_SUBST
13865 fi
13866
13867 cfgfile="${ofile}T"
13868 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13869 $RM "$cfgfile"
13870
13871 cat <<_LT_EOF >> "$cfgfile"
13872 #! $SHELL
13873
13874 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13875 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13878 #
13879 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13880 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13881 # Foundation, Inc.
13882 # Written by Gordon Matzigkeit, 1996
13883 #
13884 # This file is part of GNU Libtool.
13885 #
13886 # GNU Libtool is free software; you can redistribute it and/or
13887 # modify it under the terms of the GNU General Public License as
13888 # published by the Free Software Foundation; either version 2 of
13889 # the License, or (at your option) any later version.
13890 #
13891 # As a special exception to the GNU General Public License,
13892 # if you distribute this file as part of a program or library that
13893 # is built using GNU Libtool, you may include this file under the
13894 # same distribution terms that you use for the rest of that program.
13895 #
13896 # GNU Libtool is distributed in the hope that it will be useful,
13897 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13899 # GNU General Public License for more details.
13900 #
13901 # You should have received a copy of the GNU General Public License
13902 # along with GNU Libtool; see the file COPYING. If not, a copy
13903 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13904 # obtained by writing to the Free Software Foundation, Inc.,
13905 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13906
13907
13908 # The names of the tagged configurations supported by this script.
13909 available_tags=""
13910
13911 # ### BEGIN LIBTOOL CONFIG
13912
13913 # Which release of libtool.m4 was used?
13914 macro_version=$macro_version
13915 macro_revision=$macro_revision
13916
13917 # Whether or not to build shared libraries.
13918 build_libtool_libs=$enable_shared
13919
13920 # Whether or not to build static libraries.
13921 build_old_libs=$enable_static
13922
13923 # What type of objects to build.
13924 pic_mode=$pic_mode
13925
13926 # Whether or not to optimize for fast installation.
13927 fast_install=$enable_fast_install
13928
13929 # Shell to use when invoking shell scripts.
13930 SHELL=$lt_SHELL
13931
13932 # An echo program that protects backslashes.
13933 ECHO=$lt_ECHO
13934
13935 # The PATH separator for the build system.
13936 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13937
13938 # The host system.
13939 host_alias=$host_alias
13940 host=$host
13941 host_os=$host_os
13942
13943 # The build system.
13944 build_alias=$build_alias
13945 build=$build
13946 build_os=$build_os
13947
13948 # A sed program that does not truncate output.
13949 SED=$lt_SED
13950
13951 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13952 Xsed="\$SED -e 1s/^X//"
13953
13954 # A grep program that handles long lines.
13955 GREP=$lt_GREP
13956
13957 # An ERE matcher.
13958 EGREP=$lt_EGREP
13959
13960 # A literal string matcher.
13961 FGREP=$lt_FGREP
13962
13963 # A BSD- or MS-compatible name lister.
13964 NM=$lt_NM
13965
13966 # Whether we need soft or hard links.
13967 LN_S=$lt_LN_S
13968
13969 # What is the maximum length of a command?
13970 max_cmd_len=$max_cmd_len
13971
13972 # Object file suffix (normally "o").
13973 objext=$ac_objext
13974
13975 # Executable file suffix (normally "").
13976 exeext=$exeext
13977
13978 # whether the shell understands "unset".
13979 lt_unset=$lt_unset
13980
13981 # turn spaces into newlines.
13982 SP2NL=$lt_lt_SP2NL
13983
13984 # turn newlines into spaces.
13985 NL2SP=$lt_lt_NL2SP
13986
13987 # convert \$build file names to \$host format.
13988 to_host_file_cmd=$lt_cv_to_host_file_cmd
13989
13990 # convert \$build files to toolchain format.
13991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13992
13993 # An object symbol dumper.
13994 OBJDUMP=$lt_OBJDUMP
13995
13996 # Method to check whether dependent libraries are shared objects.
13997 deplibs_check_method=$lt_deplibs_check_method
13998
13999 # Command to use when deplibs_check_method = "file_magic".
14000 file_magic_cmd=$lt_file_magic_cmd
14001
14002 # How to find potential files when deplibs_check_method = "file_magic".
14003 file_magic_glob=$lt_file_magic_glob
14004
14005 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14006 want_nocaseglob=$lt_want_nocaseglob
14007
14008 # DLL creation program.
14009 DLLTOOL=$lt_DLLTOOL
14010
14011 # Command to associate shared and link libraries.
14012 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14013
14014 # The archiver.
14015 AR=$lt_AR
14016
14017 # Flags to create an archive.
14018 AR_FLAGS=$lt_AR_FLAGS
14019
14020 # How to feed a file listing to the archiver.
14021 archiver_list_spec=$lt_archiver_list_spec
14022
14023 # A symbol stripping program.
14024 STRIP=$lt_STRIP
14025
14026 # Commands used to install an old-style archive.
14027 RANLIB=$lt_RANLIB
14028 old_postinstall_cmds=$lt_old_postinstall_cmds
14029 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14030
14031 # Whether to use a lock for old archive extraction.
14032 lock_old_archive_extraction=$lock_old_archive_extraction
14033
14034 # A C compiler.
14035 LTCC=$lt_CC
14036
14037 # LTCC compiler flags.
14038 LTCFLAGS=$lt_CFLAGS
14039
14040 # Take the output of nm and produce a listing of raw symbols and C names.
14041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14042
14043 # Transform the output of nm in a proper C declaration.
14044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14045
14046 # Transform the output of nm in a C name address pair.
14047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14048
14049 # Transform the output of nm in a C name address pair when lib prefix is needed.
14050 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14051
14052 # Specify filename containing input files for \$NM.
14053 nm_file_list_spec=$lt_nm_file_list_spec
14054
14055 # The root where to search for dependent libraries,and in which our libraries should be installed.
14056 lt_sysroot=$lt_sysroot
14057
14058 # The name of the directory that contains temporary libtool files.
14059 objdir=$objdir
14060
14061 # Used to examine libraries when file_magic_cmd begins with "file".
14062 MAGIC_CMD=$MAGIC_CMD
14063
14064 # Must we lock files when doing compilation?
14065 need_locks=$lt_need_locks
14066
14067 # Manifest tool.
14068 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14069
14070 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14071 DSYMUTIL=$lt_DSYMUTIL
14072
14073 # Tool to change global to local symbols on Mac OS X.
14074 NMEDIT=$lt_NMEDIT
14075
14076 # Tool to manipulate fat objects and archives on Mac OS X.
14077 LIPO=$lt_LIPO
14078
14079 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14080 OTOOL=$lt_OTOOL
14081
14082 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14083 OTOOL64=$lt_OTOOL64
14084
14085 # Old archive suffix (normally "a").
14086 libext=$libext
14087
14088 # Shared library suffix (normally ".so").
14089 shrext_cmds=$lt_shrext_cmds
14090
14091 # The commands to extract the exported symbol list from a shared archive.
14092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14093
14094 # Variables whose values should be saved in libtool wrapper scripts and
14095 # restored at link time.
14096 variables_saved_for_relink=$lt_variables_saved_for_relink
14097
14098 # Do we need the "lib" prefix for modules?
14099 need_lib_prefix=$need_lib_prefix
14100
14101 # Do we need a version for libraries?
14102 need_version=$need_version
14103
14104 # Library versioning type.
14105 version_type=$version_type
14106
14107 # Shared library runtime path variable.
14108 runpath_var=$runpath_var
14109
14110 # Shared library path variable.
14111 shlibpath_var=$shlibpath_var
14112
14113 # Is shlibpath searched before the hard-coded library search path?
14114 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14115
14116 # Format of library name prefix.
14117 libname_spec=$lt_libname_spec
14118
14119 # List of archive names. First name is the real one, the rest are links.
14120 # The last name is the one that the linker finds with -lNAME
14121 library_names_spec=$lt_library_names_spec
14122
14123 # The coded name of the library, if different from the real name.
14124 soname_spec=$lt_soname_spec
14125
14126 # Permission mode override for installation of shared libraries.
14127 install_override_mode=$lt_install_override_mode
14128
14129 # Command to use after installation of a shared archive.
14130 postinstall_cmds=$lt_postinstall_cmds
14131
14132 # Command to use after uninstallation of a shared archive.
14133 postuninstall_cmds=$lt_postuninstall_cmds
14134
14135 # Commands used to finish a libtool library installation in a directory.
14136 finish_cmds=$lt_finish_cmds
14137
14138 # As "finish_cmds", except a single script fragment to be evaled but
14139 # not shown.
14140 finish_eval=$lt_finish_eval
14141
14142 # Whether we should hardcode library paths into libraries.
14143 hardcode_into_libs=$hardcode_into_libs
14144
14145 # Compile-time system search path for libraries.
14146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14147
14148 # Run-time system search path for libraries.
14149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14150
14151 # Whether dlopen is supported.
14152 dlopen_support=$enable_dlopen
14153
14154 # Whether dlopen of programs is supported.
14155 dlopen_self=$enable_dlopen_self
14156
14157 # Whether dlopen of statically linked programs is supported.
14158 dlopen_self_static=$enable_dlopen_self_static
14159
14160 # Commands to strip libraries.
14161 old_striplib=$lt_old_striplib
14162 striplib=$lt_striplib
14163
14164
14165 # The linker used to build libraries.
14166 LD=$lt_LD
14167
14168 # How to create reloadable object files.
14169 reload_flag=$lt_reload_flag
14170 reload_cmds=$lt_reload_cmds
14171
14172 # Commands used to build an old-style archive.
14173 old_archive_cmds=$lt_old_archive_cmds
14174
14175 # A language specific compiler.
14176 CC=$lt_compiler
14177
14178 # Is the compiler the GNU compiler?
14179 with_gcc=$GCC
14180
14181 # Compiler flag to turn off builtin functions.
14182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14183
14184 # Additional compiler flags for building library objects.
14185 pic_flag=$lt_lt_prog_compiler_pic
14186
14187 # How to pass a linker flag through the compiler.
14188 wl=$lt_lt_prog_compiler_wl
14189
14190 # Compiler flag to prevent dynamic linking.
14191 link_static_flag=$lt_lt_prog_compiler_static
14192
14193 # Does compiler simultaneously support -c and -o options?
14194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14195
14196 # Whether or not to add -lc for building shared libraries.
14197 build_libtool_need_lc=$archive_cmds_need_lc
14198
14199 # Whether or not to disallow shared libs when runtime libs are static.
14200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14201
14202 # Compiler flag to allow reflexive dlopens.
14203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14204
14205 # Compiler flag to generate shared objects directly from archives.
14206 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14207
14208 # Whether the compiler copes with passing no objects directly.
14209 compiler_needs_object=$lt_compiler_needs_object
14210
14211 # Create an old-style archive from a shared archive.
14212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14213
14214 # Create a temporary old-style archive to link instead of a shared archive.
14215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14216
14217 # Commands used to build a shared archive.
14218 archive_cmds=$lt_archive_cmds
14219 archive_expsym_cmds=$lt_archive_expsym_cmds
14220
14221 # Commands used to build a loadable module if different from building
14222 # a shared archive.
14223 module_cmds=$lt_module_cmds
14224 module_expsym_cmds=$lt_module_expsym_cmds
14225
14226 # Whether we are building with GNU ld or not.
14227 with_gnu_ld=$lt_with_gnu_ld
14228
14229 # Flag that allows shared libraries with undefined symbols to be built.
14230 allow_undefined_flag=$lt_allow_undefined_flag
14231
14232 # Flag that enforces no undefined symbols.
14233 no_undefined_flag=$lt_no_undefined_flag
14234
14235 # Flag to hardcode \$libdir into a binary during linking.
14236 # This must work even if \$libdir does not exist
14237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14238
14239 # Whether we need a single "-rpath" flag with a separated argument.
14240 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14241
14242 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14243 # DIR into the resulting binary.
14244 hardcode_direct=$hardcode_direct
14245
14246 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14247 # DIR into the resulting binary and the resulting library dependency is
14248 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14249 # library is relocated.
14250 hardcode_direct_absolute=$hardcode_direct_absolute
14251
14252 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14253 # into the resulting binary.
14254 hardcode_minus_L=$hardcode_minus_L
14255
14256 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14257 # into the resulting binary.
14258 hardcode_shlibpath_var=$hardcode_shlibpath_var
14259
14260 # Set to "yes" if building a shared library automatically hardcodes DIR
14261 # into the library and all subsequent libraries and executables linked
14262 # against it.
14263 hardcode_automatic=$hardcode_automatic
14264
14265 # Set to yes if linker adds runtime paths of dependent libraries
14266 # to runtime path list.
14267 inherit_rpath=$inherit_rpath
14268
14269 # Whether libtool must link a program against all its dependency libraries.
14270 link_all_deplibs=$link_all_deplibs
14271
14272 # Set to "yes" if exported symbols are required.
14273 always_export_symbols=$always_export_symbols
14274
14275 # The commands to list exported symbols.
14276 export_symbols_cmds=$lt_export_symbols_cmds
14277
14278 # Symbols that should not be listed in the preloaded symbols.
14279 exclude_expsyms=$lt_exclude_expsyms
14280
14281 # Symbols that must always be exported.
14282 include_expsyms=$lt_include_expsyms
14283
14284 # Commands necessary for linking programs (against libraries) with templates.
14285 prelink_cmds=$lt_prelink_cmds
14286
14287 # Commands necessary for finishing linking programs.
14288 postlink_cmds=$lt_postlink_cmds
14289
14290 # Specify filename containing input files.
14291 file_list_spec=$lt_file_list_spec
14292
14293 # How to hardcode a shared library path into an executable.
14294 hardcode_action=$hardcode_action
14295
14296 # ### END LIBTOOL CONFIG
14297
14298 _LT_EOF
14299
14300 case $host_os in
14301 aix3*)
14302 cat <<\_LT_EOF >> "$cfgfile"
14303 # AIX sometimes has problems with the GCC collect2 program. For some
14304 # reason, if we set the COLLECT_NAMES environment variable, the problems
14305 # vanish in a puff of smoke.
14306 if test "X${COLLECT_NAMES+set}" != Xset; then
14307 COLLECT_NAMES=
14308 export COLLECT_NAMES
14309 fi
14310 _LT_EOF
14311 ;;
14312 esac
14313
14314
14315 ltmain="$ac_aux_dir/ltmain.sh"
14316
14317
14318 # We use sed instead of cat because bash on DJGPP gets confused if
14319 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14320 # text mode, it properly converts lines to CR/LF. This bash problem
14321 # is reportedly fixed, but why not run on old versions too?
14322 sed '$q' "$ltmain" >> "$cfgfile" \
14323 || (rm -f "$cfgfile"; exit 1)
14324
14325 if test x"$xsi_shell" = xyes; then
14326 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14327 func_dirname ()\
14328 {\
14329 \ case ${1} in\
14330 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14331 \ * ) func_dirname_result="${3}" ;;\
14332 \ esac\
14333 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14334 && mv -f "$cfgfile.tmp" "$cfgfile" \
14335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14336 test 0 -eq $? || _lt_function_replace_fail=:
14337
14338
14339 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14340 func_basename ()\
14341 {\
14342 \ func_basename_result="${1##*/}"\
14343 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14344 && mv -f "$cfgfile.tmp" "$cfgfile" \
14345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14346 test 0 -eq $? || _lt_function_replace_fail=:
14347
14348
14349 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14350 func_dirname_and_basename ()\
14351 {\
14352 \ case ${1} in\
14353 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14354 \ * ) func_dirname_result="${3}" ;;\
14355 \ esac\
14356 \ func_basename_result="${1##*/}"\
14357 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14358 && mv -f "$cfgfile.tmp" "$cfgfile" \
14359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14360 test 0 -eq $? || _lt_function_replace_fail=:
14361
14362
14363 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14364 func_stripname ()\
14365 {\
14366 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14367 \ # positional parameters, so assign one to ordinary parameter first.\
14368 \ func_stripname_result=${3}\
14369 \ func_stripname_result=${func_stripname_result#"${1}"}\
14370 \ func_stripname_result=${func_stripname_result%"${2}"}\
14371 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14372 && mv -f "$cfgfile.tmp" "$cfgfile" \
14373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14374 test 0 -eq $? || _lt_function_replace_fail=:
14375
14376
14377 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14378 func_split_long_opt ()\
14379 {\
14380 \ func_split_long_opt_name=${1%%=*}\
14381 \ func_split_long_opt_arg=${1#*=}\
14382 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14383 && mv -f "$cfgfile.tmp" "$cfgfile" \
14384 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14385 test 0 -eq $? || _lt_function_replace_fail=:
14386
14387
14388 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14389 func_split_short_opt ()\
14390 {\
14391 \ func_split_short_opt_arg=${1#??}\
14392 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14393 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14394 && mv -f "$cfgfile.tmp" "$cfgfile" \
14395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14396 test 0 -eq $? || _lt_function_replace_fail=:
14397
14398
14399 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14400 func_lo2o ()\
14401 {\
14402 \ case ${1} in\
14403 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14404 \ *) func_lo2o_result=${1} ;;\
14405 \ esac\
14406 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14407 && mv -f "$cfgfile.tmp" "$cfgfile" \
14408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409 test 0 -eq $? || _lt_function_replace_fail=:
14410
14411
14412 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14413 func_xform ()\
14414 {\
14415 func_xform_result=${1%.*}.lo\
14416 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14417 && mv -f "$cfgfile.tmp" "$cfgfile" \
14418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14419 test 0 -eq $? || _lt_function_replace_fail=:
14420
14421
14422 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14423 func_arith ()\
14424 {\
14425 func_arith_result=$(( $* ))\
14426 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14427 && mv -f "$cfgfile.tmp" "$cfgfile" \
14428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14429 test 0 -eq $? || _lt_function_replace_fail=:
14430
14431
14432 sed -e '/^func_len ()$/,/^} # func_len /c\
14433 func_len ()\
14434 {\
14435 func_len_result=${#1}\
14436 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14437 && mv -f "$cfgfile.tmp" "$cfgfile" \
14438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14439 test 0 -eq $? || _lt_function_replace_fail=:
14440
14441 fi
14442
14443 if test x"$lt_shell_append" = xyes; then
14444 sed -e '/^func_append ()$/,/^} # func_append /c\
14445 func_append ()\
14446 {\
14447 eval "${1}+=\\${2}"\
14448 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14449 && mv -f "$cfgfile.tmp" "$cfgfile" \
14450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14451 test 0 -eq $? || _lt_function_replace_fail=:
14452
14453
14454 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14455 func_append_quoted ()\
14456 {\
14457 \ func_quote_for_eval "${2}"\
14458 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14459 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14460 && mv -f "$cfgfile.tmp" "$cfgfile" \
14461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14462 test 0 -eq $? || _lt_function_replace_fail=:
14463
14464
14465 # Save a `func_append' function call where possible by direct use of '+='
14466 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14467 && mv -f "$cfgfile.tmp" "$cfgfile" \
14468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14469 test 0 -eq $? || _lt_function_replace_fail=:
14470 else
14471 # Save a `func_append' function call even when '+=' is not available
14472 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14473 && mv -f "$cfgfile.tmp" "$cfgfile" \
14474 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14475 test 0 -eq $? || _lt_function_replace_fail=:
14476 fi
14477
14478 if test x"$_lt_function_replace_fail" = x":"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14480 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14481 fi
14482
14483
14484 mv -f "$cfgfile" "$ofile" ||
14485 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14486 chmod +x "$ofile"
14487
14488 ;;
14489 "$ax_create_pkgconfig_generate":C)
14490 pkgconfig_generate="$ax_create_pkgconfig_generate"
14491 if test ! -f "$pkgconfig_generate.in"
14492 then generate="true"
14493 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
14494 then generate="true"
14495 else generate="false";
14496 fi
14497 if $generate ; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
14499 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
14500 cat > $pkgconfig_generate.in <<AXEOF
14501 # generated by configure / remove this line to disable regeneration
14502 prefix=@prefix@
14503 exec_prefix=@exec_prefix@
14504 bindir=@bindir@
14505 libdir=@libdir@
14506 datarootdir=@datarootdir@
14507 datadir=@datadir@
14508 sysconfdir=@sysconfdir@
14509 includedir=@includedir@
14510 package=@PACKAGE@
14511 suffix=@suffix@
14512
14513 Name: @PACKAGE_NAME@
14514 Description: @PACKAGE_DESCRIPTION@
14515 Version: @PACKAGE_VERSION@
14516 Requires: @PACKAGE_REQUIRES@
14517 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
14518 Cflags: -I\${includedir} @CPPFLAGS@
14519 AXEOF
14520 fi # DONE generate $pkgconfig_generate.in
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
14522 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
14523 cat >conftest.sed <<AXEOF
14524 s|@prefix@|${pkgconfig_prefix}|
14525 s|@exec_prefix@|${pkgconfig_execprefix}|
14526 s|@bindir@|${pkgconfig_bindir}|
14527 s|@libdir@|${pkgconfig_libdir}|
14528 s|@datarootdir@|${pkgconfig_datarootdir}|
14529 s|@datadir@|${pkgconfig_datadir}|
14530 s|@sysconfdir@|${pkgconfig_sysconfdir}|
14531 s|@includedir@|${pkgconfig_includedir}|
14532 s|@suffix@|${pkgconfig_suffix}|
14533 s|@PACKAGE@|${pkgconfig_package}|
14534 s|@PACKAGE_NAME@|${pkgconfig_libname}|
14535 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
14536 s|@PACKAGE_VERSION@|${pkgconfig_version}|
14537 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
14538 s|@LIBS@|${pkgconfig_libs}|
14539 s|@LDFLAGS@|${pkgconfig_ldflags}|
14540 s|@CPPFLAGS@|${pkgconfig_cppflags}|
14541 AXEOF
14542 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
14543 if test ! -s $pkgconfig_generate ; then
14544 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
14545 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
14546 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
14548 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
14549 cat >conftest.sed <<AXEOF
14550 s|@prefix@|${pkgconfig_prefix}|
14551 s|@exec_prefix@|${pkgconfig_execprefix}|
14552 s|@bindir@|${pkgconfig_bindir}|
14553 s|@libdir@|${pkgconfig_src_libdir}|
14554 s|@datarootdir@|${pkgconfig_datarootdir}|
14555 s|@datadir@|${pkgconfig_datadir}|
14556 s|@sysconfdir@|${pkgconfig_sysconfdir}|
14557 s|@includedir@|${pkgconfig_src_headers}|
14558 s|@suffix@|${pkgconfig_suffix}|
14559 s|@PACKAGE@|${pkgconfig_package}|
14560 s|@PACKAGE_NAME@|${pkgconfig_libname}|
14561 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
14562 s|@PACKAGE_VERSION@|${pkgconfig_version}|
14563 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
14564 s|@LIBS@|${pkgconfig_libs}|
14565 s|@LDFLAGS@|${pkgconfig_ldflags}|
14566 s|@CPPFLAGS@|${pkgconfig_cppflags}|
14567 AXEOF
14568 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
14569 if test ! -s $pkgconfig_uninstalled ; then
14570 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
14571 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
14572 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
14573 if test ".$pkgconfig_requires_add" != "." ; then
14574 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
14575 else pkgconfig_requires_add=":" ; fi
14576 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
14578 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
14579 cat >conftest.sed <<AXEOF
14580 s|@prefix@|\"${pkgconfig_prefix}\"|
14581 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
14582 s|@bindir@|\"${pkgconfig_bindir}\"|
14583 s|@libdir@|\"${pkgconfig_src_libdir}\"|
14584 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
14585 s|@datadir@|\"${pkgconfig_datadir}\"|
14586 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
14587 s|@includedir@|\"${pkgconfig_src_headers}\"|
14588 s|@suffix@|\"${pkgconfig_suffix}\"|
14589 s|@PACKAGE@|\"${pkgconfig_package}\"|
14590 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
14591 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
14592 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
14593 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
14594 s|@LIBS@|\"${pkgconfig_libs}\"|
14595 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
14596 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
14597 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
14598 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
14599 s>Version: *>\\;\\; --modversion|--version) echo >
14600 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
14601 s>Libs: *>\\;\\; --libs) echo >
14602 s>Cflags: *>\\;\\; --cflags) echo >
14603 /--libs)/a\\
14604 $pkgconfig_requires_add
14605 /--cflags)/a\\
14606 $pkgconfig_requires_add\\
14607 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
14608 ;; --uninstalled) exit 0 \\
14609 ;; *) ;; esac done
14610 AXEOF
14611 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
14612 if test ! -s $pkgconfig_uninstalled ; then
14613 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
14614 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
14615 ;;
14616
14617 esac
14618 done # for ac_tag
14619
14620
14621 as_fn_exit 0
14622 _ACEOF
14623 ac_clean_files=$ac_clean_files_save
14624
14625 test $ac_write_fail = 0 ||
14626 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14627
14628
14629 # configure is writing to config.log, and then calls config.status.
14630 # config.status does its own redirection, appending to config.log.
14631 # Unfortunately, on DOS this fails, as config.log is still kept open
14632 # by configure, so config.status won't be able to write to it; its
14633 # output is simply discarded. So we exec the FD to /dev/null,
14634 # effectively closing config.log, so it can be properly (re)opened and
14635 # appended to by config.status. When coming back to configure, we
14636 # need to make the FD available again.
14637 if test "$no_create" != yes; then
14638 ac_cs_success=:
14639 ac_config_status_args=
14640 test "$silent" = yes &&
14641 ac_config_status_args="$ac_config_status_args --quiet"
14642 exec 5>/dev/null
14643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14644 exec 5>>config.log
14645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14646 # would make configure fail if this is the last instruction.
14647 $ac_cs_success || as_fn_exit 1
14648 fi
14649 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14651 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14652 fi
14653