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 mialm 1.0.9.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mialm'
592 PACKAGE_TARNAME='mialm'
593 PACKAGE_VERSION='1.0.9'
594 PACKAGE_STRING='mialm 1.0.9'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 GLIB_LIBS
639 GLIB_CFLAGS
640 GTK_DOC_USE_REBASE_FALSE
641 GTK_DOC_USE_REBASE_TRUE
642 GTK_DOC_USE_LIBTOOL_FALSE
643 GTK_DOC_USE_LIBTOOL_TRUE
644 GTK_DOC_BUILD_PDF_FALSE
645 GTK_DOC_BUILD_PDF_TRUE
646 GTK_DOC_BUILD_HTML_FALSE
647 GTK_DOC_BUILD_HTML_TRUE
648 ENABLE_GTK_DOC_FALSE
649 ENABLE_GTK_DOC_TRUE
650 HAVE_GTK_DOC_FALSE
651 HAVE_GTK_DOC_TRUE
652 AM_DEFAULT_VERBOSITY
653 GTKDOC_DEPS_LIBS
654 GTKDOC_DEPS_CFLAGS
655 HTML_DIR
656 GTKDOC_MKPDF
657 GTKDOC_REBASE
658 GTKDOC_CHECK_PATH
659 GTKDOC_CHECK
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 LT_SYS_LIBRARY_PATH
664 OTOOL64
665 OTOOL
666 LIPO
667 NMEDIT
668 DSYMUTIL
669 MANIFEST_TOOL
670 RANLIB
671 ac_ct_AR
672 AR
673 DLLTOOL
674 OBJDUMP
675 LN_S
676 NM
677 ac_ct_DUMPBIN
678 DUMPBIN
679 LD
680 FGREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 LIBTOOL
691 EGREP
692 GREP
693 CPP
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 LT_VERSION_INFO
738 LT_AGE
739 LT_REVISION
740 LT_CURRENT
741 LT_RELEASE
742 MIALM_VERSION
743 MIALM_BINARY_AGE
744 MIALM_INTERFACE_AGE
745 MIALM_MICRO_VERSION
746 MIALM_MINOR_VERSION
747 MIALM_MAJOR_VERSION
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_maintainer_mode
790 enable_dependency_tracking
791 enable_shared
792 enable_static
793 with_pic
794 enable_fast_install
795 with_aix_soname
796 with_gnu_ld
797 with_sysroot
798 enable_libtool_lock
799 with_html_dir
800 enable_gtk_doc
801 enable_gtk_doc_html
802 enable_gtk_doc_pdf
803 '
804 ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 LIBS
811 CPPFLAGS
812 CPP
813 LT_SYS_LIBRARY_PATH
814 PKG_CONFIG
815 PKG_CONFIG_PATH
816 PKG_CONFIG_LIBDIR
817 GTKDOC_DEPS_CFLAGS
818 GTKDOC_DEPS_LIBS
819 GLIB_CFLAGS
820 GLIB_LIBS'
821
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures mialm 1.0.9 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/mialm]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of mialm 1.0.9:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-maintainer-mode enable make rules and dependencies not useful
1440 (and sometimes confusing) to the casual installer
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1449 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1450 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1451
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-aix-soname=aix|svr4|both
1458 shared library versioning (aka "SONAME") variant to
1459 provide on AIX, [default=aix].
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1462 compiler's sysroot if not specified).
1463 --with-html-dir=PATH path to installed docs
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 LT_SYS_LIBRARY_PATH
1475 User-defined run-time library search path.
1476 PKG_CONFIG path to pkg-config utility
1477 PKG_CONFIG_PATH
1478 directories to add to pkg-config's search path
1479 PKG_CONFIG_LIBDIR
1480 path overriding pkg-config's built-in search path
1481 GTKDOC_DEPS_CFLAGS
1482 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1483 GTKDOC_DEPS_LIBS
1484 linker flags for GTKDOC_DEPS, overriding pkg-config
1485 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1486 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1487
1488 Use these variables to override the choices made by `configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1490
1491 Report bugs to <[email protected]>.
1492 _ACEOF
1493 ac_status=$?
1494 fi
1495
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *)
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1519
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1549 fi
1550
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 mialm configure 1.0.9
1555 generated by GNU Autoconf 2.69
1556
1557 Copyright (C) 2012 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560 _ACEOF
1561 exit
1562 fi
1563
1564 ## ------------------------ ##
1565 ## Autoconf initialization. ##
1566 ## ------------------------ ##
1567
1568 # ac_fn_c_try_compile LINENO
1569 # --------------------------
1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_compile ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600 fi
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_compile
1605
1606 # ac_fn_c_try_link LINENO
1607 # -----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_link ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
1633 test -x conftest$ac_exeext
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_link
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_cpp
1688
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=$ac_status
1724 fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_run
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_header_compile
1761
1762 # ac_fn_c_check_func LINENO FUNC VAR
1763 # ----------------------------------
1764 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1765 ac_fn_c_check_func ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1777 #define $2 innocuous_$2
1778
1779 /* System header to define __stub macros and hopefully few prototypes,
1780 which can conflict with char $2 (); below.
1781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1782 <limits.h> exists even on freestanding compilers. */
1783
1784 #ifdef __STDC__
1785 # include <limits.h>
1786 #else
1787 # include <assert.h>
1788 #endif
1789
1790 #undef $2
1791
1792 /* Override any GCC internal prototype to avoid an error.
1793 Use char because int might match the return type of a GCC
1794 builtin and then its argument prototype would still apply. */
1795 #ifdef __cplusplus
1796 extern "C"
1797 #endif
1798 char $2 ();
1799 /* The GNU C library defines this for functions which it implements
1800 to always fail with ENOSYS. Some functions are actually named
1801 something starting with __ and the normal name is an alias. */
1802 #if defined __stub_$2 || defined __stub___$2
1803 choke me
1804 #endif
1805
1806 int
1807 main ()
1808 {
1809 return $2 ();
1810 ;
1811 return 0;
1812 }
1813 _ACEOF
1814 if ac_fn_c_try_link "$LINENO"; then :
1815 eval "$3=yes"
1816 else
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext \
1820 conftest$ac_exeext conftest.$ac_ext
1821 fi
1822 eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } # ac_fn_c_check_func
1828 cat >config.log <<_ACEOF
1829 This file contains any messages produced by compilers while
1830 running configure, to aid debugging if configure makes a mistake.
1831
1832 It was created by mialm $as_me 1.0.9, which was
1833 generated by GNU Autoconf 2.69. Invocation command line was
1834
1835 $ $0 $@
1836
1837 _ACEOF
1838 exec 5>>config.log
1839 {
1840 cat <<_ASUNAME
1841 ## --------- ##
1842 ## Platform. ##
1843 ## --------- ##
1844
1845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1850
1851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1852 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1853
1854 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1855 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1857 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1858 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1859 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1860 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1861
1862 _ASUNAME
1863
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 $as_echo "PATH: $as_dir"
1870 done
1871 IFS=$as_save_IFS
1872
1873 } >&5
1874
1875 cat >&5 <<_ACEOF
1876
1877
1878 ## ----------- ##
1879 ## Core tests. ##
1880 ## ----------- ##
1881
1882 _ACEOF
1883
1884
1885 # Keep a trace of the command line.
1886 # Strip out --no-create and --no-recursion so they do not pile up.
1887 # Strip out --silent because we don't want to record it for future runs.
1888 # Also quote any args containing shell meta-characters.
1889 # Make two passes to allow for proper duplicate-argument suppression.
1890 ac_configure_args=
1891 ac_configure_args0=
1892 ac_configure_args1=
1893 ac_must_keep_next=false
1894 for ac_pass in 1 2
1895 do
1896 for ac_arg
1897 do
1898 case $ac_arg in
1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901 | -silent | --silent | --silen | --sile | --sil)
1902 continue ;;
1903 *\'*)
1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 esac
1906 case $ac_pass in
1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1908 2)
1909 as_fn_append ac_configure_args1 " '$ac_arg'"
1910 if test $ac_must_keep_next = true; then
1911 ac_must_keep_next=false # Got value, back to normal.
1912 else
1913 case $ac_arg in
1914 *=* | --config-cache | -C | -disable-* | --disable-* \
1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917 | -with-* | --with-* | -without-* | --without-* | --x)
1918 case "$ac_configure_args0 " in
1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920 esac
1921 ;;
1922 -* ) ac_must_keep_next=true ;;
1923 esac
1924 fi
1925 as_fn_append ac_configure_args " '$ac_arg'"
1926 ;;
1927 esac
1928 done
1929 done
1930 { ac_configure_args0=; unset ac_configure_args0;}
1931 { ac_configure_args1=; unset ac_configure_args1;}
1932
1933 # When interrupted or exit'd, cleanup temporary files, and complete
1934 # config.log. We remove comments because anyway the quotes in there
1935 # would cause problems or look ugly.
1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938 trap 'exit_status=$?
1939 # Save into config.log some information that might help in debugging.
1940 {
1941 echo
1942
1943 $as_echo "## ---------------- ##
1944 ## Cache variables. ##
1945 ## ---------------- ##"
1946 echo
1947 # The following way of writing the cache mishandles newlines in values,
1948 (
1949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in #(
1952 *${as_nl}*)
1953 case $ac_var in #(
1954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1956 esac
1957 case $ac_var in #(
1958 _ | IFS | as_nl) ;; #(
1959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1960 *) { eval $ac_var=; unset $ac_var;} ;;
1961 esac ;;
1962 esac
1963 done
1964 (set) 2>&1 |
1965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1966 *${as_nl}ac_space=\ *)
1967 sed -n \
1968 "s/'\''/'\''\\\\'\'''\''/g;
1969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1970 ;; #(
1971 *)
1972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1973 ;;
1974 esac |
1975 sort
1976 )
1977 echo
1978
1979 $as_echo "## ----------------- ##
1980 ## Output variables. ##
1981 ## ----------------- ##"
1982 echo
1983 for ac_var in $ac_subst_vars
1984 do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
1990 done | sort
1991 echo
1992
1993 if test -n "$ac_subst_files"; then
1994 $as_echo "## ------------------- ##
1995 ## File substitutions. ##
1996 ## ------------------- ##"
1997 echo
1998 for ac_var in $ac_subst_files
1999 do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 esac
2004 $as_echo "$ac_var='\''$ac_val'\''"
2005 done | sort
2006 echo
2007 fi
2008
2009 if test -s confdefs.h; then
2010 $as_echo "## ----------- ##
2011 ## confdefs.h. ##
2012 ## ----------- ##"
2013 echo
2014 cat confdefs.h
2015 echo
2016 fi
2017 test "$ac_signal" != 0 &&
2018 $as_echo "$as_me: caught signal $ac_signal"
2019 $as_echo "$as_me: exit $exit_status"
2020 } >&5
2021 rm -f core *.core core.conftest.* &&
2022 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2023 exit $exit_status
2024 ' 0
2025 for ac_signal in 1 2 13 15; do
2026 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2027 done
2028 ac_signal=0
2029
2030 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2031 rm -f -r conftest* confdefs.h
2032
2033 $as_echo "/* confdefs.h */" > confdefs.h
2034
2035 # Predefined preprocessor variables.
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_NAME "$PACKAGE_NAME"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_STRING "$PACKAGE_STRING"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_URL "$PACKAGE_URL"
2059 _ACEOF
2060
2061
2062 # Let the site file select an alternate cache file if it wants to.
2063 # Prefer an explicitly selected file to automatically selected ones.
2064 ac_site_file1=NONE
2065 ac_site_file2=NONE
2066 if test -n "$CONFIG_SITE"; then
2067 # We do not want a PATH search for config.site.
2068 case $CONFIG_SITE in #((
2069 -*) ac_site_file1=./$CONFIG_SITE;;
2070 */*) ac_site_file1=$CONFIG_SITE;;
2071 *) ac_site_file1=./$CONFIG_SITE;;
2072 esac
2073 elif test "x$prefix" != xNONE; then
2074 ac_site_file1=$prefix/share/config.site
2075 ac_site_file2=$prefix/etc/config.site
2076 else
2077 ac_site_file1=$ac_default_prefix/share/config.site
2078 ac_site_file2=$ac_default_prefix/etc/config.site
2079 fi
2080 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2081 do
2082 test "x$ac_site_file" = xNONE && continue
2083 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2086 sed 's/^/| /' "$ac_site_file" >&5
2087 . "$ac_site_file" \
2088 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2090 as_fn_error $? "failed to load site script $ac_site_file
2091 See \`config.log' for more details" "$LINENO" 5; }
2092 fi
2093 done
2094
2095 if test -r "$cache_file"; then
2096 # Some versions of bash will fail to source /dev/null (special files
2097 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2098 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2100 $as_echo "$as_me: loading cache $cache_file" >&6;}
2101 case $cache_file in
2102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103 *) . "./$cache_file";;
2104 esac
2105 fi
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2108 $as_echo "$as_me: creating cache $cache_file" >&6;}
2109 >$cache_file
2110 fi
2111
2112 # Check that the precious variables saved in the cache have kept the same
2113 # value.
2114 ac_cache_corrupted=false
2115 for ac_var in $ac_precious_vars; do
2116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117 eval ac_new_set=\$ac_env_${ac_var}_set
2118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119 eval ac_new_val=\$ac_env_${ac_var}_value
2120 case $ac_old_set,$ac_new_set in
2121 set,)
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124 ac_cache_corrupted=: ;;
2125 ,set)
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128 ac_cache_corrupted=: ;;
2129 ,);;
2130 *)
2131 if test "x$ac_old_val" != "x$ac_new_val"; then
2132 # differences in whitespace do not lead to failure.
2133 ac_old_val_w=`echo x $ac_old_val`
2134 ac_new_val_w=`echo x $ac_new_val`
2135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138 ac_cache_corrupted=:
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2142 eval $ac_var=\$ac_old_val
2143 fi
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2148 fi;;
2149 esac
2150 # Pass precious variables to config.status.
2151 if test "$ac_new_set" = set; then
2152 case $ac_new_val in
2153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 *) ac_arg=$ac_var=$ac_new_val ;;
2155 esac
2156 case " $ac_configure_args " in
2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2159 esac
2160 fi
2161 done
2162 if $ac_cache_corrupted; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2168 fi
2169 ## -------------------- ##
2170 ## Main body of script. ##
2171 ## -------------------- ##
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179
2180
2181 MIALM_MAJOR_VERSION=1
2182 MIALM_MINOR_VERSION=0
2183 MIALM_MICRO_VERSION=9
2184 MIALM_INTERFACE_AGE=0
2185 MIALM_BINARY_AGE=0
2186 MIALM_VERSION=1.0.9
2187 MIALM_UNSTABLE=no
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199 LT_RELEASE=1.0
2200 LT_CURRENT=3
2201 LT_REVISION=0
2202 LT_AGE=0
2203 LT_VERSION_INFO="3:0:0"
2204
2205
2206
2207
2208
2209
2210
2211
2212 am__api_version='1.11'
2213
2214 ac_aux_dir=
2215 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2216 if test -f "$ac_dir/install-sh"; then
2217 ac_aux_dir=$ac_dir
2218 ac_install_sh="$ac_aux_dir/install-sh -c"
2219 break
2220 elif test -f "$ac_dir/install.sh"; then
2221 ac_aux_dir=$ac_dir
2222 ac_install_sh="$ac_aux_dir/install.sh -c"
2223 break
2224 elif test -f "$ac_dir/shtool"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/shtool install -c"
2227 break
2228 fi
2229 done
2230 if test -z "$ac_aux_dir"; then
2231 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2232 fi
2233
2234 # These three variables are undocumented and unsupported,
2235 # and are intended to be withdrawn in a future Autoconf release.
2236 # They can cause serious problems if a builder's source tree is in a directory
2237 # whose full name contains unusual characters.
2238 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2239 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2240 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2241
2242
2243 # Find a good install program. We prefer a C program (faster),
2244 # so one script is as good as another. But avoid the broken or
2245 # incompatible versions:
2246 # SysV /etc/install, /usr/sbin/install
2247 # SunOS /usr/etc/install
2248 # IRIX /sbin/install
2249 # AIX /bin/install
2250 # AmigaOS /C/install, which installs bootblocks on floppy discs
2251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2254 # OS/2's system install, which has a completely different semantic
2255 # ./install, which can be erroneously created by make from ./install.sh.
2256 # Reject install programs that cannot install multiple files.
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2258 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2259 if test -z "$INSTALL"; then
2260 if ${ac_cv_path_install+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2265 do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 # Account for people who put trailing slashes in PATH elements.
2269 case $as_dir/ in #((
2270 ./ | .// | /[cC]/* | \
2271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2272 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2273 /usr/ucb/* ) ;;
2274 *)
2275 # OSF1 and SCO ODT 3.0 have their own names for install.
2276 # Don't use installbsd from OSF since it installs stuff as root
2277 # by default.
2278 for ac_prog in ginstall scoinst install; do
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2281 if test $ac_prog = install &&
2282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # AIX install. It has an incompatible calling convention.
2284 :
2285 elif test $ac_prog = install &&
2286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2287 # program-specific install script used by HP pwplus--don't use.
2288 :
2289 else
2290 rm -rf conftest.one conftest.two conftest.dir
2291 echo one > conftest.one
2292 echo two > conftest.two
2293 mkdir conftest.dir
2294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2295 test -s conftest.one && test -s conftest.two &&
2296 test -s conftest.dir/conftest.one &&
2297 test -s conftest.dir/conftest.two
2298 then
2299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2300 break 3
2301 fi
2302 fi
2303 fi
2304 done
2305 done
2306 ;;
2307 esac
2308
2309 done
2310 IFS=$as_save_IFS
2311
2312 rm -rf conftest.one conftest.two conftest.dir
2313
2314 fi
2315 if test "${ac_cv_path_install+set}" = set; then
2316 INSTALL=$ac_cv_path_install
2317 else
2318 # As a last resort, use the slow shell script. Don't cache a
2319 # value for INSTALL within a source directory, because that will
2320 # break other packages using the cache if that directory is
2321 # removed, or if the value is a relative name.
2322 INSTALL=$ac_install_sh
2323 fi
2324 fi
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2326 $as_echo "$INSTALL" >&6; }
2327
2328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2329 # It thinks the first close brace ends the variable substitution.
2330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2331
2332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2333
2334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2335
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2337 $as_echo_n "checking whether build environment is sane... " >&6; }
2338 # Just in case
2339 sleep 1
2340 echo timestamp > conftest.file
2341 # Reject unsafe characters in $srcdir or the absolute working directory
2342 # name. Accept space and tab only in the latter.
2343 am_lf='
2344 '
2345 case `pwd` in
2346 *[\\\"\#\$\&\'\`$am_lf]*)
2347 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2348 esac
2349 case $srcdir in
2350 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2351 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2352 esac
2353
2354 # Do `set' in a subshell so we don't clobber the current shell's
2355 # arguments. Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2358 # directory).
2359 if (
2360 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2361 if test "$*" = "X"; then
2362 # -L didn't work.
2363 set X `ls -t "$srcdir/configure" conftest.file`
2364 fi
2365 rm -f conftest.file
2366 if test "$*" != "X $srcdir/configure conftest.file" \
2367 && test "$*" != "X conftest.file $srcdir/configure"; then
2368
2369 # If neither matched, then we have a broken ls. This can happen
2370 # if, for instance, CONFIG_SHELL is bash and it inherits a
2371 # broken ls alias from the environment. This has actually
2372 # happened. Such a system could not be considered "sane".
2373 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2374 alias in your environment" "$LINENO" 5
2375 fi
2376
2377 test "$2" = conftest.file
2378 )
2379 then
2380 # Ok.
2381 :
2382 else
2383 as_fn_error $? "newly created file is older than distributed files!
2384 Check your system clock" "$LINENO" 5
2385 fi
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2387 $as_echo "yes" >&6; }
2388 test "$program_prefix" != NONE &&
2389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2390 # Use a double $ so make ignores it.
2391 test "$program_suffix" != NONE &&
2392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2393 # Double any \ or $.
2394 # By default was `s,x,x', remove it if useless.
2395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2397
2398 # expand $ac_aux_dir to an absolute path
2399 am_aux_dir=`cd $ac_aux_dir && pwd`
2400
2401 if test x"${MISSING+set}" != xset; then
2402 case $am_aux_dir in
2403 *\ * | *\ *)
2404 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2405 *)
2406 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2407 esac
2408 fi
2409 # Use eval to expand $SHELL
2410 if eval "$MISSING --run true"; then
2411 am_missing_run="$MISSING --run "
2412 else
2413 am_missing_run=
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2415 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2416 fi
2417
2418 if test x"${install_sh}" != xset; then
2419 case $am_aux_dir in
2420 *\ * | *\ *)
2421 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2422 *)
2423 install_sh="\${SHELL} $am_aux_dir/install-sh"
2424 esac
2425 fi
2426
2427 # Installed binaries are usually stripped using `strip' when the user
2428 # run `make install-strip'. However `strip' might not be the right
2429 # tool to use in cross-compilation environments, therefore Automake
2430 # will honor the `STRIP' environment variable to overrule this program.
2431 if test "$cross_compiling" != no; then
2432 if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}strip; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if ${ac_cv_prog_STRIP+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test -n "$STRIP"; then
2441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 STRIP=$ac_cv_prog_STRIP
2461 if test -n "$STRIP"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2463 $as_echo "$STRIP" >&6; }
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2467 fi
2468
2469
2470 fi
2471 if test -z "$ac_cv_prog_STRIP"; then
2472 ac_ct_STRIP=$STRIP
2473 # Extract the first word of "strip", so it can be a program name with args.
2474 set dummy strip; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$ac_ct_STRIP"; then
2481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_ac_ct_STRIP="strip"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2501 if test -n "$ac_ct_STRIP"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2503 $as_echo "$ac_ct_STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509 if test "x$ac_ct_STRIP" = x; then
2510 STRIP=":"
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518 STRIP=$ac_ct_STRIP
2519 fi
2520 else
2521 STRIP="$ac_cv_prog_STRIP"
2522 fi
2523
2524 fi
2525 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2526
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2528 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2529 if test -z "$MKDIR_P"; then
2530 if ${ac_cv_path_mkdir+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_prog in mkdir gmkdir; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2541 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2542 'mkdir (GNU coreutils) '* | \
2543 'mkdir (coreutils) '* | \
2544 'mkdir (fileutils) '4.1*)
2545 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2546 break 3;;
2547 esac
2548 done
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554
2555 test -d ./--version && rmdir ./--version
2556 if test "${ac_cv_path_mkdir+set}" = set; then
2557 MKDIR_P="$ac_cv_path_mkdir -p"
2558 else
2559 # As a last resort, use the slow shell script. Don't cache a
2560 # value for MKDIR_P within a source directory, because that will
2561 # break other packages using the cache if that directory is
2562 # removed, or if the value is a relative name.
2563 MKDIR_P="$ac_install_sh -d"
2564 fi
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2567 $as_echo "$MKDIR_P" >&6; }
2568
2569 mkdir_p="$MKDIR_P"
2570 case $mkdir_p in
2571 [\\/$]* | ?:[\\/]*) ;;
2572 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2573 esac
2574
2575 for ac_prog in gawk mawk nawk awk
2576 do
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_AWK+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$AWK"; then
2585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_AWK="$ac_prog"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 AWK=$ac_cv_prog_AWK
2605 if test -n "$AWK"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2607 $as_echo "$AWK" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 test -n "$AWK" && break
2615 done
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2619 set x ${MAKE-make}
2620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2621 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 cat >conftest.make <<\_ACEOF
2625 SHELL = /bin/sh
2626 all:
2627 @echo '@@@%%%=$(MAKE)=@@@%%%'
2628 _ACEOF
2629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2631 *@@@%%%=?*=@@@%%%*)
2632 eval ac_cv_prog_make_${ac_make}_set=yes;;
2633 *)
2634 eval ac_cv_prog_make_${ac_make}_set=no;;
2635 esac
2636 rm -f conftest.make
2637 fi
2638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2641 SET_MAKE=
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 SET_MAKE="MAKE=${MAKE-make}"
2646 fi
2647
2648 rm -rf .tst 2>/dev/null
2649 mkdir .tst 2>/dev/null
2650 if test -d .tst; then
2651 am__leading_dot=.
2652 else
2653 am__leading_dot=_
2654 fi
2655 rmdir .tst 2>/dev/null
2656
2657 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2658 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2659 # is not polluted with repeated "-I."
2660 am__isrc=' -I$(srcdir)'
2661 # test to see if srcdir already configured
2662 if test -f $srcdir/config.status; then
2663 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2664 fi
2665 fi
2666
2667 # test whether we have cygpath
2668 if test -z "$CYGPATH_W"; then
2669 if (cygpath --version) >/dev/null 2>/dev/null; then
2670 CYGPATH_W='cygpath -w'
2671 else
2672 CYGPATH_W=echo
2673 fi
2674 fi
2675
2676
2677 # Define the identity of the package.
2678 PACKAGE='mialm'
2679 VERSION='1.0.9'
2680
2681
2682 # Some tools Automake needs.
2683
2684 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2685
2686
2687 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2688
2689
2690 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2691
2692
2693 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2694
2695
2696 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2697
2698 # We need awk for the "check" target. The system "awk" is bad on
2699 # some platforms.
2700 # Always define AMTAR for backward compatibility. Yes, it's still used
2701 # in the wild :-( We should find a proper way to deprecate it ...
2702 AMTAR='$${TAR-tar}'
2703
2704 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2705
2706
2707
2708
2709
2710 ac_config_headers="$ac_config_headers config.h"
2711
2712
2713
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2716 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2717 # Check whether --enable-maintainer-mode was given.
2718 if test "${enable_maintainer_mode+set}" = set; then :
2719 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2720 else
2721 USE_MAINTAINER_MODE=no
2722 fi
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2725 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2726 if test $USE_MAINTAINER_MODE = yes; then
2727 MAINTAINER_MODE_TRUE=
2728 MAINTAINER_MODE_FALSE='#'
2729 else
2730 MAINTAINER_MODE_TRUE='#'
2731 MAINTAINER_MODE_FALSE=
2732 fi
2733
2734 MAINT=$MAINTAINER_MODE_TRUE
2735
2736
2737
2738 DEPDIR="${am__leading_dot}deps"
2739
2740 ac_config_commands="$ac_config_commands depfiles"
2741
2742
2743 am_make=${MAKE-make}
2744 cat > confinc << 'END'
2745 am__doit:
2746 @echo this is the am__doit target
2747 .PHONY: am__doit
2748 END
2749 # If we don't find an include directive, just comment out the code.
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2751 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2752 am__include="#"
2753 am__quote=
2754 _am_result=none
2755 # First try GNU make style include.
2756 echo "include confinc" > confmf
2757 # Ignore all kinds of additional output from `make'.
2758 case `$am_make -s -f confmf 2> /dev/null` in #(
2759 *the\ am__doit\ target*)
2760 am__include=include
2761 am__quote=
2762 _am_result=GNU
2763 ;;
2764 esac
2765 # Now try BSD make style include.
2766 if test "$am__include" = "#"; then
2767 echo '.include "confinc"' > confmf
2768 case `$am_make -s -f confmf 2> /dev/null` in #(
2769 *the\ am__doit\ target*)
2770 am__include=.include
2771 am__quote="\""
2772 _am_result=BSD
2773 ;;
2774 esac
2775 fi
2776
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2779 $as_echo "$_am_result" >&6; }
2780 rm -f confinc confmf
2781
2782 # Check whether --enable-dependency-tracking was given.
2783 if test "${enable_dependency_tracking+set}" = set; then :
2784 enableval=$enable_dependency_tracking;
2785 fi
2786
2787 if test "x$enable_dependency_tracking" != xno; then
2788 am_depcomp="$ac_aux_dir/depcomp"
2789 AMDEPBACKSLASH='\'
2790 am__nodep='_no'
2791 fi
2792 if test "x$enable_dependency_tracking" != xno; then
2793 AMDEP_TRUE=
2794 AMDEP_FALSE='#'
2795 else
2796 AMDEP_TRUE='#'
2797 AMDEP_FALSE=
2798 fi
2799
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test -n "$ac_tool_prefix"; then
2807 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2808 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_CC+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843
2844 fi
2845 if test -z "$ac_cv_prog_CC"; then
2846 ac_ct_CC=$CC
2847 # Extract the first word of "gcc", so it can be a program name with args.
2848 set dummy gcc; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$ac_ct_CC"; then
2855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_ac_ct_CC="gcc"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868 done
2869 done
2870 IFS=$as_save_IFS
2871
2872 fi
2873 fi
2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 if test -n "$ac_ct_CC"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2877 $as_echo "$ac_ct_CC" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881 fi
2882
2883 if test "x$ac_ct_CC" = x; then
2884 CC=""
2885 else
2886 case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned=yes ;;
2891 esac
2892 CC=$ac_ct_CC
2893 fi
2894 else
2895 CC="$ac_cv_prog_CC"
2896 fi
2897
2898 if test -z "$CC"; then
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}cc; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_CC+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_CC="${ac_tool_prefix}cc"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 fi
2939 if test -z "$CC"; then
2940 # Extract the first word of "cc", so it can be a program name with args.
2941 set dummy cc; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 ac_prog_rejected=no
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2959 ac_prog_rejected=yes
2960 continue
2961 fi
2962 ac_cv_prog_CC="cc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 if test $ac_prog_rejected = yes; then
2971 # We found a bogon in the path, so make sure we never use it.
2972 set dummy $ac_cv_prog_CC
2973 shift
2974 if test $# != 0; then
2975 # We chose a different compiler from the bogus one.
2976 # However, it has the same basename, so the bogon will be chosen
2977 # first if we set CC to just the basename; use the full file name.
2978 shift
2979 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2980 fi
2981 fi
2982 fi
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 $as_echo "$CC" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 for ac_prog in cl.exe
2998 do
2999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_CC+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035
3036 test -n "$CC" && break
3037 done
3038 fi
3039 if test -z "$CC"; then
3040 ac_ct_CC=$CC
3041 for ac_prog in cl.exe
3042 do
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_ac_ct_CC="$ac_prog"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3063 fi
3064 done
3065 done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3073 $as_echo "$ac_ct_CC" >&6; }
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079
3080 test -n "$ac_ct_CC" && break
3081 done
3082
3083 if test "x$ac_ct_CC" = x; then
3084 CC=""
3085 else
3086 case $cross_compiling:$ac_tool_warned in
3087 yes:)
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090 ac_tool_warned=yes ;;
3091 esac
3092 CC=$ac_ct_CC
3093 fi
3094 fi
3095
3096 fi
3097
3098
3099 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error $? "no acceptable C compiler found in \$PATH
3102 See \`config.log' for more details" "$LINENO" 5; }
3103
3104 # Provide some information about the compiler.
3105 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3106 set X $ac_compile
3107 ac_compiler=$2
3108 for ac_option in --version -v -V -qversion; do
3109 { { ac_try="$ac_compiler $ac_option >&5"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3117 ac_status=$?
3118 if test -s conftest.err; then
3119 sed '10a\
3120 ... rest of stderr output deleted ...
3121 10q' conftest.err >conftest.er1
3122 cat conftest.er1 >&5
3123 fi
3124 rm -f conftest.er1 conftest.err
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }
3127 done
3128
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3131
3132 int
3133 main ()
3134 {
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 ac_clean_files_save=$ac_clean_files
3141 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3142 # Try to create an executable without -o first, disregard a.out.
3143 # It will help us diagnose broken compilers, and finding out an intuition
3144 # of exeext.
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3146 $as_echo_n "checking whether the C compiler works... " >&6; }
3147 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3148
3149 # The possible output files:
3150 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3151
3152 ac_rmfiles=
3153 for ac_file in $ac_files
3154 do
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3158 esac
3159 done
3160 rm -f $ac_rmfiles
3161
3162 if { { ac_try="$ac_link_default"
3163 case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_link_default") 2>&5
3170 ac_status=$?
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }; then :
3173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3174 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3175 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3176 # so that the user can short-circuit this test for compilers unknown to
3177 # Autoconf.
3178 for ac_file in $ac_files ''
3179 do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3183 ;;
3184 [ab].out )
3185 # We found the default executable, but exeext='' is most
3186 # certainly right.
3187 break;;
3188 *.* )
3189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3190 then :; else
3191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192 fi
3193 # We set ac_cv_exeext here because the later test for it is not
3194 # safe: cross compilers may not add the suffix if given an `-o'
3195 # argument, so we may need to know it at that point already.
3196 # Even if this section looks crufty: it has the advantage of
3197 # actually working.
3198 break;;
3199 * )
3200 break;;
3201 esac
3202 done
3203 test "$ac_cv_exeext" = no && ac_cv_exeext=
3204
3205 else
3206 ac_file=''
3207 fi
3208 if test -z "$ac_file"; then :
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 $as_echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error 77 "C compiler cannot create executables
3217 See \`config.log' for more details" "$LINENO" 5; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3221 fi
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3223 $as_echo_n "checking for C compiler default output file name... " >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3225 $as_echo "$ac_file" >&6; }
3226 ac_exeext=$ac_cv_exeext
3227
3228 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3229 ac_clean_files=$ac_clean_files_save
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3231 $as_echo_n "checking for suffix of executables... " >&6; }
3232 if { { ac_try="$ac_link"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_link") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3244 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3245 # work properly (i.e., refer to `conftest.exe'), while it won't with
3246 # `rm'.
3247 for ac_file in conftest.exe conftest conftest.*; do
3248 test -f "$ac_file" || continue
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252 break;;
3253 * ) break;;
3254 esac
3255 done
3256 else
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 fi
3262 rm -f conftest conftest$ac_cv_exeext
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3264 $as_echo "$ac_cv_exeext" >&6; }
3265
3266 rm -f conftest.$ac_ext
3267 EXEEXT=$ac_cv_exeext
3268 ac_exeext=$EXEEXT
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271 #include <stdio.h>
3272 int
3273 main ()
3274 {
3275 FILE *f = fopen ("conftest.out", "w");
3276 return ferror (f) || fclose (f) != 0;
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 ac_clean_files="$ac_clean_files conftest.out"
3283 # Check that the compiler produces executables we can run. If not, either
3284 # the compiler is broken, or we cross compile.
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3286 $as_echo_n "checking whether we are cross compiling... " >&6; }
3287 if test "$cross_compiling" != yes; then
3288 { { ac_try="$ac_link"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_link") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }
3299 if { ac_try='./conftest$ac_cv_exeext'
3300 { { case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 $as_echo "$ac_try_echo"; } >&5
3306 (eval "$ac_try") 2>&5
3307 ac_status=$?
3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }; }; then
3310 cross_compiling=no
3311 else
3312 if test "$cross_compiling" = maybe; then
3313 cross_compiling=yes
3314 else
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error $? "cannot run C compiled programs.
3318 If you meant to cross compile, use \`--host'.
3319 See \`config.log' for more details" "$LINENO" 5; }
3320 fi
3321 fi
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3324 $as_echo "$cross_compiling" >&6; }
3325
3326 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3327 ac_clean_files=$ac_clean_files_save
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3329 $as_echo_n "checking for suffix of object files... " >&6; }
3330 if ${ac_cv_objext+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335
3336 int
3337 main ()
3338 {
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 rm -f conftest.o conftest.obj
3345 if { { ac_try="$ac_compile"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_compile") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }; then :
3356 for ac_file in conftest.o conftest.obj conftest.*; do
3357 test -f "$ac_file" || continue;
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3360 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3361 break;;
3362 esac
3363 done
3364 else
3365 $as_echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error $? "cannot compute suffix of object files: cannot compile
3371 See \`config.log' for more details" "$LINENO" 5; }
3372 fi
3373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3376 $as_echo "$ac_cv_objext" >&6; }
3377 OBJEXT=$ac_cv_objext
3378 ac_objext=$OBJEXT
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3380 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3381 if ${ac_cv_c_compiler_gnu+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390 #ifndef __GNUC__
3391 choke me
3392 #endif
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_compiler_gnu=yes
3400 else
3401 ac_compiler_gnu=no
3402 fi
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3405
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3408 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3409 if test $ac_compiler_gnu = yes; then
3410 GCC=yes
3411 else
3412 GCC=
3413 fi
3414 ac_test_CFLAGS=${CFLAGS+set}
3415 ac_save_CFLAGS=$CFLAGS
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3417 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3418 if ${ac_cv_prog_cc_g+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 ac_save_c_werror_flag=$ac_c_werror_flag
3422 ac_c_werror_flag=yes
3423 ac_cv_prog_cc_g=no
3424 CFLAGS="-g"
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_cv_prog_cc_g=yes
3438 else
3439 CFLAGS=""
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442
3443 int
3444 main ()
3445 {
3446
3447 ;
3448 return 0;
3449 }
3450 _ACEOF
3451 if ac_fn_c_try_compile "$LINENO"; then :
3452
3453 else
3454 ac_c_werror_flag=$ac_save_c_werror_flag
3455 CFLAGS="-g"
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468 ac_cv_prog_cc_g=yes
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 fi
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 ac_c_werror_flag=$ac_save_c_werror_flag
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3478 $as_echo "$ac_cv_prog_cc_g" >&6; }
3479 if test "$ac_test_CFLAGS" = set; then
3480 CFLAGS=$ac_save_CFLAGS
3481 elif test $ac_cv_prog_cc_g = yes; then
3482 if test "$GCC" = yes; then
3483 CFLAGS="-g -O2"
3484 else
3485 CFLAGS="-g"
3486 fi
3487 else
3488 if test "$GCC" = yes; then
3489 CFLAGS="-O2"
3490 else
3491 CFLAGS=
3492 fi
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3495 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3496 if ${ac_cv_prog_cc_c89+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 ac_cv_prog_cc_c89=no
3500 ac_save_CC=$CC
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503 #include <stdarg.h>
3504 #include <stdio.h>
3505 struct stat;
3506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3507 struct buf { int x; };
3508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3509 static char *e (p, i)
3510 char **p;
3511 int i;
3512 {
3513 return p[i];
3514 }
3515 static char *f (char * (*g) (char **, int), char **p, ...)
3516 {
3517 char *s;
3518 va_list v;
3519 va_start (v,p);
3520 s = g (p, va_arg (v,int));
3521 va_end (v);
3522 return s;
3523 }
3524
3525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3526 function prototypes and stuff, but not '\xHH' hex character constants.
3527 These don't provoke an error unfortunately, instead are silently treated
3528 as 'x'. The following induces an error, until -std is added to get
3529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3530 array size at least. It's necessary to write '\x00'==0 to get something
3531 that's true only with -std. */
3532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3533
3534 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3535 inside strings and character constants. */
3536 #define FOO(x) 'x'
3537 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3538
3539 int test (int i, double x);
3540 struct s1 {int (*f) (int a);};
3541 struct s2 {int (*f) (double a);};
3542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3543 int argc;
3544 char **argv;
3545 int
3546 main ()
3547 {
3548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3549 ;
3550 return 0;
3551 }
3552 _ACEOF
3553 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3554 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3555 do
3556 CC="$ac_save_CC $ac_arg"
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_c89=$ac_arg
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext
3561 test "x$ac_cv_prog_cc_c89" != "xno" && break
3562 done
3563 rm -f conftest.$ac_ext
3564 CC=$ac_save_CC
3565
3566 fi
3567 # AC_CACHE_VAL
3568 case "x$ac_cv_prog_cc_c89" in
3569 x)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571 $as_echo "none needed" >&6; } ;;
3572 xno)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3574 $as_echo "unsupported" >&6; } ;;
3575 *)
3576 CC="$CC $ac_cv_prog_cc_c89"
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3578 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3579 esac
3580 if test "x$ac_cv_prog_cc_c89" != xno; then :
3581
3582 fi
3583
3584 ac_ext=c
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590 depcc="$CC" am_compiler_list=
3591
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3593 $as_echo_n "checking dependency style of $depcc... " >&6; }
3594 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3598 # We make a subdir and do the tests there. Otherwise we can end up
3599 # making bogus files that we don't know about and never remove. For
3600 # instance it was reported that on HP-UX the gcc test will end up
3601 # making a dummy file named `D' -- because `-MD' means `put the output
3602 # in D'.
3603 rm -rf conftest.dir
3604 mkdir conftest.dir
3605 # Copy depcomp to subdir because otherwise we won't find it if we're
3606 # using a relative directory.
3607 cp "$am_depcomp" conftest.dir
3608 cd conftest.dir
3609 # We will build objects and dependencies in a subdirectory because
3610 # it helps to detect inapplicable dependency modes. For instance
3611 # both Tru64's cc and ICC support -MD to output dependencies as a
3612 # side effect of compilation, but ICC will put the dependencies in
3613 # the current directory while Tru64 will put them in the object
3614 # directory.
3615 mkdir sub
3616
3617 am_cv_CC_dependencies_compiler_type=none
3618 if test "$am_compiler_list" = ""; then
3619 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3620 fi
3621 am__universal=false
3622 case " $depcc " in #(
3623 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3624 esac
3625
3626 for depmode in $am_compiler_list; do
3627 # Setup a source with many dependencies, because some compilers
3628 # like to wrap large dependency lists on column 80 (with \), and
3629 # we should not choose a depcomp mode which is confused by this.
3630 #
3631 # We need to recreate these files for each test, as the compiler may
3632 # overwrite some of them when testing with obscure command lines.
3633 # This happens at least with the AIX C compiler.
3634 : > sub/conftest.c
3635 for i in 1 2 3 4 5 6; do
3636 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3637 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3638 # Solaris 8's {/usr,}/bin/sh.
3639 touch sub/conftst$i.h
3640 done
3641 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3642
3643 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3644 # mode. It turns out that the SunPro C++ compiler does not properly
3645 # handle `-M -o', and we need to detect this. Also, some Intel
3646 # versions had trouble with output in subdirs
3647 am__obj=sub/conftest.${OBJEXT-o}
3648 am__minus_obj="-o $am__obj"
3649 case $depmode in
3650 gcc)
3651 # This depmode causes a compiler race in universal mode.
3652 test "$am__universal" = false || continue
3653 ;;
3654 nosideeffect)
3655 # after this tag, mechanisms are not by side-effect, so they'll
3656 # only be used when explicitly requested
3657 if test "x$enable_dependency_tracking" = xyes; then
3658 continue
3659 else
3660 break
3661 fi
3662 ;;
3663 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3664 # This compiler won't grok `-c -o', but also, the minuso test has
3665 # not run yet. These depmodes are late enough in the game, and
3666 # so weak that their functioning should not be impacted.
3667 am__obj=conftest.${OBJEXT-o}
3668 am__minus_obj=
3669 ;;
3670 none) break ;;
3671 esac
3672 if depmode=$depmode \
3673 source=sub/conftest.c object=$am__obj \
3674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3675 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3676 >/dev/null 2>conftest.err &&
3677 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3678 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3680 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681 # icc doesn't choke on unknown options, it will just issue warnings
3682 # or remarks (even with -Werror). So we grep stderr for any message
3683 # that says an option was ignored or not supported.
3684 # When given -MP, icc 7.0 and 7.1 complain thusly:
3685 # icc: Command line warning: ignoring option '-M'; no argument required
3686 # The diagnosis changed in icc 8.0:
3687 # icc: Command line remark: option '-MP' not supported
3688 if (grep 'ignoring option' conftest.err ||
3689 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690 am_cv_CC_dependencies_compiler_type=$depmode
3691 break
3692 fi
3693 fi
3694 done
3695
3696 cd ..
3697 rm -rf conftest.dir
3698 else
3699 am_cv_CC_dependencies_compiler_type=none
3700 fi
3701
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3704 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3705 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3706
3707 if
3708 test "x$enable_dependency_tracking" != xno \
3709 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3710 am__fastdepCC_TRUE=
3711 am__fastdepCC_FALSE='#'
3712 else
3713 am__fastdepCC_TRUE='#'
3714 am__fastdepCC_FALSE=
3715 fi
3716
3717
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3720 $as_echo_n "checking for library containing strerror... " >&6; }
3721 if ${ac_cv_search_strerror+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 ac_func_search_save_LIBS=$LIBS
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727
3728 /* Override any GCC internal prototype to avoid an error.
3729 Use char because int might match the return type of a GCC
3730 builtin and then its argument prototype would still apply. */
3731 #ifdef __cplusplus
3732 extern "C"
3733 #endif
3734 char strerror ();
3735 int
3736 main ()
3737 {
3738 return strerror ();
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 for ac_lib in '' cposix; do
3744 if test -z "$ac_lib"; then
3745 ac_res="none required"
3746 else
3747 ac_res=-l$ac_lib
3748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3749 fi
3750 if ac_fn_c_try_link "$LINENO"; then :
3751 ac_cv_search_strerror=$ac_res
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext \
3754 conftest$ac_exeext
3755 if ${ac_cv_search_strerror+:} false; then :
3756 break
3757 fi
3758 done
3759 if ${ac_cv_search_strerror+:} false; then :
3760
3761 else
3762 ac_cv_search_strerror=no
3763 fi
3764 rm conftest.$ac_ext
3765 LIBS=$ac_func_search_save_LIBS
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3768 $as_echo "$ac_cv_search_strerror" >&6; }
3769 ac_res=$ac_cv_search_strerror
3770 if test "$ac_res" != no; then :
3771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3772
3773 fi
3774
3775 CFLAGS=$CFLAGS
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819
3820 fi
3821 if test -z "$ac_cv_prog_CC"; then
3822 ac_ct_CC=$CC
3823 # Extract the first word of "gcc", so it can be a program name with args.
3824 set dummy gcc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if test -n "$ac_ct_CC"; then
3831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_CC="gcc"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844 done
3845 done
3846 IFS=$as_save_IFS
3847
3848 fi
3849 fi
3850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851 if test -n "$ac_ct_CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853 $as_echo "$ac_ct_CC" >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3857 fi
3858
3859 if test "x$ac_ct_CC" = x; then
3860 CC=""
3861 else
3862 case $cross_compiling:$ac_tool_warned in
3863 yes:)
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3866 ac_tool_warned=yes ;;
3867 esac
3868 CC=$ac_ct_CC
3869 fi
3870 else
3871 CC="$ac_cv_prog_CC"
3872 fi
3873
3874 if test -z "$CC"; then
3875 if test -n "$ac_tool_prefix"; then
3876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CC+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893 ac_cv_prog_CC="${ac_tool_prefix}cc"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3896 fi
3897 done
3898 done
3899 IFS=$as_save_IFS
3900
3901 fi
3902 fi
3903 CC=$ac_cv_prog_CC
3904 if test -n "$CC"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 $as_echo "$CC" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3910 fi
3911
3912
3913 fi
3914 fi
3915 if test -z "$CC"; then
3916 # Extract the first word of "cc", so it can be a program name with args.
3917 set dummy cc; 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_CC+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926 ac_prog_rejected=no
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3935 ac_prog_rejected=yes
3936 continue
3937 fi
3938 ac_cv_prog_CC="cc"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942 done
3943 done
3944 IFS=$as_save_IFS
3945
3946 if test $ac_prog_rejected = yes; then
3947 # We found a bogon in the path, so make sure we never use it.
3948 set dummy $ac_cv_prog_CC
3949 shift
3950 if test $# != 0; then
3951 # We chose a different compiler from the bogus one.
3952 # However, it has the same basename, so the bogon will be chosen
3953 # first if we set CC to just the basename; use the full file name.
3954 shift
3955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3956 fi
3957 fi
3958 fi
3959 fi
3960 CC=$ac_cv_prog_CC
3961 if test -n "$CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963 $as_echo "$CC" >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970 fi
3971 if test -z "$CC"; then
3972 if test -n "$ac_tool_prefix"; then
3973 for ac_prog in cl.exe
3974 do
3975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_CC+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 CC=$ac_cv_prog_CC
4003 if test -n "$CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011
4012 test -n "$CC" && break
4013 done
4014 fi
4015 if test -z "$CC"; then
4016 ac_ct_CC=$CC
4017 for ac_prog in cl.exe
4018 do
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_ac_ct_CC="$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049 $as_echo "$ac_ct_CC" >&6; }
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056 test -n "$ac_ct_CC" && break
4057 done
4058
4059 if test "x$ac_ct_CC" = x; then
4060 CC=""
4061 else
4062 case $cross_compiling:$ac_tool_warned in
4063 yes:)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068 CC=$ac_ct_CC
4069 fi
4070 fi
4071
4072 fi
4073
4074
4075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error $? "no acceptable C compiler found in \$PATH
4078 See \`config.log' for more details" "$LINENO" 5; }
4079
4080 # Provide some information about the compiler.
4081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4082 set X $ac_compile
4083 ac_compiler=$2
4084 for ac_option in --version -v -V -qversion; do
4085 { { ac_try="$ac_compiler $ac_option >&5"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4093 ac_status=$?
4094 if test -s conftest.err; then
4095 sed '10a\
4096 ... rest of stderr output deleted ...
4097 10q' conftest.err >conftest.er1
4098 cat conftest.er1 >&5
4099 fi
4100 rm -f conftest.er1 conftest.err
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }
4103 done
4104
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4106 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4107 if ${ac_cv_c_compiler_gnu+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main ()
4115 {
4116 #ifndef __GNUC__
4117 choke me
4118 #endif
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_compiler_gnu=yes
4126 else
4127 ac_compiler_gnu=no
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4131
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4134 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4135 if test $ac_compiler_gnu = yes; then
4136 GCC=yes
4137 else
4138 GCC=
4139 fi
4140 ac_test_CFLAGS=${CFLAGS+set}
4141 ac_save_CFLAGS=$CFLAGS
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4143 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4144 if ${ac_cv_prog_cc_g+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 ac_save_c_werror_flag=$ac_c_werror_flag
4148 ac_c_werror_flag=yes
4149 ac_cv_prog_cc_g=no
4150 CFLAGS="-g"
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153
4154 int
4155 main ()
4156 {
4157
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_g=yes
4164 else
4165 CFLAGS=""
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main ()
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178
4179 else
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4181 CFLAGS="-g"
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184
4185 int
4186 main ()
4187 {
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_prog_cc_g=yes
4195 fi
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_c_werror_flag=$ac_save_c_werror_flag
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4204 $as_echo "$ac_cv_prog_cc_g" >&6; }
4205 if test "$ac_test_CFLAGS" = set; then
4206 CFLAGS=$ac_save_CFLAGS
4207 elif test $ac_cv_prog_cc_g = yes; then
4208 if test "$GCC" = yes; then
4209 CFLAGS="-g -O2"
4210 else
4211 CFLAGS="-g"
4212 fi
4213 else
4214 if test "$GCC" = yes; then
4215 CFLAGS="-O2"
4216 else
4217 CFLAGS=
4218 fi
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4221 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4222 if ${ac_cv_prog_cc_c89+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 ac_cv_prog_cc_c89=no
4226 ac_save_CC=$CC
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <stdarg.h>
4230 #include <stdio.h>
4231 struct stat;
4232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4233 struct buf { int x; };
4234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4235 static char *e (p, i)
4236 char **p;
4237 int i;
4238 {
4239 return p[i];
4240 }
4241 static char *f (char * (*g) (char **, int), char **p, ...)
4242 {
4243 char *s;
4244 va_list v;
4245 va_start (v,p);
4246 s = g (p, va_arg (v,int));
4247 va_end (v);
4248 return s;
4249 }
4250
4251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4252 function prototypes and stuff, but not '\xHH' hex character constants.
4253 These don't provoke an error unfortunately, instead are silently treated
4254 as 'x'. The following induces an error, until -std is added to get
4255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4256 array size at least. It's necessary to write '\x00'==0 to get something
4257 that's true only with -std. */
4258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4259
4260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4261 inside strings and character constants. */
4262 #define FOO(x) 'x'
4263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4264
4265 int test (int i, double x);
4266 struct s1 {int (*f) (int a);};
4267 struct s2 {int (*f) (double a);};
4268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4269 int argc;
4270 char **argv;
4271 int
4272 main ()
4273 {
4274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4281 do
4282 CC="$ac_save_CC $ac_arg"
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_cv_prog_cc_c89=$ac_arg
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext
4287 test "x$ac_cv_prog_cc_c89" != "xno" && break
4288 done
4289 rm -f conftest.$ac_ext
4290 CC=$ac_save_CC
4291
4292 fi
4293 # AC_CACHE_VAL
4294 case "x$ac_cv_prog_cc_c89" in
4295 x)
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4297 $as_echo "none needed" >&6; } ;;
4298 xno)
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 $as_echo "unsupported" >&6; } ;;
4301 *)
4302 CC="$CC $ac_cv_prog_cc_c89"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4305 esac
4306 if test "x$ac_cv_prog_cc_c89" != xno; then :
4307
4308 fi
4309
4310 ac_ext=c
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315
4316 depcc="$CC" am_compiler_list=
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4319 $as_echo_n "checking dependency style of $depcc... " >&6; }
4320 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4324 # We make a subdir and do the tests there. Otherwise we can end up
4325 # making bogus files that we don't know about and never remove. For
4326 # instance it was reported that on HP-UX the gcc test will end up
4327 # making a dummy file named `D' -- because `-MD' means `put the output
4328 # in D'.
4329 rm -rf conftest.dir
4330 mkdir conftest.dir
4331 # Copy depcomp to subdir because otherwise we won't find it if we're
4332 # using a relative directory.
4333 cp "$am_depcomp" conftest.dir
4334 cd conftest.dir
4335 # We will build objects and dependencies in a subdirectory because
4336 # it helps to detect inapplicable dependency modes. For instance
4337 # both Tru64's cc and ICC support -MD to output dependencies as a
4338 # side effect of compilation, but ICC will put the dependencies in
4339 # the current directory while Tru64 will put them in the object
4340 # directory.
4341 mkdir sub
4342
4343 am_cv_CC_dependencies_compiler_type=none
4344 if test "$am_compiler_list" = ""; then
4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346 fi
4347 am__universal=false
4348 case " $depcc " in #(
4349 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4350 esac
4351
4352 for depmode in $am_compiler_list; do
4353 # Setup a source with many dependencies, because some compilers
4354 # like to wrap large dependency lists on column 80 (with \), and
4355 # we should not choose a depcomp mode which is confused by this.
4356 #
4357 # We need to recreate these files for each test, as the compiler may
4358 # overwrite some of them when testing with obscure command lines.
4359 # This happens at least with the AIX C compiler.
4360 : > sub/conftest.c
4361 for i in 1 2 3 4 5 6; do
4362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4364 # Solaris 8's {/usr,}/bin/sh.
4365 touch sub/conftst$i.h
4366 done
4367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4368
4369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4370 # mode. It turns out that the SunPro C++ compiler does not properly
4371 # handle `-M -o', and we need to detect this. Also, some Intel
4372 # versions had trouble with output in subdirs
4373 am__obj=sub/conftest.${OBJEXT-o}
4374 am__minus_obj="-o $am__obj"
4375 case $depmode in
4376 gcc)
4377 # This depmode causes a compiler race in universal mode.
4378 test "$am__universal" = false || continue
4379 ;;
4380 nosideeffect)
4381 # after this tag, mechanisms are not by side-effect, so they'll
4382 # only be used when explicitly requested
4383 if test "x$enable_dependency_tracking" = xyes; then
4384 continue
4385 else
4386 break
4387 fi
4388 ;;
4389 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4390 # This compiler won't grok `-c -o', but also, the minuso test has
4391 # not run yet. These depmodes are late enough in the game, and
4392 # so weak that their functioning should not be impacted.
4393 am__obj=conftest.${OBJEXT-o}
4394 am__minus_obj=
4395 ;;
4396 none) break ;;
4397 esac
4398 if depmode=$depmode \
4399 source=sub/conftest.c object=$am__obj \
4400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4401 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4402 >/dev/null 2>conftest.err &&
4403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4405 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4407 # icc doesn't choke on unknown options, it will just issue warnings
4408 # or remarks (even with -Werror). So we grep stderr for any message
4409 # that says an option was ignored or not supported.
4410 # When given -MP, icc 7.0 and 7.1 complain thusly:
4411 # icc: Command line warning: ignoring option '-M'; no argument required
4412 # The diagnosis changed in icc 8.0:
4413 # icc: Command line remark: option '-MP' not supported
4414 if (grep 'ignoring option' conftest.err ||
4415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4416 am_cv_CC_dependencies_compiler_type=$depmode
4417 break
4418 fi
4419 fi
4420 done
4421
4422 cd ..
4423 rm -rf conftest.dir
4424 else
4425 am_cv_CC_dependencies_compiler_type=none
4426 fi
4427
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4430 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4432
4433 if
4434 test "x$enable_dependency_tracking" != xno \
4435 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4436 am__fastdepCC_TRUE=
4437 am__fastdepCC_FALSE='#'
4438 else
4439 am__fastdepCC_TRUE='#'
4440 am__fastdepCC_FALSE=
4441 fi
4442
4443
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 if test -n "$ac_tool_prefix"; then
4450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if ${ac_cv_prog_CC+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$CC"; then
4458 ac_cv_prog_CC="$CC" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4470 fi
4471 done
4472 done
4473 IFS=$as_save_IFS
4474
4475 fi
4476 fi
4477 CC=$ac_cv_prog_CC
4478 if test -n "$CC"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4480 $as_echo "$CC" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 fi
4485
4486
4487 fi
4488 if test -z "$ac_cv_prog_CC"; then
4489 ac_ct_CC=$CC
4490 # Extract the first word of "gcc", so it can be a program name with args.
4491 set dummy gcc; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test -n "$ac_ct_CC"; then
4498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507 ac_cv_prog_ac_ct_CC="gcc"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515 fi
4516 fi
4517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4518 if test -n "$ac_ct_CC"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4520 $as_echo "$ac_ct_CC" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525
4526 if test "x$ac_ct_CC" = x; then
4527 CC=""
4528 else
4529 case $cross_compiling:$ac_tool_warned in
4530 yes:)
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4533 ac_tool_warned=yes ;;
4534 esac
4535 CC=$ac_ct_CC
4536 fi
4537 else
4538 CC="$ac_cv_prog_CC"
4539 fi
4540
4541 if test -z "$CC"; then
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4544 set dummy ${ac_tool_prefix}cc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_CC+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_CC="${ac_tool_prefix}cc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 fi
4569 fi
4570 CC=$ac_cv_prog_CC
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 fi
4582 if test -z "$CC"; then
4583 # Extract the first word of "cc", so it can be a program name with args.
4584 set dummy cc; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_CC+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -n "$CC"; then
4591 ac_cv_prog_CC="$CC" # Let the user override the test.
4592 else
4593 ac_prog_rejected=no
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4602 ac_prog_rejected=yes
4603 continue
4604 fi
4605 ac_cv_prog_CC="cc"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 if test $ac_prog_rejected = yes; then
4614 # We found a bogon in the path, so make sure we never use it.
4615 set dummy $ac_cv_prog_CC
4616 shift
4617 if test $# != 0; then
4618 # We chose a different compiler from the bogus one.
4619 # However, it has the same basename, so the bogon will be chosen
4620 # first if we set CC to just the basename; use the full file name.
4621 shift
4622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4623 fi
4624 fi
4625 fi
4626 fi
4627 CC=$ac_cv_prog_CC
4628 if test -n "$CC"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4630 $as_echo "$CC" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 fi
4638 if test -z "$CC"; then
4639 if test -n "$ac_tool_prefix"; then
4640 for ac_prog in cl.exe
4641 do
4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_CC+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$CC"; then
4650 ac_cv_prog_CC="$CC" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 CC=$ac_cv_prog_CC
4670 if test -n "$CC"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4672 $as_echo "$CC" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679 test -n "$CC" && break
4680 done
4681 fi
4682 if test -z "$CC"; then
4683 ac_ct_CC=$CC
4684 for ac_prog in cl.exe
4685 do
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$ac_ct_CC"; then
4694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_ac_ct_CC="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4714 if test -n "$ac_ct_CC"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4716 $as_echo "$ac_ct_CC" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 test -n "$ac_ct_CC" && break
4724 done
4725
4726 if test "x$ac_ct_CC" = x; then
4727 CC=""
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735 CC=$ac_ct_CC
4736 fi
4737 fi
4738
4739 fi
4740
4741
4742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error $? "no acceptable C compiler found in \$PATH
4745 See \`config.log' for more details" "$LINENO" 5; }
4746
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4749 set X $ac_compile
4750 ac_compiler=$2
4751 for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760 ac_status=$?
4761 if test -s conftest.err; then
4762 sed '10a\
4763 ... rest of stderr output deleted ...
4764 10q' conftest.err >conftest.er1
4765 cat conftest.er1 >&5
4766 fi
4767 rm -f conftest.er1 conftest.err
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4770 done
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4773 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4774 if ${ac_cv_c_compiler_gnu+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main ()
4782 {
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4786
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 ac_compiler_gnu=yes
4793 else
4794 ac_compiler_gnu=no
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4798
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4801 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4802 if test $ac_compiler_gnu = yes; then
4803 GCC=yes
4804 else
4805 GCC=
4806 fi
4807 ac_test_CFLAGS=${CFLAGS+set}
4808 ac_save_CFLAGS=$CFLAGS
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4810 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4811 if ${ac_cv_prog_cc_g+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_save_c_werror_flag=$ac_c_werror_flag
4815 ac_c_werror_flag=yes
4816 ac_cv_prog_cc_g=no
4817 CFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_g=yes
4831 else
4832 CFLAGS=""
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835
4836 int
4837 main ()
4838 {
4839
4840 ;
4841 return 0;
4842 }
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845
4846 else
4847 ac_c_werror_flag=$ac_save_c_werror_flag
4848 CFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"; then :
4861 ac_cv_prog_cc_g=yes
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 ac_c_werror_flag=$ac_save_c_werror_flag
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4871 $as_echo "$ac_cv_prog_cc_g" >&6; }
4872 if test "$ac_test_CFLAGS" = set; then
4873 CFLAGS=$ac_save_CFLAGS
4874 elif test $ac_cv_prog_cc_g = yes; then
4875 if test "$GCC" = yes; then
4876 CFLAGS="-g -O2"
4877 else
4878 CFLAGS="-g"
4879 fi
4880 else
4881 if test "$GCC" = yes; then
4882 CFLAGS="-O2"
4883 else
4884 CFLAGS=
4885 fi
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4889 if ${ac_cv_prog_cc_c89+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 ac_cv_prog_cc_c89=no
4893 ac_save_CC=$CC
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896 #include <stdarg.h>
4897 #include <stdio.h>
4898 struct stat;
4899 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4900 struct buf { int x; };
4901 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4902 static char *e (p, i)
4903 char **p;
4904 int i;
4905 {
4906 return p[i];
4907 }
4908 static char *f (char * (*g) (char **, int), char **p, ...)
4909 {
4910 char *s;
4911 va_list v;
4912 va_start (v,p);
4913 s = g (p, va_arg (v,int));
4914 va_end (v);
4915 return s;
4916 }
4917
4918 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4919 function prototypes and stuff, but not '\xHH' hex character constants.
4920 These don't provoke an error unfortunately, instead are silently treated
4921 as 'x'. The following induces an error, until -std is added to get
4922 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4923 array size at least. It's necessary to write '\x00'==0 to get something
4924 that's true only with -std. */
4925 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4926
4927 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4928 inside strings and character constants. */
4929 #define FOO(x) 'x'
4930 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4931
4932 int test (int i, double x);
4933 struct s1 {int (*f) (int a);};
4934 struct s2 {int (*f) (double a);};
4935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4936 int argc;
4937 char **argv;
4938 int
4939 main ()
4940 {
4941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4947 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4948 do
4949 CC="$ac_save_CC $ac_arg"
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 ac_cv_prog_cc_c89=$ac_arg
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext
4954 test "x$ac_cv_prog_cc_c89" != "xno" && break
4955 done
4956 rm -f conftest.$ac_ext
4957 CC=$ac_save_CC
4958
4959 fi
4960 # AC_CACHE_VAL
4961 case "x$ac_cv_prog_cc_c89" in
4962 x)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4964 $as_echo "none needed" >&6; } ;;
4965 xno)
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4967 $as_echo "unsupported" >&6; } ;;
4968 *)
4969 CC="$CC $ac_cv_prog_cc_c89"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4971 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4972 esac
4973 if test "x$ac_cv_prog_cc_c89" != xno; then :
4974
4975 fi
4976
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983 depcc="$CC" am_compiler_list=
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4986 $as_echo_n "checking dependency style of $depcc... " >&6; }
4987 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4991 # We make a subdir and do the tests there. Otherwise we can end up
4992 # making bogus files that we don't know about and never remove. For
4993 # instance it was reported that on HP-UX the gcc test will end up
4994 # making a dummy file named `D' -- because `-MD' means `put the output
4995 # in D'.
4996 rm -rf conftest.dir
4997 mkdir conftest.dir
4998 # Copy depcomp to subdir because otherwise we won't find it if we're
4999 # using a relative directory.
5000 cp "$am_depcomp" conftest.dir
5001 cd conftest.dir
5002 # We will build objects and dependencies in a subdirectory because
5003 # it helps to detect inapplicable dependency modes. For instance
5004 # both Tru64's cc and ICC support -MD to output dependencies as a
5005 # side effect of compilation, but ICC will put the dependencies in
5006 # the current directory while Tru64 will put them in the object
5007 # directory.
5008 mkdir sub
5009
5010 am_cv_CC_dependencies_compiler_type=none
5011 if test "$am_compiler_list" = ""; then
5012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5013 fi
5014 am__universal=false
5015 case " $depcc " in #(
5016 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5017 esac
5018
5019 for depmode in $am_compiler_list; do
5020 # Setup a source with many dependencies, because some compilers
5021 # like to wrap large dependency lists on column 80 (with \), and
5022 # we should not choose a depcomp mode which is confused by this.
5023 #
5024 # We need to recreate these files for each test, as the compiler may
5025 # overwrite some of them when testing with obscure command lines.
5026 # This happens at least with the AIX C compiler.
5027 : > sub/conftest.c
5028 for i in 1 2 3 4 5 6; do
5029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5031 # Solaris 8's {/usr,}/bin/sh.
5032 touch sub/conftst$i.h
5033 done
5034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5035
5036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5037 # mode. It turns out that the SunPro C++ compiler does not properly
5038 # handle `-M -o', and we need to detect this. Also, some Intel
5039 # versions had trouble with output in subdirs
5040 am__obj=sub/conftest.${OBJEXT-o}
5041 am__minus_obj="-o $am__obj"
5042 case $depmode in
5043 gcc)
5044 # This depmode causes a compiler race in universal mode.
5045 test "$am__universal" = false || continue
5046 ;;
5047 nosideeffect)
5048 # after this tag, mechanisms are not by side-effect, so they'll
5049 # only be used when explicitly requested
5050 if test "x$enable_dependency_tracking" = xyes; then
5051 continue
5052 else
5053 break
5054 fi
5055 ;;
5056 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5057 # This compiler won't grok `-c -o', but also, the minuso test has
5058 # not run yet. These depmodes are late enough in the game, and
5059 # so weak that their functioning should not be impacted.
5060 am__obj=conftest.${OBJEXT-o}
5061 am__minus_obj=
5062 ;;
5063 none) break ;;
5064 esac
5065 if depmode=$depmode \
5066 source=sub/conftest.c object=$am__obj \
5067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5068 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5069 >/dev/null 2>conftest.err &&
5070 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5074 # icc doesn't choke on unknown options, it will just issue warnings
5075 # or remarks (even with -Werror). So we grep stderr for any message
5076 # that says an option was ignored or not supported.
5077 # When given -MP, icc 7.0 and 7.1 complain thusly:
5078 # icc: Command line warning: ignoring option '-M'; no argument required
5079 # The diagnosis changed in icc 8.0:
5080 # icc: Command line remark: option '-MP' not supported
5081 if (grep 'ignoring option' conftest.err ||
5082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5083 am_cv_CC_dependencies_compiler_type=$depmode
5084 break
5085 fi
5086 fi
5087 done
5088
5089 cd ..
5090 rm -rf conftest.dir
5091 else
5092 am_cv_CC_dependencies_compiler_type=none
5093 fi
5094
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5097 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5099
5100 if
5101 test "x$enable_dependency_tracking" != xno \
5102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5103 am__fastdepCC_TRUE=
5104 am__fastdepCC_FALSE='#'
5105 else
5106 am__fastdepCC_TRUE='#'
5107 am__fastdepCC_FALSE=
5108 fi
5109
5110
5111
5112 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5113
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5121 # On Suns, sometimes $CPP names a directory.
5122 if test -n "$CPP" && test -d "$CPP"; then
5123 CPP=
5124 fi
5125 if test -z "$CPP"; then
5126 if ${ac_cv_prog_CPP+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 # Double quotes because CPP needs to be expanded
5130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5131 do
5132 ac_preproc_ok=false
5133 for ac_c_preproc_warn_flag in '' yes
5134 do
5135 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #ifdef __STDC__
5144 # include <limits.h>
5145 #else
5146 # include <assert.h>
5147 #endif
5148 Syntax error
5149 _ACEOF
5150 if ac_fn_c_try_cpp "$LINENO"; then :
5151
5152 else
5153 # Broken: fails on valid input.
5154 continue
5155 fi
5156 rm -f conftest.err conftest.i conftest.$ac_ext
5157
5158 # OK, works on sane cases. Now check whether nonexistent headers
5159 # can be detected and how.
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <ac_nonexistent.h>
5163 _ACEOF
5164 if ac_fn_c_try_cpp "$LINENO"; then :
5165 # Broken: success on invalid input.
5166 continue
5167 else
5168 # Passes both tests.
5169 ac_preproc_ok=:
5170 break
5171 fi
5172 rm -f conftest.err conftest.i conftest.$ac_ext
5173
5174 done
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.i conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then :
5178 break
5179 fi
5180
5181 done
5182 ac_cv_prog_CPP=$CPP
5183
5184 fi
5185 CPP=$ac_cv_prog_CPP
5186 else
5187 ac_cv_prog_CPP=$CPP
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5190 $as_echo "$CPP" >&6; }
5191 ac_preproc_ok=false
5192 for ac_c_preproc_warn_flag in '' yes
5193 do
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 #ifdef __STDC__
5203 # include <limits.h>
5204 #else
5205 # include <assert.h>
5206 #endif
5207 Syntax error
5208 _ACEOF
5209 if ac_fn_c_try_cpp "$LINENO"; then :
5210
5211 else
5212 # Broken: fails on valid input.
5213 continue
5214 fi
5215 rm -f conftest.err conftest.i conftest.$ac_ext
5216
5217 # OK, works on sane cases. Now check whether nonexistent headers
5218 # can be detected and how.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if ac_fn_c_try_cpp "$LINENO"; then :
5224 # Broken: success on invalid input.
5225 continue
5226 else
5227 # Passes both tests.
5228 ac_preproc_ok=:
5229 break
5230 fi
5231 rm -f conftest.err conftest.i conftest.$ac_ext
5232
5233 done
5234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5235 rm -f conftest.i conftest.err conftest.$ac_ext
5236 if $ac_preproc_ok; then :
5237
5238 else
5239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5242 See \`config.log' for more details" "$LINENO" 5; }
5243 fi
5244
5245 ac_ext=c
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5254 if ${ac_cv_path_GREP+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -z "$GREP"; then
5258 ac_path_GREP_found=false
5259 # Loop through the user's path and test for each of PROGNAME-LIST
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_prog in grep ggrep; do
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5268 as_fn_executable_p "$ac_path_GREP" || continue
5269 # Check for GNU ac_path_GREP and select it if it is found.
5270 # Check for GNU $ac_path_GREP
5271 case `"$ac_path_GREP" --version 2>&1` in
5272 *GNU*)
5273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5274 *)
5275 ac_count=0
5276 $as_echo_n 0123456789 >"conftest.in"
5277 while :
5278 do
5279 cat "conftest.in" "conftest.in" >"conftest.tmp"
5280 mv "conftest.tmp" "conftest.in"
5281 cp "conftest.in" "conftest.nl"
5282 $as_echo 'GREP' >> "conftest.nl"
5283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5285 as_fn_arith $ac_count + 1 && ac_count=$as_val
5286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5287 # Best one so far, save it but keep looking for a better one
5288 ac_cv_path_GREP="$ac_path_GREP"
5289 ac_path_GREP_max=$ac_count
5290 fi
5291 # 10*(2^10) chars as input seems more than enough
5292 test $ac_count -gt 10 && break
5293 done
5294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5295 esac
5296
5297 $ac_path_GREP_found && break 3
5298 done
5299 done
5300 done
5301 IFS=$as_save_IFS
5302 if test -z "$ac_cv_path_GREP"; then
5303 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5304 fi
5305 else
5306 ac_cv_path_GREP=$GREP
5307 fi
5308
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5311 $as_echo "$ac_cv_path_GREP" >&6; }
5312 GREP="$ac_cv_path_GREP"
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5316 $as_echo_n "checking for egrep... " >&6; }
5317 if ${ac_cv_path_EGREP+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5321 then ac_cv_path_EGREP="$GREP -E"
5322 else
5323 if test -z "$EGREP"; then
5324 ac_path_EGREP_found=false
5325 # Loop through the user's path and test for each of PROGNAME-LIST
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_prog in egrep; do
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5334 as_fn_executable_p "$ac_path_EGREP" || continue
5335 # Check for GNU ac_path_EGREP and select it if it is found.
5336 # Check for GNU $ac_path_EGREP
5337 case `"$ac_path_EGREP" --version 2>&1` in
5338 *GNU*)
5339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5340 *)
5341 ac_count=0
5342 $as_echo_n 0123456789 >"conftest.in"
5343 while :
5344 do
5345 cat "conftest.in" "conftest.in" >"conftest.tmp"
5346 mv "conftest.tmp" "conftest.in"
5347 cp "conftest.in" "conftest.nl"
5348 $as_echo 'EGREP' >> "conftest.nl"
5349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351 as_fn_arith $ac_count + 1 && ac_count=$as_val
5352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5353 # Best one so far, save it but keep looking for a better one
5354 ac_cv_path_EGREP="$ac_path_EGREP"
5355 ac_path_EGREP_max=$ac_count
5356 fi
5357 # 10*(2^10) chars as input seems more than enough
5358 test $ac_count -gt 10 && break
5359 done
5360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361 esac
5362
5363 $ac_path_EGREP_found && break 3
5364 done
5365 done
5366 done
5367 IFS=$as_save_IFS
5368 if test -z "$ac_cv_path_EGREP"; then
5369 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5370 fi
5371 else
5372 ac_cv_path_EGREP=$EGREP
5373 fi
5374
5375 fi
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5378 $as_echo "$ac_cv_path_EGREP" >&6; }
5379 EGREP="$ac_cv_path_EGREP"
5380
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5383 $as_echo_n "checking for ANSI C header files... " >&6; }
5384 if ${ac_cv_header_stdc+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <stdlib.h>
5390 #include <stdarg.h>
5391 #include <string.h>
5392 #include <float.h>
5393
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_header_stdc=yes
5404 else
5405 ac_cv_header_stdc=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408
5409 if test $ac_cv_header_stdc = yes; then
5410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <string.h>
5414
5415 _ACEOF
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 $EGREP "memchr" >/dev/null 2>&1; then :
5418
5419 else
5420 ac_cv_header_stdc=no
5421 fi
5422 rm -f conftest*
5423
5424 fi
5425
5426 if test $ac_cv_header_stdc = yes; then
5427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <stdlib.h>
5431
5432 _ACEOF
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "free" >/dev/null 2>&1; then :
5435
5436 else
5437 ac_cv_header_stdc=no
5438 fi
5439 rm -f conftest*
5440
5441 fi
5442
5443 if test $ac_cv_header_stdc = yes; then
5444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5445 if test "$cross_compiling" = yes; then :
5446 :
5447 else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <ctype.h>
5451 #include <stdlib.h>
5452 #if ((' ' & 0x0FF) == 0x020)
5453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5455 #else
5456 # define ISLOWER(c) \
5457 (('a' <= (c) && (c) <= 'i') \
5458 || ('j' <= (c) && (c) <= 'r') \
5459 || ('s' <= (c) && (c) <= 'z'))
5460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5461 #endif
5462
5463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5464 int
5465 main ()
5466 {
5467 int i;
5468 for (i = 0; i < 256; i++)
5469 if (XOR (islower (i), ISLOWER (i))
5470 || toupper (i) != TOUPPER (i))
5471 return 2;
5472 return 0;
5473 }
5474 _ACEOF
5475 if ac_fn_c_try_run "$LINENO"; then :
5476
5477 else
5478 ac_cv_header_stdc=no
5479 fi
5480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5481 conftest.$ac_objext conftest.beam conftest.$ac_ext
5482 fi
5483
5484 fi
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5487 $as_echo "$ac_cv_header_stdc" >&6; }
5488 if test $ac_cv_header_stdc = yes; then
5489
5490 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5491
5492 fi
5493
5494 case `pwd` in
5495 *\ * | *\ *)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5497 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5498 esac
5499
5500
5501
5502 macro_version='2.4.6'
5503 macro_revision='2.4.6'
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517 ltmain=$ac_aux_dir/ltmain.sh
5518
5519 # Make sure we can run config.sub.
5520 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5521 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5524 $as_echo_n "checking build system type... " >&6; }
5525 if ${ac_cv_build+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 ac_build_alias=$build_alias
5529 test "x$ac_build_alias" = x &&
5530 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5531 test "x$ac_build_alias" = x &&
5532 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5533 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5535
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5538 $as_echo "$ac_cv_build" >&6; }
5539 case $ac_cv_build in
5540 *-*-*) ;;
5541 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5542 esac
5543 build=$ac_cv_build
5544 ac_save_IFS=$IFS; IFS='-'
5545 set x $ac_cv_build
5546 shift
5547 build_cpu=$1
5548 build_vendor=$2
5549 shift; shift
5550 # Remember, the first character of IFS is used to create $*,
5551 # except with old shells:
5552 build_os=$*
5553 IFS=$ac_save_IFS
5554 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5555
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5558 $as_echo_n "checking host system type... " >&6; }
5559 if ${ac_cv_host+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test "x$host_alias" = x; then
5563 ac_cv_host=$ac_cv_build
5564 else
5565 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5567 fi
5568
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5571 $as_echo "$ac_cv_host" >&6; }
5572 case $ac_cv_host in
5573 *-*-*) ;;
5574 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5575 esac
5576 host=$ac_cv_host
5577 ac_save_IFS=$IFS; IFS='-'
5578 set x $ac_cv_host
5579 shift
5580 host_cpu=$1
5581 host_vendor=$2
5582 shift; shift
5583 # Remember, the first character of IFS is used to create $*,
5584 # except with old shells:
5585 host_os=$*
5586 IFS=$ac_save_IFS
5587 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5588
5589
5590 # Backslashify metacharacters that are still active within
5591 # double-quoted strings.
5592 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5593
5594 # Same as above, but do not quote variable references.
5595 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5596
5597 # Sed substitution to delay expansion of an escaped shell variable in a
5598 # double_quote_subst'ed string.
5599 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5600
5601 # Sed substitution to delay expansion of an escaped single quote.
5602 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5603
5604 # Sed substitution to avoid accidental globbing in evaled expressions
5605 no_glob_subst='s/\*/\\\*/g'
5606
5607 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5608 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5609 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5612 $as_echo_n "checking how to print strings... " >&6; }
5613 # Test print first, because it will be a builtin if present.
5614 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5615 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5616 ECHO='print -r --'
5617 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5618 ECHO='printf %s\n'
5619 else
5620 # Use this function as a fallback that always works.
5621 func_fallback_echo ()
5622 {
5623 eval 'cat <<_LTECHO_EOF
5624 $1
5625 _LTECHO_EOF'
5626 }
5627 ECHO='func_fallback_echo'
5628 fi
5629
5630 # func_echo_all arg...
5631 # Invoke $ECHO with all args, space-separated.
5632 func_echo_all ()
5633 {
5634 $ECHO ""
5635 }
5636
5637 case $ECHO in
5638 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5639 $as_echo "printf" >&6; } ;;
5640 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5641 $as_echo "print -r" >&6; } ;;
5642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5643 $as_echo "cat" >&6; } ;;
5644 esac
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5661 if ${ac_cv_path_SED+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5665 for ac_i in 1 2 3 4 5 6 7; do
5666 ac_script="$ac_script$as_nl$ac_script"
5667 done
5668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5669 { ac_script=; unset ac_script;}
5670 if test -z "$SED"; then
5671 ac_path_SED_found=false
5672 # Loop through the user's path and test for each of PROGNAME-LIST
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_prog in sed gsed; do
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5681 as_fn_executable_p "$ac_path_SED" || continue
5682 # Check for GNU ac_path_SED and select it if it is found.
5683 # Check for GNU $ac_path_SED
5684 case `"$ac_path_SED" --version 2>&1` in
5685 *GNU*)
5686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5687 *)
5688 ac_count=0
5689 $as_echo_n 0123456789 >"conftest.in"
5690 while :
5691 do
5692 cat "conftest.in" "conftest.in" >"conftest.tmp"
5693 mv "conftest.tmp" "conftest.in"
5694 cp "conftest.in" "conftest.nl"
5695 $as_echo '' >> "conftest.nl"
5696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5698 as_fn_arith $ac_count + 1 && ac_count=$as_val
5699 if test $ac_count -gt ${ac_path_SED_max-0}; then
5700 # Best one so far, save it but keep looking for a better one
5701 ac_cv_path_SED="$ac_path_SED"
5702 ac_path_SED_max=$ac_count
5703 fi
5704 # 10*(2^10) chars as input seems more than enough
5705 test $ac_count -gt 10 && break
5706 done
5707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5708 esac
5709
5710 $ac_path_SED_found && break 3
5711 done
5712 done
5713 done
5714 IFS=$as_save_IFS
5715 if test -z "$ac_cv_path_SED"; then
5716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5717 fi
5718 else
5719 ac_cv_path_SED=$SED
5720 fi
5721
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5724 $as_echo "$ac_cv_path_SED" >&6; }
5725 SED="$ac_cv_path_SED"
5726 rm -f conftest.sed
5727
5728 test -z "$SED" && SED=sed
5729 Xsed="$SED -e 1s/^X//"
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5742 $as_echo_n "checking for fgrep... " >&6; }
5743 if ${ac_cv_path_FGREP+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5747 then ac_cv_path_FGREP="$GREP -F"
5748 else
5749 if test -z "$FGREP"; then
5750 ac_path_FGREP_found=false
5751 # Loop through the user's path and test for each of PROGNAME-LIST
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_prog in fgrep; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5760 as_fn_executable_p "$ac_path_FGREP" || continue
5761 # Check for GNU ac_path_FGREP and select it if it is found.
5762 # Check for GNU $ac_path_FGREP
5763 case `"$ac_path_FGREP" --version 2>&1` in
5764 *GNU*)
5765 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5766 *)
5767 ac_count=0
5768 $as_echo_n 0123456789 >"conftest.in"
5769 while :
5770 do
5771 cat "conftest.in" "conftest.in" >"conftest.tmp"
5772 mv "conftest.tmp" "conftest.in"
5773 cp "conftest.in" "conftest.nl"
5774 $as_echo 'FGREP' >> "conftest.nl"
5775 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5777 as_fn_arith $ac_count + 1 && ac_count=$as_val
5778 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5779 # Best one so far, save it but keep looking for a better one
5780 ac_cv_path_FGREP="$ac_path_FGREP"
5781 ac_path_FGREP_max=$ac_count
5782 fi
5783 # 10*(2^10) chars as input seems more than enough
5784 test $ac_count -gt 10 && break
5785 done
5786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5787 esac
5788
5789 $ac_path_FGREP_found && break 3
5790 done
5791 done
5792 done
5793 IFS=$as_save_IFS
5794 if test -z "$ac_cv_path_FGREP"; then
5795 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5796 fi
5797 else
5798 ac_cv_path_FGREP=$FGREP
5799 fi
5800
5801 fi
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5804 $as_echo "$ac_cv_path_FGREP" >&6; }
5805 FGREP="$ac_cv_path_FGREP"
5806
5807
5808 test -z "$GREP" && GREP=grep
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828 # Check whether --with-gnu-ld was given.
5829 if test "${with_gnu_ld+set}" = set; then :
5830 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5831 else
5832 with_gnu_ld=no
5833 fi
5834
5835 ac_prog=ld
5836 if test yes = "$GCC"; then
5837 # Check if gcc -print-prog-name=ld gives a path.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5839 $as_echo_n "checking for ld used by $CC... " >&6; }
5840 case $host in
5841 *-*-mingw*)
5842 # gcc leaves a trailing carriage return, which upsets mingw
5843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5844 *)
5845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5846 esac
5847 case $ac_prog in
5848 # Accept absolute paths.
5849 [\\/]* | ?:[\\/]*)
5850 re_direlt='/[^/][^/]*/\.\./'
5851 # Canonicalize the pathname of ld
5852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5855 done
5856 test -z "$LD" && LD=$ac_prog
5857 ;;
5858 "")
5859 # If it fails, then pretend we aren't using GCC.
5860 ac_prog=ld
5861 ;;
5862 *)
5863 # If it is relative, then search for the first ld in PATH.
5864 with_gnu_ld=unknown
5865 ;;
5866 esac
5867 elif test yes = "$with_gnu_ld"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5869 $as_echo_n "checking for GNU ld... " >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5872 $as_echo_n "checking for non-GNU ld... " >&6; }
5873 fi
5874 if ${lt_cv_path_LD+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if test -z "$LD"; then
5878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5879 for ac_dir in $PATH; do
5880 IFS=$lt_save_ifs
5881 test -z "$ac_dir" && ac_dir=.
5882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5883 lt_cv_path_LD=$ac_dir/$ac_prog
5884 # Check to see if the program is GNU ld. I'd rather use --version,
5885 # but apparently some variants of GNU ld only accept -v.
5886 # Break only if it was the GNU/non-GNU ld that we prefer.
5887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5888 *GNU* | *'with BFD'*)
5889 test no != "$with_gnu_ld" && break
5890 ;;
5891 *)
5892 test yes != "$with_gnu_ld" && break
5893 ;;
5894 esac
5895 fi
5896 done
5897 IFS=$lt_save_ifs
5898 else
5899 lt_cv_path_LD=$LD # Let the user override the test with a path.
5900 fi
5901 fi
5902
5903 LD=$lt_cv_path_LD
5904 if test -n "$LD"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5906 $as_echo "$LD" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5914 if ${lt_cv_prog_gnu_ld+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5918 case `$LD -v 2>&1 </dev/null` in
5919 *GNU* | *'with BFD'*)
5920 lt_cv_prog_gnu_ld=yes
5921 ;;
5922 *)
5923 lt_cv_prog_gnu_ld=no
5924 ;;
5925 esac
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5929 with_gnu_ld=$lt_cv_prog_gnu_ld
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5940 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5941 if ${lt_cv_path_NM+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$NM"; then
5945 # Let the user override the test.
5946 lt_cv_path_NM=$NM
5947 else
5948 lt_nm_to_check=${ac_tool_prefix}nm
5949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5950 lt_nm_to_check="$lt_nm_to_check nm"
5951 fi
5952 for lt_tmp_nm in $lt_nm_to_check; do
5953 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5954 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5955 IFS=$lt_save_ifs
5956 test -z "$ac_dir" && ac_dir=.
5957 tmp_nm=$ac_dir/$lt_tmp_nm
5958 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5959 # Check to see if the nm accepts a BSD-compat flag.
5960 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5961 # nm: unknown option "B" ignored
5962 # Tru64's nm complains that /dev/null is an invalid object file
5963 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5964 case $build_os in
5965 mingw*) lt_bad_file=conftest.nm/nofile ;;
5966 *) lt_bad_file=/dev/null ;;
5967 esac
5968 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5969 *$lt_bad_file* | *'Invalid file or object type'*)
5970 lt_cv_path_NM="$tmp_nm -B"
5971 break 2
5972 ;;
5973 *)
5974 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5975 */dev/null*)
5976 lt_cv_path_NM="$tmp_nm -p"
5977 break 2
5978 ;;
5979 *)
5980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5981 continue # so that we can try to find one that supports BSD flags
5982 ;;
5983 esac
5984 ;;
5985 esac
5986 fi
5987 done
5988 IFS=$lt_save_ifs
5989 done
5990 : ${lt_cv_path_NM=no}
5991 fi
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5994 $as_echo "$lt_cv_path_NM" >&6; }
5995 if test no != "$lt_cv_path_NM"; then
5996 NM=$lt_cv_path_NM
5997 else
5998 # Didn't find any BSD compatible name lister, look for dumpbin.
5999 if test -n "$DUMPBIN"; then :
6000 # Let the user override the test.
6001 else
6002 if test -n "$ac_tool_prefix"; then
6003 for ac_prog in dumpbin "link -dump"
6004 do
6005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_DUMPBIN+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test -n "$DUMPBIN"; then
6013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 DUMPBIN=$ac_cv_prog_DUMPBIN
6033 if test -n "$DUMPBIN"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6035 $as_echo "$DUMPBIN" >&6; }
6036 else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042 test -n "$DUMPBIN" && break
6043 done
6044 fi
6045 if test -z "$DUMPBIN"; then
6046 ac_ct_DUMPBIN=$DUMPBIN
6047 for ac_prog in dumpbin "link -dump"
6048 do
6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$ac_ct_DUMPBIN"; then
6057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6077 if test -n "$ac_ct_DUMPBIN"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6079 $as_echo "$ac_ct_DUMPBIN" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 test -n "$ac_ct_DUMPBIN" && break
6087 done
6088
6089 if test "x$ac_ct_DUMPBIN" = x; then
6090 DUMPBIN=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 DUMPBIN=$ac_ct_DUMPBIN
6099 fi
6100 fi
6101
6102 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6103 *COFF*)
6104 DUMPBIN="$DUMPBIN -symbols -headers"
6105 ;;
6106 *)
6107 DUMPBIN=:
6108 ;;
6109 esac
6110 fi
6111
6112 if test : != "$DUMPBIN"; then
6113 NM=$DUMPBIN
6114 fi
6115 fi
6116 test -z "$NM" && NM=nm
6117
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6124 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6125 if ${lt_cv_nm_interface+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 lt_cv_nm_interface="BSD nm"
6129 echo "int some_variable = 0;" > conftest.$ac_ext
6130 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6131 (eval "$ac_compile" 2>conftest.err)
6132 cat conftest.err >&5
6133 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6134 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6135 cat conftest.err >&5
6136 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6137 cat conftest.out >&5
6138 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6139 lt_cv_nm_interface="MS dumpbin"
6140 fi
6141 rm -f conftest*
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6144 $as_echo "$lt_cv_nm_interface" >&6; }
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6147 $as_echo_n "checking whether ln -s works... " >&6; }
6148 LN_S=$as_ln_s
6149 if test "$LN_S" = "ln -s"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151 $as_echo "yes" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6154 $as_echo "no, using $LN_S" >&6; }
6155 fi
6156
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if ${lt_cv_sys_max_cmd_len+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 i=0
6164 teststring=ABCD
6165
6166 case $build_os in
6167 msdosdjgpp*)
6168 # On DJGPP, this test can blow up pretty badly due to problems in libc
6169 # (any single argument exceeding 2000 bytes causes a buffer overrun
6170 # during glob expansion). Even if it were fixed, the result of this
6171 # check would be larger than it should be.
6172 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6173 ;;
6174
6175 gnu*)
6176 # Under GNU Hurd, this test is not required because there is
6177 # no limit to the length of command line arguments.
6178 # Libtool will interpret -1 as no limit whatsoever
6179 lt_cv_sys_max_cmd_len=-1;
6180 ;;
6181
6182 cygwin* | mingw* | cegcc*)
6183 # On Win9x/ME, this test blows up -- it succeeds, but takes
6184 # about 5 minutes as the teststring grows exponentially.
6185 # Worse, since 9x/ME are not pre-emptively multitasking,
6186 # you end up with a "frozen" computer, even though with patience
6187 # the test eventually succeeds (with a max line length of 256k).
6188 # Instead, let's just punt: use the minimum linelength reported by
6189 # all of the supported platforms: 8192 (on NT/2K/XP).
6190 lt_cv_sys_max_cmd_len=8192;
6191 ;;
6192
6193 mint*)
6194 # On MiNT this can take a long time and run out of memory.
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
6197
6198 amigaos*)
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6202 ;;
6203
6204 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210 else
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6212 fi
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216 ;;
6217
6218 interix*)
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
6221 ;;
6222
6223 os2*)
6224 # The test takes a long time on OS/2.
6225 lt_cv_sys_max_cmd_len=8192
6226 ;;
6227
6228 osf*)
6229 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6230 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6231 # nice to cause kernel panics so lets avoid the loop below.
6232 # First set a reasonable default.
6233 lt_cv_sys_max_cmd_len=16384
6234 #
6235 if test -x /sbin/sysconfig; then
6236 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6237 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6238 esac
6239 fi
6240 ;;
6241 sco3.2v5*)
6242 lt_cv_sys_max_cmd_len=102400
6243 ;;
6244 sysv5* | sco5v6* | sysv4.2uw2*)
6245 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6246 if test -n "$kargmax"; then
6247 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6248 else
6249 lt_cv_sys_max_cmd_len=32768
6250 fi
6251 ;;
6252 *)
6253 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6254 if test -n "$lt_cv_sys_max_cmd_len" && \
6255 test undefined != "$lt_cv_sys_max_cmd_len"; then
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6258 else
6259 # Make teststring a little bigger before we do anything with it.
6260 # a 1K string should be a reasonable start.
6261 for i in 1 2 3 4 5 6 7 8; do
6262 teststring=$teststring$teststring
6263 done
6264 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6265 # If test is not a shell built-in, we'll probably end up computing a
6266 # maximum length that is only half of the actual maximum length, but
6267 # we can't tell.
6268 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6269 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6270 test 17 != "$i" # 1/2 MB should be enough
6271 do
6272 i=`expr $i + 1`
6273 teststring=$teststring$teststring
6274 done
6275 # Only check the string length outside the loop.
6276 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6277 teststring=
6278 # Add a significant safety factor because C++ compilers can tack on
6279 # massive amounts of additional arguments before passing them to the
6280 # linker. It appears as though 1/2 is a usable value.
6281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6282 fi
6283 ;;
6284 esac
6285
6286 fi
6287
6288 if test -n "$lt_cv_sys_max_cmd_len"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6290 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6293 $as_echo "none" >&6; }
6294 fi
6295 max_cmd_len=$lt_cv_sys_max_cmd_len
6296
6297
6298
6299
6300
6301
6302 : ${CP="cp -f"}
6303 : ${MV="mv -f"}
6304 : ${RM="rm -f"}
6305
6306 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6307 lt_unset=unset
6308 else
6309 lt_unset=false
6310 fi
6311
6312
6313
6314
6315
6316 # test EBCDIC or ASCII
6317 case `echo X|tr X '\101'` in
6318 A) # ASCII based system
6319 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6320 lt_SP2NL='tr \040 \012'
6321 lt_NL2SP='tr \015\012 \040\040'
6322 ;;
6323 *) # EBCDIC based system
6324 lt_SP2NL='tr \100 \n'
6325 lt_NL2SP='tr \r\n \100\100'
6326 ;;
6327 esac
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6338 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6339 if ${lt_cv_to_host_file_cmd+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 case $host in
6343 *-*-mingw* )
6344 case $build in
6345 *-*-mingw* ) # actually msys
6346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6347 ;;
6348 *-*-cygwin* )
6349 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6350 ;;
6351 * ) # otherwise, assume *nix
6352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6353 ;;
6354 esac
6355 ;;
6356 *-*-cygwin* )
6357 case $build in
6358 *-*-mingw* ) # actually msys
6359 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6360 ;;
6361 *-*-cygwin* )
6362 lt_cv_to_host_file_cmd=func_convert_file_noop
6363 ;;
6364 * ) # otherwise, assume *nix
6365 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6366 ;;
6367 esac
6368 ;;
6369 * ) # unhandled hosts (and "normal" native builds)
6370 lt_cv_to_host_file_cmd=func_convert_file_noop
6371 ;;
6372 esac
6373
6374 fi
6375
6376 to_host_file_cmd=$lt_cv_to_host_file_cmd
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6378 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6379
6380
6381
6382
6383
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6385 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6386 if ${lt_cv_to_tool_file_cmd+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 #assume ordinary cross tools, or native build.
6390 lt_cv_to_tool_file_cmd=func_convert_file_noop
6391 case $host in
6392 *-*-mingw* )
6393 case $build in
6394 *-*-mingw* ) # actually msys
6395 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6396 ;;
6397 esac
6398 ;;
6399 esac
6400
6401 fi
6402
6403 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6405 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6406
6407
6408
6409
6410
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6412 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6413 if ${lt_cv_ld_reload_flag+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 lt_cv_ld_reload_flag='-r'
6417 fi
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6419 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6420 reload_flag=$lt_cv_ld_reload_flag
6421 case $reload_flag in
6422 "" | " "*) ;;
6423 *) reload_flag=" $reload_flag" ;;
6424 esac
6425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6426 case $host_os in
6427 cygwin* | mingw* | pw32* | cegcc*)
6428 if test yes != "$GCC"; then
6429 reload_cmds=false
6430 fi
6431 ;;
6432 darwin*)
6433 if test yes = "$GCC"; then
6434 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6435 else
6436 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6437 fi
6438 ;;
6439 esac
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_OBJDUMP+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 if test -n "$OBJDUMP"; then
6458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 OBJDUMP=$ac_cv_prog_OBJDUMP
6478 if test -n "$OBJDUMP"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6480 $as_echo "$OBJDUMP" >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486
6487 fi
6488 if test -z "$ac_cv_prog_OBJDUMP"; then
6489 ac_ct_OBJDUMP=$OBJDUMP
6490 # Extract the first word of "objdump", so it can be a program name with args.
6491 set dummy objdump; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$ac_ct_OBJDUMP"; then
6498 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6518 if test -n "$ac_ct_OBJDUMP"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6520 $as_echo "$ac_ct_OBJDUMP" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526 if test "x$ac_ct_OBJDUMP" = x; then
6527 OBJDUMP="false"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530 yes:)
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6534 esac
6535 OBJDUMP=$ac_ct_OBJDUMP
6536 fi
6537 else
6538 OBJDUMP="$ac_cv_prog_OBJDUMP"
6539 fi
6540
6541 test -z "$OBJDUMP" && OBJDUMP=objdump
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6552 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6553 if ${lt_cv_deplibs_check_method+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 lt_cv_file_magic_cmd='$MAGIC_CMD'
6557 lt_cv_file_magic_test_file=
6558 lt_cv_deplibs_check_method='unknown'
6559 # Need to set the preceding variable on all platforms that support
6560 # interlibrary dependencies.
6561 # 'none' -- dependencies not supported.
6562 # 'unknown' -- same as none, but documents that we really don't know.
6563 # 'pass_all' -- all dependencies passed with no checks.
6564 # 'test_compile' -- check by making test program.
6565 # 'file_magic [[regex]]' -- check by looking for files in library path
6566 # that responds to the $file_magic_cmd with a given extended regex.
6567 # If you have 'file' or equivalent on your system and you're not sure
6568 # whether 'pass_all' will *always* work, you probably want this one.
6569
6570 case $host_os in
6571 aix[4-9]*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574
6575 beos*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 bsdi[45]*)
6580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6581 lt_cv_file_magic_cmd='/usr/bin/file -L'
6582 lt_cv_file_magic_test_file=/shlib/libc.so
6583 ;;
6584
6585 cygwin*)
6586 # func_win32_libid is a shell function defined in ltmain.sh
6587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6588 lt_cv_file_magic_cmd='func_win32_libid'
6589 ;;
6590
6591 mingw* | pw32*)
6592 # Base MSYS/MinGW do not provide the 'file' command needed by
6593 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6594 # unless we find 'file', for example because we are cross-compiling.
6595 if ( file / ) >/dev/null 2>&1; then
6596 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6597 lt_cv_file_magic_cmd='func_win32_libid'
6598 else
6599 # Keep this pattern in sync with the one in func_win32_libid.
6600 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6601 lt_cv_file_magic_cmd='$OBJDUMP -f'
6602 fi
6603 ;;
6604
6605 cegcc*)
6606 # use the weaker test based on 'objdump'. See mingw*.
6607 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6608 lt_cv_file_magic_cmd='$OBJDUMP -f'
6609 ;;
6610
6611 darwin* | rhapsody*)
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
6614
6615 freebsd* | dragonfly*)
6616 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617 case $host_cpu in
6618 i*86 )
6619 # Not sure whether the presence of OpenBSD here was a mistake.
6620 # Let's accept both of them until this is cleared up.
6621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6622 lt_cv_file_magic_cmd=/usr/bin/file
6623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6624 ;;
6625 esac
6626 else
6627 lt_cv_deplibs_check_method=pass_all
6628 fi
6629 ;;
6630
6631 haiku*)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634
6635 hpux10.20* | hpux11*)
6636 lt_cv_file_magic_cmd=/usr/bin/file
6637 case $host_cpu in
6638 ia64*)
6639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6641 ;;
6642 hppa*64*)
6643 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]'
6644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6645 ;;
6646 *)
6647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6649 ;;
6650 esac
6651 ;;
6652
6653 interix[3-9]*)
6654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6656 ;;
6657
6658 irix5* | irix6* | nonstopux*)
6659 case $LD in
6660 *-32|*"-32 ") libmagic=32-bit;;
6661 *-n32|*"-n32 ") libmagic=N32;;
6662 *-64|*"-64 ") libmagic=64-bit;;
6663 *) libmagic=never-match;;
6664 esac
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667
6668 # This must be glibc/ELF.
6669 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6670 lt_cv_deplibs_check_method=pass_all
6671 ;;
6672
6673 netbsd*)
6674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6676 else
6677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6678 fi
6679 ;;
6680
6681 newos6*)
6682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6683 lt_cv_file_magic_cmd=/usr/bin/file
6684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6685 ;;
6686
6687 *nto* | *qnx*)
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690
6691 openbsd* | bitrig*)
6692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6694 else
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6696 fi
6697 ;;
6698
6699 osf3* | osf4* | osf5*)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
6703 rdos*)
6704 lt_cv_deplibs_check_method=pass_all
6705 ;;
6706
6707 solaris*)
6708 lt_cv_deplibs_check_method=pass_all
6709 ;;
6710
6711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6712 lt_cv_deplibs_check_method=pass_all
6713 ;;
6714
6715 sysv4 | sysv4.3*)
6716 case $host_vendor in
6717 motorola)
6718 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]'
6719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6720 ;;
6721 ncr)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724 sequent)
6725 lt_cv_file_magic_cmd='/bin/file'
6726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6727 ;;
6728 sni)
6729 lt_cv_file_magic_cmd='/bin/file'
6730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6731 lt_cv_file_magic_test_file=/lib/libc.so
6732 ;;
6733 siemens)
6734 lt_cv_deplibs_check_method=pass_all
6735 ;;
6736 pc)
6737 lt_cv_deplibs_check_method=pass_all
6738 ;;
6739 esac
6740 ;;
6741
6742 tpf*)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745 os2*)
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748 esac
6749
6750 fi
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6752 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6753
6754 file_magic_glob=
6755 want_nocaseglob=no
6756 if test "$build" = "$host"; then
6757 case $host_os in
6758 mingw* | pw32*)
6759 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6760 want_nocaseglob=yes
6761 else
6762 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6763 fi
6764 ;;
6765 esac
6766 fi
6767
6768 file_magic_cmd=$lt_cv_file_magic_cmd
6769 deplibs_check_method=$lt_cv_deplibs_check_method
6770 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_DLLTOOL+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$DLLTOOL"; then
6802 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 DLLTOOL=$ac_cv_prog_DLLTOOL
6822 if test -n "$DLLTOOL"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6824 $as_echo "$DLLTOOL" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_DLLTOOL"; then
6833 ac_ct_DLLTOOL=$DLLTOOL
6834 # Extract the first word of "dlltool", so it can be a program name with args.
6835 set dummy dlltool; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$ac_ct_DLLTOOL"; then
6842 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6862 if test -n "$ac_ct_DLLTOOL"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6864 $as_echo "$ac_ct_DLLTOOL" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870 if test "x$ac_ct_DLLTOOL" = x; then
6871 DLLTOOL="false"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879 DLLTOOL=$ac_ct_DLLTOOL
6880 fi
6881 else
6882 DLLTOOL="$ac_cv_prog_DLLTOOL"
6883 fi
6884
6885 test -z "$DLLTOOL" && DLLTOOL=dlltool
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6897 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6898 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 lt_cv_sharedlib_from_linklib_cmd='unknown'
6902
6903 case $host_os in
6904 cygwin* | mingw* | pw32* | cegcc*)
6905 # two different shell functions defined in ltmain.sh;
6906 # decide which one to use based on capabilities of $DLLTOOL
6907 case `$DLLTOOL --help 2>&1` in
6908 *--identify-strict*)
6909 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6910 ;;
6911 *)
6912 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6913 ;;
6914 esac
6915 ;;
6916 *)
6917 # fallback: assume linklib IS sharedlib
6918 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6919 ;;
6920 esac
6921
6922 fi
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6924 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6925 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6926 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6927
6928
6929
6930
6931
6932
6933
6934 if test -n "$ac_tool_prefix"; then
6935 for ac_prog in ar
6936 do
6937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_prog_AR+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$AR"; then
6945 ac_cv_prog_AR="$AR" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 AR=$ac_cv_prog_AR
6965 if test -n "$AR"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6967 $as_echo "$AR" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973
6974 test -n "$AR" && break
6975 done
6976 fi
6977 if test -z "$AR"; then
6978 ac_ct_AR=$AR
6979 for ac_prog in ar
6980 do
6981 # Extract the first word of "$ac_prog", so it can be a program name with args.
6982 set dummy $ac_prog; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$ac_ct_AR"; then
6989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_ac_ct_AR="$ac_prog"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006 fi
7007 fi
7008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7009 if test -n "$ac_ct_AR"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7011 $as_echo "$ac_ct_AR" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017
7018 test -n "$ac_ct_AR" && break
7019 done
7020
7021 if test "x$ac_ct_AR" = x; then
7022 AR="false"
7023 else
7024 case $cross_compiling:$ac_tool_warned in
7025 yes:)
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7028 ac_tool_warned=yes ;;
7029 esac
7030 AR=$ac_ct_AR
7031 fi
7032 fi
7033
7034 : ${AR=ar}
7035 : ${AR_FLAGS=cru}
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7048 $as_echo_n "checking for archiver @FILE support... " >&6; }
7049 if ${lt_cv_ar_at_file+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 lt_cv_ar_at_file=no
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055
7056 int
7057 main ()
7058 {
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_compile "$LINENO"; then :
7065 echo conftest.$ac_objext > conftest.lst
7066 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7068 (eval $lt_ar_try) 2>&5
7069 ac_status=$?
7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071 test $ac_status = 0; }
7072 if test 0 -eq "$ac_status"; then
7073 # Ensure the archiver fails upon bogus file names.
7074 rm -f conftest.$ac_objext libconftest.a
7075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7076 (eval $lt_ar_try) 2>&5
7077 ac_status=$?
7078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079 test $ac_status = 0; }
7080 if test 0 -ne "$ac_status"; then
7081 lt_cv_ar_at_file=@
7082 fi
7083 fi
7084 rm -f conftest.* libconftest.a
7085
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7091 $as_echo "$lt_cv_ar_at_file" >&6; }
7092
7093 if test no = "$lt_cv_ar_at_file"; then
7094 archiver_list_spec=
7095 else
7096 archiver_list_spec=$lt_cv_ar_at_file
7097 fi
7098
7099
7100
7101
7102
7103
7104
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}strip; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_STRIP+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$STRIP"; then
7114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127 done
7128 done
7129 IFS=$as_save_IFS
7130
7131 fi
7132 fi
7133 STRIP=$ac_cv_prog_STRIP
7134 if test -n "$STRIP"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7136 $as_echo "$STRIP" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142
7143 fi
7144 if test -z "$ac_cv_prog_STRIP"; then
7145 ac_ct_STRIP=$STRIP
7146 # Extract the first word of "strip", so it can be a program name with args.
7147 set dummy strip; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$ac_ct_STRIP"; then
7154 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_ac_ct_STRIP="strip"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7174 if test -n "$ac_ct_STRIP"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7176 $as_echo "$ac_ct_STRIP" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182 if test "x$ac_ct_STRIP" = x; then
7183 STRIP=":"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186 yes:)
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189 ac_tool_warned=yes ;;
7190 esac
7191 STRIP=$ac_ct_STRIP
7192 fi
7193 else
7194 STRIP="$ac_cv_prog_STRIP"
7195 fi
7196
7197 test -z "$STRIP" && STRIP=:
7198
7199
7200
7201
7202
7203
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if ${ac_cv_prog_RANLIB+:} false; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if test -n "$RANLIB"; then
7213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 RANLIB=$ac_cv_prog_RANLIB
7233 if test -n "$RANLIB"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7235 $as_echo "$RANLIB" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241
7242 fi
7243 if test -z "$ac_cv_prog_RANLIB"; then
7244 ac_ct_RANLIB=$RANLIB
7245 # Extract the first word of "ranlib", so it can be a program name with args.
7246 set dummy ranlib; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$ac_ct_RANLIB"; then
7253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_ac_ct_RANLIB="ranlib"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7273 if test -n "$ac_ct_RANLIB"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7275 $as_echo "$ac_ct_RANLIB" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281 if test "x$ac_ct_RANLIB" = x; then
7282 RANLIB=":"
7283 else
7284 case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290 RANLIB=$ac_ct_RANLIB
7291 fi
7292 else
7293 RANLIB="$ac_cv_prog_RANLIB"
7294 fi
7295
7296 test -z "$RANLIB" && RANLIB=:
7297
7298
7299
7300
7301
7302
7303 # Determine commands to create old-style static archives.
7304 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7305 old_postinstall_cmds='chmod 644 $oldlib'
7306 old_postuninstall_cmds=
7307
7308 if test -n "$RANLIB"; then
7309 case $host_os in
7310 bitrig* | openbsd*)
7311 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7312 ;;
7313 *)
7314 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7315 ;;
7316 esac
7317 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7318 fi
7319
7320 case $host_os in
7321 darwin*)
7322 lock_old_archive_extraction=yes ;;
7323 *)
7324 lock_old_archive_extraction=no ;;
7325 esac
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 # If no C compiler was specified, use CC.
7366 LTCC=${LTCC-"$CC"}
7367
7368 # If no C compiler flags were specified, use CFLAGS.
7369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7370
7371 # Allow CC to be a program name with arguments.
7372 compiler=$CC
7373
7374
7375 # Check for command to grab the raw symbol name followed by C symbol from nm.
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7377 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7378 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381
7382 # These are sane defaults that work on at least a few old systems.
7383 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7384
7385 # Character class describing NM global symbol codes.
7386 symcode='[BCDEGRST]'
7387
7388 # Regexp to match symbols that can be accessed directly from C.
7389 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7390
7391 # Define system-specific variables.
7392 case $host_os in
7393 aix*)
7394 symcode='[BCDT]'
7395 ;;
7396 cygwin* | mingw* | pw32* | cegcc*)
7397 symcode='[ABCDGISTW]'
7398 ;;
7399 hpux*)
7400 if test ia64 = "$host_cpu"; then
7401 symcode='[ABCDEGRST]'
7402 fi
7403 ;;
7404 irix* | nonstopux*)
7405 symcode='[BCDEGRST]'
7406 ;;
7407 osf*)
7408 symcode='[BCDEGQRST]'
7409 ;;
7410 solaris*)
7411 symcode='[BDRT]'
7412 ;;
7413 sco3.2v5*)
7414 symcode='[DT]'
7415 ;;
7416 sysv4.2uw2*)
7417 symcode='[DT]'
7418 ;;
7419 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7420 symcode='[ABDT]'
7421 ;;
7422 sysv4)
7423 symcode='[DFNSTU]'
7424 ;;
7425 esac
7426
7427 # If we're using GNU nm, then use its standard symbol codes.
7428 case `$NM -V 2>&1` in
7429 *GNU* | *'with BFD'*)
7430 symcode='[ABCDGIRSTW]' ;;
7431 esac
7432
7433 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7434 # Gets list of data symbols to import.
7435 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7436 # Adjust the below global symbol transforms to fixup imported variables.
7437 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7438 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7439 lt_c_name_lib_hook="\
7440 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7441 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7442 else
7443 # Disable hooks by default.
7444 lt_cv_sys_global_symbol_to_import=
7445 lt_cdecl_hook=
7446 lt_c_name_hook=
7447 lt_c_name_lib_hook=
7448 fi
7449
7450 # Transform an extracted symbol line into a proper C declaration.
7451 # Some systems (esp. on ia64) link data and code symbols differently,
7452 # so use this general approach.
7453 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7454 $lt_cdecl_hook\
7455 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7456 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7457
7458 # Transform an extracted symbol line into symbol name and symbol address
7459 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7460 $lt_c_name_hook\
7461 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7462 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7463
7464 # Transform an extracted symbol line into symbol name with lib prefix and
7465 # symbol address.
7466 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7467 $lt_c_name_lib_hook\
7468 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7469 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7470 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7471
7472 # Handle CRLF in mingw tool chain
7473 opt_cr=
7474 case $build_os in
7475 mingw*)
7476 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7477 ;;
7478 esac
7479
7480 # Try without a prefix underscore, then with it.
7481 for ac_symprfx in "" "_"; do
7482
7483 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7484 symxfrm="\\1 $ac_symprfx\\2 \\2"
7485
7486 # Write the raw and C identifiers.
7487 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7488 # Fake it for dumpbin and say T for any non-static function,
7489 # D for any global variable and I for any imported variable.
7490 # Also find C++ and __fastcall symbols from MSVC++,
7491 # which start with @ or ?.
7492 lt_cv_sys_global_symbol_pipe="$AWK '"\
7493 " {last_section=section; section=\$ 3};"\
7494 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7495 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7496 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7497 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7498 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7499 " \$ 0!~/External *\|/{next};"\
7500 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7501 " {if(hide[section]) next};"\
7502 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7503 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7504 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7505 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7506 " ' prfx=^$ac_symprfx"
7507 else
7508 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7509 fi
7510 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7511
7512 # Check to see that the pipe works correctly.
7513 pipe_works=no
7514
7515 rm -f conftest*
7516 cat > conftest.$ac_ext <<_LT_EOF
7517 #ifdef __cplusplus
7518 extern "C" {
7519 #endif
7520 char nm_test_var;
7521 void nm_test_func(void);
7522 void nm_test_func(void){}
7523 #ifdef __cplusplus
7524 }
7525 #endif
7526 int main(){nm_test_var='a';nm_test_func();return(0);}
7527 _LT_EOF
7528
7529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7530 (eval $ac_compile) 2>&5
7531 ac_status=$?
7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; }; then
7534 # Now try to grab the symbols.
7535 nlist=conftest.nm
7536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7537 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7538 ac_status=$?
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; } && test -s "$nlist"; then
7541 # Try sorting and uniquifying the output.
7542 if sort "$nlist" | uniq > "$nlist"T; then
7543 mv -f "$nlist"T "$nlist"
7544 else
7545 rm -f "$nlist"T
7546 fi
7547
7548 # Make sure that we snagged all the symbols we need.
7549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7551 cat <<_LT_EOF > conftest.$ac_ext
7552 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7553 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7554 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7555 relocations are performed -- see ld's documentation on pseudo-relocs. */
7556 # define LT_DLSYM_CONST
7557 #elif defined __osf__
7558 /* This system does not cope well with relocations in const data. */
7559 # define LT_DLSYM_CONST
7560 #else
7561 # define LT_DLSYM_CONST const
7562 #endif
7563
7564 #ifdef __cplusplus
7565 extern "C" {
7566 #endif
7567
7568 _LT_EOF
7569 # Now generate the symbol file.
7570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7571
7572 cat <<_LT_EOF >> conftest.$ac_ext
7573
7574 /* The mapping between symbol names and symbols. */
7575 LT_DLSYM_CONST struct {
7576 const char *name;
7577 void *address;
7578 }
7579 lt__PROGRAM__LTX_preloaded_symbols[] =
7580 {
7581 { "@PROGRAM@", (void *) 0 },
7582 _LT_EOF
7583 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7584 cat <<\_LT_EOF >> conftest.$ac_ext
7585 {0, (void *) 0}
7586 };
7587
7588 /* This works around a problem in FreeBSD linker */
7589 #ifdef FREEBSD_WORKAROUND
7590 static const void *lt_preloaded_setup() {
7591 return lt__PROGRAM__LTX_preloaded_symbols;
7592 }
7593 #endif
7594
7595 #ifdef __cplusplus
7596 }
7597 #endif
7598 _LT_EOF
7599 # Now try linking the two files.
7600 mv conftest.$ac_objext conftstm.$ac_objext
7601 lt_globsym_save_LIBS=$LIBS
7602 lt_globsym_save_CFLAGS=$CFLAGS
7603 LIBS=conftstm.$ac_objext
7604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7606 (eval $ac_link) 2>&5
7607 ac_status=$?
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7610 pipe_works=yes
7611 fi
7612 LIBS=$lt_globsym_save_LIBS
7613 CFLAGS=$lt_globsym_save_CFLAGS
7614 else
7615 echo "cannot find nm_test_func in $nlist" >&5
7616 fi
7617 else
7618 echo "cannot find nm_test_var in $nlist" >&5
7619 fi
7620 else
7621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7622 fi
7623 else
7624 echo "$progname: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7626 fi
7627 rm -rf conftest* conftst*
7628
7629 # Do not use the global_symbol_pipe unless it works.
7630 if test yes = "$pipe_works"; then
7631 break
7632 else
7633 lt_cv_sys_global_symbol_pipe=
7634 fi
7635 done
7636
7637 fi
7638
7639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7640 lt_cv_sys_global_symbol_to_cdecl=
7641 fi
7642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7644 $as_echo "failed" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7647 $as_echo "ok" >&6; }
7648 fi
7649
7650 # Response file support.
7651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7652 nm_file_list_spec='@'
7653 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7654 nm_file_list_spec='@'
7655 fi
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7694 $as_echo_n "checking for sysroot... " >&6; }
7695
7696 # Check whether --with-sysroot was given.
7697 if test "${with_sysroot+set}" = set; then :
7698 withval=$with_sysroot;
7699 else
7700 with_sysroot=no
7701 fi
7702
7703
7704 lt_sysroot=
7705 case $with_sysroot in #(
7706 yes)
7707 if test yes = "$GCC"; then
7708 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7709 fi
7710 ;; #(
7711 /*)
7712 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7713 ;; #(
7714 no|'')
7715 ;; #(
7716 *)
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7718 $as_echo "$with_sysroot" >&6; }
7719 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7720 ;;
7721 esac
7722
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7724 $as_echo "${lt_sysroot:-no}" >&6; }
7725
7726
7727
7728
7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7731 $as_echo_n "checking for a working dd... " >&6; }
7732 if ${ac_cv_path_lt_DD+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 printf 0123456789abcdef0123456789abcdef >conftest.i
7736 cat conftest.i conftest.i >conftest2.i
7737 : ${lt_DD:=$DD}
7738 if test -z "$lt_DD"; then
7739 ac_path_lt_DD_found=false
7740 # Loop through the user's path and test for each of PROGNAME-LIST
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_prog in dd; do
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7749 as_fn_executable_p "$ac_path_lt_DD" || continue
7750 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7751 cmp -s conftest.i conftest.out \
7752 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7753 fi
7754 $ac_path_lt_DD_found && break 3
7755 done
7756 done
7757 done
7758 IFS=$as_save_IFS
7759 if test -z "$ac_cv_path_lt_DD"; then
7760 :
7761 fi
7762 else
7763 ac_cv_path_lt_DD=$lt_DD
7764 fi
7765
7766 rm -f conftest.i conftest2.i conftest.out
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7769 $as_echo "$ac_cv_path_lt_DD" >&6; }
7770
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7773 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7774 if ${lt_cv_truncate_bin+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 printf 0123456789abcdef0123456789abcdef >conftest.i
7778 cat conftest.i conftest.i >conftest2.i
7779 lt_cv_truncate_bin=
7780 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7781 cmp -s conftest.i conftest.out \
7782 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7783 fi
7784 rm -f conftest.i conftest2.i conftest.out
7785 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7786 fi
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7788 $as_echo "$lt_cv_truncate_bin" >&6; }
7789
7790
7791
7792
7793
7794
7795
7796 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7797 func_cc_basename ()
7798 {
7799 for cc_temp in $*""; do
7800 case $cc_temp in
7801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7803 \-*) ;;
7804 *) break;;
7805 esac
7806 done
7807 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7808 }
7809
7810 # Check whether --enable-libtool-lock was given.
7811 if test "${enable_libtool_lock+set}" = set; then :
7812 enableval=$enable_libtool_lock;
7813 fi
7814
7815 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7816
7817 # Some flags need to be propagated to the compiler or linker for good
7818 # libtool support.
7819 case $host in
7820 ia64-*-hpux*)
7821 # Find out what ABI is being produced by ac_compile, and set mode
7822 # options accordingly.
7823 echo 'int i;' > conftest.$ac_ext
7824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7825 (eval $ac_compile) 2>&5
7826 ac_status=$?
7827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7828 test $ac_status = 0; }; then
7829 case `/usr/bin/file conftest.$ac_objext` in
7830 *ELF-32*)
7831 HPUX_IA64_MODE=32
7832 ;;
7833 *ELF-64*)
7834 HPUX_IA64_MODE=64
7835 ;;
7836 esac
7837 fi
7838 rm -rf conftest*
7839 ;;
7840 *-*-irix6*)
7841 # Find out what ABI is being produced by ac_compile, and set linker
7842 # options accordingly.
7843 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7845 (eval $ac_compile) 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; }; then
7849 if test yes = "$lt_cv_prog_gnu_ld"; then
7850 case `/usr/bin/file conftest.$ac_objext` in
7851 *32-bit*)
7852 LD="${LD-ld} -melf32bsmip"
7853 ;;
7854 *N32*)
7855 LD="${LD-ld} -melf32bmipn32"
7856 ;;
7857 *64-bit*)
7858 LD="${LD-ld} -melf64bmip"
7859 ;;
7860 esac
7861 else
7862 case `/usr/bin/file conftest.$ac_objext` in
7863 *32-bit*)
7864 LD="${LD-ld} -32"
7865 ;;
7866 *N32*)
7867 LD="${LD-ld} -n32"
7868 ;;
7869 *64-bit*)
7870 LD="${LD-ld} -64"
7871 ;;
7872 esac
7873 fi
7874 fi
7875 rm -rf conftest*
7876 ;;
7877
7878 mips64*-*linux*)
7879 # Find out what ABI is being produced by ac_compile, and set linker
7880 # options accordingly.
7881 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7883 (eval $ac_compile) 2>&5
7884 ac_status=$?
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; }; then
7887 emul=elf
7888 case `/usr/bin/file conftest.$ac_objext` in
7889 *32-bit*)
7890 emul="${emul}32"
7891 ;;
7892 *64-bit*)
7893 emul="${emul}64"
7894 ;;
7895 esac
7896 case `/usr/bin/file conftest.$ac_objext` in
7897 *MSB*)
7898 emul="${emul}btsmip"
7899 ;;
7900 *LSB*)
7901 emul="${emul}ltsmip"
7902 ;;
7903 esac
7904 case `/usr/bin/file conftest.$ac_objext` in
7905 *N32*)
7906 emul="${emul}n32"
7907 ;;
7908 esac
7909 LD="${LD-ld} -m $emul"
7910 fi
7911 rm -rf conftest*
7912 ;;
7913
7914 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7915 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7916 # Find out what ABI is being produced by ac_compile, and set linker
7917 # options accordingly. Note that the listed cases only cover the
7918 # situations where additional linker options are needed (such as when
7919 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7920 # vice versa); the common cases where no linker options are needed do
7921 # not appear in the list.
7922 echo 'int i;' > conftest.$ac_ext
7923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7924 (eval $ac_compile) 2>&5
7925 ac_status=$?
7926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7927 test $ac_status = 0; }; then
7928 case `/usr/bin/file conftest.o` in
7929 *32-bit*)
7930 case $host in
7931 x86_64-*kfreebsd*-gnu)
7932 LD="${LD-ld} -m elf_i386_fbsd"
7933 ;;
7934 x86_64-*linux*)
7935 case `/usr/bin/file conftest.o` in
7936 *x86-64*)
7937 LD="${LD-ld} -m elf32_x86_64"
7938 ;;
7939 *)
7940 LD="${LD-ld} -m elf_i386"
7941 ;;
7942 esac
7943 ;;
7944 powerpc64le-*linux*)
7945 LD="${LD-ld} -m elf32lppclinux"
7946 ;;
7947 powerpc64-*linux*)
7948 LD="${LD-ld} -m elf32ppclinux"
7949 ;;
7950 s390x-*linux*)
7951 LD="${LD-ld} -m elf_s390"
7952 ;;
7953 sparc64-*linux*)
7954 LD="${LD-ld} -m elf32_sparc"
7955 ;;
7956 esac
7957 ;;
7958 *64-bit*)
7959 case $host in
7960 x86_64-*kfreebsd*-gnu)
7961 LD="${LD-ld} -m elf_x86_64_fbsd"
7962 ;;
7963 x86_64-*linux*)
7964 LD="${LD-ld} -m elf_x86_64"
7965 ;;
7966 powerpcle-*linux*)
7967 LD="${LD-ld} -m elf64lppc"
7968 ;;
7969 powerpc-*linux*)
7970 LD="${LD-ld} -m elf64ppc"
7971 ;;
7972 s390*-*linux*|s390*-*tpf*)
7973 LD="${LD-ld} -m elf64_s390"
7974 ;;
7975 sparc*-*linux*)
7976 LD="${LD-ld} -m elf64_sparc"
7977 ;;
7978 esac
7979 ;;
7980 esac
7981 fi
7982 rm -rf conftest*
7983 ;;
7984
7985 *-*-sco3.2v5*)
7986 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7987 SAVE_CFLAGS=$CFLAGS
7988 CFLAGS="$CFLAGS -belf"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7990 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7991 if ${lt_cv_cc_needs_belf+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 ac_ext=c
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7999
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002
8003 int
8004 main ()
8005 {
8006
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 lt_cv_cc_needs_belf=yes
8013 else
8014 lt_cv_cc_needs_belf=no
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8018 ac_ext=c
8019 ac_cpp='$CPP $CPPFLAGS'
8020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8026 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8027 if test yes != "$lt_cv_cc_needs_belf"; then
8028 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8029 CFLAGS=$SAVE_CFLAGS
8030 fi
8031 ;;
8032 *-*solaris*)
8033 # Find out what ABI is being produced by ac_compile, and set linker
8034 # options accordingly.
8035 echo 'int i;' > conftest.$ac_ext
8036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8037 (eval $ac_compile) 2>&5
8038 ac_status=$?
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; }; then
8041 case `/usr/bin/file conftest.o` in
8042 *64-bit*)
8043 case $lt_cv_prog_gnu_ld in
8044 yes*)
8045 case $host in
8046 i?86-*-solaris*|x86_64-*-solaris*)
8047 LD="${LD-ld} -m elf_x86_64"
8048 ;;
8049 sparc*-*-solaris*)
8050 LD="${LD-ld} -m elf64_sparc"
8051 ;;
8052 esac
8053 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8054 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8055 LD=${LD-ld}_sol2
8056 fi
8057 ;;
8058 *)
8059 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8060 LD="${LD-ld} -64"
8061 fi
8062 ;;
8063 esac
8064 ;;
8065 esac
8066 fi
8067 rm -rf conftest*
8068 ;;
8069 esac
8070
8071 need_locks=$enable_libtool_lock
8072
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}mt; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 if test -n "$MANIFEST_TOOL"; then
8082 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8102 if test -n "$MANIFEST_TOOL"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8104 $as_echo "$MANIFEST_TOOL" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110
8111 fi
8112 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8113 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8114 # Extract the first word of "mt", so it can be a program name with args.
8115 set dummy mt; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 if test -n "$ac_ct_MANIFEST_TOOL"; then
8122 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135 done
8136 done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8142 if test -n "$ac_ct_MANIFEST_TOOL"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8144 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 fi
8149
8150 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8151 MANIFEST_TOOL=":"
8152 else
8153 case $cross_compiling:$ac_tool_warned in
8154 yes:)
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157 ac_tool_warned=yes ;;
8158 esac
8159 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8160 fi
8161 else
8162 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8163 fi
8164
8165 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8167 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8168 if ${lt_cv_path_mainfest_tool+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 lt_cv_path_mainfest_tool=no
8172 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8173 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8174 cat conftest.err >&5
8175 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8176 lt_cv_path_mainfest_tool=yes
8177 fi
8178 rm -f conftest*
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8181 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8182 if test yes != "$lt_cv_path_mainfest_tool"; then
8183 MANIFEST_TOOL=:
8184 fi
8185
8186
8187
8188
8189
8190
8191 case $host_os in
8192 rhapsody* | darwin*)
8193 if test -n "$ac_tool_prefix"; then
8194 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8195 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if test -n "$DSYMUTIL"; then
8202 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215 done
8216 done
8217 IFS=$as_save_IFS
8218
8219 fi
8220 fi
8221 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8222 if test -n "$DSYMUTIL"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8224 $as_echo "$DSYMUTIL" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 fi
8229
8230
8231 fi
8232 if test -z "$ac_cv_prog_DSYMUTIL"; then
8233 ac_ct_DSYMUTIL=$DSYMUTIL
8234 # Extract the first word of "dsymutil", so it can be a program name with args.
8235 set dummy dsymutil; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 if test -n "$ac_ct_DSYMUTIL"; then
8242 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8243 else
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8254 fi
8255 done
8256 done
8257 IFS=$as_save_IFS
8258
8259 fi
8260 fi
8261 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8262 if test -n "$ac_ct_DSYMUTIL"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8264 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8268 fi
8269
8270 if test "x$ac_ct_DSYMUTIL" = x; then
8271 DSYMUTIL=":"
8272 else
8273 case $cross_compiling:$ac_tool_warned in
8274 yes:)
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8277 ac_tool_warned=yes ;;
8278 esac
8279 DSYMUTIL=$ac_ct_DSYMUTIL
8280 fi
8281 else
8282 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8283 fi
8284
8285 if test -n "$ac_tool_prefix"; then
8286 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8287 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_prog_NMEDIT+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$NMEDIT"; then
8294 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8306 fi
8307 done
8308 done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 NMEDIT=$ac_cv_prog_NMEDIT
8314 if test -n "$NMEDIT"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8316 $as_echo "$NMEDIT" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323 fi
8324 if test -z "$ac_cv_prog_NMEDIT"; then
8325 ac_ct_NMEDIT=$NMEDIT
8326 # Extract the first word of "nmedit", so it can be a program name with args.
8327 set dummy nmedit; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 if test -n "$ac_ct_NMEDIT"; then
8334 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339 IFS=$as_save_IFS
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8343 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347 done
8348 done
8349 IFS=$as_save_IFS
8350
8351 fi
8352 fi
8353 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8354 if test -n "$ac_ct_NMEDIT"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8356 $as_echo "$ac_ct_NMEDIT" >&6; }
8357 else
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8360 fi
8361
8362 if test "x$ac_ct_NMEDIT" = x; then
8363 NMEDIT=":"
8364 else
8365 case $cross_compiling:$ac_tool_warned in
8366 yes:)
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8369 ac_tool_warned=yes ;;
8370 esac
8371 NMEDIT=$ac_ct_NMEDIT
8372 fi
8373 else
8374 NMEDIT="$ac_cv_prog_NMEDIT"
8375 fi
8376
8377 if test -n "$ac_tool_prefix"; then
8378 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8379 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if ${ac_cv_prog_LIPO+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 if test -n "$LIPO"; then
8386 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8387 else
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 break 2
8398 fi
8399 done
8400 done
8401 IFS=$as_save_IFS
8402
8403 fi
8404 fi
8405 LIPO=$ac_cv_prog_LIPO
8406 if test -n "$LIPO"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8408 $as_echo "$LIPO" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8412 fi
8413
8414
8415 fi
8416 if test -z "$ac_cv_prog_LIPO"; then
8417 ac_ct_LIPO=$LIPO
8418 # Extract the first word of "lipo", so it can be a program name with args.
8419 set dummy lipo; ac_word=$2
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 $as_echo_n "checking for $ac_word... " >&6; }
8422 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 if test -n "$ac_ct_LIPO"; then
8426 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8427 else
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431 IFS=$as_save_IFS
8432 test -z "$as_dir" && as_dir=.
8433 for ac_exec_ext in '' $ac_executable_extensions; do
8434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8435 ac_cv_prog_ac_ct_LIPO="lipo"
8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437 break 2
8438 fi
8439 done
8440 done
8441 IFS=$as_save_IFS
8442
8443 fi
8444 fi
8445 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8446 if test -n "$ac_ct_LIPO"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8448 $as_echo "$ac_ct_LIPO" >&6; }
8449 else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 fi
8453
8454 if test "x$ac_ct_LIPO" = x; then
8455 LIPO=":"
8456 else
8457 case $cross_compiling:$ac_tool_warned in
8458 yes:)
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8461 ac_tool_warned=yes ;;
8462 esac
8463 LIPO=$ac_ct_LIPO
8464 fi
8465 else
8466 LIPO="$ac_cv_prog_LIPO"
8467 fi
8468
8469 if test -n "$ac_tool_prefix"; then
8470 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8471 set dummy ${ac_tool_prefix}otool; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_OTOOL+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 if test -n "$OTOOL"; then
8478 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491 done
8492 done
8493 IFS=$as_save_IFS
8494
8495 fi
8496 fi
8497 OTOOL=$ac_cv_prog_OTOOL
8498 if test -n "$OTOOL"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8500 $as_echo "$OTOOL" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507 fi
8508 if test -z "$ac_cv_prog_OTOOL"; then
8509 ac_ct_OTOOL=$OTOOL
8510 # Extract the first word of "otool", so it can be a program name with args.
8511 set dummy otool; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 if test -n "$ac_ct_OTOOL"; then
8518 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527 ac_cv_prog_ac_ct_OTOOL="otool"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8530 fi
8531 done
8532 done
8533 IFS=$as_save_IFS
8534
8535 fi
8536 fi
8537 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8538 if test -n "$ac_ct_OTOOL"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8540 $as_echo "$ac_ct_OTOOL" >&6; }
8541 else
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546 if test "x$ac_ct_OTOOL" = x; then
8547 OTOOL=":"
8548 else
8549 case $cross_compiling:$ac_tool_warned in
8550 yes:)
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8553 ac_tool_warned=yes ;;
8554 esac
8555 OTOOL=$ac_ct_OTOOL
8556 fi
8557 else
8558 OTOOL="$ac_cv_prog_OTOOL"
8559 fi
8560
8561 if test -n "$ac_tool_prefix"; then
8562 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8563 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if ${ac_cv_prog_OTOOL64+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 if test -n "$OTOOL64"; then
8570 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8582 fi
8583 done
8584 done
8585 IFS=$as_save_IFS
8586
8587 fi
8588 fi
8589 OTOOL64=$ac_cv_prog_OTOOL64
8590 if test -n "$OTOOL64"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8592 $as_echo "$OTOOL64" >&6; }
8593 else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8596 fi
8597
8598
8599 fi
8600 if test -z "$ac_cv_prog_OTOOL64"; then
8601 ac_ct_OTOOL64=$OTOOL64
8602 # Extract the first word of "otool64", so it can be a program name with args.
8603 set dummy otool64; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 if test -n "$ac_ct_OTOOL64"; then
8610 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8619 ac_cv_prog_ac_ct_OTOOL64="otool64"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8622 fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627 fi
8628 fi
8629 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8630 if test -n "$ac_ct_OTOOL64"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8632 $as_echo "$ac_ct_OTOOL64" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8636 fi
8637
8638 if test "x$ac_ct_OTOOL64" = x; then
8639 OTOOL64=":"
8640 else
8641 case $cross_compiling:$ac_tool_warned in
8642 yes:)
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8645 ac_tool_warned=yes ;;
8646 esac
8647 OTOOL64=$ac_ct_OTOOL64
8648 fi
8649 else
8650 OTOOL64="$ac_cv_prog_OTOOL64"
8651 fi
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8680 $as_echo_n "checking for -single_module linker flag... " >&6; }
8681 if ${lt_cv_apple_cc_single_mod+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 lt_cv_apple_cc_single_mod=no
8685 if test -z "$LT_MULTI_MODULE"; then
8686 # By default we will add the -single_module flag. You can override
8687 # by either setting the environment variable LT_MULTI_MODULE
8688 # non-empty at configure time, or by adding -multi_module to the
8689 # link flags.
8690 rm -rf libconftest.dylib*
8691 echo "int foo(void){return 1;}" > conftest.c
8692 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8693 -dynamiclib -Wl,-single_module conftest.c" >&5
8694 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8695 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8696 _lt_result=$?
8697 # If there is a non-empty error log, and "single_module"
8698 # appears in it, assume the flag caused a linker warning
8699 if test -s conftest.err && $GREP single_module conftest.err; then
8700 cat conftest.err >&5
8701 # Otherwise, if the output was created with a 0 exit code from
8702 # the compiler, it worked.
8703 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8704 lt_cv_apple_cc_single_mod=yes
8705 else
8706 cat conftest.err >&5
8707 fi
8708 rm -rf libconftest.dylib*
8709 rm -f conftest.*
8710 fi
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8713 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8716 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8717 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 lt_cv_ld_exported_symbols_list=no
8721 save_LDFLAGS=$LDFLAGS
8722 echo "_main" > conftest.sym
8723 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726
8727 int
8728 main ()
8729 {
8730
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 if ac_fn_c_try_link "$LINENO"; then :
8736 lt_cv_ld_exported_symbols_list=yes
8737 else
8738 lt_cv_ld_exported_symbols_list=no
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LDFLAGS=$save_LDFLAGS
8743
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8746 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8747
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8749 $as_echo_n "checking for -force_load linker flag... " >&6; }
8750 if ${lt_cv_ld_force_load+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 lt_cv_ld_force_load=no
8754 cat > conftest.c << _LT_EOF
8755 int forced_loaded() { return 2;}
8756 _LT_EOF
8757 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8758 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8759 echo "$AR cru libconftest.a conftest.o" >&5
8760 $AR cru libconftest.a conftest.o 2>&5
8761 echo "$RANLIB libconftest.a" >&5
8762 $RANLIB libconftest.a 2>&5
8763 cat > conftest.c << _LT_EOF
8764 int main() { return 0;}
8765 _LT_EOF
8766 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8767 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8768 _lt_result=$?
8769 if test -s conftest.err && $GREP force_load conftest.err; then
8770 cat conftest.err >&5
8771 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8772 lt_cv_ld_force_load=yes
8773 else
8774 cat conftest.err >&5
8775 fi
8776 rm -f conftest.err libconftest.a conftest conftest.c
8777 rm -rf conftest.dSYM
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8781 $as_echo "$lt_cv_ld_force_load" >&6; }
8782 case $host_os in
8783 rhapsody* | darwin1.[012])
8784 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8785 darwin1.*)
8786 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8787 darwin*) # darwin 5.x on
8788 # if running on 10.5 or later, the deployment target defaults
8789 # to the OS version, if on x86, and 10.4, the deployment
8790 # target defaults to 10.4. Don't you love it?
8791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8792 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8793 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8794 10.[012][,.]*)
8795 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8796 10.*)
8797 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8798 esac
8799 ;;
8800 esac
8801 if test yes = "$lt_cv_apple_cc_single_mod"; then
8802 _lt_dar_single_mod='$single_module'
8803 fi
8804 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8805 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8806 else
8807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8808 fi
8809 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8810 _lt_dsymutil='~$DSYMUTIL $lib || :'
8811 else
8812 _lt_dsymutil=
8813 fi
8814 ;;
8815 esac
8816
8817 # func_munge_path_list VARIABLE PATH
8818 # -----------------------------------
8819 # VARIABLE is name of variable containing _space_ separated list of
8820 # directories to be munged by the contents of PATH, which is string
8821 # having a format:
8822 # "DIR[:DIR]:"
8823 # string "DIR[ DIR]" will be prepended to VARIABLE
8824 # ":DIR[:DIR]"
8825 # string "DIR[ DIR]" will be appended to VARIABLE
8826 # "DIRP[:DIRP]::[DIRA:]DIRA"
8827 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8828 # "DIRA[ DIRA]" will be appended to VARIABLE
8829 # "DIR[:DIR]"
8830 # VARIABLE will be replaced by "DIR[ DIR]"
8831 func_munge_path_list ()
8832 {
8833 case x$2 in
8834 x)
8835 ;;
8836 *:)
8837 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8838 ;;
8839 x:*)
8840 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8841 ;;
8842 *::*)
8843 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8844 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8845 ;;
8846 *)
8847 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8848 ;;
8849 esac
8850 }
8851
8852 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8853 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8854 inttypes.h stdint.h unistd.h
8855 do :
8856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8857 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8858 "
8859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8860 cat >>confdefs.h <<_ACEOF
8861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862 _ACEOF
8863
8864 fi
8865
8866 done
8867
8868
8869 for ac_header in dlfcn.h
8870 do :
8871 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8872 "
8873 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8874 cat >>confdefs.h <<_ACEOF
8875 #define HAVE_DLFCN_H 1
8876 _ACEOF
8877
8878 fi
8879
8880 done
8881
8882
8883
8884
8885
8886 # Set options
8887
8888
8889
8890 enable_dlopen=no
8891
8892
8893 enable_win32_dll=no
8894
8895
8896 # Check whether --enable-shared was given.
8897 if test "${enable_shared+set}" = set; then :
8898 enableval=$enable_shared; p=${PACKAGE-default}
8899 case $enableval in
8900 yes) enable_shared=yes ;;
8901 no) enable_shared=no ;;
8902 *)
8903 enable_shared=no
8904 # Look at the argument we got. We use all the common list separators.
8905 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8906 for pkg in $enableval; do
8907 IFS=$lt_save_ifs
8908 if test "X$pkg" = "X$p"; then
8909 enable_shared=yes
8910 fi
8911 done
8912 IFS=$lt_save_ifs
8913 ;;
8914 esac
8915 else
8916 enable_shared=yes
8917 fi
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 # Check whether --enable-static was given.
8928 if test "${enable_static+set}" = set; then :
8929 enableval=$enable_static; p=${PACKAGE-default}
8930 case $enableval in
8931 yes) enable_static=yes ;;
8932 no) enable_static=no ;;
8933 *)
8934 enable_static=no
8935 # Look at the argument we got. We use all the common list separators.
8936 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8937 for pkg in $enableval; do
8938 IFS=$lt_save_ifs
8939 if test "X$pkg" = "X$p"; then
8940 enable_static=yes
8941 fi
8942 done
8943 IFS=$lt_save_ifs
8944 ;;
8945 esac
8946 else
8947 enable_static=yes
8948 fi
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 # Check whether --with-pic was given.
8960 if test "${with_pic+set}" = set; then :
8961 withval=$with_pic; lt_p=${PACKAGE-default}
8962 case $withval in
8963 yes|no) pic_mode=$withval ;;
8964 *)
8965 pic_mode=default
8966 # Look at the argument we got. We use all the common list separators.
8967 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8968 for lt_pkg in $withval; do
8969 IFS=$lt_save_ifs
8970 if test "X$lt_pkg" = "X$lt_p"; then
8971 pic_mode=yes
8972 fi
8973 done
8974 IFS=$lt_save_ifs
8975 ;;
8976 esac
8977 else
8978 pic_mode=default
8979 fi
8980
8981
8982
8983
8984
8985
8986
8987
8988 # Check whether --enable-fast-install was given.
8989 if test "${enable_fast_install+set}" = set; then :
8990 enableval=$enable_fast_install; p=${PACKAGE-default}
8991 case $enableval in
8992 yes) enable_fast_install=yes ;;
8993 no) enable_fast_install=no ;;
8994 *)
8995 enable_fast_install=no
8996 # Look at the argument we got. We use all the common list separators.
8997 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8998 for pkg in $enableval; do
8999 IFS=$lt_save_ifs
9000 if test "X$pkg" = "X$p"; then
9001 enable_fast_install=yes
9002 fi
9003 done
9004 IFS=$lt_save_ifs
9005 ;;
9006 esac
9007 else
9008 enable_fast_install=yes
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018 shared_archive_member_spec=
9019 case $host,$enable_shared in
9020 power*-*-aix[5-9]*,yes)
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9022 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9023
9024 # Check whether --with-aix-soname was given.
9025 if test "${with_aix_soname+set}" = set; then :
9026 withval=$with_aix_soname; case $withval in
9027 aix|svr4|both)
9028 ;;
9029 *)
9030 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9031 ;;
9032 esac
9033 lt_cv_with_aix_soname=$with_aix_soname
9034 else
9035 if ${lt_cv_with_aix_soname+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 lt_cv_with_aix_soname=aix
9039 fi
9040
9041 with_aix_soname=$lt_cv_with_aix_soname
9042 fi
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9045 $as_echo "$with_aix_soname" >&6; }
9046 if test aix != "$with_aix_soname"; then
9047 # For the AIX way of multilib, we name the shared archive member
9048 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9049 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9050 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9051 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9052 if test 64 = "${OBJECT_MODE-32}"; then
9053 shared_archive_member_spec=shr_64
9054 else
9055 shared_archive_member_spec=shr
9056 fi
9057 fi
9058 ;;
9059 *)
9060 with_aix_soname=aix
9061 ;;
9062 esac
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073 # This can be used to rebuild libtool when needed
9074 LIBTOOL_DEPS=$ltmain
9075
9076 # Always use our own libtool.
9077 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108 test -z "$LN_S" && LN_S="ln -s"
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123 if test -n "${ZSH_VERSION+set}"; then
9124 setopt NO_GLOB_SUBST
9125 fi
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9128 $as_echo_n "checking for objdir... " >&6; }
9129 if ${lt_cv_objdir+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 rm -f .libs 2>/dev/null
9133 mkdir .libs 2>/dev/null
9134 if test -d .libs; then
9135 lt_cv_objdir=.libs
9136 else
9137 # MS-DOS does not allow filenames that begin with a dot.
9138 lt_cv_objdir=_libs
9139 fi
9140 rmdir .libs 2>/dev/null
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9143 $as_echo "$lt_cv_objdir" >&6; }
9144 objdir=$lt_cv_objdir
9145
9146
9147
9148
9149
9150 cat >>confdefs.h <<_ACEOF
9151 #define LT_OBJDIR "$lt_cv_objdir/"
9152 _ACEOF
9153
9154
9155
9156
9157 case $host_os in
9158 aix3*)
9159 # AIX sometimes has problems with the GCC collect2 program. For some
9160 # reason, if we set the COLLECT_NAMES environment variable, the problems
9161 # vanish in a puff of smoke.
9162 if test set != "${COLLECT_NAMES+set}"; then
9163 COLLECT_NAMES=
9164 export COLLECT_NAMES
9165 fi
9166 ;;
9167 esac
9168
9169 # Global variables:
9170 ofile=libtool
9171 can_build_shared=yes
9172
9173 # All known linkers require a '.a' archive for static linking (except MSVC,
9174 # which needs '.lib').
9175 libext=a
9176
9177 with_gnu_ld=$lt_cv_prog_gnu_ld
9178
9179 old_CC=$CC
9180 old_CFLAGS=$CFLAGS
9181
9182 # Set sane defaults for various variables
9183 test -z "$CC" && CC=cc
9184 test -z "$LTCC" && LTCC=$CC
9185 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9186 test -z "$LD" && LD=ld
9187 test -z "$ac_objext" && ac_objext=o
9188
9189 func_cc_basename $compiler
9190 cc_basename=$func_cc_basename_result
9191
9192
9193 # Only perform the check for file, if the check method requires it
9194 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9195 case $deplibs_check_method in
9196 file_magic*)
9197 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9199 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9200 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 case $MAGIC_CMD in
9204 [\\/*] | ?:[\\/]*)
9205 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9206 ;;
9207 *)
9208 lt_save_MAGIC_CMD=$MAGIC_CMD
9209 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9211 for ac_dir in $ac_dummy; do
9212 IFS=$lt_save_ifs
9213 test -z "$ac_dir" && ac_dir=.
9214 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9215 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9216 if test -n "$file_magic_test_file"; then
9217 case $deplibs_check_method in
9218 "file_magic "*)
9219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9220 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9222 $EGREP "$file_magic_regex" > /dev/null; then
9223 :
9224 else
9225 cat <<_LT_EOF 1>&2
9226
9227 *** Warning: the command libtool uses to detect shared libraries,
9228 *** $file_magic_cmd, produces output that libtool cannot recognize.
9229 *** The result is that libtool may fail to recognize shared libraries
9230 *** as such. This will affect the creation of libtool libraries that
9231 *** depend on shared libraries, but programs linked with such libtool
9232 *** libraries will work regardless of this problem. Nevertheless, you
9233 *** may want to report the problem to your system manager and/or to
9234 *** [email protected]
9235
9236 _LT_EOF
9237 fi ;;
9238 esac
9239 fi
9240 break
9241 fi
9242 done
9243 IFS=$lt_save_ifs
9244 MAGIC_CMD=$lt_save_MAGIC_CMD
9245 ;;
9246 esac
9247 fi
9248
9249 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9250 if test -n "$MAGIC_CMD"; then
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9252 $as_echo "$MAGIC_CMD" >&6; }
9253 else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255 $as_echo "no" >&6; }
9256 fi
9257
9258
9259
9260
9261
9262 if test -z "$lt_cv_path_MAGIC_CMD"; then
9263 if test -n "$ac_tool_prefix"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9265 $as_echo_n "checking for file... " >&6; }
9266 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 case $MAGIC_CMD in
9270 [\\/*] | ?:[\\/]*)
9271 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9272 ;;
9273 *)
9274 lt_save_MAGIC_CMD=$MAGIC_CMD
9275 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9277 for ac_dir in $ac_dummy; do
9278 IFS=$lt_save_ifs
9279 test -z "$ac_dir" && ac_dir=.
9280 if test -f "$ac_dir/file"; then
9281 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9282 if test -n "$file_magic_test_file"; then
9283 case $deplibs_check_method in
9284 "file_magic "*)
9285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9286 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9288 $EGREP "$file_magic_regex" > /dev/null; then
9289 :
9290 else
9291 cat <<_LT_EOF 1>&2
9292
9293 *** Warning: the command libtool uses to detect shared libraries,
9294 *** $file_magic_cmd, produces output that libtool cannot recognize.
9295 *** The result is that libtool may fail to recognize shared libraries
9296 *** as such. This will affect the creation of libtool libraries that
9297 *** depend on shared libraries, but programs linked with such libtool
9298 *** libraries will work regardless of this problem. Nevertheless, you
9299 *** may want to report the problem to your system manager and/or to
9300 *** [email protected]
9301
9302 _LT_EOF
9303 fi ;;
9304 esac
9305 fi
9306 break
9307 fi
9308 done
9309 IFS=$lt_save_ifs
9310 MAGIC_CMD=$lt_save_MAGIC_CMD
9311 ;;
9312 esac
9313 fi
9314
9315 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9316 if test -n "$MAGIC_CMD"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9318 $as_echo "$MAGIC_CMD" >&6; }
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9322 fi
9323
9324
9325 else
9326 MAGIC_CMD=:
9327 fi
9328 fi
9329
9330 fi
9331 ;;
9332 esac
9333
9334 # Use C for the default configuration in the libtool script
9335
9336 lt_save_CC=$CC
9337 ac_ext=c
9338 ac_cpp='$CPP $CPPFLAGS'
9339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9342
9343
9344 # Source file extension for C test sources.
9345 ac_ext=c
9346
9347 # Object file extension for compiled C test sources.
9348 objext=o
9349 objext=$objext
9350
9351 # Code to be used in simple compile tests
9352 lt_simple_compile_test_code="int some_variable = 0;"
9353
9354 # Code to be used in simple link tests
9355 lt_simple_link_test_code='int main(){return(0);}'
9356
9357
9358
9359
9360
9361
9362
9363 # If no C compiler was specified, use CC.
9364 LTCC=${LTCC-"$CC"}
9365
9366 # If no C compiler flags were specified, use CFLAGS.
9367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9368
9369 # Allow CC to be a program name with arguments.
9370 compiler=$CC
9371
9372 # Save the default compiler, since it gets overwritten when the other
9373 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9374 compiler_DEFAULT=$CC
9375
9376 # save warnings/boilerplate of simple test code
9377 ac_outfile=conftest.$ac_objext
9378 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9380 _lt_compiler_boilerplate=`cat conftest.err`
9381 $RM conftest*
9382
9383 ac_outfile=conftest.$ac_objext
9384 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9386 _lt_linker_boilerplate=`cat conftest.err`
9387 $RM -r conftest*
9388
9389
9390 if test -n "$compiler"; then
9391
9392 lt_prog_compiler_no_builtin_flag=
9393
9394 if test yes = "$GCC"; then
9395 case $cc_basename in
9396 nvcc*)
9397 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9398 *)
9399 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9400 esac
9401
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9403 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9404 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 lt_cv_prog_compiler_rtti_exceptions=no
9408 ac_outfile=conftest.$ac_objext
9409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9411 # Insert the option either (1) after the last *FLAGS variable, or
9412 # (2) before a word containing "conftest.", or (3) at the end.
9413 # Note that $ac_compile itself does not contain backslashes and begins
9414 # with a dollar sign (not a hyphen), so the echo should work correctly.
9415 # The option is referenced via a variable to avoid confusing sed.
9416 lt_compile=`echo "$ac_compile" | $SED \
9417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9419 -e 's:$: $lt_compiler_flag:'`
9420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9421 (eval "$lt_compile" 2>conftest.err)
9422 ac_status=$?
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 if (exit $ac_status) && test -s "$ac_outfile"; then
9426 # The compiler can only warn and ignore the option if not recognized
9427 # So say no if there are warnings other than the usual output.
9428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9431 lt_cv_prog_compiler_rtti_exceptions=yes
9432 fi
9433 fi
9434 $RM conftest*
9435
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9438 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9439
9440 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9441 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9442 else
9443 :
9444 fi
9445
9446 fi
9447
9448
9449
9450
9451
9452
9453 lt_prog_compiler_wl=
9454 lt_prog_compiler_pic=
9455 lt_prog_compiler_static=
9456
9457
9458 if test yes = "$GCC"; then
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_static='-static'
9461
9462 case $host_os in
9463 aix*)
9464 # All AIX code is PIC.
9465 if test ia64 = "$host_cpu"; then
9466 # AIX 5 now supports IA64 processor
9467 lt_prog_compiler_static='-Bstatic'
9468 fi
9469 lt_prog_compiler_pic='-fPIC'
9470 ;;
9471
9472 amigaos*)
9473 case $host_cpu in
9474 powerpc)
9475 # see comment about AmigaOS4 .so support
9476 lt_prog_compiler_pic='-fPIC'
9477 ;;
9478 m68k)
9479 # FIXME: we need at least 68020 code to build shared libraries, but
9480 # adding the '-m68020' flag to GCC prevents building anything better,
9481 # like '-m68040'.
9482 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9483 ;;
9484 esac
9485 ;;
9486
9487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9488 # PIC is the default for these OSes.
9489 ;;
9490
9491 mingw* | cygwin* | pw32* | os2* | cegcc*)
9492 # This hack is so that the source file can tell whether it is being
9493 # built for inclusion in a dll (and should export symbols for example).
9494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9495 # (--disable-auto-import) libraries
9496 lt_prog_compiler_pic='-DDLL_EXPORT'
9497 case $host_os in
9498 os2*)
9499 lt_prog_compiler_static='$wl-static'
9500 ;;
9501 esac
9502 ;;
9503
9504 darwin* | rhapsody*)
9505 # PIC is the default on this platform
9506 # Common symbols not allowed in MH_DYLIB files
9507 lt_prog_compiler_pic='-fno-common'
9508 ;;
9509
9510 haiku*)
9511 # PIC is the default for Haiku.
9512 # The "-static" flag exists, but is broken.
9513 lt_prog_compiler_static=
9514 ;;
9515
9516 hpux*)
9517 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9518 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9519 # sets the default TLS model and affects inlining.
9520 case $host_cpu in
9521 hppa*64*)
9522 # +Z the default
9523 ;;
9524 *)
9525 lt_prog_compiler_pic='-fPIC'
9526 ;;
9527 esac
9528 ;;
9529
9530 interix[3-9]*)
9531 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9532 # Instead, we relocate shared libraries at runtime.
9533 ;;
9534
9535 msdosdjgpp*)
9536 # Just because we use GCC doesn't mean we suddenly get shared libraries
9537 # on systems that don't support them.
9538 lt_prog_compiler_can_build_shared=no
9539 enable_shared=no
9540 ;;
9541
9542 *nto* | *qnx*)
9543 # QNX uses GNU C++, but need to define -shared option too, otherwise
9544 # it will coredump.
9545 lt_prog_compiler_pic='-fPIC -shared'
9546 ;;
9547
9548 sysv4*MP*)
9549 if test -d /usr/nec; then
9550 lt_prog_compiler_pic=-Kconform_pic
9551 fi
9552 ;;
9553
9554 *)
9555 lt_prog_compiler_pic='-fPIC'
9556 ;;
9557 esac
9558
9559 case $cc_basename in
9560 nvcc*) # Cuda Compiler Driver 2.2
9561 lt_prog_compiler_wl='-Xlinker '
9562 if test -n "$lt_prog_compiler_pic"; then
9563 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9564 fi
9565 ;;
9566 esac
9567 else
9568 # PORTME Check for flag to pass linker flags through the system compiler.
9569 case $host_os in
9570 aix*)
9571 lt_prog_compiler_wl='-Wl,'
9572 if test ia64 = "$host_cpu"; then
9573 # AIX 5 now supports IA64 processor
9574 lt_prog_compiler_static='-Bstatic'
9575 else
9576 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9577 fi
9578 ;;
9579
9580 darwin* | rhapsody*)
9581 # PIC is the default on this platform
9582 # Common symbols not allowed in MH_DYLIB files
9583 lt_prog_compiler_pic='-fno-common'
9584 case $cc_basename in
9585 nagfor*)
9586 # NAG Fortran compiler
9587 lt_prog_compiler_wl='-Wl,-Wl,,'
9588 lt_prog_compiler_pic='-PIC'
9589 lt_prog_compiler_static='-Bstatic'
9590 ;;
9591 esac
9592 ;;
9593
9594 mingw* | cygwin* | pw32* | os2* | cegcc*)
9595 # This hack is so that the source file can tell whether it is being
9596 # built for inclusion in a dll (and should export symbols for example).
9597 lt_prog_compiler_pic='-DDLL_EXPORT'
9598 case $host_os in
9599 os2*)
9600 lt_prog_compiler_static='$wl-static'
9601 ;;
9602 esac
9603 ;;
9604
9605 hpux9* | hpux10* | hpux11*)
9606 lt_prog_compiler_wl='-Wl,'
9607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9608 # not for PA HP-UX.
9609 case $host_cpu in
9610 hppa*64*|ia64*)
9611 # +Z the default
9612 ;;
9613 *)
9614 lt_prog_compiler_pic='+Z'
9615 ;;
9616 esac
9617 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9618 lt_prog_compiler_static='$wl-a ${wl}archive'
9619 ;;
9620
9621 irix5* | irix6* | nonstopux*)
9622 lt_prog_compiler_wl='-Wl,'
9623 # PIC (with -KPIC) is the default.
9624 lt_prog_compiler_static='-non_shared'
9625 ;;
9626
9627 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9628 case $cc_basename in
9629 # old Intel for x86_64, which still supported -KPIC.
9630 ecc*)
9631 lt_prog_compiler_wl='-Wl,'
9632 lt_prog_compiler_pic='-KPIC'
9633 lt_prog_compiler_static='-static'
9634 ;;
9635 # icc used to be incompatible with GCC.
9636 # ICC 10 doesn't accept -KPIC any more.
9637 icc* | ifort*)
9638 lt_prog_compiler_wl='-Wl,'
9639 lt_prog_compiler_pic='-fPIC'
9640 lt_prog_compiler_static='-static'
9641 ;;
9642 # Lahey Fortran 8.1.
9643 lf95*)
9644 lt_prog_compiler_wl='-Wl,'
9645 lt_prog_compiler_pic='--shared'
9646 lt_prog_compiler_static='--static'
9647 ;;
9648 nagfor*)
9649 # NAG Fortran compiler
9650 lt_prog_compiler_wl='-Wl,-Wl,,'
9651 lt_prog_compiler_pic='-PIC'
9652 lt_prog_compiler_static='-Bstatic'
9653 ;;
9654 tcc*)
9655 # Fabrice Bellard et al's Tiny C Compiler
9656 lt_prog_compiler_wl='-Wl,'
9657 lt_prog_compiler_pic='-fPIC'
9658 lt_prog_compiler_static='-static'
9659 ;;
9660 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9661 # Portland Group compilers (*not* the Pentium gcc compiler,
9662 # which looks to be a dead project)
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_pic='-fpic'
9665 lt_prog_compiler_static='-Bstatic'
9666 ;;
9667 ccc*)
9668 lt_prog_compiler_wl='-Wl,'
9669 # All Alpha code is PIC.
9670 lt_prog_compiler_static='-non_shared'
9671 ;;
9672 xl* | bgxl* | bgf* | mpixl*)
9673 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9674 lt_prog_compiler_wl='-Wl,'
9675 lt_prog_compiler_pic='-qpic'
9676 lt_prog_compiler_static='-qstaticlink'
9677 ;;
9678 *)
9679 case `$CC -V 2>&1 | sed 5q` in
9680 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9681 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9682 lt_prog_compiler_pic='-KPIC'
9683 lt_prog_compiler_static='-Bstatic'
9684 lt_prog_compiler_wl=''
9685 ;;
9686 *Sun\ F* | *Sun*Fortran*)
9687 lt_prog_compiler_pic='-KPIC'
9688 lt_prog_compiler_static='-Bstatic'
9689 lt_prog_compiler_wl='-Qoption ld '
9690 ;;
9691 *Sun\ C*)
9692 # Sun C 5.9
9693 lt_prog_compiler_pic='-KPIC'
9694 lt_prog_compiler_static='-Bstatic'
9695 lt_prog_compiler_wl='-Wl,'
9696 ;;
9697 *Intel*\ [CF]*Compiler*)
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_pic='-fPIC'
9700 lt_prog_compiler_static='-static'
9701 ;;
9702 *Portland\ Group*)
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='-fpic'
9705 lt_prog_compiler_static='-Bstatic'
9706 ;;
9707 esac
9708 ;;
9709 esac
9710 ;;
9711
9712 newsos6)
9713 lt_prog_compiler_pic='-KPIC'
9714 lt_prog_compiler_static='-Bstatic'
9715 ;;
9716
9717 *nto* | *qnx*)
9718 # QNX uses GNU C++, but need to define -shared option too, otherwise
9719 # it will coredump.
9720 lt_prog_compiler_pic='-fPIC -shared'
9721 ;;
9722
9723 osf3* | osf4* | osf5*)
9724 lt_prog_compiler_wl='-Wl,'
9725 # All OSF/1 code is PIC.
9726 lt_prog_compiler_static='-non_shared'
9727 ;;
9728
9729 rdos*)
9730 lt_prog_compiler_static='-non_shared'
9731 ;;
9732
9733 solaris*)
9734 lt_prog_compiler_pic='-KPIC'
9735 lt_prog_compiler_static='-Bstatic'
9736 case $cc_basename in
9737 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9738 lt_prog_compiler_wl='-Qoption ld ';;
9739 *)
9740 lt_prog_compiler_wl='-Wl,';;
9741 esac
9742 ;;
9743
9744 sunos4*)
9745 lt_prog_compiler_wl='-Qoption ld '
9746 lt_prog_compiler_pic='-PIC'
9747 lt_prog_compiler_static='-Bstatic'
9748 ;;
9749
9750 sysv4 | sysv4.2uw2* | sysv4.3*)
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_pic='-KPIC'
9753 lt_prog_compiler_static='-Bstatic'
9754 ;;
9755
9756 sysv4*MP*)
9757 if test -d /usr/nec; then
9758 lt_prog_compiler_pic='-Kconform_pic'
9759 lt_prog_compiler_static='-Bstatic'
9760 fi
9761 ;;
9762
9763 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9764 lt_prog_compiler_wl='-Wl,'
9765 lt_prog_compiler_pic='-KPIC'
9766 lt_prog_compiler_static='-Bstatic'
9767 ;;
9768
9769 unicos*)
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_can_build_shared=no
9772 ;;
9773
9774 uts4*)
9775 lt_prog_compiler_pic='-pic'
9776 lt_prog_compiler_static='-Bstatic'
9777 ;;
9778
9779 *)
9780 lt_prog_compiler_can_build_shared=no
9781 ;;
9782 esac
9783 fi
9784
9785 case $host_os in
9786 # For platforms that do not support PIC, -DPIC is meaningless:
9787 *djgpp*)
9788 lt_prog_compiler_pic=
9789 ;;
9790 *)
9791 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9792 ;;
9793 esac
9794
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9796 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9797 if ${lt_cv_prog_compiler_pic+:} false; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9803 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9804 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9805
9806 #
9807 # Check to make sure the PIC flag actually works.
9808 #
9809 if test -n "$lt_prog_compiler_pic"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9811 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9812 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 lt_cv_prog_compiler_pic_works=no
9816 ac_outfile=conftest.$ac_objext
9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9818 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9819 # Insert the option either (1) after the last *FLAGS variable, or
9820 # (2) before a word containing "conftest.", or (3) at the end.
9821 # Note that $ac_compile itself does not contain backslashes and begins
9822 # with a dollar sign (not a hyphen), so the echo should work correctly.
9823 # The option is referenced via a variable to avoid confusing sed.
9824 lt_compile=`echo "$ac_compile" | $SED \
9825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9827 -e 's:$: $lt_compiler_flag:'`
9828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9829 (eval "$lt_compile" 2>conftest.err)
9830 ac_status=$?
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 if (exit $ac_status) && test -s "$ac_outfile"; then
9834 # The compiler can only warn and ignore the option if not recognized
9835 # So say no if there are warnings other than the usual output.
9836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9839 lt_cv_prog_compiler_pic_works=yes
9840 fi
9841 fi
9842 $RM conftest*
9843
9844 fi
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9846 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9847
9848 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9849 case $lt_prog_compiler_pic in
9850 "" | " "*) ;;
9851 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9852 esac
9853 else
9854 lt_prog_compiler_pic=
9855 lt_prog_compiler_can_build_shared=no
9856 fi
9857
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870 #
9871 # Check to make sure the static flag actually works.
9872 #
9873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9875 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9876 if ${lt_cv_prog_compiler_static_works+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 lt_cv_prog_compiler_static_works=no
9880 save_LDFLAGS=$LDFLAGS
9881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9882 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9884 # The linker can only warn and ignore the option if not recognized
9885 # So say no if there are warnings
9886 if test -s conftest.err; then
9887 # Append any errors to the config.log.
9888 cat conftest.err 1>&5
9889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9891 if diff conftest.exp conftest.er2 >/dev/null; then
9892 lt_cv_prog_compiler_static_works=yes
9893 fi
9894 else
9895 lt_cv_prog_compiler_static_works=yes
9896 fi
9897 fi
9898 $RM -r conftest*
9899 LDFLAGS=$save_LDFLAGS
9900
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9903 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9904
9905 if test yes = "$lt_cv_prog_compiler_static_works"; then
9906 :
9907 else
9908 lt_prog_compiler_static=
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9919 if ${lt_cv_prog_compiler_c_o+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 lt_cv_prog_compiler_c_o=no
9923 $RM -r conftest 2>/dev/null
9924 mkdir conftest
9925 cd conftest
9926 mkdir out
9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9928
9929 lt_compiler_flag="-o out/conftest2.$ac_objext"
9930 # Insert the option either (1) after the last *FLAGS variable, or
9931 # (2) before a word containing "conftest.", or (3) at the end.
9932 # Note that $ac_compile itself does not contain backslashes and begins
9933 # with a dollar sign (not a hyphen), so the echo should work correctly.
9934 lt_compile=`echo "$ac_compile" | $SED \
9935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937 -e 's:$: $lt_compiler_flag:'`
9938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9939 (eval "$lt_compile" 2>out/conftest.err)
9940 ac_status=$?
9941 cat out/conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9944 then
9945 # The compiler can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9950 lt_cv_prog_compiler_c_o=yes
9951 fi
9952 fi
9953 chmod u+w . 2>&5
9954 $RM conftest*
9955 # SGI C++ compiler will create directory out/ii_files/ for
9956 # template instantiation
9957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9958 $RM out/* && rmdir out
9959 cd ..
9960 $RM -r conftest
9961 $RM conftest*
9962
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9965 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9966
9967
9968
9969
9970
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9974 if ${lt_cv_prog_compiler_c_o+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 lt_cv_prog_compiler_c_o=no
9978 $RM -r conftest 2>/dev/null
9979 mkdir conftest
9980 cd conftest
9981 mkdir out
9982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9983
9984 lt_compiler_flag="-o out/conftest2.$ac_objext"
9985 # Insert the option either (1) after the last *FLAGS variable, or
9986 # (2) before a word containing "conftest.", or (3) at the end.
9987 # Note that $ac_compile itself does not contain backslashes and begins
9988 # with a dollar sign (not a hyphen), so the echo should work correctly.
9989 lt_compile=`echo "$ac_compile" | $SED \
9990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9992 -e 's:$: $lt_compiler_flag:'`
9993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9994 (eval "$lt_compile" 2>out/conftest.err)
9995 ac_status=$?
9996 cat out/conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9999 then
10000 # The compiler can only warn and ignore the option if not recognized
10001 # So say no if there are warnings
10002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10005 lt_cv_prog_compiler_c_o=yes
10006 fi
10007 fi
10008 chmod u+w . 2>&5
10009 $RM conftest*
10010 # SGI C++ compiler will create directory out/ii_files/ for
10011 # template instantiation
10012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10013 $RM out/* && rmdir out
10014 cd ..
10015 $RM -r conftest
10016 $RM conftest*
10017
10018 fi
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10021
10022
10023
10024
10025 hard_links=nottested
10026 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10027 # do not overwrite the value of need_locks provided by the user
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10029 $as_echo_n "checking if we can lock with hard links... " >&6; }
10030 hard_links=yes
10031 $RM conftest*
10032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10033 touch conftest.a
10034 ln conftest.a conftest.b 2>&5 || hard_links=no
10035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10037 $as_echo "$hard_links" >&6; }
10038 if test no = "$hard_links"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10040 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10041 need_locks=warn
10042 fi
10043 else
10044 need_locks=no
10045 fi
10046
10047
10048
10049
10050
10051
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10053 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10054
10055 runpath_var=
10056 allow_undefined_flag=
10057 always_export_symbols=no
10058 archive_cmds=
10059 archive_expsym_cmds=
10060 compiler_needs_object=no
10061 enable_shared_with_static_runtimes=no
10062 export_dynamic_flag_spec=
10063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10064 hardcode_automatic=no
10065 hardcode_direct=no
10066 hardcode_direct_absolute=no
10067 hardcode_libdir_flag_spec=
10068 hardcode_libdir_separator=
10069 hardcode_minus_L=no
10070 hardcode_shlibpath_var=unsupported
10071 inherit_rpath=no
10072 link_all_deplibs=unknown
10073 module_cmds=
10074 module_expsym_cmds=
10075 old_archive_from_new_cmds=
10076 old_archive_from_expsyms_cmds=
10077 thread_safe_flag_spec=
10078 whole_archive_flag_spec=
10079 # include_expsyms should be a list of space-separated symbols to be *always*
10080 # included in the symbol list
10081 include_expsyms=
10082 # exclude_expsyms can be an extended regexp of symbols to exclude
10083 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10084 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10085 # as well as any symbol that contains 'd'.
10086 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10087 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10088 # platforms (ab)use it in PIC code, but their linkers get confused if
10089 # the symbol is explicitly referenced. Since portable code cannot
10090 # rely on this symbol name, it's probably fine to never include it in
10091 # preloaded symbol tables.
10092 # Exclude shared library initialization/finalization symbols.
10093 extract_expsyms_cmds=
10094
10095 case $host_os in
10096 cygwin* | mingw* | pw32* | cegcc*)
10097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10098 # When not using gcc, we currently assume that we are using
10099 # Microsoft Visual C++.
10100 if test yes != "$GCC"; then
10101 with_gnu_ld=no
10102 fi
10103 ;;
10104 interix*)
10105 # we just hope/assume this is gcc and not c89 (= MSVC++)
10106 with_gnu_ld=yes
10107 ;;
10108 openbsd* | bitrig*)
10109 with_gnu_ld=no
10110 ;;
10111 esac
10112
10113 ld_shlibs=yes
10114
10115 # On some targets, GNU ld is compatible enough with the native linker
10116 # that we're better off using the native interface for both.
10117 lt_use_gnu_ld_interface=no
10118 if test yes = "$with_gnu_ld"; then
10119 case $host_os in
10120 aix*)
10121 # The AIX port of GNU ld has always aspired to compatibility
10122 # with the native linker. However, as the warning in the GNU ld
10123 # block says, versions before 2.19.5* couldn't really create working
10124 # shared libraries, regardless of the interface used.
10125 case `$LD -v 2>&1` in
10126 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10127 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10128 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10129 *)
10130 lt_use_gnu_ld_interface=yes
10131 ;;
10132 esac
10133 ;;
10134 *)
10135 lt_use_gnu_ld_interface=yes
10136 ;;
10137 esac
10138 fi
10139
10140 if test yes = "$lt_use_gnu_ld_interface"; then
10141 # If archive_cmds runs LD, not CC, wlarc should be empty
10142 wlarc='$wl'
10143
10144 # Set some defaults for GNU ld with shared library support. These
10145 # are reset later if shared libraries are not supported. Putting them
10146 # here allows them to be overridden if necessary.
10147 runpath_var=LD_RUN_PATH
10148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10149 export_dynamic_flag_spec='$wl--export-dynamic'
10150 # ancient GNU ld didn't support --whole-archive et. al.
10151 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10152 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10153 else
10154 whole_archive_flag_spec=
10155 fi
10156 supports_anon_versioning=no
10157 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10158 *GNU\ gold*) supports_anon_versioning=yes ;;
10159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10162 *\ 2.11.*) ;; # other 2.11 versions
10163 *) supports_anon_versioning=yes ;;
10164 esac
10165
10166 # See if GNU ld supports shared libraries.
10167 case $host_os in
10168 aix[3-9]*)
10169 # On AIX/PPC, the GNU linker is very broken
10170 if test ia64 != "$host_cpu"; then
10171 ld_shlibs=no
10172 cat <<_LT_EOF 1>&2
10173
10174 *** Warning: the GNU linker, at least up to release 2.19, is reported
10175 *** to be unable to reliably create shared libraries on AIX.
10176 *** Therefore, libtool is disabling shared libraries support. If you
10177 *** really care for shared libraries, you may want to install binutils
10178 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10179 *** You will then need to restart the configuration process.
10180
10181 _LT_EOF
10182 fi
10183 ;;
10184
10185 amigaos*)
10186 case $host_cpu in
10187 powerpc)
10188 # see comment about AmigaOS4 .so support
10189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10190 archive_expsym_cmds=''
10191 ;;
10192 m68k)
10193 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)'
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_minus_L=yes
10196 ;;
10197 esac
10198 ;;
10199
10200 beos*)
10201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202 allow_undefined_flag=unsupported
10203 # Joseph Beckenbach <[email protected]> says some releases of gcc
10204 # support --undefined. This deserves some investigation. FIXME
10205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10206 else
10207 ld_shlibs=no
10208 fi
10209 ;;
10210
10211 cygwin* | mingw* | pw32* | cegcc*)
10212 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10213 # as there is no search path for DLLs.
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 export_dynamic_flag_spec='$wl--export-all-symbols'
10216 allow_undefined_flag=unsupported
10217 always_export_symbols=no
10218 enable_shared_with_static_runtimes=yes
10219 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'
10220 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10221
10222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10224 # If the export-symbols file already is a .def file, use it as
10225 # is; otherwise, prepend EXPORTS...
10226 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10227 cp $export_symbols $output_objdir/$soname.def;
10228 else
10229 echo EXPORTS > $output_objdir/$soname.def;
10230 cat $export_symbols >> $output_objdir/$soname.def;
10231 fi~
10232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10233 else
10234 ld_shlibs=no
10235 fi
10236 ;;
10237
10238 haiku*)
10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10240 link_all_deplibs=yes
10241 ;;
10242
10243 os2*)
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_minus_L=yes
10246 allow_undefined_flag=unsupported
10247 shrext_cmds=.dll
10248 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10251 $ECHO EXPORTS >> $output_objdir/$libname.def~
10252 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10254 emximp -o $lib $output_objdir/$libname.def'
10255 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10258 $ECHO EXPORTS >> $output_objdir/$libname.def~
10259 prefix_cmds="$SED"~
10260 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10261 prefix_cmds="$prefix_cmds -e 1d";
10262 fi~
10263 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10264 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10265 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10266 emximp -o $lib $output_objdir/$libname.def'
10267 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10268 enable_shared_with_static_runtimes=yes
10269 ;;
10270
10271 interix[3-9]*)
10272 hardcode_direct=no
10273 hardcode_shlibpath_var=no
10274 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10275 export_dynamic_flag_spec='$wl-E'
10276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10277 # Instead, shared libraries are loaded at an image base (0x10000000 by
10278 # default) and relocated if they conflict, which is a slow very memory
10279 # consuming and fragmenting process. To avoid this, we pick a random,
10280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10281 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10283 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'
10284 ;;
10285
10286 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10287 tmp_diet=no
10288 if test linux-dietlibc = "$host_os"; then
10289 case $cc_basename in
10290 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10291 esac
10292 fi
10293 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10294 && test no = "$tmp_diet"
10295 then
10296 tmp_addflag=' $pic_flag'
10297 tmp_sharedflag='-shared'
10298 case $cc_basename,$host_cpu in
10299 pgcc*) # Portland Group C compiler
10300 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'
10301 tmp_addflag=' $pic_flag'
10302 ;;
10303 pgf77* | pgf90* | pgf95* | pgfortran*)
10304 # Portland Group f77 and f90 compilers
10305 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'
10306 tmp_addflag=' $pic_flag -Mnomain' ;;
10307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10308 tmp_addflag=' -i_dynamic' ;;
10309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10310 tmp_addflag=' -i_dynamic -nofor_main' ;;
10311 ifc* | ifort*) # Intel Fortran compiler
10312 tmp_addflag=' -nofor_main' ;;
10313 lf95*) # Lahey Fortran 8.1
10314 whole_archive_flag_spec=
10315 tmp_sharedflag='--shared' ;;
10316 nagfor*) # NAGFOR 5.3
10317 tmp_sharedflag='-Wl,-shared' ;;
10318 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10319 tmp_sharedflag='-qmkshrobj'
10320 tmp_addflag= ;;
10321 nvcc*) # Cuda Compiler Driver 2.2
10322 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'
10323 compiler_needs_object=yes
10324 ;;
10325 esac
10326 case `$CC -V 2>&1 | sed 5q` in
10327 *Sun\ C*) # Sun C 5.9
10328 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'
10329 compiler_needs_object=yes
10330 tmp_sharedflag='-G' ;;
10331 *Sun\ F*) # Sun Fortran 8.3
10332 tmp_sharedflag='-G' ;;
10333 esac
10334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10335
10336 if test yes = "$supports_anon_versioning"; then
10337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10339 echo "local: *; };" >> $output_objdir/$libname.ver~
10340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10341 fi
10342
10343 case $cc_basename in
10344 tcc*)
10345 export_dynamic_flag_spec='-rdynamic'
10346 ;;
10347 xlf* | bgf* | bgxlf* | mpixlf*)
10348 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10349 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10351 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10352 if test yes = "$supports_anon_versioning"; then
10353 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10355 echo "local: *; };" >> $output_objdir/$libname.ver~
10356 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10357 fi
10358 ;;
10359 esac
10360 else
10361 ld_shlibs=no
10362 fi
10363 ;;
10364
10365 netbsd*)
10366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10367 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10368 wlarc=
10369 else
10370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10371 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10372 fi
10373 ;;
10374
10375 solaris*)
10376 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10377 ld_shlibs=no
10378 cat <<_LT_EOF 1>&2
10379
10380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10381 *** create shared libraries on Solaris systems. Therefore, libtool
10382 *** is disabling shared libraries support. We urge you to upgrade GNU
10383 *** binutils to release 2.9.1 or newer. Another option is to modify
10384 *** your PATH or compiler configuration so that the native linker is
10385 *** used, and then restart.
10386
10387 _LT_EOF
10388 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10390 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10391 else
10392 ld_shlibs=no
10393 fi
10394 ;;
10395
10396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10397 case `$LD -v 2>&1` in
10398 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10399 ld_shlibs=no
10400 cat <<_LT_EOF 1>&2
10401
10402 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10403 *** reliably create shared libraries on SCO systems. Therefore, libtool
10404 *** is disabling shared libraries support. We urge you to upgrade GNU
10405 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10406 *** your PATH or compiler configuration so that the native linker is
10407 *** used, and then restart.
10408
10409 _LT_EOF
10410 ;;
10411 *)
10412 # For security reasons, it is highly recommended that you always
10413 # use absolute paths for naming shared libraries, and exclude the
10414 # DT_RUNPATH tag from executables and libraries. But doing so
10415 # requires that you compile everything twice, which is a pain.
10416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10420 else
10421 ld_shlibs=no
10422 fi
10423 ;;
10424 esac
10425 ;;
10426
10427 sunos4*)
10428 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10429 wlarc=
10430 hardcode_direct=yes
10431 hardcode_shlibpath_var=no
10432 ;;
10433
10434 *)
10435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10437 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10438 else
10439 ld_shlibs=no
10440 fi
10441 ;;
10442 esac
10443
10444 if test no = "$ld_shlibs"; then
10445 runpath_var=
10446 hardcode_libdir_flag_spec=
10447 export_dynamic_flag_spec=
10448 whole_archive_flag_spec=
10449 fi
10450 else
10451 # PORTME fill in a description of your system's linker (not GNU ld)
10452 case $host_os in
10453 aix3*)
10454 allow_undefined_flag=unsupported
10455 always_export_symbols=yes
10456 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'
10457 # Note: this linker hardcodes the directories in LIBPATH if there
10458 # are no directories specified by -L.
10459 hardcode_minus_L=yes
10460 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10461 # Neither direct hardcoding nor static linking is supported with a
10462 # broken collect2.
10463 hardcode_direct=unsupported
10464 fi
10465 ;;
10466
10467 aix[4-9]*)
10468 if test ia64 = "$host_cpu"; then
10469 # On IA64, the linker does run time linking by default, so we don't
10470 # have to do anything special.
10471 aix_use_runtimelinking=no
10472 exp_sym_flag='-Bexport'
10473 no_entry_flag=
10474 else
10475 # If we're using GNU nm, then we don't want the "-C" option.
10476 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10477 # Without the "-l" option, or with the "-B" option, AIX nm treats
10478 # weak defined symbols like other global defined symbols, whereas
10479 # GNU nm marks them as "W".
10480 # While the 'weak' keyword is ignored in the Export File, we need
10481 # it in the Import File for the 'aix-soname' feature, so we have
10482 # to replace the "-B" option with "-P" for AIX nm.
10483 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10484 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10485 else
10486 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10487 fi
10488 aix_use_runtimelinking=no
10489
10490 # Test if we are trying to use run time linking or normal
10491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10492 # have runtime linking enabled, and use it for executables.
10493 # For shared libraries, we enable/disable runtime linking
10494 # depending on the kind of the shared library created -
10495 # when "with_aix_soname,aix_use_runtimelinking" is:
10496 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10497 # "aix,yes" lib.so shared, rtl:yes, for executables
10498 # lib.a static archive
10499 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10500 # lib.a(lib.so.V) shared, rtl:no, for executables
10501 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10502 # lib.a(lib.so.V) shared, rtl:no
10503 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10504 # lib.a static archive
10505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10506 for ld_flag in $LDFLAGS; do
10507 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10508 aix_use_runtimelinking=yes
10509 break
10510 fi
10511 done
10512 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10513 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10514 # so we don't have lib.a shared libs to link our executables.
10515 # We have to force runtime linking in this case.
10516 aix_use_runtimelinking=yes
10517 LDFLAGS="$LDFLAGS -Wl,-brtl"
10518 fi
10519 ;;
10520 esac
10521
10522 exp_sym_flag='-bexport'
10523 no_entry_flag='-bnoentry'
10524 fi
10525
10526 # When large executables or shared objects are built, AIX ld can
10527 # have problems creating the table of contents. If linking a library
10528 # or program results in "error TOC overflow" add -mminimal-toc to
10529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10531
10532 archive_cmds=''
10533 hardcode_direct=yes
10534 hardcode_direct_absolute=yes
10535 hardcode_libdir_separator=':'
10536 link_all_deplibs=yes
10537 file_list_spec='$wl-f,'
10538 case $with_aix_soname,$aix_use_runtimelinking in
10539 aix,*) ;; # traditional, no import file
10540 svr4,* | *,yes) # use import file
10541 # The Import File defines what to hardcode.
10542 hardcode_direct=no
10543 hardcode_direct_absolute=no
10544 ;;
10545 esac
10546
10547 if test yes = "$GCC"; then
10548 case $host_os in aix4.[012]|aix4.[012].*)
10549 # We only want to do this on AIX 4.2 and lower, the check
10550 # below for broken collect2 doesn't work under 4.3+
10551 collect2name=`$CC -print-prog-name=collect2`
10552 if test -f "$collect2name" &&
10553 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10554 then
10555 # We have reworked collect2
10556 :
10557 else
10558 # We have old collect2
10559 hardcode_direct=unsupported
10560 # It fails to find uninstalled libraries when the uninstalled
10561 # path is not listed in the libpath. Setting hardcode_minus_L
10562 # to unsupported forces relinking
10563 hardcode_minus_L=yes
10564 hardcode_libdir_flag_spec='-L$libdir'
10565 hardcode_libdir_separator=
10566 fi
10567 ;;
10568 esac
10569 shared_flag='-shared'
10570 if test yes = "$aix_use_runtimelinking"; then
10571 shared_flag="$shared_flag "'$wl-G'
10572 fi
10573 # Need to ensure runtime linking is disabled for the traditional
10574 # shared library, or the linker may eventually find shared libraries
10575 # /with/ Import File - we do not want to mix them.
10576 shared_flag_aix='-shared'
10577 shared_flag_svr4='-shared $wl-G'
10578 else
10579 # not using gcc
10580 if test ia64 = "$host_cpu"; then
10581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10582 # chokes on -Wl,-G. The following line is correct:
10583 shared_flag='-G'
10584 else
10585 if test yes = "$aix_use_runtimelinking"; then
10586 shared_flag='$wl-G'
10587 else
10588 shared_flag='$wl-bM:SRE'
10589 fi
10590 shared_flag_aix='$wl-bM:SRE'
10591 shared_flag_svr4='$wl-G'
10592 fi
10593 fi
10594
10595 export_dynamic_flag_spec='$wl-bexpall'
10596 # It seems that -bexpall does not export symbols beginning with
10597 # underscore (_), so it is better to generate a list of symbols to export.
10598 always_export_symbols=yes
10599 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10600 # Warning - without using the other runtime loading flags (-brtl),
10601 # -berok will link without error, but may produce a broken library.
10602 allow_undefined_flag='-berok'
10603 # Determine the default libpath from the value encoded in an
10604 # empty executable.
10605 if test set = "${lt_cv_aix_libpath+set}"; then
10606 aix_libpath=$lt_cv_aix_libpath
10607 else
10608 if ${lt_cv_aix_libpath_+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613
10614 int
10615 main ()
10616 {
10617
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623
10624 lt_aix_libpath_sed='
10625 /Import File Strings/,/^$/ {
10626 /^0/ {
10627 s/^0 *\([^ ]*\) *$/\1/
10628 p
10629 }
10630 }'
10631 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10632 # Check for a 64-bit object if we didn't find anything.
10633 if test -z "$lt_cv_aix_libpath_"; then
10634 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10635 fi
10636 fi
10637 rm -f core conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 if test -z "$lt_cv_aix_libpath_"; then
10640 lt_cv_aix_libpath_=/usr/lib:/lib
10641 fi
10642
10643 fi
10644
10645 aix_libpath=$lt_cv_aix_libpath_
10646 fi
10647
10648 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10649 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10650 else
10651 if test ia64 = "$host_cpu"; then
10652 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10653 allow_undefined_flag="-z nodefs"
10654 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"
10655 else
10656 # Determine the default libpath from the value encoded in an
10657 # empty executable.
10658 if test set = "${lt_cv_aix_libpath+set}"; then
10659 aix_libpath=$lt_cv_aix_libpath
10660 else
10661 if ${lt_cv_aix_libpath_+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666
10667 int
10668 main ()
10669 {
10670
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 if ac_fn_c_try_link "$LINENO"; then :
10676
10677 lt_aix_libpath_sed='
10678 /Import File Strings/,/^$/ {
10679 /^0/ {
10680 s/^0 *\([^ ]*\) *$/\1/
10681 p
10682 }
10683 }'
10684 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10685 # Check for a 64-bit object if we didn't find anything.
10686 if test -z "$lt_cv_aix_libpath_"; then
10687 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10688 fi
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 if test -z "$lt_cv_aix_libpath_"; then
10693 lt_cv_aix_libpath_=/usr/lib:/lib
10694 fi
10695
10696 fi
10697
10698 aix_libpath=$lt_cv_aix_libpath_
10699 fi
10700
10701 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10702 # Warning - without using the other run time loading flags,
10703 # -berok will link without error, but may produce a broken library.
10704 no_undefined_flag=' $wl-bernotok'
10705 allow_undefined_flag=' $wl-berok'
10706 if test yes = "$with_gnu_ld"; then
10707 # We only use this code for GNU lds that support --whole-archive.
10708 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10709 else
10710 # Exported symbols can be pulled into shared objects from archives
10711 whole_archive_flag_spec='$convenience'
10712 fi
10713 archive_cmds_need_lc=yes
10714 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10715 # -brtl affects multiple linker settings, -berok does not and is overridden later
10716 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10717 if test svr4 != "$with_aix_soname"; then
10718 # This is similar to how AIX traditionally builds its shared libraries.
10719 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10720 fi
10721 if test aix != "$with_aix_soname"; then
10722 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10723 else
10724 # used by -dlpreopen to get the symbols
10725 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10726 fi
10727 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10728 fi
10729 fi
10730 ;;
10731
10732 amigaos*)
10733 case $host_cpu in
10734 powerpc)
10735 # see comment about AmigaOS4 .so support
10736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10737 archive_expsym_cmds=''
10738 ;;
10739 m68k)
10740 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)'
10741 hardcode_libdir_flag_spec='-L$libdir'
10742 hardcode_minus_L=yes
10743 ;;
10744 esac
10745 ;;
10746
10747 bsdi[45]*)
10748 export_dynamic_flag_spec=-rdynamic
10749 ;;
10750
10751 cygwin* | mingw* | pw32* | cegcc*)
10752 # When not using gcc, we currently assume that we are using
10753 # Microsoft Visual C++.
10754 # hardcode_libdir_flag_spec is actually meaningless, as there is
10755 # no search path for DLLs.
10756 case $cc_basename in
10757 cl*)
10758 # Native MSVC
10759 hardcode_libdir_flag_spec=' '
10760 allow_undefined_flag=unsupported
10761 always_export_symbols=yes
10762 file_list_spec='@'
10763 # Tell ltmain to make .lib files, not .a files.
10764 libext=lib
10765 # Tell ltmain to make .dll files, not .so files.
10766 shrext_cmds=.dll
10767 # FIXME: Setting linknames here is a bad hack.
10768 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10769 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10770 cp "$export_symbols" "$output_objdir/$soname.def";
10771 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10772 else
10773 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10774 fi~
10775 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10776 linknames='
10777 # The linker will not automatically build a static lib if we build a DLL.
10778 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10779 enable_shared_with_static_runtimes=yes
10780 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10782 # Don't use ranlib
10783 old_postinstall_cmds='chmod 644 $oldlib'
10784 postlink_cmds='lt_outputfile="@OUTPUT@"~
10785 lt_tool_outputfile="@TOOL_OUTPUT@"~
10786 case $lt_outputfile in
10787 *.exe|*.EXE) ;;
10788 *)
10789 lt_outputfile=$lt_outputfile.exe
10790 lt_tool_outputfile=$lt_tool_outputfile.exe
10791 ;;
10792 esac~
10793 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10794 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10795 $RM "$lt_outputfile.manifest";
10796 fi'
10797 ;;
10798 *)
10799 # Assume MSVC wrapper
10800 hardcode_libdir_flag_spec=' '
10801 allow_undefined_flag=unsupported
10802 # Tell ltmain to make .lib files, not .a files.
10803 libext=lib
10804 # Tell ltmain to make .dll files, not .so files.
10805 shrext_cmds=.dll
10806 # FIXME: Setting linknames here is a bad hack.
10807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10808 # The linker will automatically build a .lib file if we build a DLL.
10809 old_archive_from_new_cmds='true'
10810 # FIXME: Should let the user specify the lib program.
10811 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10812 enable_shared_with_static_runtimes=yes
10813 ;;
10814 esac
10815 ;;
10816
10817 darwin* | rhapsody*)
10818
10819
10820 archive_cmds_need_lc=no
10821 hardcode_direct=no
10822 hardcode_automatic=yes
10823 hardcode_shlibpath_var=unsupported
10824 if test yes = "$lt_cv_ld_force_load"; then
10825 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\"`'
10826
10827 else
10828 whole_archive_flag_spec=''
10829 fi
10830 link_all_deplibs=yes
10831 allow_undefined_flag=$_lt_dar_allow_undefined
10832 case $cc_basename in
10833 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10834 *) _lt_dar_can_shared=$GCC ;;
10835 esac
10836 if test yes = "$_lt_dar_can_shared"; then
10837 output_verbose_link_cmd=func_echo_all
10838 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10839 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10840 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"
10841 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"
10842
10843 else
10844 ld_shlibs=no
10845 fi
10846
10847 ;;
10848
10849 dgux*)
10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10851 hardcode_libdir_flag_spec='-L$libdir'
10852 hardcode_shlibpath_var=no
10853 ;;
10854
10855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10856 # support. Future versions do this automatically, but an explicit c++rt0.o
10857 # does not break anything, and helps significantly (at the cost of a little
10858 # extra space).
10859 freebsd2.2*)
10860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10861 hardcode_libdir_flag_spec='-R$libdir'
10862 hardcode_direct=yes
10863 hardcode_shlibpath_var=no
10864 ;;
10865
10866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10867 freebsd2.*)
10868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10869 hardcode_direct=yes
10870 hardcode_minus_L=yes
10871 hardcode_shlibpath_var=no
10872 ;;
10873
10874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10875 freebsd* | dragonfly*)
10876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10877 hardcode_libdir_flag_spec='-R$libdir'
10878 hardcode_direct=yes
10879 hardcode_shlibpath_var=no
10880 ;;
10881
10882 hpux9*)
10883 if test yes = "$GCC"; then
10884 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10885 else
10886 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10887 fi
10888 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10889 hardcode_libdir_separator=:
10890 hardcode_direct=yes
10891
10892 # hardcode_minus_L: Not really in the search PATH,
10893 # but as the default location of the library.
10894 hardcode_minus_L=yes
10895 export_dynamic_flag_spec='$wl-E'
10896 ;;
10897
10898 hpux10*)
10899 if test yes,no = "$GCC,$with_gnu_ld"; then
10900 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10901 else
10902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10903 fi
10904 if test no = "$with_gnu_ld"; then
10905 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10906 hardcode_libdir_separator=:
10907 hardcode_direct=yes
10908 hardcode_direct_absolute=yes
10909 export_dynamic_flag_spec='$wl-E'
10910 # hardcode_minus_L: Not really in the search PATH,
10911 # but as the default location of the library.
10912 hardcode_minus_L=yes
10913 fi
10914 ;;
10915
10916 hpux11*)
10917 if test yes,no = "$GCC,$with_gnu_ld"; then
10918 case $host_cpu in
10919 hppa*64*)
10920 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 ;;
10922 ia64*)
10923 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10924 ;;
10925 *)
10926 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10927 ;;
10928 esac
10929 else
10930 case $host_cpu in
10931 hppa*64*)
10932 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10933 ;;
10934 ia64*)
10935 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10936 ;;
10937 *)
10938
10939 # Older versions of the 11.00 compiler do not understand -b yet
10940 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10942 $as_echo_n "checking if $CC understands -b... " >&6; }
10943 if ${lt_cv_prog_compiler__b+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 lt_cv_prog_compiler__b=no
10947 save_LDFLAGS=$LDFLAGS
10948 LDFLAGS="$LDFLAGS -b"
10949 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10951 # The linker can only warn and ignore the option if not recognized
10952 # So say no if there are warnings
10953 if test -s conftest.err; then
10954 # Append any errors to the config.log.
10955 cat conftest.err 1>&5
10956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10958 if diff conftest.exp conftest.er2 >/dev/null; then
10959 lt_cv_prog_compiler__b=yes
10960 fi
10961 else
10962 lt_cv_prog_compiler__b=yes
10963 fi
10964 fi
10965 $RM -r conftest*
10966 LDFLAGS=$save_LDFLAGS
10967
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10970 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10971
10972 if test yes = "$lt_cv_prog_compiler__b"; then
10973 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10974 else
10975 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10976 fi
10977
10978 ;;
10979 esac
10980 fi
10981 if test no = "$with_gnu_ld"; then
10982 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10983 hardcode_libdir_separator=:
10984
10985 case $host_cpu in
10986 hppa*64*|ia64*)
10987 hardcode_direct=no
10988 hardcode_shlibpath_var=no
10989 ;;
10990 *)
10991 hardcode_direct=yes
10992 hardcode_direct_absolute=yes
10993 export_dynamic_flag_spec='$wl-E'
10994
10995 # hardcode_minus_L: Not really in the search PATH,
10996 # but as the default location of the library.
10997 hardcode_minus_L=yes
10998 ;;
10999 esac
11000 fi
11001 ;;
11002
11003 irix5* | irix6* | nonstopux*)
11004 if test yes = "$GCC"; then
11005 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'
11006 # Try to use the -exported_symbol ld option, if it does not
11007 # work, assume that -exports_file does not work either and
11008 # implicitly export all symbols.
11009 # This should be the same for all languages, so no per-tag cache variable.
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11011 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11012 if ${lt_cv_irix_exported_symbol+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 save_LDFLAGS=$LDFLAGS
11016 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019 int foo (void) { return 0; }
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 lt_cv_irix_exported_symbol=yes
11023 else
11024 lt_cv_irix_exported_symbol=no
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LDFLAGS=$save_LDFLAGS
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11031 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11032 if test yes = "$lt_cv_irix_exported_symbol"; then
11033 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'
11034 fi
11035 else
11036 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'
11037 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'
11038 fi
11039 archive_cmds_need_lc='no'
11040 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11041 hardcode_libdir_separator=:
11042 inherit_rpath=yes
11043 link_all_deplibs=yes
11044 ;;
11045
11046 linux*)
11047 case $cc_basename in
11048 tcc*)
11049 # Fabrice Bellard et al's Tiny C Compiler
11050 ld_shlibs=yes
11051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11052 ;;
11053 esac
11054 ;;
11055
11056 netbsd*)
11057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11059 else
11060 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11061 fi
11062 hardcode_libdir_flag_spec='-R$libdir'
11063 hardcode_direct=yes
11064 hardcode_shlibpath_var=no
11065 ;;
11066
11067 newsos6)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_direct=yes
11070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11071 hardcode_libdir_separator=:
11072 hardcode_shlibpath_var=no
11073 ;;
11074
11075 *nto* | *qnx*)
11076 ;;
11077
11078 openbsd* | bitrig*)
11079 if test -f /usr/libexec/ld.so; then
11080 hardcode_direct=yes
11081 hardcode_shlibpath_var=no
11082 hardcode_direct_absolute=yes
11083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11085 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11086 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11087 export_dynamic_flag_spec='$wl-E'
11088 else
11089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11090 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11091 fi
11092 else
11093 ld_shlibs=no
11094 fi
11095 ;;
11096
11097 os2*)
11098 hardcode_libdir_flag_spec='-L$libdir'
11099 hardcode_minus_L=yes
11100 allow_undefined_flag=unsupported
11101 shrext_cmds=.dll
11102 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11105 $ECHO EXPORTS >> $output_objdir/$libname.def~
11106 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11107 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11108 emximp -o $lib $output_objdir/$libname.def'
11109 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11110 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11111 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11112 $ECHO EXPORTS >> $output_objdir/$libname.def~
11113 prefix_cmds="$SED"~
11114 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11115 prefix_cmds="$prefix_cmds -e 1d";
11116 fi~
11117 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11118 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11120 emximp -o $lib $output_objdir/$libname.def'
11121 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11122 enable_shared_with_static_runtimes=yes
11123 ;;
11124
11125 osf3*)
11126 if test yes = "$GCC"; then
11127 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11128 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'
11129 else
11130 allow_undefined_flag=' -expect_unresolved \*'
11131 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'
11132 fi
11133 archive_cmds_need_lc='no'
11134 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11135 hardcode_libdir_separator=:
11136 ;;
11137
11138 osf4* | osf5*) # as osf3* with the addition of -msym flag
11139 if test yes = "$GCC"; then
11140 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11141 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'
11142 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11143 else
11144 allow_undefined_flag=' -expect_unresolved \*'
11145 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'
11146 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~
11147 $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'
11148
11149 # Both c and cxx compiler support -rpath directly
11150 hardcode_libdir_flag_spec='-rpath $libdir'
11151 fi
11152 archive_cmds_need_lc='no'
11153 hardcode_libdir_separator=:
11154 ;;
11155
11156 solaris*)
11157 no_undefined_flag=' -z defs'
11158 if test yes = "$GCC"; then
11159 wlarc='$wl'
11160 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11162 $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'
11163 else
11164 case `$CC -V 2>&1` in
11165 *"Compilers 5.0"*)
11166 wlarc=''
11167 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11169 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11170 ;;
11171 *)
11172 wlarc='$wl'
11173 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11175 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11176 ;;
11177 esac
11178 fi
11179 hardcode_libdir_flag_spec='-R$libdir'
11180 hardcode_shlibpath_var=no
11181 case $host_os in
11182 solaris2.[0-5] | solaris2.[0-5].*) ;;
11183 *)
11184 # The compiler driver will combine and reorder linker options,
11185 # but understands '-z linker_flag'. GCC discards it without '$wl',
11186 # but is careful enough not to reorder.
11187 # Supported since Solaris 2.6 (maybe 2.5.1?)
11188 if test yes = "$GCC"; then
11189 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11190 else
11191 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11192 fi
11193 ;;
11194 esac
11195 link_all_deplibs=yes
11196 ;;
11197
11198 sunos4*)
11199 if test sequent = "$host_vendor"; then
11200 # Use $CC to link under sequent, because it throws in some extra .o
11201 # files that make .init and .fini sections work.
11202 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11203 else
11204 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11205 fi
11206 hardcode_libdir_flag_spec='-L$libdir'
11207 hardcode_direct=yes
11208 hardcode_minus_L=yes
11209 hardcode_shlibpath_var=no
11210 ;;
11211
11212 sysv4)
11213 case $host_vendor in
11214 sni)
11215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11216 hardcode_direct=yes # is this really true???
11217 ;;
11218 siemens)
11219 ## LD is ld it makes a PLAMLIB
11220 ## CC just makes a GrossModule.
11221 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11222 reload_cmds='$CC -r -o $output$reload_objs'
11223 hardcode_direct=no
11224 ;;
11225 motorola)
11226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11228 ;;
11229 esac
11230 runpath_var='LD_RUN_PATH'
11231 hardcode_shlibpath_var=no
11232 ;;
11233
11234 sysv4.3*)
11235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11236 hardcode_shlibpath_var=no
11237 export_dynamic_flag_spec='-Bexport'
11238 ;;
11239
11240 sysv4*MP*)
11241 if test -d /usr/nec; then
11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11243 hardcode_shlibpath_var=no
11244 runpath_var=LD_RUN_PATH
11245 hardcode_runpath_var=yes
11246 ld_shlibs=yes
11247 fi
11248 ;;
11249
11250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11251 no_undefined_flag='$wl-z,text'
11252 archive_cmds_need_lc=no
11253 hardcode_shlibpath_var=no
11254 runpath_var='LD_RUN_PATH'
11255
11256 if test yes = "$GCC"; then
11257 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11258 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11259 else
11260 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11261 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11262 fi
11263 ;;
11264
11265 sysv5* | sco3.2v5* | sco5v6*)
11266 # Note: We CANNOT use -z defs as we might desire, because we do not
11267 # link with -lc, and that would cause any symbols used from libc to
11268 # always be unresolved, which means just about no library would
11269 # ever link correctly. If we're not using GNU ld we use -z text
11270 # though, which does catch some bad symbols but isn't as heavy-handed
11271 # as -z defs.
11272 no_undefined_flag='$wl-z,text'
11273 allow_undefined_flag='$wl-z,nodefs'
11274 archive_cmds_need_lc=no
11275 hardcode_shlibpath_var=no
11276 hardcode_libdir_flag_spec='$wl-R,$libdir'
11277 hardcode_libdir_separator=':'
11278 link_all_deplibs=yes
11279 export_dynamic_flag_spec='$wl-Bexport'
11280 runpath_var='LD_RUN_PATH'
11281
11282 if test yes = "$GCC"; then
11283 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11284 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11285 else
11286 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11287 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11288 fi
11289 ;;
11290
11291 uts4*)
11292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11293 hardcode_libdir_flag_spec='-L$libdir'
11294 hardcode_shlibpath_var=no
11295 ;;
11296
11297 *)
11298 ld_shlibs=no
11299 ;;
11300 esac
11301
11302 if test sni = "$host_vendor"; then
11303 case $host in
11304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11305 export_dynamic_flag_spec='$wl-Blargedynsym'
11306 ;;
11307 esac
11308 fi
11309 fi
11310
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11312 $as_echo "$ld_shlibs" >&6; }
11313 test no = "$ld_shlibs" && can_build_shared=no
11314
11315 with_gnu_ld=$with_gnu_ld
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331 #
11332 # Do we need to explicitly link libc?
11333 #
11334 case "x$archive_cmds_need_lc" in
11335 x|xyes)
11336 # Assume -lc should be added
11337 archive_cmds_need_lc=yes
11338
11339 if test yes,yes = "$GCC,$enable_shared"; then
11340 case $archive_cmds in
11341 *'~'*)
11342 # FIXME: we may have to deal with multi-command sequences.
11343 ;;
11344 '$CC '*)
11345 # Test whether the compiler implicitly links with -lc since on some
11346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11347 # to ld, don't add -lc before -lgcc.
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11349 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11350 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 $RM conftest*
11354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11355
11356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11357 (eval $ac_compile) 2>&5
11358 ac_status=$?
11359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11360 test $ac_status = 0; } 2>conftest.err; then
11361 soname=conftest
11362 lib=conftest
11363 libobjs=conftest.$ac_objext
11364 deplibs=
11365 wl=$lt_prog_compiler_wl
11366 pic_flag=$lt_prog_compiler_pic
11367 compiler_flags=-v
11368 linker_flags=-v
11369 verstring=
11370 output_objdir=.
11371 libname=conftest
11372 lt_save_allow_undefined_flag=$allow_undefined_flag
11373 allow_undefined_flag=
11374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11375 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11376 ac_status=$?
11377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11378 test $ac_status = 0; }
11379 then
11380 lt_cv_archive_cmds_need_lc=no
11381 else
11382 lt_cv_archive_cmds_need_lc=yes
11383 fi
11384 allow_undefined_flag=$lt_save_allow_undefined_flag
11385 else
11386 cat conftest.err 1>&5
11387 fi
11388 $RM conftest*
11389
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11392 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11393 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11394 ;;
11395 esac
11396 fi
11397 ;;
11398 esac
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11552 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11553
11554 if test yes = "$GCC"; then
11555 case $host_os in
11556 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11557 *) lt_awk_arg='/^libraries:/' ;;
11558 esac
11559 case $host_os in
11560 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11561 *) lt_sed_strip_eq='s|=/|/|g' ;;
11562 esac
11563 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11564 case $lt_search_path_spec in
11565 *\;*)
11566 # if the path contains ";" then we assume it to be the separator
11567 # otherwise default to the standard path separator (i.e. ":") - it is
11568 # assumed that no part of a normal pathname contains ";" but that should
11569 # okay in the real world where ";" in dirpaths is itself problematic.
11570 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11571 ;;
11572 *)
11573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11574 ;;
11575 esac
11576 # Ok, now we have the path, separated by spaces, we can step through it
11577 # and add multilib dir if necessary...
11578 lt_tmp_lt_search_path_spec=
11579 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11580 # ...but if some path component already ends with the multilib dir we assume
11581 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11582 case "$lt_multi_os_dir; $lt_search_path_spec " in
11583 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11584 lt_multi_os_dir=
11585 ;;
11586 esac
11587 for lt_sys_path in $lt_search_path_spec; do
11588 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11589 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11590 elif test -n "$lt_multi_os_dir"; then
11591 test -d "$lt_sys_path" && \
11592 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11593 fi
11594 done
11595 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11596 BEGIN {RS = " "; FS = "/|\n";} {
11597 lt_foo = "";
11598 lt_count = 0;
11599 for (lt_i = NF; lt_i > 0; lt_i--) {
11600 if ($lt_i != "" && $lt_i != ".") {
11601 if ($lt_i == "..") {
11602 lt_count++;
11603 } else {
11604 if (lt_count == 0) {
11605 lt_foo = "/" $lt_i lt_foo;
11606 } else {
11607 lt_count--;
11608 }
11609 }
11610 }
11611 }
11612 if (lt_foo != "") { lt_freq[lt_foo]++; }
11613 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11614 }'`
11615 # AWK program above erroneously prepends '/' to C:/dos/paths
11616 # for these hosts.
11617 case $host_os in
11618 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11619 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11620 esac
11621 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11622 else
11623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11624 fi
11625 library_names_spec=
11626 libname_spec='lib$name'
11627 soname_spec=
11628 shrext_cmds=.so
11629 postinstall_cmds=
11630 postuninstall_cmds=
11631 finish_cmds=
11632 finish_eval=
11633 shlibpath_var=
11634 shlibpath_overrides_runpath=unknown
11635 version_type=none
11636 dynamic_linker="$host_os ld.so"
11637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11638 need_lib_prefix=unknown
11639 hardcode_into_libs=no
11640
11641 # when you set need_version to no, make sure it does not cause -set_version
11642 # flags to be left without arguments
11643 need_version=unknown
11644
11645
11646
11647 case $host_os in
11648 aix3*)
11649 version_type=linux # correct to gnu/linux during the next big refactor
11650 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11651 shlibpath_var=LIBPATH
11652
11653 # AIX 3 has no versioning support, so we append a major version to the name.
11654 soname_spec='$libname$release$shared_ext$major'
11655 ;;
11656
11657 aix[4-9]*)
11658 version_type=linux # correct to gnu/linux during the next big refactor
11659 need_lib_prefix=no
11660 need_version=no
11661 hardcode_into_libs=yes
11662 if test ia64 = "$host_cpu"; then
11663 # AIX 5 supports IA64
11664 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 else
11667 # With GCC up to 2.95.x, collect2 would create an import file
11668 # for dependence libraries. The import file would start with
11669 # the line '#! .'. This would cause the generated library to
11670 # depend on '.', always an invalid library. This was fixed in
11671 # development snapshots of GCC prior to 3.0.
11672 case $host_os in
11673 aix4 | aix4.[01] | aix4.[01].*)
11674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11675 echo ' yes '
11676 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11677 :
11678 else
11679 can_build_shared=no
11680 fi
11681 ;;
11682 esac
11683 # Using Import Files as archive members, it is possible to support
11684 # filename-based versioning of shared library archives on AIX. While
11685 # this would work for both with and without runtime linking, it will
11686 # prevent static linking of such archives. So we do filename-based
11687 # shared library versioning with .so extension only, which is used
11688 # when both runtime linking and shared linking is enabled.
11689 # Unfortunately, runtime linking may impact performance, so we do
11690 # not want this to be the default eventually. Also, we use the
11691 # versioned .so libs for executables only if there is the -brtl
11692 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11693 # To allow for filename-based versioning support, we need to create
11694 # libNAME.so.V as an archive file, containing:
11695 # *) an Import File, referring to the versioned filename of the
11696 # archive as well as the shared archive member, telling the
11697 # bitwidth (32 or 64) of that shared object, and providing the
11698 # list of exported symbols of that shared object, eventually
11699 # decorated with the 'weak' keyword
11700 # *) the shared object with the F_LOADONLY flag set, to really avoid
11701 # it being seen by the linker.
11702 # At run time we better use the real file rather than another symlink,
11703 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11704
11705 case $with_aix_soname,$aix_use_runtimelinking in
11706 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11707 # soname into executable. Probably we can add versioning support to
11708 # collect2, so additional links can be useful in future.
11709 aix,yes) # traditional libtool
11710 dynamic_linker='AIX unversionable lib.so'
11711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11712 # instead of lib<name>.a to let people know that these are not
11713 # typical AIX shared libraries.
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11715 ;;
11716 aix,no) # traditional AIX only
11717 dynamic_linker='AIX lib.a(lib.so.V)'
11718 # We preserve .a as extension for shared libraries through AIX4.2
11719 # and later when we are not doing run time linking.
11720 library_names_spec='$libname$release.a $libname.a'
11721 soname_spec='$libname$release$shared_ext$major'
11722 ;;
11723 svr4,*) # full svr4 only
11724 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11725 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11726 # We do not specify a path in Import Files, so LIBPATH fires.
11727 shlibpath_overrides_runpath=yes
11728 ;;
11729 *,yes) # both, prefer svr4
11730 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11731 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11732 # unpreferred sharedlib libNAME.a needs extra handling
11733 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11734 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11735 # We do not specify a path in Import Files, so LIBPATH fires.
11736 shlibpath_overrides_runpath=yes
11737 ;;
11738 *,no) # both, prefer aix
11739 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11740 library_names_spec='$libname$release.a $libname.a'
11741 soname_spec='$libname$release$shared_ext$major'
11742 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11743 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11744 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11745 ;;
11746 esac
11747 shlibpath_var=LIBPATH
11748 fi
11749 ;;
11750
11751 amigaos*)
11752 case $host_cpu in
11753 powerpc)
11754 # Since July 2007 AmigaOS4 officially supports .so libraries.
11755 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11757 ;;
11758 m68k)
11759 library_names_spec='$libname.ixlibrary $libname.a'
11760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11761 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11762 ;;
11763 esac
11764 ;;
11765
11766 beos*)
11767 library_names_spec='$libname$shared_ext'
11768 dynamic_linker="$host_os ld.so"
11769 shlibpath_var=LIBRARY_PATH
11770 ;;
11771
11772 bsdi[45]*)
11773 version_type=linux # correct to gnu/linux during the next big refactor
11774 need_version=no
11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11776 soname_spec='$libname$release$shared_ext$major'
11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11781 # the default ld.so.conf also contains /usr/contrib/lib and
11782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11783 # libtool to hard-code these into programs
11784 ;;
11785
11786 cygwin* | mingw* | pw32* | cegcc*)
11787 version_type=windows
11788 shrext_cmds=.dll
11789 need_version=no
11790 need_lib_prefix=no
11791
11792 case $GCC,$cc_basename in
11793 yes,*)
11794 # gcc
11795 library_names_spec='$libname.dll.a'
11796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11797 postinstall_cmds='base_file=`basename \$file`~
11798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11799 dldir=$destdir/`dirname \$dlpath`~
11800 test -d \$dldir || mkdir -p \$dldir~
11801 $install_prog $dir/$dlname \$dldir/$dlname~
11802 chmod a+x \$dldir/$dlname~
11803 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11804 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11805 fi'
11806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11807 dlpath=$dir/\$dldll~
11808 $RM \$dlpath'
11809 shlibpath_overrides_runpath=yes
11810
11811 case $host_os in
11812 cygwin*)
11813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11814 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11815
11816 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11817 ;;
11818 mingw* | cegcc*)
11819 # MinGW DLLs use traditional 'lib' prefix
11820 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11821 ;;
11822 pw32*)
11823 # pw32 DLLs use 'pw' prefix rather than 'lib'
11824 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11825 ;;
11826 esac
11827 dynamic_linker='Win32 ld.exe'
11828 ;;
11829
11830 *,cl*)
11831 # Native MSVC
11832 libname_spec='$name'
11833 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11834 library_names_spec='$libname.dll.lib'
11835
11836 case $build_os in
11837 mingw*)
11838 sys_lib_search_path_spec=
11839 lt_save_ifs=$IFS
11840 IFS=';'
11841 for lt_path in $LIB
11842 do
11843 IFS=$lt_save_ifs
11844 # Let DOS variable expansion print the short 8.3 style file name.
11845 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11846 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11847 done
11848 IFS=$lt_save_ifs
11849 # Convert to MSYS style.
11850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11851 ;;
11852 cygwin*)
11853 # Convert to unix form, then to dos form, then back to unix form
11854 # but this time dos style (no spaces!) so that the unix form looks
11855 # like /cygdrive/c/PROGRA~1:/cygdr...
11856 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11857 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11858 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11859 ;;
11860 *)
11861 sys_lib_search_path_spec=$LIB
11862 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11863 # It is most probably a Windows format PATH.
11864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11865 else
11866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11867 fi
11868 # FIXME: find the short name or the path components, as spaces are
11869 # common. (e.g. "Program Files" -> "PROGRA~1")
11870 ;;
11871 esac
11872
11873 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11874 postinstall_cmds='base_file=`basename \$file`~
11875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11876 dldir=$destdir/`dirname \$dlpath`~
11877 test -d \$dldir || mkdir -p \$dldir~
11878 $install_prog $dir/$dlname \$dldir/$dlname'
11879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11880 dlpath=$dir/\$dldll~
11881 $RM \$dlpath'
11882 shlibpath_overrides_runpath=yes
11883 dynamic_linker='Win32 link.exe'
11884 ;;
11885
11886 *)
11887 # Assume MSVC wrapper
11888 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11889 dynamic_linker='Win32 ld.exe'
11890 ;;
11891 esac
11892 # FIXME: first we should search . and the directory the executable is in
11893 shlibpath_var=PATH
11894 ;;
11895
11896 darwin* | rhapsody*)
11897 dynamic_linker="$host_os dyld"
11898 version_type=darwin
11899 need_lib_prefix=no
11900 need_version=no
11901 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11902 soname_spec='$libname$release$major$shared_ext'
11903 shlibpath_overrides_runpath=yes
11904 shlibpath_var=DYLD_LIBRARY_PATH
11905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11906
11907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11908 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11909 ;;
11910
11911 dgux*)
11912 version_type=linux # correct to gnu/linux during the next big refactor
11913 need_lib_prefix=no
11914 need_version=no
11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11916 soname_spec='$libname$release$shared_ext$major'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 ;;
11919
11920 freebsd* | dragonfly*)
11921 # DragonFly does not have aout. When/if they implement a new
11922 # versioning mechanism, adjust this.
11923 if test -x /usr/bin/objformat; then
11924 objformat=`/usr/bin/objformat`
11925 else
11926 case $host_os in
11927 freebsd[23].*) objformat=aout ;;
11928 *) objformat=elf ;;
11929 esac
11930 fi
11931 # Handle Gentoo/FreeBSD as it was Linux
11932 case $host_vendor in
11933 gentoo)
11934 version_type=linux ;;
11935 *)
11936 version_type=freebsd-$objformat ;;
11937 esac
11938
11939 case $version_type in
11940 freebsd-elf*)
11941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11942 soname_spec='$libname$release$shared_ext$major'
11943 need_version=no
11944 need_lib_prefix=no
11945 ;;
11946 freebsd-*)
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11948 need_version=yes
11949 ;;
11950 linux)
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 need_lib_prefix=no
11954 need_version=no
11955 ;;
11956 esac
11957 shlibpath_var=LD_LIBRARY_PATH
11958 case $host_os in
11959 freebsd2.*)
11960 shlibpath_overrides_runpath=yes
11961 ;;
11962 freebsd3.[01]* | freebsdelf3.[01]*)
11963 shlibpath_overrides_runpath=yes
11964 hardcode_into_libs=yes
11965 ;;
11966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11968 shlibpath_overrides_runpath=no
11969 hardcode_into_libs=yes
11970 ;;
11971 *) # from 4.6 on, and DragonFly
11972 shlibpath_overrides_runpath=yes
11973 hardcode_into_libs=yes
11974 ;;
11975 esac
11976 ;;
11977
11978 haiku*)
11979 version_type=linux # correct to gnu/linux during the next big refactor
11980 need_lib_prefix=no
11981 need_version=no
11982 dynamic_linker="$host_os runtime_loader"
11983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11984 soname_spec='$libname$release$shared_ext$major'
11985 shlibpath_var=LIBRARY_PATH
11986 shlibpath_overrides_runpath=no
11987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11988 hardcode_into_libs=yes
11989 ;;
11990
11991 hpux9* | hpux10* | hpux11*)
11992 # Give a soname corresponding to the major version so that dld.sl refuses to
11993 # link against other versions.
11994 version_type=sunos
11995 need_lib_prefix=no
11996 need_version=no
11997 case $host_cpu in
11998 ia64*)
11999 shrext_cmds='.so'
12000 hardcode_into_libs=yes
12001 dynamic_linker="$host_os dld.so"
12002 shlibpath_var=LD_LIBRARY_PATH
12003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12005 soname_spec='$libname$release$shared_ext$major'
12006 if test 32 = "$HPUX_IA64_MODE"; then
12007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12008 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12009 else
12010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12011 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12012 fi
12013 ;;
12014 hppa*64*)
12015 shrext_cmds='.sl'
12016 hardcode_into_libs=yes
12017 dynamic_linker="$host_os dld.sl"
12018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12024 ;;
12025 *)
12026 shrext_cmds='.sl'
12027 dynamic_linker="$host_os dld.sl"
12028 shlibpath_var=SHLIB_PATH
12029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031 soname_spec='$libname$release$shared_ext$major'
12032 ;;
12033 esac
12034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12035 postinstall_cmds='chmod 555 $lib'
12036 # or fails outright, so override atomically:
12037 install_override_mode=555
12038 ;;
12039
12040 interix[3-9]*)
12041 version_type=linux # correct to gnu/linux during the next big refactor
12042 need_lib_prefix=no
12043 need_version=no
12044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12045 soname_spec='$libname$release$shared_ext$major'
12046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=no
12049 hardcode_into_libs=yes
12050 ;;
12051
12052 irix5* | irix6* | nonstopux*)
12053 case $host_os in
12054 nonstopux*) version_type=nonstopux ;;
12055 *)
12056 if test yes = "$lt_cv_prog_gnu_ld"; then
12057 version_type=linux # correct to gnu/linux during the next big refactor
12058 else
12059 version_type=irix
12060 fi ;;
12061 esac
12062 need_lib_prefix=no
12063 need_version=no
12064 soname_spec='$libname$release$shared_ext$major'
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12066 case $host_os in
12067 irix5* | nonstopux*)
12068 libsuff= shlibsuff=
12069 ;;
12070 *)
12071 case $LD in # libtool.m4 will add one of these switches to LD
12072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12073 libsuff= shlibsuff= libmagic=32-bit;;
12074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12075 libsuff=32 shlibsuff=N32 libmagic=N32;;
12076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12078 *) libsuff= shlibsuff= libmagic=never-match;;
12079 esac
12080 ;;
12081 esac
12082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12083 shlibpath_overrides_runpath=no
12084 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12085 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12086 hardcode_into_libs=yes
12087 ;;
12088
12089 # No shared lib support for Linux oldld, aout, or coff.
12090 linux*oldld* | linux*aout* | linux*coff*)
12091 dynamic_linker=no
12092 ;;
12093
12094 linux*android*)
12095 version_type=none # Android doesn't support versioned libraries.
12096 need_lib_prefix=no
12097 need_version=no
12098 library_names_spec='$libname$release$shared_ext'
12099 soname_spec='$libname$release$shared_ext'
12100 finish_cmds=
12101 shlibpath_var=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath=yes
12103
12104 # This implies no fast_install, which is unacceptable.
12105 # Some rework will be needed to allow for fast_install
12106 # before this can be enabled.
12107 hardcode_into_libs=yes
12108
12109 dynamic_linker='Android linker'
12110 # Don't embed -rpath directories since the linker doesn't support them.
12111 hardcode_libdir_flag_spec='-L$libdir'
12112 ;;
12113
12114 # This must be glibc/ELF.
12115 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12116 version_type=linux # correct to gnu/linux during the next big refactor
12117 need_lib_prefix=no
12118 need_version=no
12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12120 soname_spec='$libname$release$shared_ext$major'
12121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=no
12124
12125 # Some binutils ld are patched to set DT_RUNPATH
12126 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 lt_cv_shlibpath_overrides_runpath=no
12130 save_LDFLAGS=$LDFLAGS
12131 save_libdir=$libdir
12132 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12133 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136
12137 int
12138 main ()
12139 {
12140
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"; then :
12146 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12147 lt_cv_shlibpath_overrides_runpath=yes
12148 fi
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LDFLAGS=$save_LDFLAGS
12153 libdir=$save_libdir
12154
12155 fi
12156
12157 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12158
12159 # This implies no fast_install, which is unacceptable.
12160 # Some rework will be needed to allow for fast_install
12161 # before this can be enabled.
12162 hardcode_into_libs=yes
12163
12164 # Ideally, we could use ldconfig to report *all* directores which are
12165 # searched for libraries, however this is still not possible. Aside from not
12166 # being certain /sbin/ldconfig is available, command
12167 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12168 # even though it is searched at run-time. Try to do the best guess by
12169 # appending ld.so.conf contents (and includes) to the search path.
12170 if test -f /etc/ld.so.conf; then
12171 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' ' '`
12172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12173 fi
12174
12175 # We used to test for /lib/ld.so.1 and disable shared libraries on
12176 # powerpc, because MkLinux only supported shared libraries with the
12177 # GNU dynamic linker. Since this was broken with cross compilers,
12178 # most powerpc-linux boxes support dynamic linking these days and
12179 # people can always --disable-shared, the test was removed, and we
12180 # assume the GNU/Linux dynamic linker is in use.
12181 dynamic_linker='GNU/Linux ld.so'
12182 ;;
12183
12184 netbsd*)
12185 version_type=sunos
12186 need_lib_prefix=no
12187 need_version=no
12188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12191 dynamic_linker='NetBSD (a.out) ld.so'
12192 else
12193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12194 soname_spec='$libname$release$shared_ext$major'
12195 dynamic_linker='NetBSD ld.elf_so'
12196 fi
12197 shlibpath_var=LD_LIBRARY_PATH
12198 shlibpath_overrides_runpath=yes
12199 hardcode_into_libs=yes
12200 ;;
12201
12202 newsos6)
12203 version_type=linux # correct to gnu/linux during the next big refactor
12204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=yes
12207 ;;
12208
12209 *nto* | *qnx*)
12210 version_type=qnx
12211 need_lib_prefix=no
12212 need_version=no
12213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214 soname_spec='$libname$release$shared_ext$major'
12215 shlibpath_var=LD_LIBRARY_PATH
12216 shlibpath_overrides_runpath=no
12217 hardcode_into_libs=yes
12218 dynamic_linker='ldqnx.so'
12219 ;;
12220
12221 openbsd* | bitrig*)
12222 version_type=sunos
12223 sys_lib_dlsearch_path_spec=/usr/lib
12224 need_lib_prefix=no
12225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12226 need_version=no
12227 else
12228 need_version=yes
12229 fi
12230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes
12234 ;;
12235
12236 os2*)
12237 libname_spec='$name'
12238 version_type=windows
12239 shrext_cmds=.dll
12240 need_version=no
12241 need_lib_prefix=no
12242 # OS/2 can only load a DLL with a base name of 8 characters or less.
12243 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12244 v=$($ECHO $release$versuffix | tr -d .-);
12245 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12246 $ECHO $n$v`$shared_ext'
12247 library_names_spec='${libname}_dll.$libext'
12248 dynamic_linker='OS/2 ld.exe'
12249 shlibpath_var=BEGINLIBPATH
12250 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12252 postinstall_cmds='base_file=`basename \$file`~
12253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12254 dldir=$destdir/`dirname \$dlpath`~
12255 test -d \$dldir || mkdir -p \$dldir~
12256 $install_prog $dir/$dlname \$dldir/$dlname~
12257 chmod a+x \$dldir/$dlname~
12258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12260 fi'
12261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12262 dlpath=$dir/\$dldll~
12263 $RM \$dlpath'
12264 ;;
12265
12266 osf3* | osf4* | osf5*)
12267 version_type=osf
12268 need_lib_prefix=no
12269 need_version=no
12270 soname_spec='$libname$release$shared_ext$major'
12271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12275 ;;
12276
12277 rdos*)
12278 dynamic_linker=no
12279 ;;
12280
12281 solaris*)
12282 version_type=linux # correct to gnu/linux during the next big refactor
12283 need_lib_prefix=no
12284 need_version=no
12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12286 soname_spec='$libname$release$shared_ext$major'
12287 shlibpath_var=LD_LIBRARY_PATH
12288 shlibpath_overrides_runpath=yes
12289 hardcode_into_libs=yes
12290 # ldd complains unless libraries are executable
12291 postinstall_cmds='chmod +x $lib'
12292 ;;
12293
12294 sunos4*)
12295 version_type=sunos
12296 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12297 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12298 shlibpath_var=LD_LIBRARY_PATH
12299 shlibpath_overrides_runpath=yes
12300 if test yes = "$with_gnu_ld"; then
12301 need_lib_prefix=no
12302 fi
12303 need_version=yes
12304 ;;
12305
12306 sysv4 | sysv4.3*)
12307 version_type=linux # correct to gnu/linux during the next big refactor
12308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12309 soname_spec='$libname$release$shared_ext$major'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 case $host_vendor in
12312 sni)
12313 shlibpath_overrides_runpath=no
12314 need_lib_prefix=no
12315 runpath_var=LD_RUN_PATH
12316 ;;
12317 siemens)
12318 need_lib_prefix=no
12319 ;;
12320 motorola)
12321 need_lib_prefix=no
12322 need_version=no
12323 shlibpath_overrides_runpath=no
12324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12325 ;;
12326 esac
12327 ;;
12328
12329 sysv4*MP*)
12330 if test -d /usr/nec; then
12331 version_type=linux # correct to gnu/linux during the next big refactor
12332 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12333 soname_spec='$libname$shared_ext.$major'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 fi
12336 ;;
12337
12338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12339 version_type=sco
12340 need_lib_prefix=no
12341 need_version=no
12342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12343 soname_spec='$libname$release$shared_ext$major'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12346 hardcode_into_libs=yes
12347 if test yes = "$with_gnu_ld"; then
12348 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12349 else
12350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12351 case $host_os in
12352 sco3.2v5*)
12353 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12354 ;;
12355 esac
12356 fi
12357 sys_lib_dlsearch_path_spec='/usr/lib'
12358 ;;
12359
12360 tpf*)
12361 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12362 version_type=linux # correct to gnu/linux during the next big refactor
12363 need_lib_prefix=no
12364 need_version=no
12365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=no
12368 hardcode_into_libs=yes
12369 ;;
12370
12371 uts4*)
12372 version_type=linux # correct to gnu/linux during the next big refactor
12373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12374 soname_spec='$libname$release$shared_ext$major'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 ;;
12377
12378 *)
12379 dynamic_linker=no
12380 ;;
12381 esac
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12383 $as_echo "$dynamic_linker" >&6; }
12384 test no = "$dynamic_linker" && can_build_shared=no
12385
12386 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12387 if test yes = "$GCC"; then
12388 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12389 fi
12390
12391 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12392 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12393 fi
12394
12395 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12396 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12397 fi
12398
12399 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12400 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12401
12402 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12403 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12404
12405 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12406 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12505 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12506 hardcode_action=
12507 if test -n "$hardcode_libdir_flag_spec" ||
12508 test -n "$runpath_var" ||
12509 test yes = "$hardcode_automatic"; then
12510
12511 # We can hardcode non-existent directories.
12512 if test no != "$hardcode_direct" &&
12513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12514 # have to relink, otherwise we might link with an installed library
12515 # when we should be linking with a yet-to-be-installed one
12516 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12517 test no != "$hardcode_minus_L"; then
12518 # Linking always hardcodes the temporary library directory.
12519 hardcode_action=relink
12520 else
12521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12522 hardcode_action=immediate
12523 fi
12524 else
12525 # We cannot hardcode anything, or else we can only hardcode existing
12526 # directories.
12527 hardcode_action=unsupported
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12530 $as_echo "$hardcode_action" >&6; }
12531
12532 if test relink = "$hardcode_action" ||
12533 test yes = "$inherit_rpath"; then
12534 # Fast installation is not supported
12535 enable_fast_install=no
12536 elif test yes = "$shlibpath_overrides_runpath" ||
12537 test no = "$enable_shared"; then
12538 # Fast installation is not necessary
12539 enable_fast_install=needless
12540 fi
12541
12542
12543
12544
12545
12546
12547 if test yes != "$enable_dlopen"; then
12548 enable_dlopen=unknown
12549 enable_dlopen_self=unknown
12550 enable_dlopen_self_static=unknown
12551 else
12552 lt_cv_dlopen=no
12553 lt_cv_dlopen_libs=
12554
12555 case $host_os in
12556 beos*)
12557 lt_cv_dlopen=load_add_on
12558 lt_cv_dlopen_libs=
12559 lt_cv_dlopen_self=yes
12560 ;;
12561
12562 mingw* | pw32* | cegcc*)
12563 lt_cv_dlopen=LoadLibrary
12564 lt_cv_dlopen_libs=
12565 ;;
12566
12567 cygwin*)
12568 lt_cv_dlopen=dlopen
12569 lt_cv_dlopen_libs=
12570 ;;
12571
12572 darwin*)
12573 # if libdl is installed we need to link against it
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12575 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12576 if ${ac_cv_lib_dl_dlopen+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-ldl $LIBS"
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char dlopen ();
12591 int
12592 main ()
12593 {
12594 return dlopen ();
12595 ;
12596 return 0;
12597 }
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"; then :
12600 ac_cv_lib_dl_dlopen=yes
12601 else
12602 ac_cv_lib_dl_dlopen=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12609 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12610 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12611 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12612 else
12613
12614 lt_cv_dlopen=dyld
12615 lt_cv_dlopen_libs=
12616 lt_cv_dlopen_self=yes
12617
12618 fi
12619
12620 ;;
12621
12622 tpf*)
12623 # Don't try to run any link tests for TPF. We know it's impossible
12624 # because TPF is a cross-compiler, and we know how we open DSOs.
12625 lt_cv_dlopen=dlopen
12626 lt_cv_dlopen_libs=
12627 lt_cv_dlopen_self=no
12628 ;;
12629
12630 *)
12631 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12632 if test "x$ac_cv_func_shl_load" = xyes; then :
12633 lt_cv_dlopen=shl_load
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12636 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12637 if ${ac_cv_lib_dld_shl_load+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 ac_check_lib_save_LIBS=$LIBS
12641 LIBS="-ldld $LIBS"
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char shl_load ();
12652 int
12653 main ()
12654 {
12655 return shl_load ();
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"; then :
12661 ac_cv_lib_dld_shl_load=yes
12662 else
12663 ac_cv_lib_dld_shl_load=no
12664 fi
12665 rm -f core conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12667 LIBS=$ac_check_lib_save_LIBS
12668 fi
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12670 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12671 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12672 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12673 else
12674 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12675 if test "x$ac_cv_func_dlopen" = xyes; then :
12676 lt_cv_dlopen=dlopen
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12679 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12680 if ${ac_cv_lib_dl_dlopen+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 ac_check_lib_save_LIBS=$LIBS
12684 LIBS="-ldl $LIBS"
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12691 #ifdef __cplusplus
12692 extern "C"
12693 #endif
12694 char dlopen ();
12695 int
12696 main ()
12697 {
12698 return dlopen ();
12699 ;
12700 return 0;
12701 }
12702 _ACEOF
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 ac_cv_lib_dl_dlopen=yes
12705 else
12706 ac_cv_lib_dl_dlopen=no
12707 fi
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_check_lib_save_LIBS
12711 fi
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12713 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12714 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12715 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12718 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12719 if ${ac_cv_lib_svld_dlopen+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lsvld $LIBS"
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 char dlopen ();
12734 int
12735 main ()
12736 {
12737 return dlopen ();
12738 ;
12739 return 0;
12740 }
12741 _ACEOF
12742 if ac_fn_c_try_link "$LINENO"; then :
12743 ac_cv_lib_svld_dlopen=yes
12744 else
12745 ac_cv_lib_svld_dlopen=no
12746 fi
12747 rm -f core conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext conftest.$ac_ext
12749 LIBS=$ac_check_lib_save_LIBS
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12752 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12753 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12754 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12757 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12758 if ${ac_cv_lib_dld_dld_link+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 ac_check_lib_save_LIBS=$LIBS
12762 LIBS="-ldld $LIBS"
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12765
12766 /* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 char dld_link ();
12773 int
12774 main ()
12775 {
12776 return dld_link ();
12777 ;
12778 return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_link "$LINENO"; then :
12782 ac_cv_lib_dld_dld_link=yes
12783 else
12784 ac_cv_lib_dld_dld_link=no
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext \
12787 conftest$ac_exeext conftest.$ac_ext
12788 LIBS=$ac_check_lib_save_LIBS
12789 fi
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12791 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12792 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12793 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12794 fi
12795
12796
12797 fi
12798
12799
12800 fi
12801
12802
12803 fi
12804
12805
12806 fi
12807
12808
12809 fi
12810
12811 ;;
12812 esac
12813
12814 if test no = "$lt_cv_dlopen"; then
12815 enable_dlopen=no
12816 else
12817 enable_dlopen=yes
12818 fi
12819
12820 case $lt_cv_dlopen in
12821 dlopen)
12822 save_CPPFLAGS=$CPPFLAGS
12823 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12824
12825 save_LDFLAGS=$LDFLAGS
12826 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12827
12828 save_LIBS=$LIBS
12829 LIBS="$lt_cv_dlopen_libs $LIBS"
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12832 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12833 if ${lt_cv_dlopen_self+:} false; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 if test yes = "$cross_compiling"; then :
12837 lt_cv_dlopen_self=cross
12838 else
12839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12840 lt_status=$lt_dlunknown
12841 cat > conftest.$ac_ext <<_LT_EOF
12842 #line $LINENO "configure"
12843 #include "confdefs.h"
12844
12845 #if HAVE_DLFCN_H
12846 #include <dlfcn.h>
12847 #endif
12848
12849 #include <stdio.h>
12850
12851 #ifdef RTLD_GLOBAL
12852 # define LT_DLGLOBAL RTLD_GLOBAL
12853 #else
12854 # ifdef DL_GLOBAL
12855 # define LT_DLGLOBAL DL_GLOBAL
12856 # else
12857 # define LT_DLGLOBAL 0
12858 # endif
12859 #endif
12860
12861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12862 find out it does not work in some platform. */
12863 #ifndef LT_DLLAZY_OR_NOW
12864 # ifdef RTLD_LAZY
12865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12866 # else
12867 # ifdef DL_LAZY
12868 # define LT_DLLAZY_OR_NOW DL_LAZY
12869 # else
12870 # ifdef RTLD_NOW
12871 # define LT_DLLAZY_OR_NOW RTLD_NOW
12872 # else
12873 # ifdef DL_NOW
12874 # define LT_DLLAZY_OR_NOW DL_NOW
12875 # else
12876 # define LT_DLLAZY_OR_NOW 0
12877 # endif
12878 # endif
12879 # endif
12880 # endif
12881 #endif
12882
12883 /* When -fvisibility=hidden is used, assume the code has been annotated
12884 correspondingly for the symbols needed. */
12885 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12886 int fnord () __attribute__((visibility("default")));
12887 #endif
12888
12889 int fnord () { return 42; }
12890 int main ()
12891 {
12892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12893 int status = $lt_dlunknown;
12894
12895 if (self)
12896 {
12897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12898 else
12899 {
12900 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12901 else puts (dlerror ());
12902 }
12903 /* dlclose (self); */
12904 }
12905 else
12906 puts (dlerror ());
12907
12908 return status;
12909 }
12910 _LT_EOF
12911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12912 (eval $ac_link) 2>&5
12913 ac_status=$?
12914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12915 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12916 (./conftest; exit; ) >&5 2>/dev/null
12917 lt_status=$?
12918 case x$lt_status in
12919 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12920 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12921 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12922 esac
12923 else :
12924 # compilation failed
12925 lt_cv_dlopen_self=no
12926 fi
12927 fi
12928 rm -fr conftest*
12929
12930
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12933 $as_echo "$lt_cv_dlopen_self" >&6; }
12934
12935 if test yes = "$lt_cv_dlopen_self"; then
12936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12938 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12939 if ${lt_cv_dlopen_self_static+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test yes = "$cross_compiling"; then :
12943 lt_cv_dlopen_self_static=cross
12944 else
12945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12946 lt_status=$lt_dlunknown
12947 cat > conftest.$ac_ext <<_LT_EOF
12948 #line $LINENO "configure"
12949 #include "confdefs.h"
12950
12951 #if HAVE_DLFCN_H
12952 #include <dlfcn.h>
12953 #endif
12954
12955 #include <stdio.h>
12956
12957 #ifdef RTLD_GLOBAL
12958 # define LT_DLGLOBAL RTLD_GLOBAL
12959 #else
12960 # ifdef DL_GLOBAL
12961 # define LT_DLGLOBAL DL_GLOBAL
12962 # else
12963 # define LT_DLGLOBAL 0
12964 # endif
12965 #endif
12966
12967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12968 find out it does not work in some platform. */
12969 #ifndef LT_DLLAZY_OR_NOW
12970 # ifdef RTLD_LAZY
12971 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12972 # else
12973 # ifdef DL_LAZY
12974 # define LT_DLLAZY_OR_NOW DL_LAZY
12975 # else
12976 # ifdef RTLD_NOW
12977 # define LT_DLLAZY_OR_NOW RTLD_NOW
12978 # else
12979 # ifdef DL_NOW
12980 # define LT_DLLAZY_OR_NOW DL_NOW
12981 # else
12982 # define LT_DLLAZY_OR_NOW 0
12983 # endif
12984 # endif
12985 # endif
12986 # endif
12987 #endif
12988
12989 /* When -fvisibility=hidden is used, assume the code has been annotated
12990 correspondingly for the symbols needed. */
12991 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12992 int fnord () __attribute__((visibility("default")));
12993 #endif
12994
12995 int fnord () { return 42; }
12996 int main ()
12997 {
12998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12999 int status = $lt_dlunknown;
13000
13001 if (self)
13002 {
13003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13004 else
13005 {
13006 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13007 else puts (dlerror ());
13008 }
13009 /* dlclose (self); */
13010 }
13011 else
13012 puts (dlerror ());
13013
13014 return status;
13015 }
13016 _LT_EOF
13017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13018 (eval $ac_link) 2>&5
13019 ac_status=$?
13020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13021 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13022 (./conftest; exit; ) >&5 2>/dev/null
13023 lt_status=$?
13024 case x$lt_status in
13025 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13026 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13027 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13028 esac
13029 else :
13030 # compilation failed
13031 lt_cv_dlopen_self_static=no
13032 fi
13033 fi
13034 rm -fr conftest*
13035
13036
13037 fi
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13039 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13040 fi
13041
13042 CPPFLAGS=$save_CPPFLAGS
13043 LDFLAGS=$save_LDFLAGS
13044 LIBS=$save_LIBS
13045 ;;
13046 esac
13047
13048 case $lt_cv_dlopen_self in
13049 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13050 *) enable_dlopen_self=unknown ;;
13051 esac
13052
13053 case $lt_cv_dlopen_self_static in
13054 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13055 *) enable_dlopen_self_static=unknown ;;
13056 esac
13057 fi
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075 striplib=
13076 old_striplib=
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13078 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13079 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13081 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083 $as_echo "yes" >&6; }
13084 else
13085 # FIXME - insert some real tests, host_os isn't really good enough
13086 case $host_os in
13087 darwin*)
13088 if test -n "$STRIP"; then
13089 striplib="$STRIP -x"
13090 old_striplib="$STRIP -S"
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13092 $as_echo "yes" >&6; }
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096 fi
13097 ;;
13098 *)
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13101 ;;
13102 esac
13103 fi
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116 # Report what library types will actually be built
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13118 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13120 $as_echo "$can_build_shared" >&6; }
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13123 $as_echo_n "checking whether to build shared libraries... " >&6; }
13124 test no = "$can_build_shared" && enable_shared=no
13125
13126 # On AIX, shared libraries and static libraries use the same namespace, and
13127 # are all built from PIC.
13128 case $host_os in
13129 aix3*)
13130 test yes = "$enable_shared" && enable_static=no
13131 if test -n "$RANLIB"; then
13132 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13133 postinstall_cmds='$RANLIB $lib'
13134 fi
13135 ;;
13136
13137 aix[4-9]*)
13138 if test ia64 != "$host_cpu"; then
13139 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13140 yes,aix,yes) ;; # shared object as lib.so file only
13141 yes,svr4,*) ;; # shared object as lib.so archive member only
13142 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13143 esac
13144 fi
13145 ;;
13146 esac
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13148 $as_echo "$enable_shared" >&6; }
13149
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13151 $as_echo_n "checking whether to build static libraries... " >&6; }
13152 # Make sure either enable_shared or enable_static is yes.
13153 test yes = "$enable_shared" || enable_static=yes
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13155 $as_echo "$enable_static" >&6; }
13156
13157
13158
13159
13160 fi
13161 ac_ext=c
13162 ac_cpp='$CPP $CPPFLAGS'
13163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13166
13167 CC=$lt_save_CC
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183 ac_config_commands="$ac_config_commands libtool"
13184
13185
13186
13187
13188 # Only expand once:
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13201 if test -n "$ac_tool_prefix"; then
13202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 case $PKG_CONFIG in
13210 [\\/]* | ?:[\\/]*)
13211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13212 ;;
13213 *)
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13224 fi
13225 done
13226 done
13227 IFS=$as_save_IFS
13228
13229 ;;
13230 esac
13231 fi
13232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13233 if test -n "$PKG_CONFIG"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13235 $as_echo "$PKG_CONFIG" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240
13241
13242 fi
13243 if test -z "$ac_cv_path_PKG_CONFIG"; then
13244 ac_pt_PKG_CONFIG=$PKG_CONFIG
13245 # Extract the first word of "pkg-config", so it can be a program name with args.
13246 set dummy pkg-config; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 case $ac_pt_PKG_CONFIG in
13253 [\\/]* | ?:[\\/]*)
13254 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13255 ;;
13256 *)
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268 done
13269 done
13270 IFS=$as_save_IFS
13271
13272 ;;
13273 esac
13274 fi
13275 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13276 if test -n "$ac_pt_PKG_CONFIG"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13278 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 fi
13283
13284 if test "x$ac_pt_PKG_CONFIG" = x; then
13285 PKG_CONFIG=""
13286 else
13287 case $cross_compiling:$ac_tool_warned in
13288 yes:)
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13291 ac_tool_warned=yes ;;
13292 esac
13293 PKG_CONFIG=$ac_pt_PKG_CONFIG
13294 fi
13295 else
13296 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13297 fi
13298
13299 fi
13300 if test -n "$PKG_CONFIG"; then
13301 _pkg_min_version=0.9.0
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13303 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13304 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13306 $as_echo "yes" >&6; }
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 PKG_CONFIG=""
13311 fi
13312 fi
13313
13314
13315
13316 gtk_doc_requires="gtk-doc >= 1.14"
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
13318 $as_echo_n "checking for gtk-doc... " >&6; }
13319 if test -n "$PKG_CONFIG" && \
13320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
13321 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
13322 ac_status=$?
13323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13324 test $ac_status = 0; }; then
13325 have_gtk_doc=yes
13326 else
13327 have_gtk_doc=no
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
13330 $as_echo "$have_gtk_doc" >&6; }
13331
13332 if test "$have_gtk_doc" = "no"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13334 You will not be able to create source packages with 'make dist'
13335 because $gtk_doc_requires is not found." >&5
13336 $as_echo "$as_me: WARNING:
13337 You will not be able to create source packages with 'make dist'
13338 because $gtk_doc_requires is not found." >&2;}
13339 fi
13340
13341 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13342 set dummy gtkdoc-check; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 if test -n "$GTKDOC_CHECK"; then
13349 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
13350 else
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13353 do
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13358 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13361 fi
13362 done
13363 done
13364 IFS=$as_save_IFS
13365
13366 fi
13367 fi
13368 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
13369 if test -n "$GTKDOC_CHECK"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13371 $as_echo "$GTKDOC_CHECK" >&6; }
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13375 fi
13376
13377
13378 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13379 set dummy gtkdoc-check; ac_word=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 case $GTKDOC_CHECK_PATH in
13386 [\\/]* | ?:[\\/]*)
13387 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
13388 ;;
13389 *)
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13392 do
13393 IFS=$as_save_IFS
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399 break 2
13400 fi
13401 done
13402 done
13403 IFS=$as_save_IFS
13404
13405 ;;
13406 esac
13407 fi
13408 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
13409 if test -n "$GTKDOC_CHECK_PATH"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
13411 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
13412 else
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13415 fi
13416
13417
13418 for ac_prog in gtkdoc-rebase
13419 do
13420 # Extract the first word of "$ac_prog", so it can be a program name with args.
13421 set dummy $ac_prog; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 case $GTKDOC_REBASE in
13428 [\\/]* | ?:[\\/]*)
13429 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13430 ;;
13431 *)
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13434 do
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13439 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13442 fi
13443 done
13444 done
13445 IFS=$as_save_IFS
13446
13447 ;;
13448 esac
13449 fi
13450 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13451 if test -n "$GTKDOC_REBASE"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13453 $as_echo "$GTKDOC_REBASE" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458
13459
13460 test -n "$GTKDOC_REBASE" && break
13461 done
13462 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13463
13464 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13465 set dummy gtkdoc-mkpdf; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 case $GTKDOC_MKPDF in
13472 [\\/]* | ?:[\\/]*)
13473 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13474 ;;
13475 *)
13476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477 for as_dir in $PATH
13478 do
13479 IFS=$as_save_IFS
13480 test -z "$as_dir" && as_dir=.
13481 for ac_exec_ext in '' $ac_executable_extensions; do
13482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13483 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485 break 2
13486 fi
13487 done
13488 done
13489 IFS=$as_save_IFS
13490
13491 ;;
13492 esac
13493 fi
13494 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13495 if test -n "$GTKDOC_MKPDF"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13497 $as_echo "$GTKDOC_MKPDF" >&6; }
13498 else
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13501 fi
13502
13503
13504
13505
13506 # Check whether --with-html-dir was given.
13507 if test "${with_html_dir+set}" = set; then :
13508 withval=$with_html_dir;
13509 else
13510 with_html_dir='${datadir}/gtk-doc/html'
13511 fi
13512
13513 HTML_DIR="$with_html_dir"
13514
13515
13516 # Check whether --enable-gtk-doc was given.
13517 if test "${enable_gtk_doc+set}" = set; then :
13518 enableval=$enable_gtk_doc;
13519 else
13520 enable_gtk_doc=no
13521 fi
13522
13523
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13525 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13527 $as_echo "$enable_gtk_doc" >&6; }
13528
13529 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
13530 as_fn_error $? "
13531 You must have $gtk_doc_requires installed to build documentation for
13532 $PACKAGE_NAME. Please install gtk-doc or disable building the
13533 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
13534 fi
13535
13536 if test "x$PACKAGE_NAME" != "xglib"; then
13537
13538 pkg_failed=no
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13540 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13541
13542 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13543 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13544 elif test -n "$PKG_CONFIG"; then
13545 if test -n "$PKG_CONFIG" && \
13546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
13547 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }; then
13551 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13552 test "x$?" != "x0" && pkg_failed=yes
13553 else
13554 pkg_failed=yes
13555 fi
13556 else
13557 pkg_failed=untried
13558 fi
13559 if test -n "$GTKDOC_DEPS_LIBS"; then
13560 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13561 elif test -n "$PKG_CONFIG"; then
13562 if test -n "$PKG_CONFIG" && \
13563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
13564 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13565 ac_status=$?
13566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13567 test $ac_status = 0; }; then
13568 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13569 test "x$?" != "x0" && pkg_failed=yes
13570 else
13571 pkg_failed=yes
13572 fi
13573 else
13574 pkg_failed=untried
13575 fi
13576
13577
13578
13579 if test $pkg_failed = yes; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13582
13583 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13584 _pkg_short_errors_supported=yes
13585 else
13586 _pkg_short_errors_supported=no
13587 fi
13588 if test $_pkg_short_errors_supported = yes; then
13589 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13590 else
13591 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13592 fi
13593 # Put the nasty error message in config.log where it belongs
13594 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13595
13596 :
13597 elif test $pkg_failed = untried; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13600 :
13601 else
13602 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13603 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605 $as_echo "yes" >&6; }
13606
13607 fi
13608 fi
13609
13610 # Check whether --enable-gtk-doc-html was given.
13611 if test "${enable_gtk_doc_html+set}" = set; then :
13612 enableval=$enable_gtk_doc_html;
13613 else
13614 enable_gtk_doc_html=yes
13615 fi
13616
13617 # Check whether --enable-gtk-doc-pdf was given.
13618 if test "${enable_gtk_doc_pdf+set}" = set; then :
13619 enableval=$enable_gtk_doc_pdf;
13620 else
13621 enable_gtk_doc_pdf=no
13622 fi
13623
13624
13625 if test -z "$GTKDOC_MKPDF"; then
13626 enable_gtk_doc_pdf=no
13627 fi
13628
13629 if test -z "$AM_DEFAULT_VERBOSITY"; then
13630 AM_DEFAULT_VERBOSITY=1
13631 fi
13632
13633
13634 if test x$have_gtk_doc = xyes; then
13635 HAVE_GTK_DOC_TRUE=
13636 HAVE_GTK_DOC_FALSE='#'
13637 else
13638 HAVE_GTK_DOC_TRUE='#'
13639 HAVE_GTK_DOC_FALSE=
13640 fi
13641
13642 if test x$enable_gtk_doc = xyes; then
13643 ENABLE_GTK_DOC_TRUE=
13644 ENABLE_GTK_DOC_FALSE='#'
13645 else
13646 ENABLE_GTK_DOC_TRUE='#'
13647 ENABLE_GTK_DOC_FALSE=
13648 fi
13649
13650 if test x$enable_gtk_doc_html = xyes; then
13651 GTK_DOC_BUILD_HTML_TRUE=
13652 GTK_DOC_BUILD_HTML_FALSE='#'
13653 else
13654 GTK_DOC_BUILD_HTML_TRUE='#'
13655 GTK_DOC_BUILD_HTML_FALSE=
13656 fi
13657
13658 if test x$enable_gtk_doc_pdf = xyes; then
13659 GTK_DOC_BUILD_PDF_TRUE=
13660 GTK_DOC_BUILD_PDF_FALSE='#'
13661 else
13662 GTK_DOC_BUILD_PDF_TRUE='#'
13663 GTK_DOC_BUILD_PDF_FALSE=
13664 fi
13665
13666 if test -n "$LIBTOOL"; then
13667 GTK_DOC_USE_LIBTOOL_TRUE=
13668 GTK_DOC_USE_LIBTOOL_FALSE='#'
13669 else
13670 GTK_DOC_USE_LIBTOOL_TRUE='#'
13671 GTK_DOC_USE_LIBTOOL_FALSE=
13672 fi
13673
13674 if test -n "$GTKDOC_REBASE"; then
13675 GTK_DOC_USE_REBASE_TRUE=
13676 GTK_DOC_USE_REBASE_FALSE='#'
13677 else
13678 GTK_DOC_USE_REBASE_TRUE='#'
13679 GTK_DOC_USE_REBASE_FALSE=
13680 fi
13681
13682
13683
13684
13685
13686 pkg_failed=no
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
13688 $as_echo_n "checking for GLIB... " >&6; }
13689
13690 if test -n "$GLIB_CFLAGS"; then
13691 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13692 elif test -n "$PKG_CONFIG"; then
13693 if test -n "$PKG_CONFIG" && \
13694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gobject-2.0 libxml-2.0\""; } >&5
13695 ($PKG_CONFIG --exists --print-errors "glib-2.0 gobject-2.0 libxml-2.0") 2>&5
13696 ac_status=$?
13697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13698 test $ac_status = 0; }; then
13699 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gobject-2.0 libxml-2.0" 2>/dev/null`
13700 test "x$?" != "x0" && pkg_failed=yes
13701 else
13702 pkg_failed=yes
13703 fi
13704 else
13705 pkg_failed=untried
13706 fi
13707 if test -n "$GLIB_LIBS"; then
13708 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13709 elif test -n "$PKG_CONFIG"; then
13710 if test -n "$PKG_CONFIG" && \
13711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gobject-2.0 libxml-2.0\""; } >&5
13712 ($PKG_CONFIG --exists --print-errors "glib-2.0 gobject-2.0 libxml-2.0") 2>&5
13713 ac_status=$?
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715 test $ac_status = 0; }; then
13716 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 gobject-2.0 libxml-2.0" 2>/dev/null`
13717 test "x$?" != "x0" && pkg_failed=yes
13718 else
13719 pkg_failed=yes
13720 fi
13721 else
13722 pkg_failed=untried
13723 fi
13724
13725
13726
13727 if test $pkg_failed = yes; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13730
13731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13732 _pkg_short_errors_supported=yes
13733 else
13734 _pkg_short_errors_supported=no
13735 fi
13736 if test $_pkg_short_errors_supported = yes; then
13737 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 gobject-2.0 libxml-2.0" 2>&1`
13738 else
13739 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 gobject-2.0 libxml-2.0" 2>&1`
13740 fi
13741 # Put the nasty error message in config.log where it belongs
13742 echo "$GLIB_PKG_ERRORS" >&5
13743
13744 exit
13745 elif test $pkg_failed = untried; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13748 exit
13749 else
13750 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13751 GLIB_LIBS=$pkg_cv_GLIB_LIBS
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13753 $as_echo "yes" >&6; }
13754
13755 fi
13756
13757
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5
13760 $as_echo_n "checking for library containing sqrtf... " >&6; }
13761 if ${ac_cv_search_sqrtf+:} false; then :
13762 $as_echo_n "(cached) " >&6
13763 else
13764 ac_func_search_save_LIBS=$LIBS
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13771 #ifdef __cplusplus
13772 extern "C"
13773 #endif
13774 char sqrtf ();
13775 int
13776 main ()
13777 {
13778 return sqrtf ();
13779 ;
13780 return 0;
13781 }
13782 _ACEOF
13783 for ac_lib in '' m; do
13784 if test -z "$ac_lib"; then
13785 ac_res="none required"
13786 else
13787 ac_res=-l$ac_lib
13788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13789 fi
13790 if ac_fn_c_try_link "$LINENO"; then :
13791 ac_cv_search_sqrtf=$ac_res
13792 fi
13793 rm -f core conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext
13795 if ${ac_cv_search_sqrtf+:} false; then :
13796 break
13797 fi
13798 done
13799 if ${ac_cv_search_sqrtf+:} false; then :
13800
13801 else
13802 ac_cv_search_sqrtf=no
13803 fi
13804 rm conftest.$ac_ext
13805 LIBS=$ac_func_search_save_LIBS
13806 fi
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5
13808 $as_echo "$ac_cv_search_sqrtf" >&6; }
13809 ac_res=$ac_cv_search_sqrtf
13810 if test "$ac_res" != no; then :
13811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13812
13813 fi
13814
13815
13816
13817 ac_config_files="$ac_config_files Makefile docs/Makefile docs/reference/Makefile mialm/Makefile test/Makefile mialm.pc"
13818
13819 cat >confcache <<\_ACEOF
13820 # This file is a shell script that caches the results of configure
13821 # tests run on this system so they can be shared between configure
13822 # scripts and configure runs, see configure's option --config-cache.
13823 # It is not useful on other systems. If it contains results you don't
13824 # want to keep, you may remove or edit it.
13825 #
13826 # config.status only pays attention to the cache file if you give it
13827 # the --recheck option to rerun configure.
13828 #
13829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13831 # following values.
13832
13833 _ACEOF
13834
13835 # The following way of writing the cache mishandles newlines in values,
13836 # but we know of no workaround that is simple, portable, and efficient.
13837 # So, we kill variables containing newlines.
13838 # Ultrix sh set writes to stderr and can't be redirected directly,
13839 # and sets the high bit in the cache file unless we assign to the vars.
13840 (
13841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13842 eval ac_val=\$$ac_var
13843 case $ac_val in #(
13844 *${as_nl}*)
13845 case $ac_var in #(
13846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13848 esac
13849 case $ac_var in #(
13850 _ | IFS | as_nl) ;; #(
13851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13852 *) { eval $ac_var=; unset $ac_var;} ;;
13853 esac ;;
13854 esac
13855 done
13856
13857 (set) 2>&1 |
13858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13859 *${as_nl}ac_space=\ *)
13860 # `set' does not quote correctly, so add quotes: double-quote
13861 # substitution turns \\\\ into \\, and sed turns \\ into \.
13862 sed -n \
13863 "s/'/'\\\\''/g;
13864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13865 ;; #(
13866 *)
13867 # `set' quotes correctly as required by POSIX, so do not add quotes.
13868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13869 ;;
13870 esac |
13871 sort
13872 ) |
13873 sed '
13874 /^ac_cv_env_/b end
13875 t clear
13876 :clear
13877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13878 t end
13879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13880 :end' >>confcache
13881 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13882 if test -w "$cache_file"; then
13883 if test "x$cache_file" != "x/dev/null"; then
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13885 $as_echo "$as_me: updating cache $cache_file" >&6;}
13886 if test ! -f "$cache_file" || test -h "$cache_file"; then
13887 cat confcache >"$cache_file"
13888 else
13889 case $cache_file in #(
13890 */* | ?:*)
13891 mv -f confcache "$cache_file"$$ &&
13892 mv -f "$cache_file"$$ "$cache_file" ;; #(
13893 *)
13894 mv -f confcache "$cache_file" ;;
13895 esac
13896 fi
13897 fi
13898 else
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13900 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13901 fi
13902 fi
13903 rm -f confcache
13904
13905 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13906 # Let make expand exec_prefix.
13907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13908
13909 DEFS=-DHAVE_CONFIG_H
13910
13911 ac_libobjs=
13912 ac_ltlibobjs=
13913 U=
13914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13915 # 1. Remove the extension, and $U if already installed.
13916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13917 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13919 # will be set to the directory where LIBOBJS objects are built.
13920 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13921 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13922 done
13923 LIBOBJS=$ac_libobjs
13924
13925 LTLIBOBJS=$ac_ltlibobjs
13926
13927
13928 if test -n "$EXEEXT"; then
13929 am__EXEEXT_TRUE=
13930 am__EXEEXT_FALSE='#'
13931 else
13932 am__EXEEXT_TRUE='#'
13933 am__EXEEXT_FALSE=
13934 fi
13935
13936 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13937 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13939 fi
13940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13941 as_fn_error $? "conditional \"AMDEP\" was never defined.
13942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13943 fi
13944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13945 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13947 fi
13948 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13949 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13951 fi
13952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13955 fi
13956 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
13957 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
13958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13959 fi
13960 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13961 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13963 fi
13964 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13965 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13967 fi
13968 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13969 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13971 fi
13972 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13973 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13975 fi
13976 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13977 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13979 fi
13980
13981 : "${CONFIG_STATUS=./config.status}"
13982 ac_write_fail=0
13983 ac_clean_files_save=$ac_clean_files
13984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13986 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13987 as_write_fail=0
13988 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13989 #! $SHELL
13990 # Generated by $as_me.
13991 # Run this file to recreate the current configuration.
13992 # Compiler output produced by configure, useful for debugging
13993 # configure, is in config.log if it exists.
13994
13995 debug=false
13996 ac_cs_recheck=false
13997 ac_cs_silent=false
13998
13999 SHELL=\${CONFIG_SHELL-$SHELL}
14000 export SHELL
14001 _ASEOF
14002 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14003 ## -------------------- ##
14004 ## M4sh Initialization. ##
14005 ## -------------------- ##
14006
14007 # Be more Bourne compatible
14008 DUALCASE=1; export DUALCASE # for MKS sh
14009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14010 emulate sh
14011 NULLCMD=:
14012 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14013 # is contrary to our usage. Disable this feature.
14014 alias -g '${1+"$@"}'='"$@"'
14015 setopt NO_GLOB_SUBST
14016 else
14017 case `(set -o) 2>/dev/null` in #(
14018 *posix*) :
14019 set -o posix ;; #(
14020 *) :
14021 ;;
14022 esac
14023 fi
14024
14025
14026 as_nl='
14027 '
14028 export as_nl
14029 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14030 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14031 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14033 # Prefer a ksh shell builtin over an external printf program on Solaris,
14034 # but without wasting forks for bash or zsh.
14035 if test -z "$BASH_VERSION$ZSH_VERSION" \
14036 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14037 as_echo='print -r --'
14038 as_echo_n='print -rn --'
14039 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14040 as_echo='printf %s\n'
14041 as_echo_n='printf %s'
14042 else
14043 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14044 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14045 as_echo_n='/usr/ucb/echo -n'
14046 else
14047 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14048 as_echo_n_body='eval
14049 arg=$1;
14050 case $arg in #(
14051 *"$as_nl"*)
14052 expr "X$arg" : "X\\(.*\\)$as_nl";
14053 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14054 esac;
14055 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14056 '
14057 export as_echo_n_body
14058 as_echo_n='sh -c $as_echo_n_body as_echo'
14059 fi
14060 export as_echo_body
14061 as_echo='sh -c $as_echo_body as_echo'
14062 fi
14063
14064 # The user is always right.
14065 if test "${PATH_SEPARATOR+set}" != set; then
14066 PATH_SEPARATOR=:
14067 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14068 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14069 PATH_SEPARATOR=';'
14070 }
14071 fi
14072
14073
14074 # IFS
14075 # We need space, tab and new line, in precisely that order. Quoting is
14076 # there to prevent editors from complaining about space-tab.
14077 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14078 # splitting by setting IFS to empty value.)
14079 IFS=" "" $as_nl"
14080
14081 # Find who we are. Look in the path if we contain no directory separator.
14082 as_myself=
14083 case $0 in #((
14084 *[\\/]* ) as_myself=$0 ;;
14085 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14087 do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14091 done
14092 IFS=$as_save_IFS
14093
14094 ;;
14095 esac
14096 # We did not find ourselves, most probably we were run as `sh COMMAND'
14097 # in which case we are not to be found in the path.
14098 if test "x$as_myself" = x; then
14099 as_myself=$0
14100 fi
14101 if test ! -f "$as_myself"; then
14102 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14103 exit 1
14104 fi
14105
14106 # Unset variables that we do not need and which cause bugs (e.g. in
14107 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14108 # suppresses any "Segmentation fault" message there. '((' could
14109 # trigger a bug in pdksh 5.2.14.
14110 for as_var in BASH_ENV ENV MAIL MAILPATH
14111 do eval test x\${$as_var+set} = xset \
14112 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14113 done
14114 PS1='$ '
14115 PS2='> '
14116 PS4='+ '
14117
14118 # NLS nuisances.
14119 LC_ALL=C
14120 export LC_ALL
14121 LANGUAGE=C
14122 export LANGUAGE
14123
14124 # CDPATH.
14125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14126
14127
14128 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14129 # ----------------------------------------
14130 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14131 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14132 # script with STATUS, using 1 if that was 0.
14133 as_fn_error ()
14134 {
14135 as_status=$1; test $as_status -eq 0 && as_status=1
14136 if test "$4"; then
14137 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14138 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14139 fi
14140 $as_echo "$as_me: error: $2" >&2
14141 as_fn_exit $as_status
14142 } # as_fn_error
14143
14144
14145 # as_fn_set_status STATUS
14146 # -----------------------
14147 # Set $? to STATUS, without forking.
14148 as_fn_set_status ()
14149 {
14150 return $1
14151 } # as_fn_set_status
14152
14153 # as_fn_exit STATUS
14154 # -----------------
14155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14156 as_fn_exit ()
14157 {
14158 set +e
14159 as_fn_set_status $1
14160 exit $1
14161 } # as_fn_exit
14162
14163 # as_fn_unset VAR
14164 # ---------------
14165 # Portably unset VAR.
14166 as_fn_unset ()
14167 {
14168 { eval $1=; unset $1;}
14169 }
14170 as_unset=as_fn_unset
14171 # as_fn_append VAR VALUE
14172 # ----------------------
14173 # Append the text in VALUE to the end of the definition contained in VAR. Take
14174 # advantage of any shell optimizations that allow amortized linear growth over
14175 # repeated appends, instead of the typical quadratic growth present in naive
14176 # implementations.
14177 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14178 eval 'as_fn_append ()
14179 {
14180 eval $1+=\$2
14181 }'
14182 else
14183 as_fn_append ()
14184 {
14185 eval $1=\$$1\$2
14186 }
14187 fi # as_fn_append
14188
14189 # as_fn_arith ARG...
14190 # ------------------
14191 # Perform arithmetic evaluation on the ARGs, and store the result in the
14192 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14193 # must be portable across $(()) and expr.
14194 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14195 eval 'as_fn_arith ()
14196 {
14197 as_val=$(( $* ))
14198 }'
14199 else
14200 as_fn_arith ()
14201 {
14202 as_val=`expr "$@" || test $? -eq 1`
14203 }
14204 fi # as_fn_arith
14205
14206
14207 if expr a : '\(a\)' >/dev/null 2>&1 &&
14208 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14209 as_expr=expr
14210 else
14211 as_expr=false
14212 fi
14213
14214 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14215 as_basename=basename
14216 else
14217 as_basename=false
14218 fi
14219
14220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14221 as_dirname=dirname
14222 else
14223 as_dirname=false
14224 fi
14225
14226 as_me=`$as_basename -- "$0" ||
14227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14228 X"$0" : 'X\(//\)$' \| \
14229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14230 $as_echo X/"$0" |
14231 sed '/^.*\/\([^/][^/]*\)\/*$/{
14232 s//\1/
14233 q
14234 }
14235 /^X\/\(\/\/\)$/{
14236 s//\1/
14237 q
14238 }
14239 /^X\/\(\/\).*/{
14240 s//\1/
14241 q
14242 }
14243 s/.*/./; q'`
14244
14245 # Avoid depending upon Character Ranges.
14246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14249 as_cr_digits='0123456789'
14250 as_cr_alnum=$as_cr_Letters$as_cr_digits
14251
14252 ECHO_C= ECHO_N= ECHO_T=
14253 case `echo -n x` in #(((((
14254 -n*)
14255 case `echo 'xy\c'` in
14256 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14257 xy) ECHO_C='\c';;
14258 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14259 ECHO_T=' ';;
14260 esac;;
14261 *)
14262 ECHO_N='-n';;
14263 esac
14264
14265 rm -f conf$$ conf$$.exe conf$$.file
14266 if test -d conf$$.dir; then
14267 rm -f conf$$.dir/conf$$.file
14268 else
14269 rm -f conf$$.dir
14270 mkdir conf$$.dir 2>/dev/null
14271 fi
14272 if (echo >conf$$.file) 2>/dev/null; then
14273 if ln -s conf$$.file conf$$ 2>/dev/null; then
14274 as_ln_s='ln -s'
14275 # ... but there are two gotchas:
14276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14278 # In both cases, we have to default to `cp -pR'.
14279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14280 as_ln_s='cp -pR'
14281 elif ln conf$$.file conf$$ 2>/dev/null; then
14282 as_ln_s=ln
14283 else
14284 as_ln_s='cp -pR'
14285 fi
14286 else
14287 as_ln_s='cp -pR'
14288 fi
14289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14290 rmdir conf$$.dir 2>/dev/null
14291
14292
14293 # as_fn_mkdir_p
14294 # -------------
14295 # Create "$as_dir" as a directory, including parents if necessary.
14296 as_fn_mkdir_p ()
14297 {
14298
14299 case $as_dir in #(
14300 -*) as_dir=./$as_dir;;
14301 esac
14302 test -d "$as_dir" || eval $as_mkdir_p || {
14303 as_dirs=
14304 while :; do
14305 case $as_dir in #(
14306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14307 *) as_qdir=$as_dir;;
14308 esac
14309 as_dirs="'$as_qdir' $as_dirs"
14310 as_dir=`$as_dirname -- "$as_dir" ||
14311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14312 X"$as_dir" : 'X\(//\)[^/]' \| \
14313 X"$as_dir" : 'X\(//\)$' \| \
14314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14315 $as_echo X"$as_dir" |
14316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14317 s//\1/
14318 q
14319 }
14320 /^X\(\/\/\)[^/].*/{
14321 s//\1/
14322 q
14323 }
14324 /^X\(\/\/\)$/{
14325 s//\1/
14326 q
14327 }
14328 /^X\(\/\).*/{
14329 s//\1/
14330 q
14331 }
14332 s/.*/./; q'`
14333 test -d "$as_dir" && break
14334 done
14335 test -z "$as_dirs" || eval "mkdir $as_dirs"
14336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14337
14338
14339 } # as_fn_mkdir_p
14340 if mkdir -p . 2>/dev/null; then
14341 as_mkdir_p='mkdir -p "$as_dir"'
14342 else
14343 test -d ./-p && rmdir ./-p
14344 as_mkdir_p=false
14345 fi
14346
14347
14348 # as_fn_executable_p FILE
14349 # -----------------------
14350 # Test if FILE is an executable regular file.
14351 as_fn_executable_p ()
14352 {
14353 test -f "$1" && test -x "$1"
14354 } # as_fn_executable_p
14355 as_test_x='test -x'
14356 as_executable_p=as_fn_executable_p
14357
14358 # Sed expression to map a string onto a valid CPP name.
14359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14360
14361 # Sed expression to map a string onto a valid variable name.
14362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14363
14364
14365 exec 6>&1
14366 ## ----------------------------------- ##
14367 ## Main body of $CONFIG_STATUS script. ##
14368 ## ----------------------------------- ##
14369 _ASEOF
14370 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14371
14372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14373 # Save the log message, to keep $0 and so on meaningful, and to
14374 # report actual input values of CONFIG_FILES etc. instead of their
14375 # values after options handling.
14376 ac_log="
14377 This file was extended by mialm $as_me 1.0.9, which was
14378 generated by GNU Autoconf 2.69. Invocation command line was
14379
14380 CONFIG_FILES = $CONFIG_FILES
14381 CONFIG_HEADERS = $CONFIG_HEADERS
14382 CONFIG_LINKS = $CONFIG_LINKS
14383 CONFIG_COMMANDS = $CONFIG_COMMANDS
14384 $ $0 $@
14385
14386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14387 "
14388
14389 _ACEOF
14390
14391 case $ac_config_files in *"
14392 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14393 esac
14394
14395 case $ac_config_headers in *"
14396 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14397 esac
14398
14399
14400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14401 # Files that config.status was made for.
14402 config_files="$ac_config_files"
14403 config_headers="$ac_config_headers"
14404 config_commands="$ac_config_commands"
14405
14406 _ACEOF
14407
14408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14409 ac_cs_usage="\
14410 \`$as_me' instantiates files and other configuration actions
14411 from templates according to the current configuration. Unless the files
14412 and actions are specified as TAGs, all are instantiated by default.
14413
14414 Usage: $0 [OPTION]... [TAG]...
14415
14416 -h, --help print this help, then exit
14417 -V, --version print version number and configuration settings, then exit
14418 --config print configuration, then exit
14419 -q, --quiet, --silent
14420 do not print progress messages
14421 -d, --debug don't remove temporary files
14422 --recheck update $as_me by reconfiguring in the same conditions
14423 --file=FILE[:TEMPLATE]
14424 instantiate the configuration file FILE
14425 --header=FILE[:TEMPLATE]
14426 instantiate the configuration header FILE
14427
14428 Configuration files:
14429 $config_files
14430
14431 Configuration headers:
14432 $config_headers
14433
14434 Configuration commands:
14435 $config_commands
14436
14437 Report bugs to <[email protected]>."
14438
14439 _ACEOF
14440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14441 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14442 ac_cs_version="\\
14443 mialm config.status 1.0.9
14444 configured by $0, generated by GNU Autoconf 2.69,
14445 with options \\"\$ac_cs_config\\"
14446
14447 Copyright (C) 2012 Free Software Foundation, Inc.
14448 This config.status script is free software; the Free Software Foundation
14449 gives unlimited permission to copy, distribute and modify it."
14450
14451 ac_pwd='$ac_pwd'
14452 srcdir='$srcdir'
14453 INSTALL='$INSTALL'
14454 MKDIR_P='$MKDIR_P'
14455 AWK='$AWK'
14456 test -n "\$AWK" || AWK=awk
14457 _ACEOF
14458
14459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14460 # The default lists apply if the user does not specify any file.
14461 ac_need_defaults=:
14462 while test $# != 0
14463 do
14464 case $1 in
14465 --*=?*)
14466 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14467 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14468 ac_shift=:
14469 ;;
14470 --*=)
14471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14472 ac_optarg=
14473 ac_shift=:
14474 ;;
14475 *)
14476 ac_option=$1
14477 ac_optarg=$2
14478 ac_shift=shift
14479 ;;
14480 esac
14481
14482 case $ac_option in
14483 # Handling of the options.
14484 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14485 ac_cs_recheck=: ;;
14486 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14487 $as_echo "$ac_cs_version"; exit ;;
14488 --config | --confi | --conf | --con | --co | --c )
14489 $as_echo "$ac_cs_config"; exit ;;
14490 --debug | --debu | --deb | --de | --d | -d )
14491 debug=: ;;
14492 --file | --fil | --fi | --f )
14493 $ac_shift
14494 case $ac_optarg in
14495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14496 '') as_fn_error $? "missing file argument" ;;
14497 esac
14498 as_fn_append CONFIG_FILES " '$ac_optarg'"
14499 ac_need_defaults=false;;
14500 --header | --heade | --head | --hea )
14501 $ac_shift
14502 case $ac_optarg in
14503 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14504 esac
14505 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14506 ac_need_defaults=false;;
14507 --he | --h)
14508 # Conflict between --help and --header
14509 as_fn_error $? "ambiguous option: \`$1'
14510 Try \`$0 --help' for more information.";;
14511 --help | --hel | -h )
14512 $as_echo "$ac_cs_usage"; exit ;;
14513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14515 ac_cs_silent=: ;;
14516
14517 # This is an error.
14518 -*) as_fn_error $? "unrecognized option: \`$1'
14519 Try \`$0 --help' for more information." ;;
14520
14521 *) as_fn_append ac_config_targets " $1"
14522 ac_need_defaults=false ;;
14523
14524 esac
14525 shift
14526 done
14527
14528 ac_configure_extra_args=
14529
14530 if $ac_cs_silent; then
14531 exec 6>/dev/null
14532 ac_configure_extra_args="$ac_configure_extra_args --silent"
14533 fi
14534
14535 _ACEOF
14536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14537 if \$ac_cs_recheck; then
14538 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14539 shift
14540 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14541 CONFIG_SHELL='$SHELL'
14542 export CONFIG_SHELL
14543 exec "\$@"
14544 fi
14545
14546 _ACEOF
14547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548 exec 5>>config.log
14549 {
14550 echo
14551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14552 ## Running $as_me. ##
14553 _ASBOX
14554 $as_echo "$ac_log"
14555 } >&5
14556
14557 _ACEOF
14558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14559 #
14560 # INIT-COMMANDS
14561 #
14562 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14563
14564
14565 # The HP-UX ksh and POSIX shell print the target directory to stdout
14566 # if CDPATH is set.
14567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14568
14569 sed_quote_subst='$sed_quote_subst'
14570 double_quote_subst='$double_quote_subst'
14571 delay_variable_subst='$delay_variable_subst'
14572 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14573 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14574 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14575 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14576 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14577 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14578 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14579 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14580 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14581 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14582 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14583 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14584 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14585 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14586 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14587 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14588 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14589 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14590 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14591 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14592 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14593 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14594 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14595 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14596 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14597 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14598 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14599 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14600 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14601 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14602 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14603 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14604 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14605 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14606 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14607 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14608 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14609 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14610 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14611 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14612 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14613 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14614 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14615 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14616 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14617 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14618 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14619 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14620 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14621 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14622 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14623 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14624 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14625 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14626 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14627 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14628 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14630 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"`'
14631 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14632 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14633 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14634 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14635 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14636 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14637 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14638 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14639 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14640 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14641 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14642 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14643 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14644 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14645 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14646 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14647 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14648 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14649 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14650 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14651 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14652 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14653 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14654 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14655 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14656 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14657 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14658 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14659 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14660 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14661 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14662 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14663 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14664 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14665 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14666 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14667 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14668 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14669 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14670 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14671 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14672 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14673 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14674 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14675 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14676 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14677 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14678 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14679 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14680 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14681 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14682 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14683 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14684 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14685 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14686 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14687 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14688 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14689 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14690 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14691 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14692 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14693 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14694 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14695 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14696 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14697 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14698 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14699 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14700 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14701 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14702 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14703 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14704 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14705 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14706 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14707
14708 LTCC='$LTCC'
14709 LTCFLAGS='$LTCFLAGS'
14710 compiler='$compiler_DEFAULT'
14711
14712 # A function that is used when there is no print builtin or printf.
14713 func_fallback_echo ()
14714 {
14715 eval 'cat <<_LTECHO_EOF
14716 \$1
14717 _LTECHO_EOF'
14718 }
14719
14720 # Quote evaled strings.
14721 for var in SHELL \
14722 ECHO \
14723 PATH_SEPARATOR \
14724 SED \
14725 GREP \
14726 EGREP \
14727 FGREP \
14728 LD \
14729 NM \
14730 LN_S \
14731 lt_SP2NL \
14732 lt_NL2SP \
14733 reload_flag \
14734 OBJDUMP \
14735 deplibs_check_method \
14736 file_magic_cmd \
14737 file_magic_glob \
14738 want_nocaseglob \
14739 DLLTOOL \
14740 sharedlib_from_linklib_cmd \
14741 AR \
14742 AR_FLAGS \
14743 archiver_list_spec \
14744 STRIP \
14745 RANLIB \
14746 CC \
14747 CFLAGS \
14748 compiler \
14749 lt_cv_sys_global_symbol_pipe \
14750 lt_cv_sys_global_symbol_to_cdecl \
14751 lt_cv_sys_global_symbol_to_import \
14752 lt_cv_sys_global_symbol_to_c_name_address \
14753 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14754 lt_cv_nm_interface \
14755 nm_file_list_spec \
14756 lt_cv_truncate_bin \
14757 lt_prog_compiler_no_builtin_flag \
14758 lt_prog_compiler_pic \
14759 lt_prog_compiler_wl \
14760 lt_prog_compiler_static \
14761 lt_cv_prog_compiler_c_o \
14762 need_locks \
14763 MANIFEST_TOOL \
14764 DSYMUTIL \
14765 NMEDIT \
14766 LIPO \
14767 OTOOL \
14768 OTOOL64 \
14769 shrext_cmds \
14770 export_dynamic_flag_spec \
14771 whole_archive_flag_spec \
14772 compiler_needs_object \
14773 with_gnu_ld \
14774 allow_undefined_flag \
14775 no_undefined_flag \
14776 hardcode_libdir_flag_spec \
14777 hardcode_libdir_separator \
14778 exclude_expsyms \
14779 include_expsyms \
14780 file_list_spec \
14781 variables_saved_for_relink \
14782 libname_spec \
14783 library_names_spec \
14784 soname_spec \
14785 install_override_mode \
14786 finish_eval \
14787 old_striplib \
14788 striplib; do
14789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14790 *[\\\\\\\`\\"\\\$]*)
14791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14792 ;;
14793 *)
14794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14795 ;;
14796 esac
14797 done
14798
14799 # Double-quote double-evaled strings.
14800 for var in reload_cmds \
14801 old_postinstall_cmds \
14802 old_postuninstall_cmds \
14803 old_archive_cmds \
14804 extract_expsyms_cmds \
14805 old_archive_from_new_cmds \
14806 old_archive_from_expsyms_cmds \
14807 archive_cmds \
14808 archive_expsym_cmds \
14809 module_cmds \
14810 module_expsym_cmds \
14811 export_symbols_cmds \
14812 prelink_cmds \
14813 postlink_cmds \
14814 postinstall_cmds \
14815 postuninstall_cmds \
14816 finish_cmds \
14817 sys_lib_search_path_spec \
14818 configure_time_dlsearch_path \
14819 configure_time_lt_sys_library_path; do
14820 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14821 *[\\\\\\\`\\"\\\$]*)
14822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14823 ;;
14824 *)
14825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14826 ;;
14827 esac
14828 done
14829
14830 ac_aux_dir='$ac_aux_dir'
14831
14832 # See if we are running on zsh, and set the options that allow our
14833 # commands through without removal of \ escapes INIT.
14834 if test -n "\${ZSH_VERSION+set}"; then
14835 setopt NO_GLOB_SUBST
14836 fi
14837
14838
14839 PACKAGE='$PACKAGE'
14840 VERSION='$VERSION'
14841 RM='$RM'
14842 ofile='$ofile'
14843
14844
14845
14846
14847 _ACEOF
14848
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14850
14851 # Handling of arguments.
14852 for ac_config_target in $ac_config_targets
14853 do
14854 case $ac_config_target in
14855 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14856 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14857 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14858 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14859 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
14860 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
14861 "mialm/Makefile") CONFIG_FILES="$CONFIG_FILES mialm/Makefile" ;;
14862 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14863 "mialm.pc") CONFIG_FILES="$CONFIG_FILES mialm.pc" ;;
14864
14865 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14866 esac
14867 done
14868
14869
14870 # If the user did not use the arguments to specify the items to instantiate,
14871 # then the envvar interface is used. Set only those that are not.
14872 # We use the long form for the default assignment because of an extremely
14873 # bizarre bug on SunOS 4.1.3.
14874 if $ac_need_defaults; then
14875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14878 fi
14879
14880 # Have a temporary directory for convenience. Make it in the build tree
14881 # simply because there is no reason against having it here, and in addition,
14882 # creating and moving files from /tmp can sometimes cause problems.
14883 # Hook for its removal unless debugging.
14884 # Note that there is a small window in which the directory will not be cleaned:
14885 # after its creation but before its name has been assigned to `$tmp'.
14886 $debug ||
14887 {
14888 tmp= ac_tmp=
14889 trap 'exit_status=$?
14890 : "${ac_tmp:=$tmp}"
14891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14892 ' 0
14893 trap 'as_fn_exit 1' 1 2 13 15
14894 }
14895 # Create a (secure) tmp directory for tmp files.
14896
14897 {
14898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14899 test -d "$tmp"
14900 } ||
14901 {
14902 tmp=./conf$$-$RANDOM
14903 (umask 077 && mkdir "$tmp")
14904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14905 ac_tmp=$tmp
14906
14907 # Set up the scripts for CONFIG_FILES section.
14908 # No need to generate them if there are no CONFIG_FILES.
14909 # This happens for instance with `./config.status config.h'.
14910 if test -n "$CONFIG_FILES"; then
14911
14912
14913 ac_cr=`echo X | tr X '\015'`
14914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14915 # But we know of no other shell where ac_cr would be empty at this
14916 # point, so we can use a bashism as a fallback.
14917 if test "x$ac_cr" = x; then
14918 eval ac_cr=\$\'\\r\'
14919 fi
14920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14922 ac_cs_awk_cr='\\r'
14923 else
14924 ac_cs_awk_cr=$ac_cr
14925 fi
14926
14927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14928 _ACEOF
14929
14930
14931 {
14932 echo "cat >conf$$subs.awk <<_ACEOF" &&
14933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14934 echo "_ACEOF"
14935 } >conf$$subs.sh ||
14936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14938 ac_delim='%!_!# '
14939 for ac_last_try in false false false false false :; do
14940 . ./conf$$subs.sh ||
14941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14942
14943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14944 if test $ac_delim_n = $ac_delim_num; then
14945 break
14946 elif $ac_last_try; then
14947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14948 else
14949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14950 fi
14951 done
14952 rm -f conf$$subs.sh
14953
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14956 _ACEOF
14957 sed -n '
14958 h
14959 s/^/S["/; s/!.*/"]=/
14960 p
14961 g
14962 s/^[^!]*!//
14963 :repl
14964 t repl
14965 s/'"$ac_delim"'$//
14966 t delim
14967 :nl
14968 h
14969 s/\(.\{148\}\)..*/\1/
14970 t more1
14971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14972 p
14973 n
14974 b repl
14975 :more1
14976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14977 p
14978 g
14979 s/.\{148\}//
14980 t nl
14981 :delim
14982 h
14983 s/\(.\{148\}\)..*/\1/
14984 t more2
14985 s/["\\]/\\&/g; s/^/"/; s/$/"/
14986 p
14987 b
14988 :more2
14989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14990 p
14991 g
14992 s/.\{148\}//
14993 t delim
14994 ' <conf$$subs.awk | sed '
14995 /^[^""]/{
14996 N
14997 s/\n//
14998 }
14999 ' >>$CONFIG_STATUS || ac_write_fail=1
15000 rm -f conf$$subs.awk
15001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15002 _ACAWK
15003 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15004 for (key in S) S_is_set[key] = 1
15005 FS = ""
15006
15007 }
15008 {
15009 line = $ 0
15010 nfields = split(line, field, "@")
15011 substed = 0
15012 len = length(field[1])
15013 for (i = 2; i < nfields; i++) {
15014 key = field[i]
15015 keylen = length(key)
15016 if (S_is_set[key]) {
15017 value = S[key]
15018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15019 len += length(value) + length(field[++i])
15020 substed = 1
15021 } else
15022 len += 1 + keylen
15023 }
15024
15025 print line
15026 }
15027
15028 _ACAWK
15029 _ACEOF
15030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15033 else
15034 cat
15035 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15037 _ACEOF
15038
15039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15041 # trailing colons and then remove the whole line if VPATH becomes empty
15042 # (actually we leave an empty line to preserve line numbers).
15043 if test "x$srcdir" = x.; then
15044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15045 h
15046 s///
15047 s/^/:/
15048 s/[ ]*$/:/
15049 s/:\$(srcdir):/:/g
15050 s/:\${srcdir}:/:/g
15051 s/:@srcdir@:/:/g
15052 s/^:*//
15053 s/:*$//
15054 x
15055 s/\(=[ ]*\).*/\1/
15056 G
15057 s/\n//
15058 s/^[^=]*=[ ]*$//
15059 }'
15060 fi
15061
15062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15063 fi # test -n "$CONFIG_FILES"
15064
15065 # Set up the scripts for CONFIG_HEADERS section.
15066 # No need to generate them if there are no CONFIG_HEADERS.
15067 # This happens for instance with `./config.status Makefile'.
15068 if test -n "$CONFIG_HEADERS"; then
15069 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15070 BEGIN {
15071 _ACEOF
15072
15073 # Transform confdefs.h into an awk script `defines.awk', embedded as
15074 # here-document in config.status, that substitutes the proper values into
15075 # config.h.in to produce config.h.
15076
15077 # Create a delimiter string that does not exist in confdefs.h, to ease
15078 # handling of long lines.
15079 ac_delim='%!_!# '
15080 for ac_last_try in false false :; do
15081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15082 if test -z "$ac_tt"; then
15083 break
15084 elif $ac_last_try; then
15085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15086 else
15087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15088 fi
15089 done
15090
15091 # For the awk script, D is an array of macro values keyed by name,
15092 # likewise P contains macro parameters if any. Preserve backslash
15093 # newline sequences.
15094
15095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15096 sed -n '
15097 s/.\{148\}/&'"$ac_delim"'/g
15098 t rset
15099 :rset
15100 s/^[ ]*#[ ]*define[ ][ ]*/ /
15101 t def
15102 d
15103 :def
15104 s/\\$//
15105 t bsnl
15106 s/["\\]/\\&/g
15107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15108 D["\1"]=" \3"/p
15109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15110 d
15111 :bsnl
15112 s/["\\]/\\&/g
15113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15114 D["\1"]=" \3\\\\\\n"\\/p
15115 t cont
15116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15117 t cont
15118 d
15119 :cont
15120 n
15121 s/.\{148\}/&'"$ac_delim"'/g
15122 t clear
15123 :clear
15124 s/\\$//
15125 t bsnlc
15126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15127 d
15128 :bsnlc
15129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15130 b cont
15131 ' <confdefs.h | sed '
15132 s/'"$ac_delim"'/"\\\
15133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15134
15135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15136 for (key in D) D_is_set[key] = 1
15137 FS = ""
15138 }
15139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15140 line = \$ 0
15141 split(line, arg, " ")
15142 if (arg[1] == "#") {
15143 defundef = arg[2]
15144 mac1 = arg[3]
15145 } else {
15146 defundef = substr(arg[1], 2)
15147 mac1 = arg[2]
15148 }
15149 split(mac1, mac2, "(") #)
15150 macro = mac2[1]
15151 prefix = substr(line, 1, index(line, defundef) - 1)
15152 if (D_is_set[macro]) {
15153 # Preserve the white space surrounding the "#".
15154 print prefix "define", macro P[macro] D[macro]
15155 next
15156 } else {
15157 # Replace #undef with comments. This is necessary, for example,
15158 # in the case of _POSIX_SOURCE, which is predefined and required
15159 # on some systems where configure will not decide to define it.
15160 if (defundef == "undef") {
15161 print "/*", prefix defundef, macro, "*/"
15162 next
15163 }
15164 }
15165 }
15166 { print }
15167 _ACAWK
15168 _ACEOF
15169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15171 fi # test -n "$CONFIG_HEADERS"
15172
15173
15174 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15175 shift
15176 for ac_tag
15177 do
15178 case $ac_tag in
15179 :[FHLC]) ac_mode=$ac_tag; continue;;
15180 esac
15181 case $ac_mode$ac_tag in
15182 :[FHL]*:*);;
15183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15184 :[FH]-) ac_tag=-:-;;
15185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15186 esac
15187 ac_save_IFS=$IFS
15188 IFS=:
15189 set x $ac_tag
15190 IFS=$ac_save_IFS
15191 shift
15192 ac_file=$1
15193 shift
15194
15195 case $ac_mode in
15196 :L) ac_source=$1;;
15197 :[FH])
15198 ac_file_inputs=
15199 for ac_f
15200 do
15201 case $ac_f in
15202 -) ac_f="$ac_tmp/stdin";;
15203 *) # Look for the file first in the build tree, then in the source tree
15204 # (if the path is not absolute). The absolute path cannot be DOS-style,
15205 # because $ac_f cannot contain `:'.
15206 test -f "$ac_f" ||
15207 case $ac_f in
15208 [\\/$]*) false;;
15209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15210 esac ||
15211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15212 esac
15213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15214 as_fn_append ac_file_inputs " '$ac_f'"
15215 done
15216
15217 # Let's still pretend it is `configure' which instantiates (i.e., don't
15218 # use $as_me), people would be surprised to read:
15219 # /* config.h. Generated by config.status. */
15220 configure_input='Generated from '`
15221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15222 `' by configure.'
15223 if test x"$ac_file" != x-; then
15224 configure_input="$ac_file. $configure_input"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15226 $as_echo "$as_me: creating $ac_file" >&6;}
15227 fi
15228 # Neutralize special characters interpreted by sed in replacement strings.
15229 case $configure_input in #(
15230 *\&* | *\|* | *\\* )
15231 ac_sed_conf_input=`$as_echo "$configure_input" |
15232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15233 *) ac_sed_conf_input=$configure_input;;
15234 esac
15235
15236 case $ac_tag in
15237 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15239 esac
15240 ;;
15241 esac
15242
15243 ac_dir=`$as_dirname -- "$ac_file" ||
15244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15245 X"$ac_file" : 'X\(//\)[^/]' \| \
15246 X"$ac_file" : 'X\(//\)$' \| \
15247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15248 $as_echo X"$ac_file" |
15249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15250 s//\1/
15251 q
15252 }
15253 /^X\(\/\/\)[^/].*/{
15254 s//\1/
15255 q
15256 }
15257 /^X\(\/\/\)$/{
15258 s//\1/
15259 q
15260 }
15261 /^X\(\/\).*/{
15262 s//\1/
15263 q
15264 }
15265 s/.*/./; q'`
15266 as_dir="$ac_dir"; as_fn_mkdir_p
15267 ac_builddir=.
15268
15269 case "$ac_dir" in
15270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15271 *)
15272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15273 # A ".." for each directory in $ac_dir_suffix.
15274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15275 case $ac_top_builddir_sub in
15276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15278 esac ;;
15279 esac
15280 ac_abs_top_builddir=$ac_pwd
15281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15282 # for backward compatibility:
15283 ac_top_builddir=$ac_top_build_prefix
15284
15285 case $srcdir in
15286 .) # We are building in place.
15287 ac_srcdir=.
15288 ac_top_srcdir=$ac_top_builddir_sub
15289 ac_abs_top_srcdir=$ac_pwd ;;
15290 [\\/]* | ?:[\\/]* ) # Absolute name.
15291 ac_srcdir=$srcdir$ac_dir_suffix;
15292 ac_top_srcdir=$srcdir
15293 ac_abs_top_srcdir=$srcdir ;;
15294 *) # Relative name.
15295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15296 ac_top_srcdir=$ac_top_build_prefix$srcdir
15297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15298 esac
15299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15300
15301
15302 case $ac_mode in
15303 :F)
15304 #
15305 # CONFIG_FILE
15306 #
15307
15308 case $INSTALL in
15309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15311 esac
15312 ac_MKDIR_P=$MKDIR_P
15313 case $MKDIR_P in
15314 [\\/$]* | ?:[\\/]* ) ;;
15315 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15316 esac
15317 _ACEOF
15318
15319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15320 # If the template does not know about datarootdir, expand it.
15321 # FIXME: This hack should be removed a few years after 2.60.
15322 ac_datarootdir_hack=; ac_datarootdir_seen=
15323 ac_sed_dataroot='
15324 /datarootdir/ {
15325 p
15326 q
15327 }
15328 /@datadir@/p
15329 /@docdir@/p
15330 /@infodir@/p
15331 /@localedir@/p
15332 /@mandir@/p'
15333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15334 *datarootdir*) ac_datarootdir_seen=yes;;
15335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15337 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15340 ac_datarootdir_hack='
15341 s&@datadir@&$datadir&g
15342 s&@docdir@&$docdir&g
15343 s&@infodir@&$infodir&g
15344 s&@localedir@&$localedir&g
15345 s&@mandir@&$mandir&g
15346 s&\\\${datarootdir}&$datarootdir&g' ;;
15347 esac
15348 _ACEOF
15349
15350 # Neutralize VPATH when `$srcdir' = `.'.
15351 # Shell code in configure.ac might set extrasub.
15352 # FIXME: do we really want to maintain this feature?
15353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15354 ac_sed_extra="$ac_vpsub
15355 $extrasub
15356 _ACEOF
15357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15358 :t
15359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15360 s|@configure_input@|$ac_sed_conf_input|;t t
15361 s&@top_builddir@&$ac_top_builddir_sub&;t t
15362 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15363 s&@srcdir@&$ac_srcdir&;t t
15364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15365 s&@top_srcdir@&$ac_top_srcdir&;t t
15366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15367 s&@builddir@&$ac_builddir&;t t
15368 s&@abs_builddir@&$ac_abs_builddir&;t t
15369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15370 s&@INSTALL@&$ac_INSTALL&;t t
15371 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15372 $ac_datarootdir_hack
15373 "
15374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15376
15377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15380 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15382 which seems to be undefined. Please make sure it is defined" >&5
15383 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15384 which seems to be undefined. Please make sure it is defined" >&2;}
15385
15386 rm -f "$ac_tmp/stdin"
15387 case $ac_file in
15388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15390 esac \
15391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15392 ;;
15393 :H)
15394 #
15395 # CONFIG_HEADER
15396 #
15397 if test x"$ac_file" != x-; then
15398 {
15399 $as_echo "/* $configure_input */" \
15400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15401 } >"$ac_tmp/config.h" \
15402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15405 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15406 else
15407 rm -f "$ac_file"
15408 mv "$ac_tmp/config.h" "$ac_file" \
15409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15410 fi
15411 else
15412 $as_echo "/* $configure_input */" \
15413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15414 || as_fn_error $? "could not create -" "$LINENO" 5
15415 fi
15416 # Compute "$ac_file"'s index in $config_headers.
15417 _am_arg="$ac_file"
15418 _am_stamp_count=1
15419 for _am_header in $config_headers :; do
15420 case $_am_header in
15421 $_am_arg | $_am_arg:* )
15422 break ;;
15423 * )
15424 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15425 esac
15426 done
15427 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15428 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15429 X"$_am_arg" : 'X\(//\)[^/]' \| \
15430 X"$_am_arg" : 'X\(//\)$' \| \
15431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15432 $as_echo X"$_am_arg" |
15433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15434 s//\1/
15435 q
15436 }
15437 /^X\(\/\/\)[^/].*/{
15438 s//\1/
15439 q
15440 }
15441 /^X\(\/\/\)$/{
15442 s//\1/
15443 q
15444 }
15445 /^X\(\/\).*/{
15446 s//\1/
15447 q
15448 }
15449 s/.*/./; q'`/stamp-h$_am_stamp_count
15450 ;;
15451
15452 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15453 $as_echo "$as_me: executing $ac_file commands" >&6;}
15454 ;;
15455 esac
15456
15457
15458 case $ac_file$ac_mode in
15459 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15460 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15461 # are listed without --file. Let's play safe and only enable the eval
15462 # if we detect the quoting.
15463 case $CONFIG_FILES in
15464 *\'*) eval set x "$CONFIG_FILES" ;;
15465 *) set x $CONFIG_FILES ;;
15466 esac
15467 shift
15468 for mf
15469 do
15470 # Strip MF so we end up with the name of the file.
15471 mf=`echo "$mf" | sed -e 's/:.*$//'`
15472 # Check whether this is an Automake generated Makefile or not.
15473 # We used to match only the files named `Makefile.in', but
15474 # some people rename them; so instead we look at the file content.
15475 # Grep'ing the first line is not enough: some people post-process
15476 # each Makefile.in and add a new line on top of each file to say so.
15477 # Grep'ing the whole file is not good either: AIX grep has a line
15478 # limit of 2048, but all sed's we know have understand at least 4000.
15479 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15480 dirpart=`$as_dirname -- "$mf" ||
15481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15482 X"$mf" : 'X\(//\)[^/]' \| \
15483 X"$mf" : 'X\(//\)$' \| \
15484 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15485 $as_echo X"$mf" |
15486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15487 s//\1/
15488 q
15489 }
15490 /^X\(\/\/\)[^/].*/{
15491 s//\1/
15492 q
15493 }
15494 /^X\(\/\/\)$/{
15495 s//\1/
15496 q
15497 }
15498 /^X\(\/\).*/{
15499 s//\1/
15500 q
15501 }
15502 s/.*/./; q'`
15503 else
15504 continue
15505 fi
15506 # Extract the definition of DEPDIR, am__include, and am__quote
15507 # from the Makefile without running `make'.
15508 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15509 test -z "$DEPDIR" && continue
15510 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15511 test -z "am__include" && continue
15512 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15513 # When using ansi2knr, U may be empty or an underscore; expand it
15514 U=`sed -n 's/^U = //p' < "$mf"`
15515 # Find all dependency output files, they are included files with
15516 # $(DEPDIR) in their names. We invoke sed twice because it is the
15517 # simplest approach to changing $(DEPDIR) to its actual value in the
15518 # expansion.
15519 for file in `sed -n "
15520 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15521 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15522 # Make sure the directory exists.
15523 test -f "$dirpart/$file" && continue
15524 fdir=`$as_dirname -- "$file" ||
15525 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15526 X"$file" : 'X\(//\)[^/]' \| \
15527 X"$file" : 'X\(//\)$' \| \
15528 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15529 $as_echo X"$file" |
15530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15531 s//\1/
15532 q
15533 }
15534 /^X\(\/\/\)[^/].*/{
15535 s//\1/
15536 q
15537 }
15538 /^X\(\/\/\)$/{
15539 s//\1/
15540 q
15541 }
15542 /^X\(\/\).*/{
15543 s//\1/
15544 q
15545 }
15546 s/.*/./; q'`
15547 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15548 # echo "creating $dirpart/$file"
15549 echo '# dummy' > "$dirpart/$file"
15550 done
15551 done
15552 }
15553 ;;
15554 "libtool":C)
15555
15556 # See if we are running on zsh, and set the options that allow our
15557 # commands through without removal of \ escapes.
15558 if test -n "${ZSH_VERSION+set}"; then
15559 setopt NO_GLOB_SUBST
15560 fi
15561
15562 cfgfile=${ofile}T
15563 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15564 $RM "$cfgfile"
15565
15566 cat <<_LT_EOF >> "$cfgfile"
15567 #! $SHELL
15568 # Generated automatically by $as_me ($PACKAGE) $VERSION
15569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15570 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15571
15572 # Provide generalized library-building support services.
15573 # Written by Gordon Matzigkeit, 1996
15574
15575 # Copyright (C) 2014 Free Software Foundation, Inc.
15576 # This is free software; see the source for copying conditions. There is NO
15577 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15578
15579 # GNU Libtool is free software; you can redistribute it and/or modify
15580 # it under the terms of the GNU General Public License as published by
15581 # the Free Software Foundation; either version 2 of of the License, or
15582 # (at your option) any later version.
15583 #
15584 # As a special exception to the GNU General Public License, if you
15585 # distribute this file as part of a program or library that is built
15586 # using GNU Libtool, you may include this file under the same
15587 # distribution terms that you use for the rest of that program.
15588 #
15589 # GNU Libtool is distributed in the hope that it will be useful, but
15590 # WITHOUT ANY WARRANTY; without even the implied warranty of
15591 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15592 # GNU General Public License for more details.
15593 #
15594 # You should have received a copy of the GNU General Public License
15595 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15596
15597
15598 # The names of the tagged configurations supported by this script.
15599 available_tags=''
15600
15601 # Configured defaults for sys_lib_dlsearch_path munging.
15602 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15603
15604 # ### BEGIN LIBTOOL CONFIG
15605
15606 # Which release of libtool.m4 was used?
15607 macro_version=$macro_version
15608 macro_revision=$macro_revision
15609
15610 # Whether or not to build shared libraries.
15611 build_libtool_libs=$enable_shared
15612
15613 # Whether or not to build static libraries.
15614 build_old_libs=$enable_static
15615
15616 # What type of objects to build.
15617 pic_mode=$pic_mode
15618
15619 # Whether or not to optimize for fast installation.
15620 fast_install=$enable_fast_install
15621
15622 # Shared archive member basename,for filename based shared library versioning on AIX.
15623 shared_archive_member_spec=$shared_archive_member_spec
15624
15625 # Shell to use when invoking shell scripts.
15626 SHELL=$lt_SHELL
15627
15628 # An echo program that protects backslashes.
15629 ECHO=$lt_ECHO
15630
15631 # The PATH separator for the build system.
15632 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15633
15634 # The host system.
15635 host_alias=$host_alias
15636 host=$host
15637 host_os=$host_os
15638
15639 # The build system.
15640 build_alias=$build_alias
15641 build=$build
15642 build_os=$build_os
15643
15644 # A sed program that does not truncate output.
15645 SED=$lt_SED
15646
15647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15648 Xsed="\$SED -e 1s/^X//"
15649
15650 # A grep program that handles long lines.
15651 GREP=$lt_GREP
15652
15653 # An ERE matcher.
15654 EGREP=$lt_EGREP
15655
15656 # A literal string matcher.
15657 FGREP=$lt_FGREP
15658
15659 # A BSD- or MS-compatible name lister.
15660 NM=$lt_NM
15661
15662 # Whether we need soft or hard links.
15663 LN_S=$lt_LN_S
15664
15665 # What is the maximum length of a command?
15666 max_cmd_len=$max_cmd_len
15667
15668 # Object file suffix (normally "o").
15669 objext=$ac_objext
15670
15671 # Executable file suffix (normally "").
15672 exeext=$exeext
15673
15674 # whether the shell understands "unset".
15675 lt_unset=$lt_unset
15676
15677 # turn spaces into newlines.
15678 SP2NL=$lt_lt_SP2NL
15679
15680 # turn newlines into spaces.
15681 NL2SP=$lt_lt_NL2SP
15682
15683 # convert \$build file names to \$host format.
15684 to_host_file_cmd=$lt_cv_to_host_file_cmd
15685
15686 # convert \$build files to toolchain format.
15687 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15688
15689 # An object symbol dumper.
15690 OBJDUMP=$lt_OBJDUMP
15691
15692 # Method to check whether dependent libraries are shared objects.
15693 deplibs_check_method=$lt_deplibs_check_method
15694
15695 # Command to use when deplibs_check_method = "file_magic".
15696 file_magic_cmd=$lt_file_magic_cmd
15697
15698 # How to find potential files when deplibs_check_method = "file_magic".
15699 file_magic_glob=$lt_file_magic_glob
15700
15701 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15702 want_nocaseglob=$lt_want_nocaseglob
15703
15704 # DLL creation program.
15705 DLLTOOL=$lt_DLLTOOL
15706
15707 # Command to associate shared and link libraries.
15708 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15709
15710 # The archiver.
15711 AR=$lt_AR
15712
15713 # Flags to create an archive.
15714 AR_FLAGS=$lt_AR_FLAGS
15715
15716 # How to feed a file listing to the archiver.
15717 archiver_list_spec=$lt_archiver_list_spec
15718
15719 # A symbol stripping program.
15720 STRIP=$lt_STRIP
15721
15722 # Commands used to install an old-style archive.
15723 RANLIB=$lt_RANLIB
15724 old_postinstall_cmds=$lt_old_postinstall_cmds
15725 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15726
15727 # Whether to use a lock for old archive extraction.
15728 lock_old_archive_extraction=$lock_old_archive_extraction
15729
15730 # A C compiler.
15731 LTCC=$lt_CC
15732
15733 # LTCC compiler flags.
15734 LTCFLAGS=$lt_CFLAGS
15735
15736 # Take the output of nm and produce a listing of raw symbols and C names.
15737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15738
15739 # Transform the output of nm in a proper C declaration.
15740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15741
15742 # Transform the output of nm into a list of symbols to manually relocate.
15743 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15744
15745 # Transform the output of nm in a C name address pair.
15746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15747
15748 # Transform the output of nm in a C name address pair when lib prefix is needed.
15749 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15750
15751 # The name lister interface.
15752 nm_interface=$lt_lt_cv_nm_interface
15753
15754 # Specify filename containing input files for \$NM.
15755 nm_file_list_spec=$lt_nm_file_list_spec
15756
15757 # The root where to search for dependent libraries,and where our libraries should be installed.
15758 lt_sysroot=$lt_sysroot
15759
15760 # Command to truncate a binary pipe.
15761 lt_truncate_bin=$lt_lt_cv_truncate_bin
15762
15763 # The name of the directory that contains temporary libtool files.
15764 objdir=$objdir
15765
15766 # Used to examine libraries when file_magic_cmd begins with "file".
15767 MAGIC_CMD=$MAGIC_CMD
15768
15769 # Must we lock files when doing compilation?
15770 need_locks=$lt_need_locks
15771
15772 # Manifest tool.
15773 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15774
15775 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15776 DSYMUTIL=$lt_DSYMUTIL
15777
15778 # Tool to change global to local symbols on Mac OS X.
15779 NMEDIT=$lt_NMEDIT
15780
15781 # Tool to manipulate fat objects and archives on Mac OS X.
15782 LIPO=$lt_LIPO
15783
15784 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15785 OTOOL=$lt_OTOOL
15786
15787 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15788 OTOOL64=$lt_OTOOL64
15789
15790 # Old archive suffix (normally "a").
15791 libext=$libext
15792
15793 # Shared library suffix (normally ".so").
15794 shrext_cmds=$lt_shrext_cmds
15795
15796 # The commands to extract the exported symbol list from a shared archive.
15797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15798
15799 # Variables whose values should be saved in libtool wrapper scripts and
15800 # restored at link time.
15801 variables_saved_for_relink=$lt_variables_saved_for_relink
15802
15803 # Do we need the "lib" prefix for modules?
15804 need_lib_prefix=$need_lib_prefix
15805
15806 # Do we need a version for libraries?
15807 need_version=$need_version
15808
15809 # Library versioning type.
15810 version_type=$version_type
15811
15812 # Shared library runtime path variable.
15813 runpath_var=$runpath_var
15814
15815 # Shared library path variable.
15816 shlibpath_var=$shlibpath_var
15817
15818 # Is shlibpath searched before the hard-coded library search path?
15819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15820
15821 # Format of library name prefix.
15822 libname_spec=$lt_libname_spec
15823
15824 # List of archive names. First name is the real one, the rest are links.
15825 # The last name is the one that the linker finds with -lNAME
15826 library_names_spec=$lt_library_names_spec
15827
15828 # The coded name of the library, if different from the real name.
15829 soname_spec=$lt_soname_spec
15830
15831 # Permission mode override for installation of shared libraries.
15832 install_override_mode=$lt_install_override_mode
15833
15834 # Command to use after installation of a shared archive.
15835 postinstall_cmds=$lt_postinstall_cmds
15836
15837 # Command to use after uninstallation of a shared archive.
15838 postuninstall_cmds=$lt_postuninstall_cmds
15839
15840 # Commands used to finish a libtool library installation in a directory.
15841 finish_cmds=$lt_finish_cmds
15842
15843 # As "finish_cmds", except a single script fragment to be evaled but
15844 # not shown.
15845 finish_eval=$lt_finish_eval
15846
15847 # Whether we should hardcode library paths into libraries.
15848 hardcode_into_libs=$hardcode_into_libs
15849
15850 # Compile-time system search path for libraries.
15851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15852
15853 # Detected run-time system search path for libraries.
15854 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15855
15856 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15857 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15858
15859 # Whether dlopen is supported.
15860 dlopen_support=$enable_dlopen
15861
15862 # Whether dlopen of programs is supported.
15863 dlopen_self=$enable_dlopen_self
15864
15865 # Whether dlopen of statically linked programs is supported.
15866 dlopen_self_static=$enable_dlopen_self_static
15867
15868 # Commands to strip libraries.
15869 old_striplib=$lt_old_striplib
15870 striplib=$lt_striplib
15871
15872
15873 # The linker used to build libraries.
15874 LD=$lt_LD
15875
15876 # How to create reloadable object files.
15877 reload_flag=$lt_reload_flag
15878 reload_cmds=$lt_reload_cmds
15879
15880 # Commands used to build an old-style archive.
15881 old_archive_cmds=$lt_old_archive_cmds
15882
15883 # A language specific compiler.
15884 CC=$lt_compiler
15885
15886 # Is the compiler the GNU compiler?
15887 with_gcc=$GCC
15888
15889 # Compiler flag to turn off builtin functions.
15890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15891
15892 # Additional compiler flags for building library objects.
15893 pic_flag=$lt_lt_prog_compiler_pic
15894
15895 # How to pass a linker flag through the compiler.
15896 wl=$lt_lt_prog_compiler_wl
15897
15898 # Compiler flag to prevent dynamic linking.
15899 link_static_flag=$lt_lt_prog_compiler_static
15900
15901 # Does compiler simultaneously support -c and -o options?
15902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15903
15904 # Whether or not to add -lc for building shared libraries.
15905 build_libtool_need_lc=$archive_cmds_need_lc
15906
15907 # Whether or not to disallow shared libs when runtime libs are static.
15908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15909
15910 # Compiler flag to allow reflexive dlopens.
15911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15912
15913 # Compiler flag to generate shared objects directly from archives.
15914 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15915
15916 # Whether the compiler copes with passing no objects directly.
15917 compiler_needs_object=$lt_compiler_needs_object
15918
15919 # Create an old-style archive from a shared archive.
15920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15921
15922 # Create a temporary old-style archive to link instead of a shared archive.
15923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15924
15925 # Commands used to build a shared archive.
15926 archive_cmds=$lt_archive_cmds
15927 archive_expsym_cmds=$lt_archive_expsym_cmds
15928
15929 # Commands used to build a loadable module if different from building
15930 # a shared archive.
15931 module_cmds=$lt_module_cmds
15932 module_expsym_cmds=$lt_module_expsym_cmds
15933
15934 # Whether we are building with GNU ld or not.
15935 with_gnu_ld=$lt_with_gnu_ld
15936
15937 # Flag that allows shared libraries with undefined symbols to be built.
15938 allow_undefined_flag=$lt_allow_undefined_flag
15939
15940 # Flag that enforces no undefined symbols.
15941 no_undefined_flag=$lt_no_undefined_flag
15942
15943 # Flag to hardcode \$libdir into a binary during linking.
15944 # This must work even if \$libdir does not exist
15945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15946
15947 # Whether we need a single "-rpath" flag with a separated argument.
15948 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15949
15950 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15951 # DIR into the resulting binary.
15952 hardcode_direct=$hardcode_direct
15953
15954 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15955 # DIR into the resulting binary and the resulting library dependency is
15956 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15957 # library is relocated.
15958 hardcode_direct_absolute=$hardcode_direct_absolute
15959
15960 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15961 # into the resulting binary.
15962 hardcode_minus_L=$hardcode_minus_L
15963
15964 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15965 # into the resulting binary.
15966 hardcode_shlibpath_var=$hardcode_shlibpath_var
15967
15968 # Set to "yes" if building a shared library automatically hardcodes DIR
15969 # into the library and all subsequent libraries and executables linked
15970 # against it.
15971 hardcode_automatic=$hardcode_automatic
15972
15973 # Set to yes if linker adds runtime paths of dependent libraries
15974 # to runtime path list.
15975 inherit_rpath=$inherit_rpath
15976
15977 # Whether libtool must link a program against all its dependency libraries.
15978 link_all_deplibs=$link_all_deplibs
15979
15980 # Set to "yes" if exported symbols are required.
15981 always_export_symbols=$always_export_symbols
15982
15983 # The commands to list exported symbols.
15984 export_symbols_cmds=$lt_export_symbols_cmds
15985
15986 # Symbols that should not be listed in the preloaded symbols.
15987 exclude_expsyms=$lt_exclude_expsyms
15988
15989 # Symbols that must always be exported.
15990 include_expsyms=$lt_include_expsyms
15991
15992 # Commands necessary for linking programs (against libraries) with templates.
15993 prelink_cmds=$lt_prelink_cmds
15994
15995 # Commands necessary for finishing linking programs.
15996 postlink_cmds=$lt_postlink_cmds
15997
15998 # Specify filename containing input files.
15999 file_list_spec=$lt_file_list_spec
16000
16001 # How to hardcode a shared library path into an executable.
16002 hardcode_action=$hardcode_action
16003
16004 # ### END LIBTOOL CONFIG
16005
16006 _LT_EOF
16007
16008 cat <<'_LT_EOF' >> "$cfgfile"
16009
16010 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16011
16012 # func_munge_path_list VARIABLE PATH
16013 # -----------------------------------
16014 # VARIABLE is name of variable containing _space_ separated list of
16015 # directories to be munged by the contents of PATH, which is string
16016 # having a format:
16017 # "DIR[:DIR]:"
16018 # string "DIR[ DIR]" will be prepended to VARIABLE
16019 # ":DIR[:DIR]"
16020 # string "DIR[ DIR]" will be appended to VARIABLE
16021 # "DIRP[:DIRP]::[DIRA:]DIRA"
16022 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16023 # "DIRA[ DIRA]" will be appended to VARIABLE
16024 # "DIR[:DIR]"
16025 # VARIABLE will be replaced by "DIR[ DIR]"
16026 func_munge_path_list ()
16027 {
16028 case x$2 in
16029 x)
16030 ;;
16031 *:)
16032 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16033 ;;
16034 x:*)
16035 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16036 ;;
16037 *::*)
16038 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16039 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16040 ;;
16041 *)
16042 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16043 ;;
16044 esac
16045 }
16046
16047
16048 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16049 func_cc_basename ()
16050 {
16051 for cc_temp in $*""; do
16052 case $cc_temp in
16053 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16054 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16055 \-*) ;;
16056 *) break;;
16057 esac
16058 done
16059 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16060 }
16061
16062
16063 # ### END FUNCTIONS SHARED WITH CONFIGURE
16064
16065 _LT_EOF
16066
16067 case $host_os in
16068 aix3*)
16069 cat <<\_LT_EOF >> "$cfgfile"
16070 # AIX sometimes has problems with the GCC collect2 program. For some
16071 # reason, if we set the COLLECT_NAMES environment variable, the problems
16072 # vanish in a puff of smoke.
16073 if test set != "${COLLECT_NAMES+set}"; then
16074 COLLECT_NAMES=
16075 export COLLECT_NAMES
16076 fi
16077 _LT_EOF
16078 ;;
16079 esac
16080
16081
16082 ltmain=$ac_aux_dir/ltmain.sh
16083
16084
16085 # We use sed instead of cat because bash on DJGPP gets confused if
16086 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16087 # text mode, it properly converts lines to CR/LF. This bash problem
16088 # is reportedly fixed, but why not run on old versions too?
16089 sed '$q' "$ltmain" >> "$cfgfile" \
16090 || (rm -f "$cfgfile"; exit 1)
16091
16092 mv -f "$cfgfile" "$ofile" ||
16093 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16094 chmod +x "$ofile"
16095
16096 ;;
16097
16098 esac
16099 done # for ac_tag
16100
16101
16102 as_fn_exit 0
16103 _ACEOF
16104 ac_clean_files=$ac_clean_files_save
16105
16106 test $ac_write_fail = 0 ||
16107 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16108
16109
16110 # configure is writing to config.log, and then calls config.status.
16111 # config.status does its own redirection, appending to config.log.
16112 # Unfortunately, on DOS this fails, as config.log is still kept open
16113 # by configure, so config.status won't be able to write to it; its
16114 # output is simply discarded. So we exec the FD to /dev/null,
16115 # effectively closing config.log, so it can be properly (re)opened and
16116 # appended to by config.status. When coming back to configure, we
16117 # need to make the FD available again.
16118 if test "$no_create" != yes; then
16119 ac_cs_success=:
16120 ac_config_status_args=
16121 test "$silent" = yes &&
16122 ac_config_status_args="$ac_config_status_args --quiet"
16123 exec 5>/dev/null
16124 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16125 exec 5>>config.log
16126 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16127 # would make configure fail if this is the last instruction.
16128 $ac_cs_success || as_fn_exit 1
16129 fi
16130 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16132 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16133 fi
16134