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 gtkatlantic 0.6.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='gtkatlantic'
589 PACKAGE_TARNAME='gtkatlantic'
590 PACKAGE_VERSION='0.6.3'
591 PACKAGE_STRING='gtkatlantic 0.6.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/game.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ICON_DIR
637 GTK_LIBS
638 GTK_CFLAGS
639 PKG_CONFIG_LIBDIR
640 PKG_CONFIG_PATH
641 PKG_CONFIG
642 LT_SYS_LIBRARY_PATH
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 EGREP
671 GREP
672 CPP
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 runstatedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL
755 am__quote'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_silent_rules
760 enable_dependency_tracking
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 with_aix_soname
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 with_icons_path
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP
780 LT_SYS_LIBRARY_PATH
781 PKG_CONFIG
782 PKG_CONFIG_PATH
783 PKG_CONFIG_LIBDIR
784 GTK_CFLAGS
785 GTK_LIBS'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 runstatedir='${localstatedir}/run'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -runstatedir | --runstatedir | --runstatedi | --runstated \
1078 | --runstate | --runstat | --runsta | --runst | --runs \
1079 | --run | --ru | --r)
1080 ac_prev=runstatedir ;;
1081 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1082 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1083 | --run=* | --ru=* | --r=*)
1084 runstatedir=$ac_optarg ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1146
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 ;;
1202
1203 esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1209 fi
1210
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217 fi
1218
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir runstatedir
1224 do
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 done
1239
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1243 build=$build_alias
1244 host=$host_alias
1245 target=$target_alias
1246
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1300 fi
1301 else
1302 ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures gtkatlantic 0.6.3 to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/gtkatlantic]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1391
1392 cat <<\_ACEOF
1393
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of gtkatlantic 0.6.3:";;
1408 esac
1409 cat <<\_ACEOF
1410
1411 Optional Features:
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --enable-dependency-tracking
1418 do not reject slow dependency extractors
1419 --disable-dependency-tracking
1420 speeds up one-time build
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-aix-soname=aix|svr4|both
1433 shared library versioning (aka "SONAME") variant to
1434 provide on AIX, [default=aix].
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1437 compiler's sysroot if not specified).
1438 --with-icons-path=path Complete path where icons will be installed
1439 (/usr/share/icons/hicolor)
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 LT_SYS_LIBRARY_PATH
1451 User-defined run-time library search path.
1452 PKG_CONFIG path to pkg-config utility
1453 PKG_CONFIG_PATH
1454 directories to add to pkg-config's search path
1455 PKG_CONFIG_LIBDIR
1456 path overriding pkg-config's built-in search path
1457 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1458 GTK_LIBS linker flags for GTK, overriding pkg-config
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to the package provider.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 gtkatlantic configure 0.6.3
1527 generated by GNU Autoconf 2.69
1528
1529 Copyright (C) 2012 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_c_try_link LINENO
1579 # -----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_link ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest$ac_exeext
1585 if { { ac_try="$ac_link"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest$ac_exeext && {
1604 test "$cross_compiling" = yes ||
1605 test -x conftest$ac_exeext
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616 # interfere with the next link command; also delete a directory that is
1617 # left behind by Apple's compiler. We do this before executing the actions.
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_link
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696 fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_run
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749 #define $2 innocuous_$2
1750
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1755
1756 #ifdef __STDC__
1757 # include <limits.h>
1758 #else
1759 # include <assert.h>
1760 #endif
1761
1762 #undef $2
1763
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767 #ifdef __cplusplus
1768 extern "C"
1769 #endif
1770 char $2 ();
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1775 choke me
1776 #endif
1777
1778 int
1779 main ()
1780 {
1781 return $2 ();
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"; then :
1787 eval "$3=yes"
1788 else
1789 eval "$3=no"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799 } # ac_fn_c_check_func
1800 cat >config.log <<_ACEOF
1801 This file contains any messages produced by compilers while
1802 running configure, to aid debugging if configure makes a mistake.
1803
1804 It was created by gtkatlantic $as_me 0.6.3, which was
1805 generated by GNU Autoconf 2.69. Invocation command line was
1806
1807 $ $0 $@
1808
1809 _ACEOF
1810 exec 5>>config.log
1811 {
1812 cat <<_ASUNAME
1813 ## --------- ##
1814 ## Platform. ##
1815 ## --------- ##
1816
1817 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1818 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1819 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1820 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1821 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1822
1823 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1824 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1825
1826 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1827 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1828 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1829 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1830 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1831 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1832 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1833
1834 _ASUNAME
1835
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 $as_echo "PATH: $as_dir"
1842 done
1843 IFS=$as_save_IFS
1844
1845 } >&5
1846
1847 cat >&5 <<_ACEOF
1848
1849
1850 ## ----------- ##
1851 ## Core tests. ##
1852 ## ----------- ##
1853
1854 _ACEOF
1855
1856
1857 # Keep a trace of the command line.
1858 # Strip out --no-create and --no-recursion so they do not pile up.
1859 # Strip out --silent because we don't want to record it for future runs.
1860 # Also quote any args containing shell meta-characters.
1861 # Make two passes to allow for proper duplicate-argument suppression.
1862 ac_configure_args=
1863 ac_configure_args0=
1864 ac_configure_args1=
1865 ac_must_keep_next=false
1866 for ac_pass in 1 2
1867 do
1868 for ac_arg
1869 do
1870 case $ac_arg in
1871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1873 | -silent | --silent | --silen | --sile | --sil)
1874 continue ;;
1875 *\'*)
1876 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 esac
1878 case $ac_pass in
1879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1880 2)
1881 as_fn_append ac_configure_args1 " '$ac_arg'"
1882 if test $ac_must_keep_next = true; then
1883 ac_must_keep_next=false # Got value, back to normal.
1884 else
1885 case $ac_arg in
1886 *=* | --config-cache | -C | -disable-* | --disable-* \
1887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1889 | -with-* | --with-* | -without-* | --without-* | --x)
1890 case "$ac_configure_args0 " in
1891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1892 esac
1893 ;;
1894 -* ) ac_must_keep_next=true ;;
1895 esac
1896 fi
1897 as_fn_append ac_configure_args " '$ac_arg'"
1898 ;;
1899 esac
1900 done
1901 done
1902 { ac_configure_args0=; unset ac_configure_args0;}
1903 { ac_configure_args1=; unset ac_configure_args1;}
1904
1905 # When interrupted or exit'd, cleanup temporary files, and complete
1906 # config.log. We remove comments because anyway the quotes in there
1907 # would cause problems or look ugly.
1908 # WARNING: Use '\'' to represent an apostrophe within the trap.
1909 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1910 trap 'exit_status=$?
1911 # Save into config.log some information that might help in debugging.
1912 {
1913 echo
1914
1915 $as_echo "## ---------------- ##
1916 ## Cache variables. ##
1917 ## ---------------- ##"
1918 echo
1919 # The following way of writing the cache mishandles newlines in values,
1920 (
1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922 eval ac_val=\$$ac_var
1923 case $ac_val in #(
1924 *${as_nl}*)
1925 case $ac_var in #(
1926 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1928 esac
1929 case $ac_var in #(
1930 _ | IFS | as_nl) ;; #(
1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1932 *) { eval $ac_var=; unset $ac_var;} ;;
1933 esac ;;
1934 esac
1935 done
1936 (set) 2>&1 |
1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
1939 sed -n \
1940 "s/'\''/'\''\\\\'\'''\''/g;
1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1942 ;; #(
1943 *)
1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1945 ;;
1946 esac |
1947 sort
1948 )
1949 echo
1950
1951 $as_echo "## ----------------- ##
1952 ## Output variables. ##
1953 ## ----------------- ##"
1954 echo
1955 for ac_var in $ac_subst_vars
1956 do
1957 eval ac_val=\$$ac_var
1958 case $ac_val in
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 esac
1961 $as_echo "$ac_var='\''$ac_val'\''"
1962 done | sort
1963 echo
1964
1965 if test -n "$ac_subst_files"; then
1966 $as_echo "## ------------------- ##
1967 ## File substitutions. ##
1968 ## ------------------- ##"
1969 echo
1970 for ac_var in $ac_subst_files
1971 do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
1977 done | sort
1978 echo
1979 fi
1980
1981 if test -s confdefs.h; then
1982 $as_echo "## ----------- ##
1983 ## confdefs.h. ##
1984 ## ----------- ##"
1985 echo
1986 cat confdefs.h
1987 echo
1988 fi
1989 test "$ac_signal" != 0 &&
1990 $as_echo "$as_me: caught signal $ac_signal"
1991 $as_echo "$as_me: exit $exit_status"
1992 } >&5
1993 rm -f core *.core core.conftest.* &&
1994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1995 exit $exit_status
1996 ' 0
1997 for ac_signal in 1 2 13 15; do
1998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1999 done
2000 ac_signal=0
2001
2002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2003 rm -f -r conftest* confdefs.h
2004
2005 $as_echo "/* confdefs.h */" > confdefs.h
2006
2007 # Predefined preprocessor variables.
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_NAME "$PACKAGE_NAME"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_STRING "$PACKAGE_STRING"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_URL "$PACKAGE_URL"
2031 _ACEOF
2032
2033
2034 # Let the site file select an alternate cache file if it wants to.
2035 # Prefer an explicitly selected file to automatically selected ones.
2036 ac_site_file1=NONE
2037 ac_site_file2=NONE
2038 if test -n "$CONFIG_SITE"; then
2039 # We do not want a PATH search for config.site.
2040 case $CONFIG_SITE in #((
2041 -*) ac_site_file1=./$CONFIG_SITE;;
2042 */*) ac_site_file1=$CONFIG_SITE;;
2043 *) ac_site_file1=./$CONFIG_SITE;;
2044 esac
2045 elif test "x$prefix" != xNONE; then
2046 ac_site_file1=$prefix/share/config.site
2047 ac_site_file2=$prefix/etc/config.site
2048 else
2049 ac_site_file1=$ac_default_prefix/share/config.site
2050 ac_site_file2=$ac_default_prefix/etc/config.site
2051 fi
2052 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2053 do
2054 test "x$ac_site_file" = xNONE && continue
2055 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2058 sed 's/^/| /' "$ac_site_file" >&5
2059 . "$ac_site_file" \
2060 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2062 as_fn_error $? "failed to load site script $ac_site_file
2063 See \`config.log' for more details" "$LINENO" 5; }
2064 fi
2065 done
2066
2067 if test -r "$cache_file"; then
2068 # Some versions of bash will fail to source /dev/null (special files
2069 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2070 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072 $as_echo "$as_me: loading cache $cache_file" >&6;}
2073 case $cache_file in
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
2076 esac
2077 fi
2078 else
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080 $as_echo "$as_me: creating cache $cache_file" >&6;}
2081 >$cache_file
2082 fi
2083
2084 # Check that the precious variables saved in the cache have kept the same
2085 # value.
2086 ac_cache_corrupted=false
2087 for ac_var in $ac_precious_vars; do
2088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089 eval ac_new_set=\$ac_env_${ac_var}_set
2090 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091 eval ac_new_val=\$ac_env_${ac_var}_value
2092 case $ac_old_set,$ac_new_set in
2093 set,)
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2095 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2096 ac_cache_corrupted=: ;;
2097 ,set)
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2101 ,);;
2102 *)
2103 if test "x$ac_old_val" != "x$ac_new_val"; then
2104 # differences in whitespace do not lead to failure.
2105 ac_old_val_w=`echo x $ac_old_val`
2106 ac_new_val_w=`echo x $ac_new_val`
2107 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2109 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2110 ac_cache_corrupted=:
2111 else
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2113 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2114 eval $ac_var=\$ac_old_val
2115 fi
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2117 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2119 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2120 fi;;
2121 esac
2122 # Pass precious variables to config.status.
2123 if test "$ac_new_set" = set; then
2124 case $ac_new_val in
2125 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 *) ac_arg=$ac_var=$ac_new_val ;;
2127 esac
2128 case " $ac_configure_args " in
2129 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2130 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2131 esac
2132 fi
2133 done
2134 if $ac_cache_corrupted; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2138 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2139 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2140 fi
2141 ## -------------------- ##
2142 ## Main body of script. ##
2143 ## -------------------- ##
2144
2145 ac_ext=c
2146 ac_cpp='$CPP $CPPFLAGS'
2147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150
2151
2152
2153 am__api_version='1.16'
2154
2155 ac_aux_dir=
2156 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2157 if test -f "$ac_dir/install-sh"; then
2158 ac_aux_dir=$ac_dir
2159 ac_install_sh="$ac_aux_dir/install-sh -c"
2160 break
2161 elif test -f "$ac_dir/install.sh"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/install.sh -c"
2164 break
2165 elif test -f "$ac_dir/shtool"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/shtool install -c"
2168 break
2169 fi
2170 done
2171 if test -z "$ac_aux_dir"; then
2172 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2173 fi
2174
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2182
2183
2184 # Find a good install program. We prefer a C program (faster),
2185 # so one script is as good as another. But avoid the broken or
2186 # incompatible versions:
2187 # SysV /etc/install, /usr/sbin/install
2188 # SunOS /usr/etc/install
2189 # IRIX /sbin/install
2190 # AIX /bin/install
2191 # AmigaOS /C/install, which installs bootblocks on floppy discs
2192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2195 # OS/2's system install, which has a completely different semantic
2196 # ./install, which can be erroneously created by make from ./install.sh.
2197 # Reject install programs that cannot install multiple files.
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2199 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2200 if test -z "$INSTALL"; then
2201 if ${ac_cv_path_install+:} false; then :
2202 $as_echo_n "(cached) " >&6
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 # Account for people who put trailing slashes in PATH elements.
2210 case $as_dir/ in #((
2211 ./ | .// | /[cC]/* | \
2212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2214 /usr/ucb/* ) ;;
2215 *)
2216 # OSF1 and SCO ODT 3.0 have their own names for install.
2217 # Don't use installbsd from OSF since it installs stuff as root
2218 # by default.
2219 for ac_prog in ginstall scoinst install; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2222 if test $ac_prog = install &&
2223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224 # AIX install. It has an incompatible calling convention.
2225 :
2226 elif test $ac_prog = install &&
2227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228 # program-specific install script used by HP pwplus--don't use.
2229 :
2230 else
2231 rm -rf conftest.one conftest.two conftest.dir
2232 echo one > conftest.one
2233 echo two > conftest.two
2234 mkdir conftest.dir
2235 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2236 test -s conftest.one && test -s conftest.two &&
2237 test -s conftest.dir/conftest.one &&
2238 test -s conftest.dir/conftest.two
2239 then
2240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2241 break 3
2242 fi
2243 fi
2244 fi
2245 done
2246 done
2247 ;;
2248 esac
2249
2250 done
2251 IFS=$as_save_IFS
2252
2253 rm -rf conftest.one conftest.two conftest.dir
2254
2255 fi
2256 if test "${ac_cv_path_install+set}" = set; then
2257 INSTALL=$ac_cv_path_install
2258 else
2259 # As a last resort, use the slow shell script. Don't cache a
2260 # value for INSTALL within a source directory, because that will
2261 # break other packages using the cache if that directory is
2262 # removed, or if the value is a relative name.
2263 INSTALL=$ac_install_sh
2264 fi
2265 fi
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2267 $as_echo "$INSTALL" >&6; }
2268
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2272
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2274
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2276
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2278 $as_echo_n "checking whether build environment is sane... " >&6; }
2279 # Reject unsafe characters in $srcdir or the absolute working directory
2280 # name. Accept space and tab only in the latter.
2281 am_lf='
2282 '
2283 case `pwd` in
2284 *[\\\"\#\$\&\'\`$am_lf]*)
2285 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2286 esac
2287 case $srcdir in
2288 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2289 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2290 esac
2291
2292 # Do 'set' in a subshell so we don't clobber the current shell's
2293 # arguments. Must try -L first in case configure is actually a
2294 # symlink; some systems play weird games with the mod time of symlinks
2295 # (eg FreeBSD returns the mod time of the symlink's containing
2296 # directory).
2297 if (
2298 am_has_slept=no
2299 for am_try in 1 2; do
2300 echo "timestamp, slept: $am_has_slept" > conftest.file
2301 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2302 if test "$*" = "X"; then
2303 # -L didn't work.
2304 set X `ls -t "$srcdir/configure" conftest.file`
2305 fi
2306 if test "$*" != "X $srcdir/configure conftest.file" \
2307 && test "$*" != "X conftest.file $srcdir/configure"; then
2308
2309 # If neither matched, then we have a broken ls. This can happen
2310 # if, for instance, CONFIG_SHELL is bash and it inherits a
2311 # broken ls alias from the environment. This has actually
2312 # happened. Such a system could not be considered "sane".
2313 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2314 alias in your environment" "$LINENO" 5
2315 fi
2316 if test "$2" = conftest.file || test $am_try -eq 2; then
2317 break
2318 fi
2319 # Just in case.
2320 sleep 1
2321 am_has_slept=yes
2322 done
2323 test "$2" = conftest.file
2324 )
2325 then
2326 # Ok.
2327 :
2328 else
2329 as_fn_error $? "newly created file is older than distributed files!
2330 Check your system clock" "$LINENO" 5
2331 fi
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2333 $as_echo "yes" >&6; }
2334 # If we didn't sleep, we still need to ensure time stamps of config.status and
2335 # generated files are strictly newer.
2336 am_sleep_pid=
2337 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2338 ( sleep 1 ) &
2339 am_sleep_pid=$!
2340 fi
2341
2342 rm -f conftest.file
2343
2344 test "$program_prefix" != NONE &&
2345 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2346 # Use a double $ so make ignores it.
2347 test "$program_suffix" != NONE &&
2348 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349 # Double any \ or $.
2350 # By default was `s,x,x', remove it if useless.
2351 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2353
2354 # Expand $ac_aux_dir to an absolute path.
2355 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2356
2357 if test x"${MISSING+set}" != xset; then
2358 case $am_aux_dir in
2359 *\ * | *\ *)
2360 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2361 *)
2362 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2363 esac
2364 fi
2365 # Use eval to expand $SHELL
2366 if eval "$MISSING --is-lightweight"; then
2367 am_missing_run="$MISSING "
2368 else
2369 am_missing_run=
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2371 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2372 fi
2373
2374 if test x"${install_sh+set}" != xset; then
2375 case $am_aux_dir in
2376 *\ * | *\ *)
2377 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2378 *)
2379 install_sh="\${SHELL} $am_aux_dir/install-sh"
2380 esac
2381 fi
2382
2383 # Installed binaries are usually stripped using 'strip' when the user
2384 # run "make install-strip". However 'strip' might not be the right
2385 # tool to use in cross-compilation environments, therefore Automake
2386 # will honor the 'STRIP' environment variable to overrule this program.
2387 if test "$cross_compiling" != no; then
2388 if test -n "$ac_tool_prefix"; then
2389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2390 set dummy ${ac_tool_prefix}strip; ac_word=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if ${ac_cv_prog_STRIP+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test -n "$STRIP"; then
2397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2409 fi
2410 done
2411 done
2412 IFS=$as_save_IFS
2413
2414 fi
2415 fi
2416 STRIP=$ac_cv_prog_STRIP
2417 if test -n "$STRIP"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2419 $as_echo "$STRIP" >&6; }
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422 $as_echo "no" >&6; }
2423 fi
2424
2425
2426 fi
2427 if test -z "$ac_cv_prog_STRIP"; then
2428 ac_ct_STRIP=$STRIP
2429 # Extract the first word of "strip", so it can be a program name with args.
2430 set dummy strip; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$ac_ct_STRIP"; then
2437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_ac_ct_STRIP="strip"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2457 if test -n "$ac_ct_STRIP"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2459 $as_echo "$ac_ct_STRIP" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465 if test "x$ac_ct_STRIP" = x; then
2466 STRIP=":"
2467 else
2468 case $cross_compiling:$ac_tool_warned in
2469 yes:)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2472 ac_tool_warned=yes ;;
2473 esac
2474 STRIP=$ac_ct_STRIP
2475 fi
2476 else
2477 STRIP="$ac_cv_prog_STRIP"
2478 fi
2479
2480 fi
2481 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2482
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2484 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2485 if test -z "$MKDIR_P"; then
2486 if ${ac_cv_path_mkdir+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_prog in mkdir gmkdir; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2497 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2498 'mkdir (GNU coreutils) '* | \
2499 'mkdir (coreutils) '* | \
2500 'mkdir (fileutils) '4.1*)
2501 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2502 break 3;;
2503 esac
2504 done
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510
2511 test -d ./--version && rmdir ./--version
2512 if test "${ac_cv_path_mkdir+set}" = set; then
2513 MKDIR_P="$ac_cv_path_mkdir -p"
2514 else
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for MKDIR_P within a source directory, because that will
2517 # break other packages using the cache if that directory is
2518 # removed, or if the value is a relative name.
2519 MKDIR_P="$ac_install_sh -d"
2520 fi
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2523 $as_echo "$MKDIR_P" >&6; }
2524
2525 for ac_prog in gawk mawk nawk awk
2526 do
2527 # Extract the first word of "$ac_prog", so it can be a program name with args.
2528 set dummy $ac_prog; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_AWK+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$AWK"; then
2535 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 ac_cv_prog_AWK="$ac_prog"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 AWK=$ac_cv_prog_AWK
2555 if test -n "$AWK"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2557 $as_echo "$AWK" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 test -n "$AWK" && break
2565 done
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2568 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2569 set x ${MAKE-make}
2570 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2571 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 cat >conftest.make <<\_ACEOF
2575 SHELL = /bin/sh
2576 all:
2577 @echo '@@@%%%=$(MAKE)=@@@%%%'
2578 _ACEOF
2579 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2580 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2581 *@@@%%%=?*=@@@%%%*)
2582 eval ac_cv_prog_make_${ac_make}_set=yes;;
2583 *)
2584 eval ac_cv_prog_make_${ac_make}_set=no;;
2585 esac
2586 rm -f conftest.make
2587 fi
2588 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2591 SET_MAKE=
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 SET_MAKE="MAKE=${MAKE-make}"
2596 fi
2597
2598 rm -rf .tst 2>/dev/null
2599 mkdir .tst 2>/dev/null
2600 if test -d .tst; then
2601 am__leading_dot=.
2602 else
2603 am__leading_dot=_
2604 fi
2605 rmdir .tst 2>/dev/null
2606
2607 # Check whether --enable-silent-rules was given.
2608 if test "${enable_silent_rules+set}" = set; then :
2609 enableval=$enable_silent_rules;
2610 fi
2611
2612 case $enable_silent_rules in # (((
2613 yes) AM_DEFAULT_VERBOSITY=0;;
2614 no) AM_DEFAULT_VERBOSITY=1;;
2615 *) AM_DEFAULT_VERBOSITY=1;;
2616 esac
2617 am_make=${MAKE-make}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2619 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2620 if ${am_cv_make_support_nested_variables+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if $as_echo 'TRUE=$(BAR$(V))
2624 BAR0=false
2625 BAR1=true
2626 V=1
2627 am__doit:
2628 @$(TRUE)
2629 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2630 am_cv_make_support_nested_variables=yes
2631 else
2632 am_cv_make_support_nested_variables=no
2633 fi
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2636 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2637 if test $am_cv_make_support_nested_variables = yes; then
2638 AM_V='$(V)'
2639 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2640 else
2641 AM_V=$AM_DEFAULT_VERBOSITY
2642 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2643 fi
2644 AM_BACKSLASH='\'
2645
2646 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2647 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2648 # is not polluted with repeated "-I."
2649 am__isrc=' -I$(srcdir)'
2650 # test to see if srcdir already configured
2651 if test -f $srcdir/config.status; then
2652 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2653 fi
2654 fi
2655
2656 # test whether we have cygpath
2657 if test -z "$CYGPATH_W"; then
2658 if (cygpath --version) >/dev/null 2>/dev/null; then
2659 CYGPATH_W='cygpath -w'
2660 else
2661 CYGPATH_W=echo
2662 fi
2663 fi
2664
2665
2666 # Define the identity of the package.
2667 PACKAGE='gtkatlantic'
2668 VERSION='0.6.3'
2669
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE "$PACKAGE"
2673 _ACEOF
2674
2675
2676 cat >>confdefs.h <<_ACEOF
2677 #define VERSION "$VERSION"
2678 _ACEOF
2679
2680 # Some tools Automake needs.
2681
2682 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2683
2684
2685 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2686
2687
2688 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2689
2690
2691 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2692
2693
2694 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2695
2696 # For better backward compatibility. To be removed once Automake 1.9.x
2697 # dies out for good. For more background, see:
2698 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2699 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2700 mkdir_p='$(MKDIR_P)'
2701
2702 # We need awk for the "check" target (and possibly the TAP driver). The
2703 # system "awk" is bad on some platforms.
2704 # Always define AMTAR for backward compatibility. Yes, it's still used
2705 # in the wild :-( We should find a proper way to deprecate it ...
2706 AMTAR='$${TAR-tar}'
2707
2708
2709 # We'll loop over all known methods to create a tar archive until one works.
2710 _am_tools='gnutar pax cpio none'
2711
2712 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2713
2714
2715
2716
2717
2718
2719 # POSIX will say in a future version that running "rm -f" with no argument
2720 # is OK; and we want to be able to make that assumption in our Makefile
2721 # recipes. So use an aggressive probe to check that the usage we want is
2722 # actually supported "in the wild" to an acceptable degree.
2723 # See automake bug#10828.
2724 # To make any issue more visible, cause the running configure to be aborted
2725 # by default if the 'rm' program in use doesn't match our expectations; the
2726 # user can still override this though.
2727 if rm -f && rm -fr && rm -rf; then : OK; else
2728 cat >&2 <<'END'
2729 Oops!
2730
2731 Your 'rm' program seems unable to run without file operands specified
2732 on the command line, even when the '-f' option is present. This is contrary
2733 to the behaviour of most rm programs out there, and not conforming with
2734 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2735
2736 Please tell [email protected] about your system, including the value
2737 of your $PATH and any error possibly output before this message. This
2738 can help us improve future automake versions.
2739
2740 END
2741 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2742 echo 'Configuration will proceed anyway, since you have set the' >&2
2743 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2744 echo >&2
2745 else
2746 cat >&2 <<'END'
2747 Aborting the configuration process, to ensure you take notice of the issue.
2748
2749 You can download and install GNU coreutils to get an 'rm' implementation
2750 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2751
2752 If you want to complete the configuration process using your problematic
2753 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2754 to "yes", and re-run configure.
2755
2756 END
2757 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2758 fi
2759 fi
2760
2761 ac_config_headers="$ac_config_headers config.h"
2762
2763
2764 DEPDIR="${am__leading_dot}deps"
2765
2766 ac_config_commands="$ac_config_commands depfiles"
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2769 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2770 cat > confinc.mk << 'END'
2771 am__doit:
2772 @echo this is the am__doit target >confinc.out
2773 .PHONY: am__doit
2774 END
2775 am__include="#"
2776 am__quote=
2777 # BSD make does it like this.
2778 echo '.include "confinc.mk" # ignored' > confmf.BSD
2779 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2780 echo 'include confinc.mk # ignored' > confmf.GNU
2781 _am_result=no
2782 for s in GNU BSD; do
2783 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2784 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }
2788 case $?:`cat confinc.out 2>/dev/null` in #(
2789 '0:this is the am__doit target') :
2790 case $s in #(
2791 BSD) :
2792 am__include='.include' am__quote='"' ;; #(
2793 *) :
2794 am__include='include' am__quote='' ;;
2795 esac ;; #(
2796 *) :
2797 ;;
2798 esac
2799 if test "$am__include" != "#"; then
2800 _am_result="yes ($s style)"
2801 break
2802 fi
2803 done
2804 rm -f confinc.* confmf.*
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2806 $as_echo "${_am_result}" >&6; }
2807
2808 # Check whether --enable-dependency-tracking was given.
2809 if test "${enable_dependency_tracking+set}" = set; then :
2810 enableval=$enable_dependency_tracking;
2811 fi
2812
2813 if test "x$enable_dependency_tracking" != xno; then
2814 am_depcomp="$ac_aux_dir/depcomp"
2815 AMDEPBACKSLASH='\'
2816 am__nodep='_no'
2817 fi
2818 if test "x$enable_dependency_tracking" != xno; then
2819 AMDEP_TRUE=
2820 AMDEP_FALSE='#'
2821 else
2822 AMDEP_TRUE='#'
2823 AMDEP_FALSE=
2824 fi
2825
2826
2827 ac_ext=c
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 $as_echo "$CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870 fi
2871 if test -z "$ac_cv_prog_CC"; then
2872 ac_ct_CC=$CC
2873 # Extract the first word of "gcc", so it can be a program name with args.
2874 set dummy gcc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_CC="gcc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901 if test -n "$ac_ct_CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2903 $as_echo "$ac_ct_CC" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909 if test "x$ac_ct_CC" = x; then
2910 CC=""
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 CC=$ac_ct_CC
2919 fi
2920 else
2921 CC="$ac_cv_prog_CC"
2922 fi
2923
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="${ac_tool_prefix}cc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 fi
2965 if test -z "$CC"; then
2966 # Extract the first word of "cc", so it can be a program name with args.
2967 set dummy cc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 ac_prog_rejected=no
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2985 ac_prog_rejected=yes
2986 continue
2987 fi
2988 ac_cv_prog_CC="cc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 if test $ac_prog_rejected = yes; then
2997 # We found a bogon in the path, so make sure we never use it.
2998 set dummy $ac_cv_prog_CC
2999 shift
3000 if test $# != 0; then
3001 # We chose a different compiler from the bogus one.
3002 # However, it has the same basename, so the bogon will be chosen
3003 # first if we set CC to just the basename; use the full file name.
3004 shift
3005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3006 fi
3007 fi
3008 fi
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020 fi
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 for ac_prog in cl.exe
3024 do
3025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 test -n "$CC" && break
3063 done
3064 fi
3065 if test -z "$CC"; then
3066 ac_ct_CC=$CC
3067 for ac_prog in cl.exe
3068 do
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$ac_ct_CC"; then
3077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_ac_ct_CC="$ac_prog"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097 if test -n "$ac_ct_CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099 $as_echo "$ac_ct_CC" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 fi
3104
3105
3106 test -n "$ac_ct_CC" && break
3107 done
3108
3109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3117 esac
3118 CC=$ac_ct_CC
3119 fi
3120 fi
3121
3122 fi
3123
3124
3125 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error $? "no acceptable C compiler found in \$PATH
3128 See \`config.log' for more details" "$LINENO" 5; }
3129
3130 # Provide some information about the compiler.
3131 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3132 set X $ac_compile
3133 ac_compiler=$2
3134 for ac_option in --version -v -V -qversion; do
3135 { { ac_try="$ac_compiler $ac_option >&5"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3143 ac_status=$?
3144 if test -s conftest.err; then
3145 sed '10a\
3146 ... rest of stderr output deleted ...
3147 10q' conftest.err >conftest.er1
3148 cat conftest.er1 >&5
3149 fi
3150 rm -f conftest.er1 conftest.err
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }
3153 done
3154
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3157
3158 int
3159 main ()
3160 {
3161
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 ac_clean_files_save=$ac_clean_files
3167 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3168 # Try to create an executable without -o first, disregard a.out.
3169 # It will help us diagnose broken compilers, and finding out an intuition
3170 # of exeext.
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3172 $as_echo_n "checking whether the C compiler works... " >&6; }
3173 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3174
3175 # The possible output files:
3176 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3177
3178 ac_rmfiles=
3179 for ac_file in $ac_files
3180 do
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3184 esac
3185 done
3186 rm -f $ac_rmfiles
3187
3188 if { { ac_try="$ac_link_default"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link_default") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3201 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3202 # so that the user can short-circuit this test for compilers unknown to
3203 # Autoconf.
3204 for ac_file in $ac_files ''
3205 do
3206 test -f "$ac_file" || continue
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3209 ;;
3210 [ab].out )
3211 # We found the default executable, but exeext='' is most
3212 # certainly right.
3213 break;;
3214 *.* )
3215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3216 then :; else
3217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 fi
3219 # We set ac_cv_exeext here because the later test for it is not
3220 # safe: cross compilers may not add the suffix if given an `-o'
3221 # argument, so we may need to know it at that point already.
3222 # Even if this section looks crufty: it has the advantage of
3223 # actually working.
3224 break;;
3225 * )
3226 break;;
3227 esac
3228 done
3229 test "$ac_cv_exeext" = no && ac_cv_exeext=
3230
3231 else
3232 ac_file=''
3233 fi
3234 if test -z "$ac_file"; then :
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error 77 "C compiler cannot create executables
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3247 fi
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3249 $as_echo_n "checking for C compiler default output file name... " >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3251 $as_echo "$ac_file" >&6; }
3252 ac_exeext=$ac_cv_exeext
3253
3254 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3255 ac_clean_files=$ac_clean_files_save
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3257 $as_echo_n "checking for suffix of executables... " >&6; }
3258 if { { ac_try="$ac_link"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3271 # work properly (i.e., refer to `conftest.exe'), while it won't with
3272 # `rm'.
3273 for ac_file in conftest.exe conftest conftest.*; do
3274 test -f "$ac_file" || continue
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278 break;;
3279 * ) break;;
3280 esac
3281 done
3282 else
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3286 See \`config.log' for more details" "$LINENO" 5; }
3287 fi
3288 rm -f conftest conftest$ac_cv_exeext
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3290 $as_echo "$ac_cv_exeext" >&6; }
3291
3292 rm -f conftest.$ac_ext
3293 EXEEXT=$ac_cv_exeext
3294 ac_exeext=$EXEEXT
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297 #include <stdio.h>
3298 int
3299 main ()
3300 {
3301 FILE *f = fopen ("conftest.out", "w");
3302 return ferror (f) || fclose (f) != 0;
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 ac_clean_files="$ac_clean_files conftest.out"
3309 # Check that the compiler produces executables we can run. If not, either
3310 # the compiler is broken, or we cross compile.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3312 $as_echo_n "checking whether we are cross compiling... " >&6; }
3313 if test "$cross_compiling" != yes; then
3314 { { ac_try="$ac_link"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325 if { ac_try='./conftest$ac_cv_exeext'
3326 { { case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_try") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; }; then
3336 cross_compiling=no
3337 else
3338 if test "$cross_compiling" = maybe; then
3339 cross_compiling=yes
3340 else
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details" "$LINENO" 5; }
3346 fi
3347 fi
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3350 $as_echo "$cross_compiling" >&6; }
3351
3352 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3355 $as_echo_n "checking for suffix of object files... " >&6; }
3356 if ${ac_cv_objext+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361
3362 int
3363 main ()
3364 {
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.o conftest.obj
3371 if { { ac_try="$ac_compile"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_compile") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 for ac_file in conftest.o conftest.obj conftest.*; do
3383 test -f "$ac_file" || continue;
3384 case $ac_file in
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3387 break;;
3388 esac
3389 done
3390 else
3391 $as_echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error $? "cannot compute suffix of object files: cannot compile
3397 See \`config.log' for more details" "$LINENO" 5; }
3398 fi
3399 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402 $as_echo "$ac_cv_objext" >&6; }
3403 OBJEXT=$ac_cv_objext
3404 ac_objext=$OBJEXT
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3406 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3407 if ${ac_cv_c_compiler_gnu+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416 #ifndef __GNUC__
3417 choke me
3418 #endif
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_compiler_gnu=yes
3426 else
3427 ac_compiler_gnu=no
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3435 if test $ac_compiler_gnu = yes; then
3436 GCC=yes
3437 else
3438 GCC=
3439 fi
3440 ac_test_CFLAGS=${CFLAGS+set}
3441 ac_save_CFLAGS=$CFLAGS
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3444 if ${ac_cv_prog_cc_g+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 ac_save_c_werror_flag=$ac_c_werror_flag
3448 ac_c_werror_flag=yes
3449 ac_cv_prog_cc_g=no
3450 CFLAGS="-g"
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453
3454 int
3455 main ()
3456 {
3457
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463 ac_cv_prog_cc_g=yes
3464 else
3465 CFLAGS=""
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468
3469 int
3470 main ()
3471 {
3472
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478
3479 else
3480 ac_c_werror_flag=$ac_save_c_werror_flag
3481 CFLAGS="-g"
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494 ac_cv_prog_cc_g=yes
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3504 $as_echo "$ac_cv_prog_cc_g" >&6; }
3505 if test "$ac_test_CFLAGS" = set; then
3506 CFLAGS=$ac_save_CFLAGS
3507 elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3509 CFLAGS="-g -O2"
3510 else
3511 CFLAGS="-g"
3512 fi
3513 else
3514 if test "$GCC" = yes; then
3515 CFLAGS="-O2"
3516 else
3517 CFLAGS=
3518 fi
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3521 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3522 if ${ac_cv_prog_cc_c89+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 ac_cv_prog_cc_c89=no
3526 ac_save_CC=$CC
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <stdarg.h>
3530 #include <stdio.h>
3531 struct stat;
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3536 char **p;
3537 int i;
3538 {
3539 return p[i];
3540 }
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3542 {
3543 char *s;
3544 va_list v;
3545 va_start (v,p);
3546 s = g (p, va_arg (v,int));
3547 va_end (v);
3548 return s;
3549 }
3550
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3559
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3562 #define FOO(x) 'x'
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3564
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569 int argc;
3570 char **argv;
3571 int
3572 main ()
3573 {
3574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3581 do
3582 CC="$ac_save_CC $ac_arg"
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_c89=$ac_arg
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext
3587 test "x$ac_cv_prog_cc_c89" != "xno" && break
3588 done
3589 rm -f conftest.$ac_ext
3590 CC=$ac_save_CC
3591
3592 fi
3593 # AC_CACHE_VAL
3594 case "x$ac_cv_prog_cc_c89" in
3595 x)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3597 $as_echo "none needed" >&6; } ;;
3598 xno)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3600 $as_echo "unsupported" >&6; } ;;
3601 *)
3602 CC="$CC $ac_cv_prog_cc_c89"
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3604 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3605 esac
3606 if test "x$ac_cv_prog_cc_c89" != xno; then :
3607
3608 fi
3609
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3622 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3623 if ${am_cv_prog_cc_c_o+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 # Make sure it works both with $CC and with simple cc.
3638 # Following AC_PROG_CC_C_O, we do the test twice because some
3639 # compilers refuse to overwrite an existing .o file with -o,
3640 # though they will create one.
3641 am_cv_prog_cc_c_o=yes
3642 for am_i in 1 2; do
3643 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3644 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } \
3648 && test -f conftest2.$ac_objext; then
3649 : OK
3650 else
3651 am_cv_prog_cc_c_o=no
3652 break
3653 fi
3654 done
3655 rm -f core conftest*
3656 unset am_i
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3659 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3660 if test "$am_cv_prog_cc_c_o" != yes; then
3661 # Losing compiler, so override with the script.
3662 # FIXME: It is wrong to rewrite CC.
3663 # But if we don't then we get into trouble of one sort or another.
3664 # A longer-term fix would be to have automake use am__CC in this case,
3665 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3666 CC="$am_aux_dir/compile $CC"
3667 fi
3668 ac_ext=c
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674
3675 depcc="$CC" am_compiler_list=
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3678 $as_echo_n "checking dependency style of $depcc... " >&6; }
3679 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3683 # We make a subdir and do the tests there. Otherwise we can end up
3684 # making bogus files that we don't know about and never remove. For
3685 # instance it was reported that on HP-UX the gcc test will end up
3686 # making a dummy file named 'D' -- because '-MD' means "put the output
3687 # in D".
3688 rm -rf conftest.dir
3689 mkdir conftest.dir
3690 # Copy depcomp to subdir because otherwise we won't find it if we're
3691 # using a relative directory.
3692 cp "$am_depcomp" conftest.dir
3693 cd conftest.dir
3694 # We will build objects and dependencies in a subdirectory because
3695 # it helps to detect inapplicable dependency modes. For instance
3696 # both Tru64's cc and ICC support -MD to output dependencies as a
3697 # side effect of compilation, but ICC will put the dependencies in
3698 # the current directory while Tru64 will put them in the object
3699 # directory.
3700 mkdir sub
3701
3702 am_cv_CC_dependencies_compiler_type=none
3703 if test "$am_compiler_list" = ""; then
3704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3705 fi
3706 am__universal=false
3707 case " $depcc " in #(
3708 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3709 esac
3710
3711 for depmode in $am_compiler_list; do
3712 # Setup a source with many dependencies, because some compilers
3713 # like to wrap large dependency lists on column 80 (with \), and
3714 # we should not choose a depcomp mode which is confused by this.
3715 #
3716 # We need to recreate these files for each test, as the compiler may
3717 # overwrite some of them when testing with obscure command lines.
3718 # This happens at least with the AIX C compiler.
3719 : > sub/conftest.c
3720 for i in 1 2 3 4 5 6; do
3721 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3722 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3723 # Solaris 10 /bin/sh.
3724 echo '/* dummy */' > sub/conftst$i.h
3725 done
3726 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3727
3728 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3729 # mode. It turns out that the SunPro C++ compiler does not properly
3730 # handle '-M -o', and we need to detect this. Also, some Intel
3731 # versions had trouble with output in subdirs.
3732 am__obj=sub/conftest.${OBJEXT-o}
3733 am__minus_obj="-o $am__obj"
3734 case $depmode in
3735 gcc)
3736 # This depmode causes a compiler race in universal mode.
3737 test "$am__universal" = false || continue
3738 ;;
3739 nosideeffect)
3740 # After this tag, mechanisms are not by side-effect, so they'll
3741 # only be used when explicitly requested.
3742 if test "x$enable_dependency_tracking" = xyes; then
3743 continue
3744 else
3745 break
3746 fi
3747 ;;
3748 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3749 # This compiler won't grok '-c -o', but also, the minuso test has
3750 # not run yet. These depmodes are late enough in the game, and
3751 # so weak that their functioning should not be impacted.
3752 am__obj=conftest.${OBJEXT-o}
3753 am__minus_obj=
3754 ;;
3755 none) break ;;
3756 esac
3757 if depmode=$depmode \
3758 source=sub/conftest.c object=$am__obj \
3759 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3760 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3761 >/dev/null 2>conftest.err &&
3762 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3763 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3764 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3765 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3766 # icc doesn't choke on unknown options, it will just issue warnings
3767 # or remarks (even with -Werror). So we grep stderr for any message
3768 # that says an option was ignored or not supported.
3769 # When given -MP, icc 7.0 and 7.1 complain thusly:
3770 # icc: Command line warning: ignoring option '-M'; no argument required
3771 # The diagnosis changed in icc 8.0:
3772 # icc: Command line remark: option '-MP' not supported
3773 if (grep 'ignoring option' conftest.err ||
3774 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3775 am_cv_CC_dependencies_compiler_type=$depmode
3776 break
3777 fi
3778 fi
3779 done
3780
3781 cd ..
3782 rm -rf conftest.dir
3783 else
3784 am_cv_CC_dependencies_compiler_type=none
3785 fi
3786
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3789 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3790 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3791
3792 if
3793 test "x$enable_dependency_tracking" != xno \
3794 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3795 am__fastdepCC_TRUE=
3796 am__fastdepCC_FALSE='#'
3797 else
3798 am__fastdepCC_TRUE='#'
3799 am__fastdepCC_FALSE=
3800 fi
3801
3802
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3805 $as_echo_n "checking for library containing strerror... " >&6; }
3806 if ${ac_cv_search_strerror+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 ac_func_search_save_LIBS=$LIBS
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 /* Override any GCC internal prototype to avoid an error.
3814 Use char because int might match the return type of a GCC
3815 builtin and then its argument prototype would still apply. */
3816 #ifdef __cplusplus
3817 extern "C"
3818 #endif
3819 char strerror ();
3820 int
3821 main ()
3822 {
3823 return strerror ();
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 for ac_lib in '' cposix; do
3829 if test -z "$ac_lib"; then
3830 ac_res="none required"
3831 else
3832 ac_res=-l$ac_lib
3833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3834 fi
3835 if ac_fn_c_try_link "$LINENO"; then :
3836 ac_cv_search_strerror=$ac_res
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext \
3839 conftest$ac_exeext
3840 if ${ac_cv_search_strerror+:} false; then :
3841 break
3842 fi
3843 done
3844 if ${ac_cv_search_strerror+:} false; then :
3845
3846 else
3847 ac_cv_search_strerror=no
3848 fi
3849 rm conftest.$ac_ext
3850 LIBS=$ac_func_search_save_LIBS
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3853 $as_echo "$ac_cv_search_strerror" >&6; }
3854 ac_res=$ac_cv_search_strerror
3855 if test "$ac_res" != no; then :
3856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3857
3858 fi
3859
3860 CFLAGS=$CFLAGS
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CC+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889 done
3890 done
3891 IFS=$as_save_IFS
3892
3893 fi
3894 fi
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 fi
3903
3904
3905 fi
3906 if test -z "$ac_cv_prog_CC"; then
3907 ac_ct_CC=$CC
3908 # Extract the first word of "gcc", so it can be a program name with args.
3909 set dummy gcc; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -n "$ac_ct_CC"; then
3916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_ac_ct_CC="gcc"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3938 $as_echo "$ac_ct_CC" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944 if test "x$ac_ct_CC" = x; then
3945 CC=""
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3952 esac
3953 CC=$ac_ct_CC
3954 fi
3955 else
3956 CC="$ac_cv_prog_CC"
3957 fi
3958
3959 if test -z "$CC"; then
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}cc; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if ${ac_cv_prog_CC+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_CC="${ac_tool_prefix}cc"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982 done
3983 done
3984 IFS=$as_save_IFS
3985
3986 fi
3987 fi
3988 CC=$ac_cv_prog_CC
3989 if test -n "$CC"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3991 $as_echo "$CC" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3995 fi
3996
3997
3998 fi
3999 fi
4000 if test -z "$CC"; then
4001 # Extract the first word of "cc", so it can be a program name with args.
4002 set dummy cc; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if ${ac_cv_prog_CC+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test -n "$CC"; then
4009 ac_cv_prog_CC="$CC" # Let the user override the test.
4010 else
4011 ac_prog_rejected=no
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4020 ac_prog_rejected=yes
4021 continue
4022 fi
4023 ac_cv_prog_CC="cc"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027 done
4028 done
4029 IFS=$as_save_IFS
4030
4031 if test $ac_prog_rejected = yes; then
4032 # We found a bogon in the path, so make sure we never use it.
4033 set dummy $ac_cv_prog_CC
4034 shift
4035 if test $# != 0; then
4036 # We chose a different compiler from the bogus one.
4037 # However, it has the same basename, so the bogon will be chosen
4038 # first if we set CC to just the basename; use the full file name.
4039 shift
4040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4041 fi
4042 fi
4043 fi
4044 fi
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048 $as_echo "$CC" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 fi
4053
4054
4055 fi
4056 if test -z "$CC"; then
4057 if test -n "$ac_tool_prefix"; then
4058 for ac_prog in cl.exe
4059 do
4060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_CC+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$CC"; then
4068 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4080 fi
4081 done
4082 done
4083 IFS=$as_save_IFS
4084
4085 fi
4086 fi
4087 CC=$ac_cv_prog_CC
4088 if test -n "$CC"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4090 $as_echo "$CC" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 fi
4095
4096
4097 test -n "$CC" && break
4098 done
4099 fi
4100 if test -z "$CC"; then
4101 ac_ct_CC=$CC
4102 for ac_prog in cl.exe
4103 do
4104 # Extract the first word of "$ac_prog", so it can be a program name with args.
4105 set dummy $ac_prog; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if test -n "$ac_ct_CC"; then
4112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_CC="$ac_prog"
4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4124 fi
4125 done
4126 done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4132 if test -n "$ac_ct_CC"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4134 $as_echo "$ac_ct_CC" >&6; }
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139
4140
4141 test -n "$ac_ct_CC" && break
4142 done
4143
4144 if test "x$ac_ct_CC" = x; then
4145 CC=""
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4151 ac_tool_warned=yes ;;
4152 esac
4153 CC=$ac_ct_CC
4154 fi
4155 fi
4156
4157 fi
4158
4159
4160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "no acceptable C compiler found in \$PATH
4163 See \`config.log' for more details" "$LINENO" 5; }
4164
4165 # Provide some information about the compiler.
4166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4167 set X $ac_compile
4168 ac_compiler=$2
4169 for ac_option in --version -v -V -qversion; do
4170 { { ac_try="$ac_compiler $ac_option >&5"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4178 ac_status=$?
4179 if test -s conftest.err; then
4180 sed '10a\
4181 ... rest of stderr output deleted ...
4182 10q' conftest.err >conftest.er1
4183 cat conftest.er1 >&5
4184 fi
4185 rm -f conftest.er1 conftest.err
4186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187 test $ac_status = 0; }
4188 done
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4191 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4192 if ${ac_cv_c_compiler_gnu+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197
4198 int
4199 main ()
4200 {
4201 #ifndef __GNUC__
4202 choke me
4203 #endif
4204
4205 ;
4206 return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_compiler_gnu=yes
4211 else
4212 ac_compiler_gnu=no
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4216
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4219 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4220 if test $ac_compiler_gnu = yes; then
4221 GCC=yes
4222 else
4223 GCC=
4224 fi
4225 ac_test_CFLAGS=${CFLAGS+set}
4226 ac_save_CFLAGS=$CFLAGS
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4228 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4229 if ${ac_cv_prog_cc_g+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 ac_save_c_werror_flag=$ac_c_werror_flag
4233 ac_c_werror_flag=yes
4234 ac_cv_prog_cc_g=no
4235 CFLAGS="-g"
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238
4239 int
4240 main ()
4241 {
4242
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_prog_cc_g=yes
4249 else
4250 CFLAGS=""
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253
4254 int
4255 main ()
4256 {
4257
4258 ;
4259 return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263
4264 else
4265 ac_c_werror_flag=$ac_save_c_werror_flag
4266 CFLAGS="-g"
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269
4270 int
4271 main ()
4272 {
4273
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_g=yes
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 ac_c_werror_flag=$ac_save_c_werror_flag
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4289 $as_echo "$ac_cv_prog_cc_g" >&6; }
4290 if test "$ac_test_CFLAGS" = set; then
4291 CFLAGS=$ac_save_CFLAGS
4292 elif test $ac_cv_prog_cc_g = yes; then
4293 if test "$GCC" = yes; then
4294 CFLAGS="-g -O2"
4295 else
4296 CFLAGS="-g"
4297 fi
4298 else
4299 if test "$GCC" = yes; then
4300 CFLAGS="-O2"
4301 else
4302 CFLAGS=
4303 fi
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4306 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4307 if ${ac_cv_prog_cc_c89+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 ac_cv_prog_cc_c89=no
4311 ac_save_CC=$CC
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <stdarg.h>
4315 #include <stdio.h>
4316 struct stat;
4317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4318 struct buf { int x; };
4319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4320 static char *e (p, i)
4321 char **p;
4322 int i;
4323 {
4324 return p[i];
4325 }
4326 static char *f (char * (*g) (char **, int), char **p, ...)
4327 {
4328 char *s;
4329 va_list v;
4330 va_start (v,p);
4331 s = g (p, va_arg (v,int));
4332 va_end (v);
4333 return s;
4334 }
4335
4336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4337 function prototypes and stuff, but not '\xHH' hex character constants.
4338 These don't provoke an error unfortunately, instead are silently treated
4339 as 'x'. The following induces an error, until -std is added to get
4340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4341 array size at least. It's necessary to write '\x00'==0 to get something
4342 that's true only with -std. */
4343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4344
4345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4346 inside strings and character constants. */
4347 #define FOO(x) 'x'
4348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4349
4350 int test (int i, double x);
4351 struct s1 {int (*f) (int a);};
4352 struct s2 {int (*f) (double a);};
4353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4354 int argc;
4355 char **argv;
4356 int
4357 main ()
4358 {
4359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4366 do
4367 CC="$ac_save_CC $ac_arg"
4368 if ac_fn_c_try_compile "$LINENO"; then :
4369 ac_cv_prog_cc_c89=$ac_arg
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext
4372 test "x$ac_cv_prog_cc_c89" != "xno" && break
4373 done
4374 rm -f conftest.$ac_ext
4375 CC=$ac_save_CC
4376
4377 fi
4378 # AC_CACHE_VAL
4379 case "x$ac_cv_prog_cc_c89" in
4380 x)
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4382 $as_echo "none needed" >&6; } ;;
4383 xno)
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4385 $as_echo "unsupported" >&6; } ;;
4386 *)
4387 CC="$CC $ac_cv_prog_cc_c89"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4389 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4390 esac
4391 if test "x$ac_cv_prog_cc_c89" != xno; then :
4392
4393 fi
4394
4395 ac_ext=c
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4407 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4408 if ${am_cv_prog_cc_c_o+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 # Make sure it works both with $CC and with simple cc.
4423 # Following AC_PROG_CC_C_O, we do the test twice because some
4424 # compilers refuse to overwrite an existing .o file with -o,
4425 # though they will create one.
4426 am_cv_prog_cc_c_o=yes
4427 for am_i in 1 2; do
4428 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4429 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } \
4433 && test -f conftest2.$ac_objext; then
4434 : OK
4435 else
4436 am_cv_prog_cc_c_o=no
4437 break
4438 fi
4439 done
4440 rm -f core conftest*
4441 unset am_i
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4444 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4445 if test "$am_cv_prog_cc_c_o" != yes; then
4446 # Losing compiler, so override with the script.
4447 # FIXME: It is wrong to rewrite CC.
4448 # But if we don't then we get into trouble of one sort or another.
4449 # A longer-term fix would be to have automake use am__CC in this case,
4450 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4451 CC="$am_aux_dir/compile $CC"
4452 fi
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458
4459
4460 depcc="$CC" am_compiler_list=
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4463 $as_echo_n "checking dependency style of $depcc... " >&6; }
4464 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4468 # We make a subdir and do the tests there. Otherwise we can end up
4469 # making bogus files that we don't know about and never remove. For
4470 # instance it was reported that on HP-UX the gcc test will end up
4471 # making a dummy file named 'D' -- because '-MD' means "put the output
4472 # in D".
4473 rm -rf conftest.dir
4474 mkdir conftest.dir
4475 # Copy depcomp to subdir because otherwise we won't find it if we're
4476 # using a relative directory.
4477 cp "$am_depcomp" conftest.dir
4478 cd conftest.dir
4479 # We will build objects and dependencies in a subdirectory because
4480 # it helps to detect inapplicable dependency modes. For instance
4481 # both Tru64's cc and ICC support -MD to output dependencies as a
4482 # side effect of compilation, but ICC will put the dependencies in
4483 # the current directory while Tru64 will put them in the object
4484 # directory.
4485 mkdir sub
4486
4487 am_cv_CC_dependencies_compiler_type=none
4488 if test "$am_compiler_list" = ""; then
4489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4490 fi
4491 am__universal=false
4492 case " $depcc " in #(
4493 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4494 esac
4495
4496 for depmode in $am_compiler_list; do
4497 # Setup a source with many dependencies, because some compilers
4498 # like to wrap large dependency lists on column 80 (with \), and
4499 # we should not choose a depcomp mode which is confused by this.
4500 #
4501 # We need to recreate these files for each test, as the compiler may
4502 # overwrite some of them when testing with obscure command lines.
4503 # This happens at least with the AIX C compiler.
4504 : > sub/conftest.c
4505 for i in 1 2 3 4 5 6; do
4506 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4507 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4508 # Solaris 10 /bin/sh.
4509 echo '/* dummy */' > sub/conftst$i.h
4510 done
4511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4512
4513 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4514 # mode. It turns out that the SunPro C++ compiler does not properly
4515 # handle '-M -o', and we need to detect this. Also, some Intel
4516 # versions had trouble with output in subdirs.
4517 am__obj=sub/conftest.${OBJEXT-o}
4518 am__minus_obj="-o $am__obj"
4519 case $depmode in
4520 gcc)
4521 # This depmode causes a compiler race in universal mode.
4522 test "$am__universal" = false || continue
4523 ;;
4524 nosideeffect)
4525 # After this tag, mechanisms are not by side-effect, so they'll
4526 # only be used when explicitly requested.
4527 if test "x$enable_dependency_tracking" = xyes; then
4528 continue
4529 else
4530 break
4531 fi
4532 ;;
4533 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4534 # This compiler won't grok '-c -o', but also, the minuso test has
4535 # not run yet. These depmodes are late enough in the game, and
4536 # so weak that their functioning should not be impacted.
4537 am__obj=conftest.${OBJEXT-o}
4538 am__minus_obj=
4539 ;;
4540 none) break ;;
4541 esac
4542 if depmode=$depmode \
4543 source=sub/conftest.c object=$am__obj \
4544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4545 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4546 >/dev/null 2>conftest.err &&
4547 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4549 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4550 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4551 # icc doesn't choke on unknown options, it will just issue warnings
4552 # or remarks (even with -Werror). So we grep stderr for any message
4553 # that says an option was ignored or not supported.
4554 # When given -MP, icc 7.0 and 7.1 complain thusly:
4555 # icc: Command line warning: ignoring option '-M'; no argument required
4556 # The diagnosis changed in icc 8.0:
4557 # icc: Command line remark: option '-MP' not supported
4558 if (grep 'ignoring option' conftest.err ||
4559 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4560 am_cv_CC_dependencies_compiler_type=$depmode
4561 break
4562 fi
4563 fi
4564 done
4565
4566 cd ..
4567 rm -rf conftest.dir
4568 else
4569 am_cv_CC_dependencies_compiler_type=none
4570 fi
4571
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4574 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4575 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4576
4577 if
4578 test "x$enable_dependency_tracking" != xno \
4579 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4580 am__fastdepCC_TRUE=
4581 am__fastdepCC_FALSE='#'
4582 else
4583 am__fastdepCC_TRUE='#'
4584 am__fastdepCC_FALSE=
4585 fi
4586
4587
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_CC+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$CC"; then
4602 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 CC=$ac_cv_prog_CC
4622 if test -n "$CC"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4624 $as_echo "$CC" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631 fi
4632 if test -z "$ac_cv_prog_CC"; then
4633 ac_ct_CC=$CC
4634 # Extract the first word of "gcc", so it can be a program name with args.
4635 set dummy gcc; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$ac_ct_CC"; then
4642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_CC="gcc"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4662 if test -n "$ac_ct_CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4664 $as_echo "$ac_ct_CC" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670 if test "x$ac_ct_CC" = x; then
4671 CC=""
4672 else
4673 case $cross_compiling:$ac_tool_warned in
4674 yes:)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4678 esac
4679 CC=$ac_ct_CC
4680 fi
4681 else
4682 CC="$ac_cv_prog_CC"
4683 fi
4684
4685 if test -z "$CC"; then
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}cc; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$CC"; then
4695 ac_cv_prog_CC="$CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_CC="${ac_tool_prefix}cc"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 CC=$ac_cv_prog_CC
4715 if test -n "$CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4717 $as_echo "$CC" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724 fi
4725 fi
4726 if test -z "$CC"; then
4727 # Extract the first word of "cc", so it can be a program name with args.
4728 set dummy cc; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_CC+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -n "$CC"; then
4735 ac_cv_prog_CC="$CC" # Let the user override the test.
4736 else
4737 ac_prog_rejected=no
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4746 ac_prog_rejected=yes
4747 continue
4748 fi
4749 ac_cv_prog_CC="cc"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757 if test $ac_prog_rejected = yes; then
4758 # We found a bogon in the path, so make sure we never use it.
4759 set dummy $ac_cv_prog_CC
4760 shift
4761 if test $# != 0; then
4762 # We chose a different compiler from the bogus one.
4763 # However, it has the same basename, so the bogon will be chosen
4764 # first if we set CC to just the basename; use the full file name.
4765 shift
4766 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4767 fi
4768 fi
4769 fi
4770 fi
4771 CC=$ac_cv_prog_CC
4772 if test -n "$CC"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4774 $as_echo "$CC" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780
4781 fi
4782 if test -z "$CC"; then
4783 if test -n "$ac_tool_prefix"; then
4784 for ac_prog in cl.exe
4785 do
4786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_CC+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$CC"; then
4794 ac_cv_prog_CC="$CC" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807 done
4808 done
4809 IFS=$as_save_IFS
4810
4811 fi
4812 fi
4813 CC=$ac_cv_prog_CC
4814 if test -n "$CC"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4816 $as_echo "$CC" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821
4822
4823 test -n "$CC" && break
4824 done
4825 fi
4826 if test -z "$CC"; then
4827 ac_ct_CC=$CC
4828 for ac_prog in cl.exe
4829 do
4830 # Extract the first word of "$ac_prog", so it can be a program name with args.
4831 set dummy $ac_prog; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$ac_ct_CC"; then
4838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847 ac_cv_prog_ac_ct_CC="$ac_prog"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4850 fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4860 $as_echo "$ac_ct_CC" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865
4866
4867 test -n "$ac_ct_CC" && break
4868 done
4869
4870 if test "x$ac_ct_CC" = x; then
4871 CC=""
4872 else
4873 case $cross_compiling:$ac_tool_warned in
4874 yes:)
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877 ac_tool_warned=yes ;;
4878 esac
4879 CC=$ac_ct_CC
4880 fi
4881 fi
4882
4883 fi
4884
4885
4886 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4888 as_fn_error $? "no acceptable C compiler found in \$PATH
4889 See \`config.log' for more details" "$LINENO" 5; }
4890
4891 # Provide some information about the compiler.
4892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4893 set X $ac_compile
4894 ac_compiler=$2
4895 for ac_option in --version -v -V -qversion; do
4896 { { ac_try="$ac_compiler $ac_option >&5"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4902 $as_echo "$ac_try_echo"; } >&5
4903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4904 ac_status=$?
4905 if test -s conftest.err; then
4906 sed '10a\
4907 ... rest of stderr output deleted ...
4908 10q' conftest.err >conftest.er1
4909 cat conftest.er1 >&5
4910 fi
4911 rm -f conftest.er1 conftest.err
4912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }
4914 done
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4917 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4918 if ${ac_cv_c_compiler_gnu+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923
4924 int
4925 main ()
4926 {
4927 #ifndef __GNUC__
4928 choke me
4929 #endif
4930
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 if ac_fn_c_try_compile "$LINENO"; then :
4936 ac_compiler_gnu=yes
4937 else
4938 ac_compiler_gnu=no
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4942
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4945 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4946 if test $ac_compiler_gnu = yes; then
4947 GCC=yes
4948 else
4949 GCC=
4950 fi
4951 ac_test_CFLAGS=${CFLAGS+set}
4952 ac_save_CFLAGS=$CFLAGS
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4954 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4955 if ${ac_cv_prog_cc_g+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 ac_save_c_werror_flag=$ac_c_werror_flag
4959 ac_c_werror_flag=yes
4960 ac_cv_prog_cc_g=no
4961 CFLAGS="-g"
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964
4965 int
4966 main ()
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 ac_cv_prog_cc_g=yes
4975 else
4976 CFLAGS=""
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 int
4981 main ()
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_c_try_compile "$LINENO"; then :
4989
4990 else
4991 ac_c_werror_flag=$ac_save_c_werror_flag
4992 CFLAGS="-g"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 int
4997 main ()
4998 {
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 ac_cv_prog_cc_g=yes
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 ac_c_werror_flag=$ac_save_c_werror_flag
5013 fi
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5015 $as_echo "$ac_cv_prog_cc_g" >&6; }
5016 if test "$ac_test_CFLAGS" = set; then
5017 CFLAGS=$ac_save_CFLAGS
5018 elif test $ac_cv_prog_cc_g = yes; then
5019 if test "$GCC" = yes; then
5020 CFLAGS="-g -O2"
5021 else
5022 CFLAGS="-g"
5023 fi
5024 else
5025 if test "$GCC" = yes; then
5026 CFLAGS="-O2"
5027 else
5028 CFLAGS=
5029 fi
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5032 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5033 if ${ac_cv_prog_cc_c89+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 ac_cv_prog_cc_c89=no
5037 ac_save_CC=$CC
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #include <stdarg.h>
5041 #include <stdio.h>
5042 struct stat;
5043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5044 struct buf { int x; };
5045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5046 static char *e (p, i)
5047 char **p;
5048 int i;
5049 {
5050 return p[i];
5051 }
5052 static char *f (char * (*g) (char **, int), char **p, ...)
5053 {
5054 char *s;
5055 va_list v;
5056 va_start (v,p);
5057 s = g (p, va_arg (v,int));
5058 va_end (v);
5059 return s;
5060 }
5061
5062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5063 function prototypes and stuff, but not '\xHH' hex character constants.
5064 These don't provoke an error unfortunately, instead are silently treated
5065 as 'x'. The following induces an error, until -std is added to get
5066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5067 array size at least. It's necessary to write '\x00'==0 to get something
5068 that's true only with -std. */
5069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5070
5071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5072 inside strings and character constants. */
5073 #define FOO(x) 'x'
5074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5075
5076 int test (int i, double x);
5077 struct s1 {int (*f) (int a);};
5078 struct s2 {int (*f) (double a);};
5079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5080 int argc;
5081 char **argv;
5082 int
5083 main ()
5084 {
5085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5092 do
5093 CC="$ac_save_CC $ac_arg"
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 ac_cv_prog_cc_c89=$ac_arg
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext
5098 test "x$ac_cv_prog_cc_c89" != "xno" && break
5099 done
5100 rm -f conftest.$ac_ext
5101 CC=$ac_save_CC
5102
5103 fi
5104 # AC_CACHE_VAL
5105 case "x$ac_cv_prog_cc_c89" in
5106 x)
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5108 $as_echo "none needed" >&6; } ;;
5109 xno)
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5111 $as_echo "unsupported" >&6; } ;;
5112 *)
5113 CC="$CC $ac_cv_prog_cc_c89"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5116 esac
5117 if test "x$ac_cv_prog_cc_c89" != xno; then :
5118
5119 fi
5120
5121 ac_ext=c
5122 ac_cpp='$CPP $CPPFLAGS'
5123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126
5127 ac_ext=c
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5133 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5134 if ${am_cv_prog_cc_c_o+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139
5140 int
5141 main ()
5142 {
5143
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 # Make sure it works both with $CC and with simple cc.
5149 # Following AC_PROG_CC_C_O, we do the test twice because some
5150 # compilers refuse to overwrite an existing .o file with -o,
5151 # though they will create one.
5152 am_cv_prog_cc_c_o=yes
5153 for am_i in 1 2; do
5154 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5155 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } \
5159 && test -f conftest2.$ac_objext; then
5160 : OK
5161 else
5162 am_cv_prog_cc_c_o=no
5163 break
5164 fi
5165 done
5166 rm -f core conftest*
5167 unset am_i
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5170 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5171 if test "$am_cv_prog_cc_c_o" != yes; then
5172 # Losing compiler, so override with the script.
5173 # FIXME: It is wrong to rewrite CC.
5174 # But if we don't then we get into trouble of one sort or another.
5175 # A longer-term fix would be to have automake use am__CC in this case,
5176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5177 CC="$am_aux_dir/compile $CC"
5178 fi
5179 ac_ext=c
5180 ac_cpp='$CPP $CPPFLAGS'
5181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184
5185
5186 depcc="$CC" am_compiler_list=
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5189 $as_echo_n "checking dependency style of $depcc... " >&6; }
5190 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5194 # We make a subdir and do the tests there. Otherwise we can end up
5195 # making bogus files that we don't know about and never remove. For
5196 # instance it was reported that on HP-UX the gcc test will end up
5197 # making a dummy file named 'D' -- because '-MD' means "put the output
5198 # in D".
5199 rm -rf conftest.dir
5200 mkdir conftest.dir
5201 # Copy depcomp to subdir because otherwise we won't find it if we're
5202 # using a relative directory.
5203 cp "$am_depcomp" conftest.dir
5204 cd conftest.dir
5205 # We will build objects and dependencies in a subdirectory because
5206 # it helps to detect inapplicable dependency modes. For instance
5207 # both Tru64's cc and ICC support -MD to output dependencies as a
5208 # side effect of compilation, but ICC will put the dependencies in
5209 # the current directory while Tru64 will put them in the object
5210 # directory.
5211 mkdir sub
5212
5213 am_cv_CC_dependencies_compiler_type=none
5214 if test "$am_compiler_list" = ""; then
5215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5216 fi
5217 am__universal=false
5218 case " $depcc " in #(
5219 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5220 esac
5221
5222 for depmode in $am_compiler_list; do
5223 # Setup a source with many dependencies, because some compilers
5224 # like to wrap large dependency lists on column 80 (with \), and
5225 # we should not choose a depcomp mode which is confused by this.
5226 #
5227 # We need to recreate these files for each test, as the compiler may
5228 # overwrite some of them when testing with obscure command lines.
5229 # This happens at least with the AIX C compiler.
5230 : > sub/conftest.c
5231 for i in 1 2 3 4 5 6; do
5232 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5233 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5234 # Solaris 10 /bin/sh.
5235 echo '/* dummy */' > sub/conftst$i.h
5236 done
5237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5238
5239 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5240 # mode. It turns out that the SunPro C++ compiler does not properly
5241 # handle '-M -o', and we need to detect this. Also, some Intel
5242 # versions had trouble with output in subdirs.
5243 am__obj=sub/conftest.${OBJEXT-o}
5244 am__minus_obj="-o $am__obj"
5245 case $depmode in
5246 gcc)
5247 # This depmode causes a compiler race in universal mode.
5248 test "$am__universal" = false || continue
5249 ;;
5250 nosideeffect)
5251 # After this tag, mechanisms are not by side-effect, so they'll
5252 # only be used when explicitly requested.
5253 if test "x$enable_dependency_tracking" = xyes; then
5254 continue
5255 else
5256 break
5257 fi
5258 ;;
5259 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5260 # This compiler won't grok '-c -o', but also, the minuso test has
5261 # not run yet. These depmodes are late enough in the game, and
5262 # so weak that their functioning should not be impacted.
5263 am__obj=conftest.${OBJEXT-o}
5264 am__minus_obj=
5265 ;;
5266 none) break ;;
5267 esac
5268 if depmode=$depmode \
5269 source=sub/conftest.c object=$am__obj \
5270 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5271 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5272 >/dev/null 2>conftest.err &&
5273 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5274 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5275 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5276 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5277 # icc doesn't choke on unknown options, it will just issue warnings
5278 # or remarks (even with -Werror). So we grep stderr for any message
5279 # that says an option was ignored or not supported.
5280 # When given -MP, icc 7.0 and 7.1 complain thusly:
5281 # icc: Command line warning: ignoring option '-M'; no argument required
5282 # The diagnosis changed in icc 8.0:
5283 # icc: Command line remark: option '-MP' not supported
5284 if (grep 'ignoring option' conftest.err ||
5285 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5286 am_cv_CC_dependencies_compiler_type=$depmode
5287 break
5288 fi
5289 fi
5290 done
5291
5292 cd ..
5293 rm -rf conftest.dir
5294 else
5295 am_cv_CC_dependencies_compiler_type=none
5296 fi
5297
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5300 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5301 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5302
5303 if
5304 test "x$enable_dependency_tracking" != xno \
5305 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5306 am__fastdepCC_TRUE=
5307 am__fastdepCC_FALSE='#'
5308 else
5309 am__fastdepCC_TRUE='#'
5310 am__fastdepCC_FALSE=
5311 fi
5312
5313
5314 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5315
5316 ac_ext=c
5317 ac_cpp='$CPP $CPPFLAGS'
5318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5322 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5323 # On Suns, sometimes $CPP names a directory.
5324 if test -n "$CPP" && test -d "$CPP"; then
5325 CPP=
5326 fi
5327 if test -z "$CPP"; then
5328 if ${ac_cv_prog_CPP+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 # Double quotes because CPP needs to be expanded
5332 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5333 do
5334 ac_preproc_ok=false
5335 for ac_c_preproc_warn_flag in '' yes
5336 do
5337 # Use a header file that comes with gcc, so configuring glibc
5338 # with a fresh cross-compiler works.
5339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 # <limits.h> exists even on freestanding compilers.
5341 # On the NeXT, cc -E runs the code through the compiler's parser,
5342 # not just through cpp. "Syntax error" is here to catch this case.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #ifdef __STDC__
5346 # include <limits.h>
5347 #else
5348 # include <assert.h>
5349 #endif
5350 Syntax error
5351 _ACEOF
5352 if ac_fn_c_try_cpp "$LINENO"; then :
5353
5354 else
5355 # Broken: fails on valid input.
5356 continue
5357 fi
5358 rm -f conftest.err conftest.i conftest.$ac_ext
5359
5360 # OK, works on sane cases. Now check whether nonexistent headers
5361 # can be detected and how.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <ac_nonexistent.h>
5365 _ACEOF
5366 if ac_fn_c_try_cpp "$LINENO"; then :
5367 # Broken: success on invalid input.
5368 continue
5369 else
5370 # Passes both tests.
5371 ac_preproc_ok=:
5372 break
5373 fi
5374 rm -f conftest.err conftest.i conftest.$ac_ext
5375
5376 done
5377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5378 rm -f conftest.i conftest.err conftest.$ac_ext
5379 if $ac_preproc_ok; then :
5380 break
5381 fi
5382
5383 done
5384 ac_cv_prog_CPP=$CPP
5385
5386 fi
5387 CPP=$ac_cv_prog_CPP
5388 else
5389 ac_cv_prog_CPP=$CPP
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5392 $as_echo "$CPP" >&6; }
5393 ac_preproc_ok=false
5394 for ac_c_preproc_warn_flag in '' yes
5395 do
5396 # Use a header file that comes with gcc, so configuring glibc
5397 # with a fresh cross-compiler works.
5398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 # <limits.h> exists even on freestanding compilers.
5400 # On the NeXT, cc -E runs the code through the compiler's parser,
5401 # not just through cpp. "Syntax error" is here to catch this case.
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #ifdef __STDC__
5405 # include <limits.h>
5406 #else
5407 # include <assert.h>
5408 #endif
5409 Syntax error
5410 _ACEOF
5411 if ac_fn_c_try_cpp "$LINENO"; then :
5412
5413 else
5414 # Broken: fails on valid input.
5415 continue
5416 fi
5417 rm -f conftest.err conftest.i conftest.$ac_ext
5418
5419 # OK, works on sane cases. Now check whether nonexistent headers
5420 # can be detected and how.
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #include <ac_nonexistent.h>
5424 _ACEOF
5425 if ac_fn_c_try_cpp "$LINENO"; then :
5426 # Broken: success on invalid input.
5427 continue
5428 else
5429 # Passes both tests.
5430 ac_preproc_ok=:
5431 break
5432 fi
5433 rm -f conftest.err conftest.i conftest.$ac_ext
5434
5435 done
5436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5437 rm -f conftest.i conftest.err conftest.$ac_ext
5438 if $ac_preproc_ok; then :
5439
5440 else
5441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5443 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5444 See \`config.log' for more details" "$LINENO" 5; }
5445 fi
5446
5447 ac_ext=c
5448 ac_cpp='$CPP $CPPFLAGS'
5449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5455 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5456 if ${ac_cv_path_GREP+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -z "$GREP"; then
5460 ac_path_GREP_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5464 do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_prog in grep ggrep; do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5470 as_fn_executable_p "$ac_path_GREP" || continue
5471 # Check for GNU ac_path_GREP and select it if it is found.
5472 # Check for GNU $ac_path_GREP
5473 case `"$ac_path_GREP" --version 2>&1` in
5474 *GNU*)
5475 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5476 *)
5477 ac_count=0
5478 $as_echo_n 0123456789 >"conftest.in"
5479 while :
5480 do
5481 cat "conftest.in" "conftest.in" >"conftest.tmp"
5482 mv "conftest.tmp" "conftest.in"
5483 cp "conftest.in" "conftest.nl"
5484 $as_echo 'GREP' >> "conftest.nl"
5485 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487 as_fn_arith $ac_count + 1 && ac_count=$as_val
5488 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5489 # Best one so far, save it but keep looking for a better one
5490 ac_cv_path_GREP="$ac_path_GREP"
5491 ac_path_GREP_max=$ac_count
5492 fi
5493 # 10*(2^10) chars as input seems more than enough
5494 test $ac_count -gt 10 && break
5495 done
5496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5497 esac
5498
5499 $ac_path_GREP_found && break 3
5500 done
5501 done
5502 done
5503 IFS=$as_save_IFS
5504 if test -z "$ac_cv_path_GREP"; then
5505 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5506 fi
5507 else
5508 ac_cv_path_GREP=$GREP
5509 fi
5510
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5513 $as_echo "$ac_cv_path_GREP" >&6; }
5514 GREP="$ac_cv_path_GREP"
5515
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5518 $as_echo_n "checking for egrep... " >&6; }
5519 if ${ac_cv_path_EGREP+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5523 then ac_cv_path_EGREP="$GREP -E"
5524 else
5525 if test -z "$EGREP"; then
5526 ac_path_EGREP_found=false
5527 # Loop through the user's path and test for each of PROGNAME-LIST
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_prog in egrep; do
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5536 as_fn_executable_p "$ac_path_EGREP" || continue
5537 # Check for GNU ac_path_EGREP and select it if it is found.
5538 # Check for GNU $ac_path_EGREP
5539 case `"$ac_path_EGREP" --version 2>&1` in
5540 *GNU*)
5541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5542 *)
5543 ac_count=0
5544 $as_echo_n 0123456789 >"conftest.in"
5545 while :
5546 do
5547 cat "conftest.in" "conftest.in" >"conftest.tmp"
5548 mv "conftest.tmp" "conftest.in"
5549 cp "conftest.in" "conftest.nl"
5550 $as_echo 'EGREP' >> "conftest.nl"
5551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5553 as_fn_arith $ac_count + 1 && ac_count=$as_val
5554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5555 # Best one so far, save it but keep looking for a better one
5556 ac_cv_path_EGREP="$ac_path_EGREP"
5557 ac_path_EGREP_max=$ac_count
5558 fi
5559 # 10*(2^10) chars as input seems more than enough
5560 test $ac_count -gt 10 && break
5561 done
5562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5563 esac
5564
5565 $ac_path_EGREP_found && break 3
5566 done
5567 done
5568 done
5569 IFS=$as_save_IFS
5570 if test -z "$ac_cv_path_EGREP"; then
5571 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5572 fi
5573 else
5574 ac_cv_path_EGREP=$EGREP
5575 fi
5576
5577 fi
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5580 $as_echo "$ac_cv_path_EGREP" >&6; }
5581 EGREP="$ac_cv_path_EGREP"
5582
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5585 $as_echo_n "checking for ANSI C header files... " >&6; }
5586 if ${ac_cv_header_stdc+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #include <stdlib.h>
5592 #include <stdarg.h>
5593 #include <string.h>
5594 #include <float.h>
5595
5596 int
5597 main ()
5598 {
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_cv_header_stdc=yes
5606 else
5607 ac_cv_header_stdc=no
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610
5611 if test $ac_cv_header_stdc = yes; then
5612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <string.h>
5616
5617 _ACEOF
5618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5619 $EGREP "memchr" >/dev/null 2>&1; then :
5620
5621 else
5622 ac_cv_header_stdc=no
5623 fi
5624 rm -f conftest*
5625
5626 fi
5627
5628 if test $ac_cv_header_stdc = yes; then
5629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <stdlib.h>
5633
5634 _ACEOF
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "free" >/dev/null 2>&1; then :
5637
5638 else
5639 ac_cv_header_stdc=no
5640 fi
5641 rm -f conftest*
5642
5643 fi
5644
5645 if test $ac_cv_header_stdc = yes; then
5646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5647 if test "$cross_compiling" = yes; then :
5648 :
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ctype.h>
5653 #include <stdlib.h>
5654 #if ((' ' & 0x0FF) == 0x020)
5655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5657 #else
5658 # define ISLOWER(c) \
5659 (('a' <= (c) && (c) <= 'i') \
5660 || ('j' <= (c) && (c) <= 'r') \
5661 || ('s' <= (c) && (c) <= 'z'))
5662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5663 #endif
5664
5665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5666 int
5667 main ()
5668 {
5669 int i;
5670 for (i = 0; i < 256; i++)
5671 if (XOR (islower (i), ISLOWER (i))
5672 || toupper (i) != TOUPPER (i))
5673 return 2;
5674 return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_run "$LINENO"; then :
5678
5679 else
5680 ac_cv_header_stdc=no
5681 fi
5682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5683 conftest.$ac_objext conftest.beam conftest.$ac_ext
5684 fi
5685
5686 fi
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5689 $as_echo "$ac_cv_header_stdc" >&6; }
5690 if test $ac_cv_header_stdc = yes; then
5691
5692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5693
5694 fi
5695
5696 case `pwd` in
5697 *\ * | *\ *)
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5699 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5700 esac
5701
5702
5703
5704 macro_version='2.4.6'
5705 macro_revision='2.4.6'
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 ltmain=$ac_aux_dir/ltmain.sh
5720
5721 # Make sure we can run config.sub.
5722 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5723 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5726 $as_echo_n "checking build system type... " >&6; }
5727 if ${ac_cv_build+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 ac_build_alias=$build_alias
5731 test "x$ac_build_alias" = x &&
5732 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5733 test "x$ac_build_alias" = x &&
5734 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5737
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5740 $as_echo "$ac_cv_build" >&6; }
5741 case $ac_cv_build in
5742 *-*-*) ;;
5743 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5744 esac
5745 build=$ac_cv_build
5746 ac_save_IFS=$IFS; IFS='-'
5747 set x $ac_cv_build
5748 shift
5749 build_cpu=$1
5750 build_vendor=$2
5751 shift; shift
5752 # Remember, the first character of IFS is used to create $*,
5753 # except with old shells:
5754 build_os=$*
5755 IFS=$ac_save_IFS
5756 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5757
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5760 $as_echo_n "checking host system type... " >&6; }
5761 if ${ac_cv_host+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test "x$host_alias" = x; then
5765 ac_cv_host=$ac_cv_build
5766 else
5767 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5769 fi
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5773 $as_echo "$ac_cv_host" >&6; }
5774 case $ac_cv_host in
5775 *-*-*) ;;
5776 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5777 esac
5778 host=$ac_cv_host
5779 ac_save_IFS=$IFS; IFS='-'
5780 set x $ac_cv_host
5781 shift
5782 host_cpu=$1
5783 host_vendor=$2
5784 shift; shift
5785 # Remember, the first character of IFS is used to create $*,
5786 # except with old shells:
5787 host_os=$*
5788 IFS=$ac_save_IFS
5789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5790
5791
5792 # Backslashify metacharacters that are still active within
5793 # double-quoted strings.
5794 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5795
5796 # Same as above, but do not quote variable references.
5797 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5798
5799 # Sed substitution to delay expansion of an escaped shell variable in a
5800 # double_quote_subst'ed string.
5801 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5802
5803 # Sed substitution to delay expansion of an escaped single quote.
5804 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5805
5806 # Sed substitution to avoid accidental globbing in evaled expressions
5807 no_glob_subst='s/\*/\\\*/g'
5808
5809 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5810 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5811 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5812
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5814 $as_echo_n "checking how to print strings... " >&6; }
5815 # Test print first, because it will be a builtin if present.
5816 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5817 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5818 ECHO='print -r --'
5819 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5820 ECHO='printf %s\n'
5821 else
5822 # Use this function as a fallback that always works.
5823 func_fallback_echo ()
5824 {
5825 eval 'cat <<_LTECHO_EOF
5826 $1
5827 _LTECHO_EOF'
5828 }
5829 ECHO='func_fallback_echo'
5830 fi
5831
5832 # func_echo_all arg...
5833 # Invoke $ECHO with all args, space-separated.
5834 func_echo_all ()
5835 {
5836 $ECHO ""
5837 }
5838
5839 case $ECHO in
5840 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5841 $as_echo "printf" >&6; } ;;
5842 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5843 $as_echo "print -r" >&6; } ;;
5844 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5845 $as_echo "cat" >&6; } ;;
5846 esac
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5862 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5863 if ${ac_cv_path_SED+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5867 for ac_i in 1 2 3 4 5 6 7; do
5868 ac_script="$ac_script$as_nl$ac_script"
5869 done
5870 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5871 { ac_script=; unset ac_script;}
5872 if test -z "$SED"; then
5873 ac_path_SED_found=false
5874 # Loop through the user's path and test for each of PROGNAME-LIST
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_prog in sed gsed; do
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5883 as_fn_executable_p "$ac_path_SED" || continue
5884 # Check for GNU ac_path_SED and select it if it is found.
5885 # Check for GNU $ac_path_SED
5886 case `"$ac_path_SED" --version 2>&1` in
5887 *GNU*)
5888 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5889 *)
5890 ac_count=0
5891 $as_echo_n 0123456789 >"conftest.in"
5892 while :
5893 do
5894 cat "conftest.in" "conftest.in" >"conftest.tmp"
5895 mv "conftest.tmp" "conftest.in"
5896 cp "conftest.in" "conftest.nl"
5897 $as_echo '' >> "conftest.nl"
5898 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5900 as_fn_arith $ac_count + 1 && ac_count=$as_val
5901 if test $ac_count -gt ${ac_path_SED_max-0}; then
5902 # Best one so far, save it but keep looking for a better one
5903 ac_cv_path_SED="$ac_path_SED"
5904 ac_path_SED_max=$ac_count
5905 fi
5906 # 10*(2^10) chars as input seems more than enough
5907 test $ac_count -gt 10 && break
5908 done
5909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5910 esac
5911
5912 $ac_path_SED_found && break 3
5913 done
5914 done
5915 done
5916 IFS=$as_save_IFS
5917 if test -z "$ac_cv_path_SED"; then
5918 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5919 fi
5920 else
5921 ac_cv_path_SED=$SED
5922 fi
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5926 $as_echo "$ac_cv_path_SED" >&6; }
5927 SED="$ac_cv_path_SED"
5928 rm -f conftest.sed
5929
5930 test -z "$SED" && SED=sed
5931 Xsed="$SED -e 1s/^X//"
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5944 $as_echo_n "checking for fgrep... " >&6; }
5945 if ${ac_cv_path_FGREP+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5949 then ac_cv_path_FGREP="$GREP -F"
5950 else
5951 if test -z "$FGREP"; then
5952 ac_path_FGREP_found=false
5953 # Loop through the user's path and test for each of PROGNAME-LIST
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_prog in fgrep; do
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5962 as_fn_executable_p "$ac_path_FGREP" || continue
5963 # Check for GNU ac_path_FGREP and select it if it is found.
5964 # Check for GNU $ac_path_FGREP
5965 case `"$ac_path_FGREP" --version 2>&1` in
5966 *GNU*)
5967 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5968 *)
5969 ac_count=0
5970 $as_echo_n 0123456789 >"conftest.in"
5971 while :
5972 do
5973 cat "conftest.in" "conftest.in" >"conftest.tmp"
5974 mv "conftest.tmp" "conftest.in"
5975 cp "conftest.in" "conftest.nl"
5976 $as_echo 'FGREP' >> "conftest.nl"
5977 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5979 as_fn_arith $ac_count + 1 && ac_count=$as_val
5980 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5981 # Best one so far, save it but keep looking for a better one
5982 ac_cv_path_FGREP="$ac_path_FGREP"
5983 ac_path_FGREP_max=$ac_count
5984 fi
5985 # 10*(2^10) chars as input seems more than enough
5986 test $ac_count -gt 10 && break
5987 done
5988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5989 esac
5990
5991 $ac_path_FGREP_found && break 3
5992 done
5993 done
5994 done
5995 IFS=$as_save_IFS
5996 if test -z "$ac_cv_path_FGREP"; then
5997 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5998 fi
5999 else
6000 ac_cv_path_FGREP=$FGREP
6001 fi
6002
6003 fi
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6006 $as_echo "$ac_cv_path_FGREP" >&6; }
6007 FGREP="$ac_cv_path_FGREP"
6008
6009
6010 test -z "$GREP" && GREP=grep
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030 # Check whether --with-gnu-ld was given.
6031 if test "${with_gnu_ld+set}" = set; then :
6032 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6033 else
6034 with_gnu_ld=no
6035 fi
6036
6037 ac_prog=ld
6038 if test yes = "$GCC"; then
6039 # Check if gcc -print-prog-name=ld gives a path.
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6041 $as_echo_n "checking for ld used by $CC... " >&6; }
6042 case $host in
6043 *-*-mingw*)
6044 # gcc leaves a trailing carriage return, which upsets mingw
6045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6046 *)
6047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6048 esac
6049 case $ac_prog in
6050 # Accept absolute paths.
6051 [\\/]* | ?:[\\/]*)
6052 re_direlt='/[^/][^/]*/\.\./'
6053 # Canonicalize the pathname of ld
6054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6057 done
6058 test -z "$LD" && LD=$ac_prog
6059 ;;
6060 "")
6061 # If it fails, then pretend we aren't using GCC.
6062 ac_prog=ld
6063 ;;
6064 *)
6065 # If it is relative, then search for the first ld in PATH.
6066 with_gnu_ld=unknown
6067 ;;
6068 esac
6069 elif test yes = "$with_gnu_ld"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6071 $as_echo_n "checking for GNU ld... " >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6074 $as_echo_n "checking for non-GNU ld... " >&6; }
6075 fi
6076 if ${lt_cv_path_LD+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -z "$LD"; then
6080 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6081 for ac_dir in $PATH; do
6082 IFS=$lt_save_ifs
6083 test -z "$ac_dir" && ac_dir=.
6084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6085 lt_cv_path_LD=$ac_dir/$ac_prog
6086 # Check to see if the program is GNU ld. I'd rather use --version,
6087 # but apparently some variants of GNU ld only accept -v.
6088 # Break only if it was the GNU/non-GNU ld that we prefer.
6089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6090 *GNU* | *'with BFD'*)
6091 test no != "$with_gnu_ld" && break
6092 ;;
6093 *)
6094 test yes != "$with_gnu_ld" && break
6095 ;;
6096 esac
6097 fi
6098 done
6099 IFS=$lt_save_ifs
6100 else
6101 lt_cv_path_LD=$LD # Let the user override the test with a path.
6102 fi
6103 fi
6104
6105 LD=$lt_cv_path_LD
6106 if test -n "$LD"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6108 $as_echo "$LD" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6115 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6116 if ${lt_cv_prog_gnu_ld+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6120 case `$LD -v 2>&1 </dev/null` in
6121 *GNU* | *'with BFD'*)
6122 lt_cv_prog_gnu_ld=yes
6123 ;;
6124 *)
6125 lt_cv_prog_gnu_ld=no
6126 ;;
6127 esac
6128 fi
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6130 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6131 with_gnu_ld=$lt_cv_prog_gnu_ld
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6142 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6143 if ${lt_cv_path_NM+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$NM"; then
6147 # Let the user override the test.
6148 lt_cv_path_NM=$NM
6149 else
6150 lt_nm_to_check=${ac_tool_prefix}nm
6151 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6152 lt_nm_to_check="$lt_nm_to_check nm"
6153 fi
6154 for lt_tmp_nm in $lt_nm_to_check; do
6155 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6156 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6157 IFS=$lt_save_ifs
6158 test -z "$ac_dir" && ac_dir=.
6159 tmp_nm=$ac_dir/$lt_tmp_nm
6160 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6161 # Check to see if the nm accepts a BSD-compat flag.
6162 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6163 # nm: unknown option "B" ignored
6164 # Tru64's nm complains that /dev/null is an invalid object file
6165 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6166 case $build_os in
6167 mingw*) lt_bad_file=conftest.nm/nofile ;;
6168 *) lt_bad_file=/dev/null ;;
6169 esac
6170 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6171 *$lt_bad_file* | *'Invalid file or object type'*)
6172 lt_cv_path_NM="$tmp_nm -B"
6173 break 2
6174 ;;
6175 *)
6176 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6177 */dev/null*)
6178 lt_cv_path_NM="$tmp_nm -p"
6179 break 2
6180 ;;
6181 *)
6182 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6183 continue # so that we can try to find one that supports BSD flags
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 done
6190 IFS=$lt_save_ifs
6191 done
6192 : ${lt_cv_path_NM=no}
6193 fi
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6196 $as_echo "$lt_cv_path_NM" >&6; }
6197 if test no != "$lt_cv_path_NM"; then
6198 NM=$lt_cv_path_NM
6199 else
6200 # Didn't find any BSD compatible name lister, look for dumpbin.
6201 if test -n "$DUMPBIN"; then :
6202 # Let the user override the test.
6203 else
6204 if test -n "$ac_tool_prefix"; then
6205 for ac_prog in dumpbin "link -dump"
6206 do
6207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_DUMPBIN+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$DUMPBIN"; then
6215 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 DUMPBIN=$ac_cv_prog_DUMPBIN
6235 if test -n "$DUMPBIN"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6237 $as_echo "$DUMPBIN" >&6; }
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243
6244 test -n "$DUMPBIN" && break
6245 done
6246 fi
6247 if test -z "$DUMPBIN"; then
6248 ac_ct_DUMPBIN=$DUMPBIN
6249 for ac_prog in dumpbin "link -dump"
6250 do
6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
6252 set dummy $ac_prog; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 if test -n "$ac_ct_DUMPBIN"; then
6259 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6279 if test -n "$ac_ct_DUMPBIN"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6281 $as_echo "$ac_ct_DUMPBIN" >&6; }
6282 else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287
6288 test -n "$ac_ct_DUMPBIN" && break
6289 done
6290
6291 if test "x$ac_ct_DUMPBIN" = x; then
6292 DUMPBIN=":"
6293 else
6294 case $cross_compiling:$ac_tool_warned in
6295 yes:)
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300 DUMPBIN=$ac_ct_DUMPBIN
6301 fi
6302 fi
6303
6304 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6305 *COFF*)
6306 DUMPBIN="$DUMPBIN -symbols -headers"
6307 ;;
6308 *)
6309 DUMPBIN=:
6310 ;;
6311 esac
6312 fi
6313
6314 if test : != "$DUMPBIN"; then
6315 NM=$DUMPBIN
6316 fi
6317 fi
6318 test -z "$NM" && NM=nm
6319
6320
6321
6322
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6326 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6327 if ${lt_cv_nm_interface+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 lt_cv_nm_interface="BSD nm"
6331 echo "int some_variable = 0;" > conftest.$ac_ext
6332 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6333 (eval "$ac_compile" 2>conftest.err)
6334 cat conftest.err >&5
6335 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6336 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6337 cat conftest.err >&5
6338 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6339 cat conftest.out >&5
6340 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6341 lt_cv_nm_interface="MS dumpbin"
6342 fi
6343 rm -f conftest*
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6346 $as_echo "$lt_cv_nm_interface" >&6; }
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6349 $as_echo_n "checking whether ln -s works... " >&6; }
6350 LN_S=$as_ln_s
6351 if test "$LN_S" = "ln -s"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6353 $as_echo "yes" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6356 $as_echo "no, using $LN_S" >&6; }
6357 fi
6358
6359 # find the maximum length of command line arguments
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6361 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6362 if ${lt_cv_sys_max_cmd_len+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 i=0
6366 teststring=ABCD
6367
6368 case $build_os in
6369 msdosdjgpp*)
6370 # On DJGPP, this test can blow up pretty badly due to problems in libc
6371 # (any single argument exceeding 2000 bytes causes a buffer overrun
6372 # during glob expansion). Even if it were fixed, the result of this
6373 # check would be larger than it should be.
6374 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6375 ;;
6376
6377 gnu*)
6378 # Under GNU Hurd, this test is not required because there is
6379 # no limit to the length of command line arguments.
6380 # Libtool will interpret -1 as no limit whatsoever
6381 lt_cv_sys_max_cmd_len=-1;
6382 ;;
6383
6384 cygwin* | mingw* | cegcc*)
6385 # On Win9x/ME, this test blows up -- it succeeds, but takes
6386 # about 5 minutes as the teststring grows exponentially.
6387 # Worse, since 9x/ME are not pre-emptively multitasking,
6388 # you end up with a "frozen" computer, even though with patience
6389 # the test eventually succeeds (with a max line length of 256k).
6390 # Instead, let's just punt: use the minimum linelength reported by
6391 # all of the supported platforms: 8192 (on NT/2K/XP).
6392 lt_cv_sys_max_cmd_len=8192;
6393 ;;
6394
6395 mint*)
6396 # On MiNT this can take a long time and run out of memory.
6397 lt_cv_sys_max_cmd_len=8192;
6398 ;;
6399
6400 amigaos*)
6401 # On AmigaOS with pdksh, this test takes hours, literally.
6402 # So we just punt and use a minimum line length of 8192.
6403 lt_cv_sys_max_cmd_len=8192;
6404 ;;
6405
6406 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6407 # This has been around since 386BSD, at least. Likely further.
6408 if test -x /sbin/sysctl; then
6409 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6410 elif test -x /usr/sbin/sysctl; then
6411 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6412 else
6413 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6414 fi
6415 # And add a safety zone
6416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6418 ;;
6419
6420 interix*)
6421 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6422 lt_cv_sys_max_cmd_len=196608
6423 ;;
6424
6425 os2*)
6426 # The test takes a long time on OS/2.
6427 lt_cv_sys_max_cmd_len=8192
6428 ;;
6429
6430 osf*)
6431 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6432 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6433 # nice to cause kernel panics so lets avoid the loop below.
6434 # First set a reasonable default.
6435 lt_cv_sys_max_cmd_len=16384
6436 #
6437 if test -x /sbin/sysconfig; then
6438 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6439 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6440 esac
6441 fi
6442 ;;
6443 sco3.2v5*)
6444 lt_cv_sys_max_cmd_len=102400
6445 ;;
6446 sysv5* | sco5v6* | sysv4.2uw2*)
6447 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6448 if test -n "$kargmax"; then
6449 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6450 else
6451 lt_cv_sys_max_cmd_len=32768
6452 fi
6453 ;;
6454 *)
6455 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6456 if test -n "$lt_cv_sys_max_cmd_len" && \
6457 test undefined != "$lt_cv_sys_max_cmd_len"; then
6458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6460 else
6461 # Make teststring a little bigger before we do anything with it.
6462 # a 1K string should be a reasonable start.
6463 for i in 1 2 3 4 5 6 7 8; do
6464 teststring=$teststring$teststring
6465 done
6466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6467 # If test is not a shell built-in, we'll probably end up computing a
6468 # maximum length that is only half of the actual maximum length, but
6469 # we can't tell.
6470 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6471 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6472 test 17 != "$i" # 1/2 MB should be enough
6473 do
6474 i=`expr $i + 1`
6475 teststring=$teststring$teststring
6476 done
6477 # Only check the string length outside the loop.
6478 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6479 teststring=
6480 # Add a significant safety factor because C++ compilers can tack on
6481 # massive amounts of additional arguments before passing them to the
6482 # linker. It appears as though 1/2 is a usable value.
6483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6484 fi
6485 ;;
6486 esac
6487
6488 fi
6489
6490 if test -n "$lt_cv_sys_max_cmd_len"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6495 $as_echo "none" >&6; }
6496 fi
6497 max_cmd_len=$lt_cv_sys_max_cmd_len
6498
6499
6500
6501
6502
6503
6504 : ${CP="cp -f"}
6505 : ${MV="mv -f"}
6506 : ${RM="rm -f"}
6507
6508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6509 lt_unset=unset
6510 else
6511 lt_unset=false
6512 fi
6513
6514
6515
6516
6517
6518 # test EBCDIC or ASCII
6519 case `echo X|tr X '\101'` in
6520 A) # ASCII based system
6521 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6522 lt_SP2NL='tr \040 \012'
6523 lt_NL2SP='tr \015\012 \040\040'
6524 ;;
6525 *) # EBCDIC based system
6526 lt_SP2NL='tr \100 \n'
6527 lt_NL2SP='tr \r\n \100\100'
6528 ;;
6529 esac
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6540 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6541 if ${lt_cv_to_host_file_cmd+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 case $host in
6545 *-*-mingw* )
6546 case $build in
6547 *-*-mingw* ) # actually msys
6548 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6549 ;;
6550 *-*-cygwin* )
6551 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6552 ;;
6553 * ) # otherwise, assume *nix
6554 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6555 ;;
6556 esac
6557 ;;
6558 *-*-cygwin* )
6559 case $build in
6560 *-*-mingw* ) # actually msys
6561 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6562 ;;
6563 *-*-cygwin* )
6564 lt_cv_to_host_file_cmd=func_convert_file_noop
6565 ;;
6566 * ) # otherwise, assume *nix
6567 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6568 ;;
6569 esac
6570 ;;
6571 * ) # unhandled hosts (and "normal" native builds)
6572 lt_cv_to_host_file_cmd=func_convert_file_noop
6573 ;;
6574 esac
6575
6576 fi
6577
6578 to_host_file_cmd=$lt_cv_to_host_file_cmd
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6580 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6581
6582
6583
6584
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6587 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6588 if ${lt_cv_to_tool_file_cmd+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 #assume ordinary cross tools, or native build.
6592 lt_cv_to_tool_file_cmd=func_convert_file_noop
6593 case $host in
6594 *-*-mingw* )
6595 case $build in
6596 *-*-mingw* ) # actually msys
6597 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6598 ;;
6599 esac
6600 ;;
6601 esac
6602
6603 fi
6604
6605 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6607 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6608
6609
6610
6611
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6614 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6615 if ${lt_cv_ld_reload_flag+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 lt_cv_ld_reload_flag='-r'
6619 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6621 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6622 reload_flag=$lt_cv_ld_reload_flag
6623 case $reload_flag in
6624 "" | " "*) ;;
6625 *) reload_flag=" $reload_flag" ;;
6626 esac
6627 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6628 case $host_os in
6629 cygwin* | mingw* | pw32* | cegcc*)
6630 if test yes != "$GCC"; then
6631 reload_cmds=false
6632 fi
6633 ;;
6634 darwin*)
6635 if test yes = "$GCC"; then
6636 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6637 else
6638 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6639 fi
6640 ;;
6641 esac
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_OBJDUMP+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$OBJDUMP"; then
6660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 OBJDUMP=$ac_cv_prog_OBJDUMP
6680 if test -n "$OBJDUMP"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6682 $as_echo "$OBJDUMP" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_OBJDUMP"; then
6691 ac_ct_OBJDUMP=$OBJDUMP
6692 # Extract the first word of "objdump", so it can be a program name with args.
6693 set dummy objdump; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$ac_ct_OBJDUMP"; then
6700 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6720 if test -n "$ac_ct_OBJDUMP"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6722 $as_echo "$ac_ct_OBJDUMP" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728 if test "x$ac_ct_OBJDUMP" = x; then
6729 OBJDUMP="false"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6736 esac
6737 OBJDUMP=$ac_ct_OBJDUMP
6738 fi
6739 else
6740 OBJDUMP="$ac_cv_prog_OBJDUMP"
6741 fi
6742
6743 test -z "$OBJDUMP" && OBJDUMP=objdump
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6754 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6755 if ${lt_cv_deplibs_check_method+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 lt_cv_file_magic_cmd='$MAGIC_CMD'
6759 lt_cv_file_magic_test_file=
6760 lt_cv_deplibs_check_method='unknown'
6761 # Need to set the preceding variable on all platforms that support
6762 # interlibrary dependencies.
6763 # 'none' -- dependencies not supported.
6764 # 'unknown' -- same as none, but documents that we really don't know.
6765 # 'pass_all' -- all dependencies passed with no checks.
6766 # 'test_compile' -- check by making test program.
6767 # 'file_magic [[regex]]' -- check by looking for files in library path
6768 # that responds to the $file_magic_cmd with a given extended regex.
6769 # If you have 'file' or equivalent on your system and you're not sure
6770 # whether 'pass_all' will *always* work, you probably want this one.
6771
6772 case $host_os in
6773 aix[4-9]*)
6774 lt_cv_deplibs_check_method=pass_all
6775 ;;
6776
6777 beos*)
6778 lt_cv_deplibs_check_method=pass_all
6779 ;;
6780
6781 bsdi[45]*)
6782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6783 lt_cv_file_magic_cmd='/usr/bin/file -L'
6784 lt_cv_file_magic_test_file=/shlib/libc.so
6785 ;;
6786
6787 cygwin*)
6788 # func_win32_libid is a shell function defined in ltmain.sh
6789 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6790 lt_cv_file_magic_cmd='func_win32_libid'
6791 ;;
6792
6793 mingw* | pw32*)
6794 # Base MSYS/MinGW do not provide the 'file' command needed by
6795 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6796 # unless we find 'file', for example because we are cross-compiling.
6797 if ( file / ) >/dev/null 2>&1; then
6798 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6799 lt_cv_file_magic_cmd='func_win32_libid'
6800 else
6801 # Keep this pattern in sync with the one in func_win32_libid.
6802 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6803 lt_cv_file_magic_cmd='$OBJDUMP -f'
6804 fi
6805 ;;
6806
6807 cegcc*)
6808 # use the weaker test based on 'objdump'. See mingw*.
6809 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6810 lt_cv_file_magic_cmd='$OBJDUMP -f'
6811 ;;
6812
6813 darwin* | rhapsody*)
6814 lt_cv_deplibs_check_method=pass_all
6815 ;;
6816
6817 freebsd* | dragonfly*)
6818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6819 case $host_cpu in
6820 i*86 )
6821 # Not sure whether the presence of OpenBSD here was a mistake.
6822 # Let's accept both of them until this is cleared up.
6823 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6824 lt_cv_file_magic_cmd=/usr/bin/file
6825 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6826 ;;
6827 esac
6828 else
6829 lt_cv_deplibs_check_method=pass_all
6830 fi
6831 ;;
6832
6833 haiku*)
6834 lt_cv_deplibs_check_method=pass_all
6835 ;;
6836
6837 hpux10.20* | hpux11*)
6838 lt_cv_file_magic_cmd=/usr/bin/file
6839 case $host_cpu in
6840 ia64*)
6841 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6842 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6843 ;;
6844 hppa*64*)
6845 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]'
6846 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6847 ;;
6848 *)
6849 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6850 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6851 ;;
6852 esac
6853 ;;
6854
6855 interix[3-9]*)
6856 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6858 ;;
6859
6860 irix5* | irix6* | nonstopux*)
6861 case $LD in
6862 *-32|*"-32 ") libmagic=32-bit;;
6863 *-n32|*"-n32 ") libmagic=N32;;
6864 *-64|*"-64 ") libmagic=64-bit;;
6865 *) libmagic=never-match;;
6866 esac
6867 lt_cv_deplibs_check_method=pass_all
6868 ;;
6869
6870 # This must be glibc/ELF.
6871 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6872 lt_cv_deplibs_check_method=pass_all
6873 ;;
6874
6875 netbsd* | netbsdelf*-gnu)
6876 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6878 else
6879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6880 fi
6881 ;;
6882
6883 newos6*)
6884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6885 lt_cv_file_magic_cmd=/usr/bin/file
6886 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6887 ;;
6888
6889 *nto* | *qnx*)
6890 lt_cv_deplibs_check_method=pass_all
6891 ;;
6892
6893 openbsd* | bitrig*)
6894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6896 else
6897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6898 fi
6899 ;;
6900
6901 osf3* | osf4* | osf5*)
6902 lt_cv_deplibs_check_method=pass_all
6903 ;;
6904
6905 rdos*)
6906 lt_cv_deplibs_check_method=pass_all
6907 ;;
6908
6909 solaris*)
6910 lt_cv_deplibs_check_method=pass_all
6911 ;;
6912
6913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
6916
6917 sysv4 | sysv4.3*)
6918 case $host_vendor in
6919 motorola)
6920 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]'
6921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6922 ;;
6923 ncr)
6924 lt_cv_deplibs_check_method=pass_all
6925 ;;
6926 sequent)
6927 lt_cv_file_magic_cmd='/bin/file'
6928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6929 ;;
6930 sni)
6931 lt_cv_file_magic_cmd='/bin/file'
6932 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6933 lt_cv_file_magic_test_file=/lib/libc.so
6934 ;;
6935 siemens)
6936 lt_cv_deplibs_check_method=pass_all
6937 ;;
6938 pc)
6939 lt_cv_deplibs_check_method=pass_all
6940 ;;
6941 esac
6942 ;;
6943
6944 tpf*)
6945 lt_cv_deplibs_check_method=pass_all
6946 ;;
6947 os2*)
6948 lt_cv_deplibs_check_method=pass_all
6949 ;;
6950 esac
6951
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6954 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6955
6956 file_magic_glob=
6957 want_nocaseglob=no
6958 if test "$build" = "$host"; then
6959 case $host_os in
6960 mingw* | pw32*)
6961 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6962 want_nocaseglob=yes
6963 else
6964 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6965 fi
6966 ;;
6967 esac
6968 fi
6969
6970 file_magic_cmd=$lt_cv_file_magic_cmd
6971 deplibs_check_method=$lt_cv_deplibs_check_method
6972 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_DLLTOOL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$DLLTOOL"; then
7004 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 DLLTOOL=$ac_cv_prog_DLLTOOL
7024 if test -n "$DLLTOOL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7026 $as_echo "$DLLTOOL" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_DLLTOOL"; then
7035 ac_ct_DLLTOOL=$DLLTOOL
7036 # Extract the first word of "dlltool", so it can be a program name with args.
7037 set dummy dlltool; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$ac_ct_DLLTOOL"; then
7044 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7064 if test -n "$ac_ct_DLLTOOL"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7066 $as_echo "$ac_ct_DLLTOOL" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072 if test "x$ac_ct_DLLTOOL" = x; then
7073 DLLTOOL="false"
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081 DLLTOOL=$ac_ct_DLLTOOL
7082 fi
7083 else
7084 DLLTOOL="$ac_cv_prog_DLLTOOL"
7085 fi
7086
7087 test -z "$DLLTOOL" && DLLTOOL=dlltool
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7099 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7100 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 lt_cv_sharedlib_from_linklib_cmd='unknown'
7104
7105 case $host_os in
7106 cygwin* | mingw* | pw32* | cegcc*)
7107 # two different shell functions defined in ltmain.sh;
7108 # decide which one to use based on capabilities of $DLLTOOL
7109 case `$DLLTOOL --help 2>&1` in
7110 *--identify-strict*)
7111 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7112 ;;
7113 *)
7114 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7115 ;;
7116 esac
7117 ;;
7118 *)
7119 # fallback: assume linklib IS sharedlib
7120 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7121 ;;
7122 esac
7123
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7126 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7127 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7128 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7129
7130
7131
7132
7133
7134
7135
7136 if test -n "$ac_tool_prefix"; then
7137 for ac_prog in ar
7138 do
7139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_AR+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$AR"; then
7147 ac_cv_prog_AR="$AR" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 AR=$ac_cv_prog_AR
7167 if test -n "$AR"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7169 $as_echo "$AR" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176 test -n "$AR" && break
7177 done
7178 fi
7179 if test -z "$AR"; then
7180 ac_ct_AR=$AR
7181 for ac_prog in ar
7182 do
7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
7184 set dummy $ac_prog; ac_word=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 if test -n "$ac_ct_AR"; then
7191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_AR="$ac_prog"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7211 if test -n "$ac_ct_AR"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7213 $as_echo "$ac_ct_AR" >&6; }
7214 else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218
7219
7220 test -n "$ac_ct_AR" && break
7221 done
7222
7223 if test "x$ac_ct_AR" = x; then
7224 AR="false"
7225 else
7226 case $cross_compiling:$ac_tool_warned in
7227 yes:)
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7230 ac_tool_warned=yes ;;
7231 esac
7232 AR=$ac_ct_AR
7233 fi
7234 fi
7235
7236 : ${AR=ar}
7237 : ${AR_FLAGS=cr}
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7250 $as_echo_n "checking for archiver @FILE support... " >&6; }
7251 if ${lt_cv_ar_at_file+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 lt_cv_ar_at_file=no
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257
7258 int
7259 main ()
7260 {
7261
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 if ac_fn_c_try_compile "$LINENO"; then :
7267 echo conftest.$ac_objext > conftest.lst
7268 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7270 (eval $lt_ar_try) 2>&5
7271 ac_status=$?
7272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7273 test $ac_status = 0; }
7274 if test 0 -eq "$ac_status"; then
7275 # Ensure the archiver fails upon bogus file names.
7276 rm -f conftest.$ac_objext libconftest.a
7277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7278 (eval $lt_ar_try) 2>&5
7279 ac_status=$?
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }
7282 if test 0 -ne "$ac_status"; then
7283 lt_cv_ar_at_file=@
7284 fi
7285 fi
7286 rm -f conftest.* libconftest.a
7287
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7293 $as_echo "$lt_cv_ar_at_file" >&6; }
7294
7295 if test no = "$lt_cv_ar_at_file"; then
7296 archiver_list_spec=
7297 else
7298 archiver_list_spec=$lt_cv_ar_at_file
7299 fi
7300
7301
7302
7303
7304
7305
7306
7307 if test -n "$ac_tool_prefix"; then
7308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7309 set dummy ${ac_tool_prefix}strip; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if ${ac_cv_prog_STRIP+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 if test -n "$STRIP"; then
7316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333 fi
7334 fi
7335 STRIP=$ac_cv_prog_STRIP
7336 if test -n "$STRIP"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7338 $as_echo "$STRIP" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343
7344
7345 fi
7346 if test -z "$ac_cv_prog_STRIP"; then
7347 ac_ct_STRIP=$STRIP
7348 # Extract the first word of "strip", so it can be a program name with args.
7349 set dummy strip; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 if test -n "$ac_ct_STRIP"; then
7356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_ac_ct_STRIP="strip"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369 done
7370 done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7376 if test -n "$ac_ct_STRIP"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7378 $as_echo "$ac_ct_STRIP" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384 if test "x$ac_ct_STRIP" = x; then
7385 STRIP=":"
7386 else
7387 case $cross_compiling:$ac_tool_warned in
7388 yes:)
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 ac_tool_warned=yes ;;
7392 esac
7393 STRIP=$ac_ct_STRIP
7394 fi
7395 else
7396 STRIP="$ac_cv_prog_STRIP"
7397 fi
7398
7399 test -z "$STRIP" && STRIP=:
7400
7401
7402
7403
7404
7405
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_RANLIB+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$RANLIB"; then
7415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 RANLIB=$ac_cv_prog_RANLIB
7435 if test -n "$RANLIB"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7437 $as_echo "$RANLIB" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_RANLIB"; then
7446 ac_ct_RANLIB=$RANLIB
7447 # Extract the first word of "ranlib", so it can be a program name with args.
7448 set dummy ranlib; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$ac_ct_RANLIB"; then
7455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_ac_ct_RANLIB="ranlib"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7475 if test -n "$ac_ct_RANLIB"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7477 $as_echo "$ac_ct_RANLIB" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483 if test "x$ac_ct_RANLIB" = x; then
7484 RANLIB=":"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492 RANLIB=$ac_ct_RANLIB
7493 fi
7494 else
7495 RANLIB="$ac_cv_prog_RANLIB"
7496 fi
7497
7498 test -z "$RANLIB" && RANLIB=:
7499
7500
7501
7502
7503
7504
7505 # Determine commands to create old-style static archives.
7506 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7507 old_postinstall_cmds='chmod 644 $oldlib'
7508 old_postuninstall_cmds=
7509
7510 if test -n "$RANLIB"; then
7511 case $host_os in
7512 bitrig* | openbsd*)
7513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7514 ;;
7515 *)
7516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7517 ;;
7518 esac
7519 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7520 fi
7521
7522 case $host_os in
7523 darwin*)
7524 lock_old_archive_extraction=yes ;;
7525 *)
7526 lock_old_archive_extraction=no ;;
7527 esac
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567 # If no C compiler was specified, use CC.
7568 LTCC=${LTCC-"$CC"}
7569
7570 # If no C compiler flags were specified, use CFLAGS.
7571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7572
7573 # Allow CC to be a program name with arguments.
7574 compiler=$CC
7575
7576
7577 # Check for command to grab the raw symbol name followed by C symbol from nm.
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7579 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7580 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583
7584 # These are sane defaults that work on at least a few old systems.
7585 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7586
7587 # Character class describing NM global symbol codes.
7588 symcode='[BCDEGRST]'
7589
7590 # Regexp to match symbols that can be accessed directly from C.
7591 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7592
7593 # Define system-specific variables.
7594 case $host_os in
7595 aix*)
7596 symcode='[BCDT]'
7597 ;;
7598 cygwin* | mingw* | pw32* | cegcc*)
7599 symcode='[ABCDGISTW]'
7600 ;;
7601 hpux*)
7602 if test ia64 = "$host_cpu"; then
7603 symcode='[ABCDEGRST]'
7604 fi
7605 ;;
7606 irix* | nonstopux*)
7607 symcode='[BCDEGRST]'
7608 ;;
7609 osf*)
7610 symcode='[BCDEGQRST]'
7611 ;;
7612 solaris*)
7613 symcode='[BDRT]'
7614 ;;
7615 sco3.2v5*)
7616 symcode='[DT]'
7617 ;;
7618 sysv4.2uw2*)
7619 symcode='[DT]'
7620 ;;
7621 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7622 symcode='[ABDT]'
7623 ;;
7624 sysv4)
7625 symcode='[DFNSTU]'
7626 ;;
7627 esac
7628
7629 # If we're using GNU nm, then use its standard symbol codes.
7630 case `$NM -V 2>&1` in
7631 *GNU* | *'with BFD'*)
7632 symcode='[ABCDGIRSTW]' ;;
7633 esac
7634
7635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7636 # Gets list of data symbols to import.
7637 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7638 # Adjust the below global symbol transforms to fixup imported variables.
7639 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7640 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7641 lt_c_name_lib_hook="\
7642 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7643 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7644 else
7645 # Disable hooks by default.
7646 lt_cv_sys_global_symbol_to_import=
7647 lt_cdecl_hook=
7648 lt_c_name_hook=
7649 lt_c_name_lib_hook=
7650 fi
7651
7652 # Transform an extracted symbol line into a proper C declaration.
7653 # Some systems (esp. on ia64) link data and code symbols differently,
7654 # so use this general approach.
7655 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7656 $lt_cdecl_hook\
7657 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7658 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7659
7660 # Transform an extracted symbol line into symbol name and symbol address
7661 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7662 $lt_c_name_hook\
7663 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7664 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7665
7666 # Transform an extracted symbol line into symbol name with lib prefix and
7667 # symbol address.
7668 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7669 $lt_c_name_lib_hook\
7670 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7671 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7672 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7673
7674 # Handle CRLF in mingw tool chain
7675 opt_cr=
7676 case $build_os in
7677 mingw*)
7678 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7679 ;;
7680 esac
7681
7682 # Try without a prefix underscore, then with it.
7683 for ac_symprfx in "" "_"; do
7684
7685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7686 symxfrm="\\1 $ac_symprfx\\2 \\2"
7687
7688 # Write the raw and C identifiers.
7689 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7690 # Fake it for dumpbin and say T for any non-static function,
7691 # D for any global variable and I for any imported variable.
7692 # Also find C++ and __fastcall symbols from MSVC++,
7693 # which start with @ or ?.
7694 lt_cv_sys_global_symbol_pipe="$AWK '"\
7695 " {last_section=section; section=\$ 3};"\
7696 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7697 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7698 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7699 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7700 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7701 " \$ 0!~/External *\|/{next};"\
7702 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7703 " {if(hide[section]) next};"\
7704 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7705 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7706 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7707 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7708 " ' prfx=^$ac_symprfx"
7709 else
7710 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7711 fi
7712 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7713
7714 # Check to see that the pipe works correctly.
7715 pipe_works=no
7716
7717 rm -f conftest*
7718 cat > conftest.$ac_ext <<_LT_EOF
7719 #ifdef __cplusplus
7720 extern "C" {
7721 #endif
7722 char nm_test_var;
7723 void nm_test_func(void);
7724 void nm_test_func(void){}
7725 #ifdef __cplusplus
7726 }
7727 #endif
7728 int main(){nm_test_var='a';nm_test_func();return(0);}
7729 _LT_EOF
7730
7731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7732 (eval $ac_compile) 2>&5
7733 ac_status=$?
7734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; }; then
7736 # Now try to grab the symbols.
7737 nlist=conftest.nm
7738 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7739 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7740 # Try sorting and uniquifying the output.
7741 if sort "$nlist" | uniq > "$nlist"T; then
7742 mv -f "$nlist"T "$nlist"
7743 else
7744 rm -f "$nlist"T
7745 fi
7746
7747 # Make sure that we snagged all the symbols we need.
7748 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7749 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7750 cat <<_LT_EOF > conftest.$ac_ext
7751 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7752 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7753 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7754 relocations are performed -- see ld's documentation on pseudo-relocs. */
7755 # define LT_DLSYM_CONST
7756 #elif defined __osf__
7757 /* This system does not cope well with relocations in const data. */
7758 # define LT_DLSYM_CONST
7759 #else
7760 # define LT_DLSYM_CONST const
7761 #endif
7762
7763 #ifdef __cplusplus
7764 extern "C" {
7765 #endif
7766
7767 _LT_EOF
7768 # Now generate the symbol file.
7769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7770
7771 cat <<_LT_EOF >> conftest.$ac_ext
7772
7773 /* The mapping between symbol names and symbols. */
7774 LT_DLSYM_CONST struct {
7775 const char *name;
7776 void *address;
7777 }
7778 lt__PROGRAM__LTX_preloaded_symbols[] =
7779 {
7780 { "@PROGRAM@", (void *) 0 },
7781 _LT_EOF
7782 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7783 cat <<\_LT_EOF >> conftest.$ac_ext
7784 {0, (void *) 0}
7785 };
7786
7787 /* This works around a problem in FreeBSD linker */
7788 #ifdef FREEBSD_WORKAROUND
7789 static const void *lt_preloaded_setup() {
7790 return lt__PROGRAM__LTX_preloaded_symbols;
7791 }
7792 #endif
7793
7794 #ifdef __cplusplus
7795 }
7796 #endif
7797 _LT_EOF
7798 # Now try linking the two files.
7799 mv conftest.$ac_objext conftstm.$ac_objext
7800 lt_globsym_save_LIBS=$LIBS
7801 lt_globsym_save_CFLAGS=$CFLAGS
7802 LIBS=conftstm.$ac_objext
7803 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7805 (eval $ac_link) 2>&5
7806 ac_status=$?
7807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7808 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7809 pipe_works=yes
7810 fi
7811 LIBS=$lt_globsym_save_LIBS
7812 CFLAGS=$lt_globsym_save_CFLAGS
7813 else
7814 echo "cannot find nm_test_func in $nlist" >&5
7815 fi
7816 else
7817 echo "cannot find nm_test_var in $nlist" >&5
7818 fi
7819 else
7820 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7821 fi
7822 else
7823 echo "$progname: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 fi
7826 rm -rf conftest* conftst*
7827
7828 # Do not use the global_symbol_pipe unless it works.
7829 if test yes = "$pipe_works"; then
7830 break
7831 else
7832 lt_cv_sys_global_symbol_pipe=
7833 fi
7834 done
7835
7836 fi
7837
7838 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7839 lt_cv_sys_global_symbol_to_cdecl=
7840 fi
7841 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7843 $as_echo "failed" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7846 $as_echo "ok" >&6; }
7847 fi
7848
7849 # Response file support.
7850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7851 nm_file_list_spec='@'
7852 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7853 nm_file_list_spec='@'
7854 fi
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7893 $as_echo_n "checking for sysroot... " >&6; }
7894
7895 # Check whether --with-sysroot was given.
7896 if test "${with_sysroot+set}" = set; then :
7897 withval=$with_sysroot;
7898 else
7899 with_sysroot=no
7900 fi
7901
7902
7903 lt_sysroot=
7904 case $with_sysroot in #(
7905 yes)
7906 if test yes = "$GCC"; then
7907 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7908 fi
7909 ;; #(
7910 /*)
7911 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7912 ;; #(
7913 no|'')
7914 ;; #(
7915 *)
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7917 $as_echo "$with_sysroot" >&6; }
7918 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7919 ;;
7920 esac
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7923 $as_echo "${lt_sysroot:-no}" >&6; }
7924
7925
7926
7927
7928
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7930 $as_echo_n "checking for a working dd... " >&6; }
7931 if ${ac_cv_path_lt_DD+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 printf 0123456789abcdef0123456789abcdef >conftest.i
7935 cat conftest.i conftest.i >conftest2.i
7936 : ${lt_DD:=$DD}
7937 if test -z "$lt_DD"; then
7938 ac_path_lt_DD_found=false
7939 # Loop through the user's path and test for each of PROGNAME-LIST
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_prog in dd; do
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7948 as_fn_executable_p "$ac_path_lt_DD" || continue
7949 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7950 cmp -s conftest.i conftest.out \
7951 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7952 fi
7953 $ac_path_lt_DD_found && break 3
7954 done
7955 done
7956 done
7957 IFS=$as_save_IFS
7958 if test -z "$ac_cv_path_lt_DD"; then
7959 :
7960 fi
7961 else
7962 ac_cv_path_lt_DD=$lt_DD
7963 fi
7964
7965 rm -f conftest.i conftest2.i conftest.out
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7968 $as_echo "$ac_cv_path_lt_DD" >&6; }
7969
7970
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7972 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7973 if ${lt_cv_truncate_bin+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 printf 0123456789abcdef0123456789abcdef >conftest.i
7977 cat conftest.i conftest.i >conftest2.i
7978 lt_cv_truncate_bin=
7979 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7980 cmp -s conftest.i conftest.out \
7981 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7982 fi
7983 rm -f conftest.i conftest2.i conftest.out
7984 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7987 $as_echo "$lt_cv_truncate_bin" >&6; }
7988
7989
7990
7991
7992
7993
7994
7995 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7996 func_cc_basename ()
7997 {
7998 for cc_temp in $*""; do
7999 case $cc_temp in
8000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8002 \-*) ;;
8003 *) break;;
8004 esac
8005 done
8006 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8007 }
8008
8009 # Check whether --enable-libtool-lock was given.
8010 if test "${enable_libtool_lock+set}" = set; then :
8011 enableval=$enable_libtool_lock;
8012 fi
8013
8014 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8015
8016 # Some flags need to be propagated to the compiler or linker for good
8017 # libtool support.
8018 case $host in
8019 ia64-*-hpux*)
8020 # Find out what ABI is being produced by ac_compile, and set mode
8021 # options accordingly.
8022 echo 'int i;' > conftest.$ac_ext
8023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8024 (eval $ac_compile) 2>&5
8025 ac_status=$?
8026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; then
8028 case `/usr/bin/file conftest.$ac_objext` in
8029 *ELF-32*)
8030 HPUX_IA64_MODE=32
8031 ;;
8032 *ELF-64*)
8033 HPUX_IA64_MODE=64
8034 ;;
8035 esac
8036 fi
8037 rm -rf conftest*
8038 ;;
8039 *-*-irix6*)
8040 # Find out what ABI is being produced by ac_compile, and set linker
8041 # options accordingly.
8042 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8044 (eval $ac_compile) 2>&5
8045 ac_status=$?
8046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8047 test $ac_status = 0; }; then
8048 if test yes = "$lt_cv_prog_gnu_ld"; then
8049 case `/usr/bin/file conftest.$ac_objext` in
8050 *32-bit*)
8051 LD="${LD-ld} -melf32bsmip"
8052 ;;
8053 *N32*)
8054 LD="${LD-ld} -melf32bmipn32"
8055 ;;
8056 *64-bit*)
8057 LD="${LD-ld} -melf64bmip"
8058 ;;
8059 esac
8060 else
8061 case `/usr/bin/file conftest.$ac_objext` in
8062 *32-bit*)
8063 LD="${LD-ld} -32"
8064 ;;
8065 *N32*)
8066 LD="${LD-ld} -n32"
8067 ;;
8068 *64-bit*)
8069 LD="${LD-ld} -64"
8070 ;;
8071 esac
8072 fi
8073 fi
8074 rm -rf conftest*
8075 ;;
8076
8077 mips64*-*linux*)
8078 # Find out what ABI is being produced by ac_compile, and set linker
8079 # options accordingly.
8080 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8082 (eval $ac_compile) 2>&5
8083 ac_status=$?
8084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8085 test $ac_status = 0; }; then
8086 emul=elf
8087 case `/usr/bin/file conftest.$ac_objext` in
8088 *32-bit*)
8089 emul="${emul}32"
8090 ;;
8091 *64-bit*)
8092 emul="${emul}64"
8093 ;;
8094 esac
8095 case `/usr/bin/file conftest.$ac_objext` in
8096 *MSB*)
8097 emul="${emul}btsmip"
8098 ;;
8099 *LSB*)
8100 emul="${emul}ltsmip"
8101 ;;
8102 esac
8103 case `/usr/bin/file conftest.$ac_objext` in
8104 *N32*)
8105 emul="${emul}n32"
8106 ;;
8107 esac
8108 LD="${LD-ld} -m $emul"
8109 fi
8110 rm -rf conftest*
8111 ;;
8112
8113 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8114 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8115 # Find out what ABI is being produced by ac_compile, and set linker
8116 # options accordingly. Note that the listed cases only cover the
8117 # situations where additional linker options are needed (such as when
8118 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8119 # vice versa); the common cases where no linker options are needed do
8120 # not appear in the list.
8121 echo 'int i;' > conftest.$ac_ext
8122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8123 (eval $ac_compile) 2>&5
8124 ac_status=$?
8125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8126 test $ac_status = 0; }; then
8127 case `/usr/bin/file conftest.o` in
8128 *32-bit*)
8129 case $host in
8130 x86_64-*kfreebsd*-gnu)
8131 LD="${LD-ld} -m elf_i386_fbsd"
8132 ;;
8133 x86_64-*linux*)
8134 case `/usr/bin/file conftest.o` in
8135 *x86-64*)
8136 LD="${LD-ld} -m elf32_x86_64"
8137 ;;
8138 *)
8139 LD="${LD-ld} -m elf_i386"
8140 ;;
8141 esac
8142 ;;
8143 powerpc64le-*linux*)
8144 LD="${LD-ld} -m elf32lppclinux"
8145 ;;
8146 powerpc64-*linux*)
8147 LD="${LD-ld} -m elf32ppclinux"
8148 ;;
8149 s390x-*linux*)
8150 LD="${LD-ld} -m elf_s390"
8151 ;;
8152 sparc64-*linux*)
8153 LD="${LD-ld} -m elf32_sparc"
8154 ;;
8155 esac
8156 ;;
8157 *64-bit*)
8158 case $host in
8159 x86_64-*kfreebsd*-gnu)
8160 LD="${LD-ld} -m elf_x86_64_fbsd"
8161 ;;
8162 x86_64-*linux*)
8163 LD="${LD-ld} -m elf_x86_64"
8164 ;;
8165 powerpcle-*linux*)
8166 LD="${LD-ld} -m elf64lppc"
8167 ;;
8168 powerpc-*linux*)
8169 LD="${LD-ld} -m elf64ppc"
8170 ;;
8171 s390*-*linux*|s390*-*tpf*)
8172 LD="${LD-ld} -m elf64_s390"
8173 ;;
8174 sparc*-*linux*)
8175 LD="${LD-ld} -m elf64_sparc"
8176 ;;
8177 esac
8178 ;;
8179 esac
8180 fi
8181 rm -rf conftest*
8182 ;;
8183
8184 *-*-sco3.2v5*)
8185 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8186 SAVE_CFLAGS=$CFLAGS
8187 CFLAGS="$CFLAGS -belf"
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8189 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8190 if ${lt_cv_cc_needs_belf+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 ac_ext=c
8194 ac_cpp='$CPP $CPPFLAGS'
8195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201
8202 int
8203 main ()
8204 {
8205
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"; then :
8211 lt_cv_cc_needs_belf=yes
8212 else
8213 lt_cv_cc_needs_belf=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 ac_ext=c
8218 ac_cpp='$CPP $CPPFLAGS'
8219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8222
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8225 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8226 if test yes != "$lt_cv_cc_needs_belf"; then
8227 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8228 CFLAGS=$SAVE_CFLAGS
8229 fi
8230 ;;
8231 *-*solaris*)
8232 # Find out what ABI is being produced by ac_compile, and set linker
8233 # options accordingly.
8234 echo 'int i;' > conftest.$ac_ext
8235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236 (eval $ac_compile) 2>&5
8237 ac_status=$?
8238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239 test $ac_status = 0; }; then
8240 case `/usr/bin/file conftest.o` in
8241 *64-bit*)
8242 case $lt_cv_prog_gnu_ld in
8243 yes*)
8244 case $host in
8245 i?86-*-solaris*|x86_64-*-solaris*)
8246 LD="${LD-ld} -m elf_x86_64"
8247 ;;
8248 sparc*-*-solaris*)
8249 LD="${LD-ld} -m elf64_sparc"
8250 ;;
8251 esac
8252 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8253 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8254 LD=${LD-ld}_sol2
8255 fi
8256 ;;
8257 *)
8258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8259 LD="${LD-ld} -64"
8260 fi
8261 ;;
8262 esac
8263 ;;
8264 esac
8265 fi
8266 rm -rf conftest*
8267 ;;
8268 esac
8269
8270 need_locks=$enable_libtool_lock
8271
8272 if test -n "$ac_tool_prefix"; then
8273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8274 set dummy ${ac_tool_prefix}mt; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 if test -n "$MANIFEST_TOOL"; then
8281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8285 do
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8293 fi
8294 done
8295 done
8296 IFS=$as_save_IFS
8297
8298 fi
8299 fi
8300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8301 if test -n "$MANIFEST_TOOL"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8303 $as_echo "$MANIFEST_TOOL" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308
8309
8310 fi
8311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8313 # Extract the first word of "mt", so it can be a program name with args.
8314 set dummy mt; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 if test -n "$ac_ct_MANIFEST_TOOL"; then
8321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8333 fi
8334 done
8335 done
8336 IFS=$as_save_IFS
8337
8338 fi
8339 fi
8340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8341 if test -n "$ac_ct_MANIFEST_TOOL"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8347 fi
8348
8349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8350 MANIFEST_TOOL=":"
8351 else
8352 case $cross_compiling:$ac_tool_warned in
8353 yes:)
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8356 ac_tool_warned=yes ;;
8357 esac
8358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8359 fi
8360 else
8361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8362 fi
8363
8364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8367 if ${lt_cv_path_mainfest_tool+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 lt_cv_path_mainfest_tool=no
8371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8373 cat conftest.err >&5
8374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8375 lt_cv_path_mainfest_tool=yes
8376 fi
8377 rm -f conftest*
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8381 if test yes != "$lt_cv_path_mainfest_tool"; then
8382 MANIFEST_TOOL=:
8383 fi
8384
8385
8386
8387
8388
8389
8390 case $host_os in
8391 rhapsody* | darwin*)
8392 if test -n "$ac_tool_prefix"; then
8393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 if test -n "$DSYMUTIL"; then
8401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 break 2
8413 fi
8414 done
8415 done
8416 IFS=$as_save_IFS
8417
8418 fi
8419 fi
8420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8421 if test -n "$DSYMUTIL"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8423 $as_echo "$DSYMUTIL" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430 fi
8431 if test -z "$ac_cv_prog_DSYMUTIL"; then
8432 ac_ct_DSYMUTIL=$DSYMUTIL
8433 # Extract the first word of "dsymutil", so it can be a program name with args.
8434 set dummy dsymutil; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 if test -n "$ac_ct_DSYMUTIL"; then
8441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8453 fi
8454 done
8455 done
8456 IFS=$as_save_IFS
8457
8458 fi
8459 fi
8460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8461 if test -n "$ac_ct_DSYMUTIL"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8464 else
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8467 fi
8468
8469 if test "x$ac_ct_DSYMUTIL" = x; then
8470 DSYMUTIL=":"
8471 else
8472 case $cross_compiling:$ac_tool_warned in
8473 yes:)
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8476 ac_tool_warned=yes ;;
8477 esac
8478 DSYMUTIL=$ac_ct_DSYMUTIL
8479 fi
8480 else
8481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8482 fi
8483
8484 if test -n "$ac_tool_prefix"; then
8485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_NMEDIT+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 if test -n "$NMEDIT"; then
8493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8505 fi
8506 done
8507 done
8508 IFS=$as_save_IFS
8509
8510 fi
8511 fi
8512 NMEDIT=$ac_cv_prog_NMEDIT
8513 if test -n "$NMEDIT"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8515 $as_echo "$NMEDIT" >&6; }
8516 else
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521
8522 fi
8523 if test -z "$ac_cv_prog_NMEDIT"; then
8524 ac_ct_NMEDIT=$NMEDIT
8525 # Extract the first word of "nmedit", so it can be a program name with args.
8526 set dummy nmedit; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 if test -n "$ac_ct_NMEDIT"; then
8533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8534 else
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546 done
8547 done
8548 IFS=$as_save_IFS
8549
8550 fi
8551 fi
8552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8553 if test -n "$ac_ct_NMEDIT"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8555 $as_echo "$ac_ct_NMEDIT" >&6; }
8556 else
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560
8561 if test "x$ac_ct_NMEDIT" = x; then
8562 NMEDIT=":"
8563 else
8564 case $cross_compiling:$ac_tool_warned in
8565 yes:)
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8568 ac_tool_warned=yes ;;
8569 esac
8570 NMEDIT=$ac_ct_NMEDIT
8571 fi
8572 else
8573 NMEDIT="$ac_cv_prog_NMEDIT"
8574 fi
8575
8576 if test -n "$ac_tool_prefix"; then
8577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_LIPO+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 if test -n "$LIPO"; then
8585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8597 fi
8598 done
8599 done
8600 IFS=$as_save_IFS
8601
8602 fi
8603 fi
8604 LIPO=$ac_cv_prog_LIPO
8605 if test -n "$LIPO"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8607 $as_echo "$LIPO" >&6; }
8608 else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613
8614 fi
8615 if test -z "$ac_cv_prog_LIPO"; then
8616 ac_ct_LIPO=$LIPO
8617 # Extract the first word of "lipo", so it can be a program name with args.
8618 set dummy lipo; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test -n "$ac_ct_LIPO"; then
8625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_ac_ct_LIPO="lipo"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 fi
8643 fi
8644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8645 if test -n "$ac_ct_LIPO"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8647 $as_echo "$ac_ct_LIPO" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8651 fi
8652
8653 if test "x$ac_ct_LIPO" = x; then
8654 LIPO=":"
8655 else
8656 case $cross_compiling:$ac_tool_warned in
8657 yes:)
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8660 ac_tool_warned=yes ;;
8661 esac
8662 LIPO=$ac_ct_LIPO
8663 fi
8664 else
8665 LIPO="$ac_cv_prog_LIPO"
8666 fi
8667
8668 if test -n "$ac_tool_prefix"; then
8669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8670 set dummy ${ac_tool_prefix}otool; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_prog_OTOOL+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 if test -n "$OTOOL"; then
8677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690 done
8691 done
8692 IFS=$as_save_IFS
8693
8694 fi
8695 fi
8696 OTOOL=$ac_cv_prog_OTOOL
8697 if test -n "$OTOOL"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8699 $as_echo "$OTOOL" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 fi
8704
8705
8706 fi
8707 if test -z "$ac_cv_prog_OTOOL"; then
8708 ac_ct_OTOOL=$OTOOL
8709 # Extract the first word of "otool", so it can be a program name with args.
8710 set dummy otool; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 if test -n "$ac_ct_OTOOL"; then
8717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8721 do
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726 ac_cv_prog_ac_ct_OTOOL="otool"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8729 fi
8730 done
8731 done
8732 IFS=$as_save_IFS
8733
8734 fi
8735 fi
8736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8737 if test -n "$ac_ct_OTOOL"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8739 $as_echo "$ac_ct_OTOOL" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 fi
8744
8745 if test "x$ac_ct_OTOOL" = x; then
8746 OTOOL=":"
8747 else
8748 case $cross_compiling:$ac_tool_warned in
8749 yes:)
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8752 ac_tool_warned=yes ;;
8753 esac
8754 OTOOL=$ac_ct_OTOOL
8755 fi
8756 else
8757 OTOOL="$ac_cv_prog_OTOOL"
8758 fi
8759
8760 if test -n "$ac_tool_prefix"; then
8761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if ${ac_cv_prog_OTOOL64+:} false; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 if test -n "$OTOOL64"; then
8769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8781 fi
8782 done
8783 done
8784 IFS=$as_save_IFS
8785
8786 fi
8787 fi
8788 OTOOL64=$ac_cv_prog_OTOOL64
8789 if test -n "$OTOOL64"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8791 $as_echo "$OTOOL64" >&6; }
8792 else
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796
8797
8798 fi
8799 if test -z "$ac_cv_prog_OTOOL64"; then
8800 ac_ct_OTOOL64=$OTOOL64
8801 # Extract the first word of "otool64", so it can be a program name with args.
8802 set dummy otool64; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 if test -n "$ac_ct_OTOOL64"; then
8809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8810 else
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818 ac_cv_prog_ac_ct_OTOOL64="otool64"
8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 break 2
8821 fi
8822 done
8823 done
8824 IFS=$as_save_IFS
8825
8826 fi
8827 fi
8828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8829 if test -n "$ac_ct_OTOOL64"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8831 $as_echo "$ac_ct_OTOOL64" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836
8837 if test "x$ac_ct_OTOOL64" = x; then
8838 OTOOL64=":"
8839 else
8840 case $cross_compiling:$ac_tool_warned in
8841 yes:)
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8844 ac_tool_warned=yes ;;
8845 esac
8846 OTOOL64=$ac_ct_OTOOL64
8847 fi
8848 else
8849 OTOOL64="$ac_cv_prog_OTOOL64"
8850 fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8879 $as_echo_n "checking for -single_module linker flag... " >&6; }
8880 if ${lt_cv_apple_cc_single_mod+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 lt_cv_apple_cc_single_mod=no
8884 if test -z "$LT_MULTI_MODULE"; then
8885 # By default we will add the -single_module flag. You can override
8886 # by either setting the environment variable LT_MULTI_MODULE
8887 # non-empty at configure time, or by adding -multi_module to the
8888 # link flags.
8889 rm -rf libconftest.dylib*
8890 echo "int foo(void){return 1;}" > conftest.c
8891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8892 -dynamiclib -Wl,-single_module conftest.c" >&5
8893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8895 _lt_result=$?
8896 # If there is a non-empty error log, and "single_module"
8897 # appears in it, assume the flag caused a linker warning
8898 if test -s conftest.err && $GREP single_module conftest.err; then
8899 cat conftest.err >&5
8900 # Otherwise, if the output was created with a 0 exit code from
8901 # the compiler, it worked.
8902 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8903 lt_cv_apple_cc_single_mod=yes
8904 else
8905 cat conftest.err >&5
8906 fi
8907 rm -rf libconftest.dylib*
8908 rm -f conftest.*
8909 fi
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8915 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8916 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 lt_cv_ld_exported_symbols_list=no
8920 save_LDFLAGS=$LDFLAGS
8921 echo "_main" > conftest.sym
8922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925
8926 int
8927 main ()
8928 {
8929
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 lt_cv_ld_exported_symbols_list=yes
8936 else
8937 lt_cv_ld_exported_symbols_list=no
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 LDFLAGS=$save_LDFLAGS
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8946
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8948 $as_echo_n "checking for -force_load linker flag... " >&6; }
8949 if ${lt_cv_ld_force_load+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 lt_cv_ld_force_load=no
8953 cat > conftest.c << _LT_EOF
8954 int forced_loaded() { return 2;}
8955 _LT_EOF
8956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8958 echo "$AR cr libconftest.a conftest.o" >&5
8959 $AR cr libconftest.a conftest.o 2>&5
8960 echo "$RANLIB libconftest.a" >&5
8961 $RANLIB libconftest.a 2>&5
8962 cat > conftest.c << _LT_EOF
8963 int main() { return 0;}
8964 _LT_EOF
8965 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8966 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8967 _lt_result=$?
8968 if test -s conftest.err && $GREP force_load conftest.err; then
8969 cat conftest.err >&5
8970 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8971 lt_cv_ld_force_load=yes
8972 else
8973 cat conftest.err >&5
8974 fi
8975 rm -f conftest.err libconftest.a conftest conftest.c
8976 rm -rf conftest.dSYM
8977
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8980 $as_echo "$lt_cv_ld_force_load" >&6; }
8981 case $host_os in
8982 rhapsody* | darwin1.[012])
8983 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8984 darwin1.*)
8985 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8986 darwin*) # darwin 5.x on
8987 # if running on 10.5 or later, the deployment target defaults
8988 # to the OS version, if on x86, and 10.4, the deployment
8989 # target defaults to 10.4. Don't you love it?
8990 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8991 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8992 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8993 10.[012][,.]*)
8994 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8995 10.*)
8996 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8997 esac
8998 ;;
8999 esac
9000 if test yes = "$lt_cv_apple_cc_single_mod"; then
9001 _lt_dar_single_mod='$single_module'
9002 fi
9003 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9004 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9005 else
9006 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9007 fi
9008 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9009 _lt_dsymutil='~$DSYMUTIL $lib || :'
9010 else
9011 _lt_dsymutil=
9012 fi
9013 ;;
9014 esac
9015
9016 # func_munge_path_list VARIABLE PATH
9017 # -----------------------------------
9018 # VARIABLE is name of variable containing _space_ separated list of
9019 # directories to be munged by the contents of PATH, which is string
9020 # having a format:
9021 # "DIR[:DIR]:"
9022 # string "DIR[ DIR]" will be prepended to VARIABLE
9023 # ":DIR[:DIR]"
9024 # string "DIR[ DIR]" will be appended to VARIABLE
9025 # "DIRP[:DIRP]::[DIRA:]DIRA"
9026 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9027 # "DIRA[ DIRA]" will be appended to VARIABLE
9028 # "DIR[:DIR]"
9029 # VARIABLE will be replaced by "DIR[ DIR]"
9030 func_munge_path_list ()
9031 {
9032 case x$2 in
9033 x)
9034 ;;
9035 *:)
9036 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9037 ;;
9038 x:*)
9039 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9040 ;;
9041 *::*)
9042 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9043 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9044 ;;
9045 *)
9046 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9047 ;;
9048 esac
9049 }
9050
9051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9053 inttypes.h stdint.h unistd.h
9054 do :
9055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9057 "
9058 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9059 cat >>confdefs.h <<_ACEOF
9060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9061 _ACEOF
9062
9063 fi
9064
9065 done
9066
9067
9068 for ac_header in dlfcn.h
9069 do :
9070 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9071 "
9072 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9073 cat >>confdefs.h <<_ACEOF
9074 #define HAVE_DLFCN_H 1
9075 _ACEOF
9076
9077 fi
9078
9079 done
9080
9081
9082
9083
9084
9085 # Set options
9086
9087
9088
9089 enable_dlopen=no
9090
9091
9092 enable_win32_dll=no
9093
9094
9095 # Check whether --enable-shared was given.
9096 if test "${enable_shared+set}" = set; then :
9097 enableval=$enable_shared; p=${PACKAGE-default}
9098 case $enableval in
9099 yes) enable_shared=yes ;;
9100 no) enable_shared=no ;;
9101 *)
9102 enable_shared=no
9103 # Look at the argument we got. We use all the common list separators.
9104 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9105 for pkg in $enableval; do
9106 IFS=$lt_save_ifs
9107 if test "X$pkg" = "X$p"; then
9108 enable_shared=yes
9109 fi
9110 done
9111 IFS=$lt_save_ifs
9112 ;;
9113 esac
9114 else
9115 enable_shared=yes
9116 fi
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126 # Check whether --enable-static was given.
9127 if test "${enable_static+set}" = set; then :
9128 enableval=$enable_static; p=${PACKAGE-default}
9129 case $enableval in
9130 yes) enable_static=yes ;;
9131 no) enable_static=no ;;
9132 *)
9133 enable_static=no
9134 # Look at the argument we got. We use all the common list separators.
9135 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9136 for pkg in $enableval; do
9137 IFS=$lt_save_ifs
9138 if test "X$pkg" = "X$p"; then
9139 enable_static=yes
9140 fi
9141 done
9142 IFS=$lt_save_ifs
9143 ;;
9144 esac
9145 else
9146 enable_static=yes
9147 fi
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158 # Check whether --with-pic was given.
9159 if test "${with_pic+set}" = set; then :
9160 withval=$with_pic; lt_p=${PACKAGE-default}
9161 case $withval in
9162 yes|no) pic_mode=$withval ;;
9163 *)
9164 pic_mode=default
9165 # Look at the argument we got. We use all the common list separators.
9166 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9167 for lt_pkg in $withval; do
9168 IFS=$lt_save_ifs
9169 if test "X$lt_pkg" = "X$lt_p"; then
9170 pic_mode=yes
9171 fi
9172 done
9173 IFS=$lt_save_ifs
9174 ;;
9175 esac
9176 else
9177 pic_mode=default
9178 fi
9179
9180
9181
9182
9183
9184
9185
9186
9187 # Check whether --enable-fast-install was given.
9188 if test "${enable_fast_install+set}" = set; then :
9189 enableval=$enable_fast_install; p=${PACKAGE-default}
9190 case $enableval in
9191 yes) enable_fast_install=yes ;;
9192 no) enable_fast_install=no ;;
9193 *)
9194 enable_fast_install=no
9195 # Look at the argument we got. We use all the common list separators.
9196 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9197 for pkg in $enableval; do
9198 IFS=$lt_save_ifs
9199 if test "X$pkg" = "X$p"; then
9200 enable_fast_install=yes
9201 fi
9202 done
9203 IFS=$lt_save_ifs
9204 ;;
9205 esac
9206 else
9207 enable_fast_install=yes
9208 fi
9209
9210
9211
9212
9213
9214
9215
9216
9217 shared_archive_member_spec=
9218 case $host,$enable_shared in
9219 power*-*-aix[5-9]*,yes)
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9221 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9222
9223 # Check whether --with-aix-soname was given.
9224 if test "${with_aix_soname+set}" = set; then :
9225 withval=$with_aix_soname; case $withval in
9226 aix|svr4|both)
9227 ;;
9228 *)
9229 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9230 ;;
9231 esac
9232 lt_cv_with_aix_soname=$with_aix_soname
9233 else
9234 if ${lt_cv_with_aix_soname+:} false; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 lt_cv_with_aix_soname=aix
9238 fi
9239
9240 with_aix_soname=$lt_cv_with_aix_soname
9241 fi
9242
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9244 $as_echo "$with_aix_soname" >&6; }
9245 if test aix != "$with_aix_soname"; then
9246 # For the AIX way of multilib, we name the shared archive member
9247 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9248 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9249 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9250 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9251 if test 64 = "${OBJECT_MODE-32}"; then
9252 shared_archive_member_spec=shr_64
9253 else
9254 shared_archive_member_spec=shr
9255 fi
9256 fi
9257 ;;
9258 *)
9259 with_aix_soname=aix
9260 ;;
9261 esac
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272 # This can be used to rebuild libtool when needed
9273 LIBTOOL_DEPS=$ltmain
9274
9275 # Always use our own libtool.
9276 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 test -z "$LN_S" && LN_S="ln -s"
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322 if test -n "${ZSH_VERSION+set}"; then
9323 setopt NO_GLOB_SUBST
9324 fi
9325
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9327 $as_echo_n "checking for objdir... " >&6; }
9328 if ${lt_cv_objdir+:} false; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 rm -f .libs 2>/dev/null
9332 mkdir .libs 2>/dev/null
9333 if test -d .libs; then
9334 lt_cv_objdir=.libs
9335 else
9336 # MS-DOS does not allow filenames that begin with a dot.
9337 lt_cv_objdir=_libs
9338 fi
9339 rmdir .libs 2>/dev/null
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9342 $as_echo "$lt_cv_objdir" >&6; }
9343 objdir=$lt_cv_objdir
9344
9345
9346
9347
9348
9349 cat >>confdefs.h <<_ACEOF
9350 #define LT_OBJDIR "$lt_cv_objdir/"
9351 _ACEOF
9352
9353
9354
9355
9356 case $host_os in
9357 aix3*)
9358 # AIX sometimes has problems with the GCC collect2 program. For some
9359 # reason, if we set the COLLECT_NAMES environment variable, the problems
9360 # vanish in a puff of smoke.
9361 if test set != "${COLLECT_NAMES+set}"; then
9362 COLLECT_NAMES=
9363 export COLLECT_NAMES
9364 fi
9365 ;;
9366 esac
9367
9368 # Global variables:
9369 ofile=libtool
9370 can_build_shared=yes
9371
9372 # All known linkers require a '.a' archive for static linking (except MSVC,
9373 # which needs '.lib').
9374 libext=a
9375
9376 with_gnu_ld=$lt_cv_prog_gnu_ld
9377
9378 old_CC=$CC
9379 old_CFLAGS=$CFLAGS
9380
9381 # Set sane defaults for various variables
9382 test -z "$CC" && CC=cc
9383 test -z "$LTCC" && LTCC=$CC
9384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9385 test -z "$LD" && LD=ld
9386 test -z "$ac_objext" && ac_objext=o
9387
9388 func_cc_basename $compiler
9389 cc_basename=$func_cc_basename_result
9390
9391
9392 # Only perform the check for file, if the check method requires it
9393 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9394 case $deplibs_check_method in
9395 file_magic*)
9396 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9398 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9399 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 case $MAGIC_CMD in
9403 [\\/*] | ?:[\\/]*)
9404 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9405 ;;
9406 *)
9407 lt_save_MAGIC_CMD=$MAGIC_CMD
9408 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9410 for ac_dir in $ac_dummy; do
9411 IFS=$lt_save_ifs
9412 test -z "$ac_dir" && ac_dir=.
9413 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9414 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9415 if test -n "$file_magic_test_file"; then
9416 case $deplibs_check_method in
9417 "file_magic "*)
9418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9419 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9421 $EGREP "$file_magic_regex" > /dev/null; then
9422 :
9423 else
9424 cat <<_LT_EOF 1>&2
9425
9426 *** Warning: the command libtool uses to detect shared libraries,
9427 *** $file_magic_cmd, produces output that libtool cannot recognize.
9428 *** The result is that libtool may fail to recognize shared libraries
9429 *** as such. This will affect the creation of libtool libraries that
9430 *** depend on shared libraries, but programs linked with such libtool
9431 *** libraries will work regardless of this problem. Nevertheless, you
9432 *** may want to report the problem to your system manager and/or to
9433 *** [email protected]
9434
9435 _LT_EOF
9436 fi ;;
9437 esac
9438 fi
9439 break
9440 fi
9441 done
9442 IFS=$lt_save_ifs
9443 MAGIC_CMD=$lt_save_MAGIC_CMD
9444 ;;
9445 esac
9446 fi
9447
9448 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9449 if test -n "$MAGIC_CMD"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9451 $as_echo "$MAGIC_CMD" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9455 fi
9456
9457
9458
9459
9460
9461 if test -z "$lt_cv_path_MAGIC_CMD"; then
9462 if test -n "$ac_tool_prefix"; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9464 $as_echo_n "checking for file... " >&6; }
9465 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 case $MAGIC_CMD in
9469 [\\/*] | ?:[\\/]*)
9470 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9471 ;;
9472 *)
9473 lt_save_MAGIC_CMD=$MAGIC_CMD
9474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9476 for ac_dir in $ac_dummy; do
9477 IFS=$lt_save_ifs
9478 test -z "$ac_dir" && ac_dir=.
9479 if test -f "$ac_dir/file"; then
9480 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9481 if test -n "$file_magic_test_file"; then
9482 case $deplibs_check_method in
9483 "file_magic "*)
9484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9485 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9487 $EGREP "$file_magic_regex" > /dev/null; then
9488 :
9489 else
9490 cat <<_LT_EOF 1>&2
9491
9492 *** Warning: the command libtool uses to detect shared libraries,
9493 *** $file_magic_cmd, produces output that libtool cannot recognize.
9494 *** The result is that libtool may fail to recognize shared libraries
9495 *** as such. This will affect the creation of libtool libraries that
9496 *** depend on shared libraries, but programs linked with such libtool
9497 *** libraries will work regardless of this problem. Nevertheless, you
9498 *** may want to report the problem to your system manager and/or to
9499 *** [email protected]
9500
9501 _LT_EOF
9502 fi ;;
9503 esac
9504 fi
9505 break
9506 fi
9507 done
9508 IFS=$lt_save_ifs
9509 MAGIC_CMD=$lt_save_MAGIC_CMD
9510 ;;
9511 esac
9512 fi
9513
9514 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9515 if test -n "$MAGIC_CMD"; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9517 $as_echo "$MAGIC_CMD" >&6; }
9518 else
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9521 fi
9522
9523
9524 else
9525 MAGIC_CMD=:
9526 fi
9527 fi
9528
9529 fi
9530 ;;
9531 esac
9532
9533 # Use C for the default configuration in the libtool script
9534
9535 lt_save_CC=$CC
9536 ac_ext=c
9537 ac_cpp='$CPP $CPPFLAGS'
9538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9541
9542
9543 # Source file extension for C test sources.
9544 ac_ext=c
9545
9546 # Object file extension for compiled C test sources.
9547 objext=o
9548 objext=$objext
9549
9550 # Code to be used in simple compile tests
9551 lt_simple_compile_test_code="int some_variable = 0;"
9552
9553 # Code to be used in simple link tests
9554 lt_simple_link_test_code='int main(){return(0);}'
9555
9556
9557
9558
9559
9560
9561
9562 # If no C compiler was specified, use CC.
9563 LTCC=${LTCC-"$CC"}
9564
9565 # If no C compiler flags were specified, use CFLAGS.
9566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9567
9568 # Allow CC to be a program name with arguments.
9569 compiler=$CC
9570
9571 # Save the default compiler, since it gets overwritten when the other
9572 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9573 compiler_DEFAULT=$CC
9574
9575 # save warnings/boilerplate of simple test code
9576 ac_outfile=conftest.$ac_objext
9577 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9579 _lt_compiler_boilerplate=`cat conftest.err`
9580 $RM conftest*
9581
9582 ac_outfile=conftest.$ac_objext
9583 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9585 _lt_linker_boilerplate=`cat conftest.err`
9586 $RM -r conftest*
9587
9588
9589 ## CAVEAT EMPTOR:
9590 ## There is no encapsulation within the following macros, do not change
9591 ## the running order or otherwise move them around unless you know exactly
9592 ## what you are doing...
9593 if test -n "$compiler"; then
9594
9595 lt_prog_compiler_no_builtin_flag=
9596
9597 if test yes = "$GCC"; then
9598 case $cc_basename in
9599 nvcc*)
9600 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9601 *)
9602 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9603 esac
9604
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9606 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9607 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 lt_cv_prog_compiler_rtti_exceptions=no
9611 ac_outfile=conftest.$ac_objext
9612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9613 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9614 # Insert the option either (1) after the last *FLAGS variable, or
9615 # (2) before a word containing "conftest.", or (3) at the end.
9616 # Note that $ac_compile itself does not contain backslashes and begins
9617 # with a dollar sign (not a hyphen), so the echo should work correctly.
9618 # The option is referenced via a variable to avoid confusing sed.
9619 lt_compile=`echo "$ac_compile" | $SED \
9620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9622 -e 's:$: $lt_compiler_flag:'`
9623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9624 (eval "$lt_compile" 2>conftest.err)
9625 ac_status=$?
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 if (exit $ac_status) && test -s "$ac_outfile"; then
9629 # The compiler can only warn and ignore the option if not recognized
9630 # So say no if there are warnings other than the usual output.
9631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9634 lt_cv_prog_compiler_rtti_exceptions=yes
9635 fi
9636 fi
9637 $RM conftest*
9638
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9641 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9642
9643 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9644 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9645 else
9646 :
9647 fi
9648
9649 fi
9650
9651
9652
9653
9654
9655
9656 lt_prog_compiler_wl=
9657 lt_prog_compiler_pic=
9658 lt_prog_compiler_static=
9659
9660
9661 if test yes = "$GCC"; then
9662 lt_prog_compiler_wl='-Wl,'
9663 lt_prog_compiler_static='-static'
9664
9665 case $host_os in
9666 aix*)
9667 # All AIX code is PIC.
9668 if test ia64 = "$host_cpu"; then
9669 # AIX 5 now supports IA64 processor
9670 lt_prog_compiler_static='-Bstatic'
9671 fi
9672 lt_prog_compiler_pic='-fPIC'
9673 ;;
9674
9675 amigaos*)
9676 case $host_cpu in
9677 powerpc)
9678 # see comment about AmigaOS4 .so support
9679 lt_prog_compiler_pic='-fPIC'
9680 ;;
9681 m68k)
9682 # FIXME: we need at least 68020 code to build shared libraries, but
9683 # adding the '-m68020' flag to GCC prevents building anything better,
9684 # like '-m68040'.
9685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9686 ;;
9687 esac
9688 ;;
9689
9690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9691 # PIC is the default for these OSes.
9692 ;;
9693
9694 mingw* | cygwin* | pw32* | os2* | cegcc*)
9695 # This hack is so that the source file can tell whether it is being
9696 # built for inclusion in a dll (and should export symbols for example).
9697 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9698 # (--disable-auto-import) libraries
9699 lt_prog_compiler_pic='-DDLL_EXPORT'
9700 case $host_os in
9701 os2*)
9702 lt_prog_compiler_static='$wl-static'
9703 ;;
9704 esac
9705 ;;
9706
9707 darwin* | rhapsody*)
9708 # PIC is the default on this platform
9709 # Common symbols not allowed in MH_DYLIB files
9710 lt_prog_compiler_pic='-fno-common'
9711 ;;
9712
9713 haiku*)
9714 # PIC is the default for Haiku.
9715 # The "-static" flag exists, but is broken.
9716 lt_prog_compiler_static=
9717 ;;
9718
9719 hpux*)
9720 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9721 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9722 # sets the default TLS model and affects inlining.
9723 case $host_cpu in
9724 hppa*64*)
9725 # +Z the default
9726 ;;
9727 *)
9728 lt_prog_compiler_pic='-fPIC'
9729 ;;
9730 esac
9731 ;;
9732
9733 interix[3-9]*)
9734 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9735 # Instead, we relocate shared libraries at runtime.
9736 ;;
9737
9738 msdosdjgpp*)
9739 # Just because we use GCC doesn't mean we suddenly get shared libraries
9740 # on systems that don't support them.
9741 lt_prog_compiler_can_build_shared=no
9742 enable_shared=no
9743 ;;
9744
9745 *nto* | *qnx*)
9746 # QNX uses GNU C++, but need to define -shared option too, otherwise
9747 # it will coredump.
9748 lt_prog_compiler_pic='-fPIC -shared'
9749 ;;
9750
9751 sysv4*MP*)
9752 if test -d /usr/nec; then
9753 lt_prog_compiler_pic=-Kconform_pic
9754 fi
9755 ;;
9756
9757 *)
9758 lt_prog_compiler_pic='-fPIC'
9759 ;;
9760 esac
9761
9762 case $cc_basename in
9763 nvcc*) # Cuda Compiler Driver 2.2
9764 lt_prog_compiler_wl='-Xlinker '
9765 if test -n "$lt_prog_compiler_pic"; then
9766 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9767 fi
9768 ;;
9769 esac
9770 else
9771 # PORTME Check for flag to pass linker flags through the system compiler.
9772 case $host_os in
9773 aix*)
9774 lt_prog_compiler_wl='-Wl,'
9775 if test ia64 = "$host_cpu"; then
9776 # AIX 5 now supports IA64 processor
9777 lt_prog_compiler_static='-Bstatic'
9778 else
9779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9780 fi
9781 ;;
9782
9783 darwin* | rhapsody*)
9784 # PIC is the default on this platform
9785 # Common symbols not allowed in MH_DYLIB files
9786 lt_prog_compiler_pic='-fno-common'
9787 case $cc_basename in
9788 nagfor*)
9789 # NAG Fortran compiler
9790 lt_prog_compiler_wl='-Wl,-Wl,,'
9791 lt_prog_compiler_pic='-PIC'
9792 lt_prog_compiler_static='-Bstatic'
9793 ;;
9794 esac
9795 ;;
9796
9797 mingw* | cygwin* | pw32* | os2* | cegcc*)
9798 # This hack is so that the source file can tell whether it is being
9799 # built for inclusion in a dll (and should export symbols for example).
9800 lt_prog_compiler_pic='-DDLL_EXPORT'
9801 case $host_os in
9802 os2*)
9803 lt_prog_compiler_static='$wl-static'
9804 ;;
9805 esac
9806 ;;
9807
9808 hpux9* | hpux10* | hpux11*)
9809 lt_prog_compiler_wl='-Wl,'
9810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9811 # not for PA HP-UX.
9812 case $host_cpu in
9813 hppa*64*|ia64*)
9814 # +Z the default
9815 ;;
9816 *)
9817 lt_prog_compiler_pic='+Z'
9818 ;;
9819 esac
9820 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9821 lt_prog_compiler_static='$wl-a ${wl}archive'
9822 ;;
9823
9824 irix5* | irix6* | nonstopux*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # PIC (with -KPIC) is the default.
9827 lt_prog_compiler_static='-non_shared'
9828 ;;
9829
9830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9831 case $cc_basename in
9832 # old Intel for x86_64, which still supported -KPIC.
9833 ecc*)
9834 lt_prog_compiler_wl='-Wl,'
9835 lt_prog_compiler_pic='-KPIC'
9836 lt_prog_compiler_static='-static'
9837 ;;
9838 # flang / f18. f95 an alias for gfortran or flang on Debian
9839 flang* | f18* | f95*)
9840 lt_prog_compiler_wl='-Wl,'
9841 lt_prog_compiler_pic='-fPIC'
9842 lt_prog_compiler_static='-static'
9843 ;;
9844 # icc used to be incompatible with GCC.
9845 # ICC 10 doesn't accept -KPIC any more.
9846 icc* | ifort*)
9847 lt_prog_compiler_wl='-Wl,'
9848 lt_prog_compiler_pic='-fPIC'
9849 lt_prog_compiler_static='-static'
9850 ;;
9851 # Lahey Fortran 8.1.
9852 lf95*)
9853 lt_prog_compiler_wl='-Wl,'
9854 lt_prog_compiler_pic='--shared'
9855 lt_prog_compiler_static='--static'
9856 ;;
9857 nagfor*)
9858 # NAG Fortran compiler
9859 lt_prog_compiler_wl='-Wl,-Wl,,'
9860 lt_prog_compiler_pic='-PIC'
9861 lt_prog_compiler_static='-Bstatic'
9862 ;;
9863 tcc*)
9864 # Fabrice Bellard et al's Tiny C Compiler
9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='-fPIC'
9867 lt_prog_compiler_static='-static'
9868 ;;
9869 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9870 # Portland Group compilers (*not* the Pentium gcc compiler,
9871 # which looks to be a dead project)
9872 lt_prog_compiler_wl='-Wl,'
9873 lt_prog_compiler_pic='-fpic'
9874 lt_prog_compiler_static='-Bstatic'
9875 ;;
9876 ccc*)
9877 lt_prog_compiler_wl='-Wl,'
9878 # All Alpha code is PIC.
9879 lt_prog_compiler_static='-non_shared'
9880 ;;
9881 xl* | bgxl* | bgf* | mpixl*)
9882 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_pic='-qpic'
9885 lt_prog_compiler_static='-qstaticlink'
9886 ;;
9887 *)
9888 case `$CC -V 2>&1 | sed 5q` in
9889 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9890 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9891 lt_prog_compiler_pic='-KPIC'
9892 lt_prog_compiler_static='-Bstatic'
9893 lt_prog_compiler_wl=''
9894 ;;
9895 *Sun\ F* | *Sun*Fortran*)
9896 lt_prog_compiler_pic='-KPIC'
9897 lt_prog_compiler_static='-Bstatic'
9898 lt_prog_compiler_wl='-Qoption ld '
9899 ;;
9900 *Sun\ C*)
9901 # Sun C 5.9
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl='-Wl,'
9905 ;;
9906 *Intel*\ [CF]*Compiler*)
9907 lt_prog_compiler_wl='-Wl,'
9908 lt_prog_compiler_pic='-fPIC'
9909 lt_prog_compiler_static='-static'
9910 ;;
9911 *Portland\ Group*)
9912 lt_prog_compiler_wl='-Wl,'
9913 lt_prog_compiler_pic='-fpic'
9914 lt_prog_compiler_static='-Bstatic'
9915 ;;
9916 esac
9917 ;;
9918 esac
9919 ;;
9920
9921 newsos6)
9922 lt_prog_compiler_pic='-KPIC'
9923 lt_prog_compiler_static='-Bstatic'
9924 ;;
9925
9926 *nto* | *qnx*)
9927 # QNX uses GNU C++, but need to define -shared option too, otherwise
9928 # it will coredump.
9929 lt_prog_compiler_pic='-fPIC -shared'
9930 ;;
9931
9932 osf3* | osf4* | osf5*)
9933 lt_prog_compiler_wl='-Wl,'
9934 # All OSF/1 code is PIC.
9935 lt_prog_compiler_static='-non_shared'
9936 ;;
9937
9938 rdos*)
9939 lt_prog_compiler_static='-non_shared'
9940 ;;
9941
9942 solaris*)
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9945 case $cc_basename in
9946 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9947 lt_prog_compiler_wl='-Qoption ld ';;
9948 *)
9949 lt_prog_compiler_wl='-Wl,';;
9950 esac
9951 ;;
9952
9953 sunos4*)
9954 lt_prog_compiler_wl='-Qoption ld '
9955 lt_prog_compiler_pic='-PIC'
9956 lt_prog_compiler_static='-Bstatic'
9957 ;;
9958
9959 sysv4 | sysv4.2uw2* | sysv4.3*)
9960 lt_prog_compiler_wl='-Wl,'
9961 lt_prog_compiler_pic='-KPIC'
9962 lt_prog_compiler_static='-Bstatic'
9963 ;;
9964
9965 sysv4*MP*)
9966 if test -d /usr/nec; then
9967 lt_prog_compiler_pic='-Kconform_pic'
9968 lt_prog_compiler_static='-Bstatic'
9969 fi
9970 ;;
9971
9972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9973 lt_prog_compiler_wl='-Wl,'
9974 lt_prog_compiler_pic='-KPIC'
9975 lt_prog_compiler_static='-Bstatic'
9976 ;;
9977
9978 unicos*)
9979 lt_prog_compiler_wl='-Wl,'
9980 lt_prog_compiler_can_build_shared=no
9981 ;;
9982
9983 uts4*)
9984 lt_prog_compiler_pic='-pic'
9985 lt_prog_compiler_static='-Bstatic'
9986 ;;
9987
9988 *)
9989 lt_prog_compiler_can_build_shared=no
9990 ;;
9991 esac
9992 fi
9993
9994 case $host_os in
9995 # For platforms that do not support PIC, -DPIC is meaningless:
9996 *djgpp*)
9997 lt_prog_compiler_pic=
9998 ;;
9999 *)
10000 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10001 ;;
10002 esac
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10005 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10006 if ${lt_cv_prog_compiler_pic+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10010 fi
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10012 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10013 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10014
10015 #
10016 # Check to make sure the PIC flag actually works.
10017 #
10018 if test -n "$lt_prog_compiler_pic"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10020 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10021 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 lt_cv_prog_compiler_pic_works=no
10025 ac_outfile=conftest.$ac_objext
10026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10027 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10028 # Insert the option either (1) after the last *FLAGS variable, or
10029 # (2) before a word containing "conftest.", or (3) at the end.
10030 # Note that $ac_compile itself does not contain backslashes and begins
10031 # with a dollar sign (not a hyphen), so the echo should work correctly.
10032 # The option is referenced via a variable to avoid confusing sed.
10033 lt_compile=`echo "$ac_compile" | $SED \
10034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10036 -e 's:$: $lt_compiler_flag:'`
10037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10038 (eval "$lt_compile" 2>conftest.err)
10039 ac_status=$?
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 if (exit $ac_status) && test -s "$ac_outfile"; then
10043 # The compiler can only warn and ignore the option if not recognized
10044 # So say no if there are warnings other than the usual output.
10045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10048 lt_cv_prog_compiler_pic_works=yes
10049 fi
10050 fi
10051 $RM conftest*
10052
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10055 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10056
10057 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10058 case $lt_prog_compiler_pic in
10059 "" | " "*) ;;
10060 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10061 esac
10062 else
10063 lt_prog_compiler_pic=
10064 lt_prog_compiler_can_build_shared=no
10065 fi
10066
10067 fi
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079 #
10080 # Check to make sure the static flag actually works.
10081 #
10082 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10084 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10085 if ${lt_cv_prog_compiler_static_works+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 lt_cv_prog_compiler_static_works=no
10089 save_LDFLAGS=$LDFLAGS
10090 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10091 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10093 # The linker can only warn and ignore the option if not recognized
10094 # So say no if there are warnings
10095 if test -s conftest.err; then
10096 # Append any errors to the config.log.
10097 cat conftest.err 1>&5
10098 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10100 if diff conftest.exp conftest.er2 >/dev/null; then
10101 lt_cv_prog_compiler_static_works=yes
10102 fi
10103 else
10104 lt_cv_prog_compiler_static_works=yes
10105 fi
10106 fi
10107 $RM -r conftest*
10108 LDFLAGS=$save_LDFLAGS
10109
10110 fi
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10112 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10113
10114 if test yes = "$lt_cv_prog_compiler_static_works"; then
10115 :
10116 else
10117 lt_prog_compiler_static=
10118 fi
10119
10120
10121
10122
10123
10124
10125
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10127 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10128 if ${lt_cv_prog_compiler_c_o+:} false; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 lt_cv_prog_compiler_c_o=no
10132 $RM -r conftest 2>/dev/null
10133 mkdir conftest
10134 cd conftest
10135 mkdir out
10136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10137
10138 lt_compiler_flag="-o out/conftest2.$ac_objext"
10139 # Insert the option either (1) after the last *FLAGS variable, or
10140 # (2) before a word containing "conftest.", or (3) at the end.
10141 # Note that $ac_compile itself does not contain backslashes and begins
10142 # with a dollar sign (not a hyphen), so the echo should work correctly.
10143 lt_compile=`echo "$ac_compile" | $SED \
10144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10146 -e 's:$: $lt_compiler_flag:'`
10147 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10148 (eval "$lt_compile" 2>out/conftest.err)
10149 ac_status=$?
10150 cat out/conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10153 then
10154 # The compiler can only warn and ignore the option if not recognized
10155 # So say no if there are warnings
10156 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10157 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10158 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10159 lt_cv_prog_compiler_c_o=yes
10160 fi
10161 fi
10162 chmod u+w . 2>&5
10163 $RM conftest*
10164 # SGI C++ compiler will create directory out/ii_files/ for
10165 # template instantiation
10166 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10167 $RM out/* && rmdir out
10168 cd ..
10169 $RM -r conftest
10170 $RM conftest*
10171
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10174 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10175
10176
10177
10178
10179
10180
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10182 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10183 if ${lt_cv_prog_compiler_c_o+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 lt_cv_prog_compiler_c_o=no
10187 $RM -r conftest 2>/dev/null
10188 mkdir conftest
10189 cd conftest
10190 mkdir out
10191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192
10193 lt_compiler_flag="-o out/conftest2.$ac_objext"
10194 # Insert the option either (1) after the last *FLAGS variable, or
10195 # (2) before a word containing "conftest.", or (3) at the end.
10196 # Note that $ac_compile itself does not contain backslashes and begins
10197 # with a dollar sign (not a hyphen), so the echo should work correctly.
10198 lt_compile=`echo "$ac_compile" | $SED \
10199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10201 -e 's:$: $lt_compiler_flag:'`
10202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10203 (eval "$lt_compile" 2>out/conftest.err)
10204 ac_status=$?
10205 cat out/conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10208 then
10209 # The compiler can only warn and ignore the option if not recognized
10210 # So say no if there are warnings
10211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10212 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10213 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10214 lt_cv_prog_compiler_c_o=yes
10215 fi
10216 fi
10217 chmod u+w . 2>&5
10218 $RM conftest*
10219 # SGI C++ compiler will create directory out/ii_files/ for
10220 # template instantiation
10221 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10222 $RM out/* && rmdir out
10223 cd ..
10224 $RM -r conftest
10225 $RM conftest*
10226
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10229 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10230
10231
10232
10233
10234 hard_links=nottested
10235 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10236 # do not overwrite the value of need_locks provided by the user
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10238 $as_echo_n "checking if we can lock with hard links... " >&6; }
10239 hard_links=yes
10240 $RM conftest*
10241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10242 touch conftest.a
10243 ln conftest.a conftest.b 2>&5 || hard_links=no
10244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10246 $as_echo "$hard_links" >&6; }
10247 if test no = "$hard_links"; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10249 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10250 need_locks=warn
10251 fi
10252 else
10253 need_locks=no
10254 fi
10255
10256
10257
10258
10259
10260
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10262 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10263
10264 runpath_var=
10265 allow_undefined_flag=
10266 always_export_symbols=no
10267 archive_cmds=
10268 archive_expsym_cmds=
10269 compiler_needs_object=no
10270 enable_shared_with_static_runtimes=no
10271 export_dynamic_flag_spec=
10272 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10273 hardcode_automatic=no
10274 hardcode_direct=no
10275 hardcode_direct_absolute=no
10276 hardcode_libdir_flag_spec=
10277 hardcode_libdir_separator=
10278 hardcode_minus_L=no
10279 hardcode_shlibpath_var=unsupported
10280 inherit_rpath=no
10281 link_all_deplibs=unknown
10282 module_cmds=
10283 module_expsym_cmds=
10284 old_archive_from_new_cmds=
10285 old_archive_from_expsyms_cmds=
10286 thread_safe_flag_spec=
10287 whole_archive_flag_spec=
10288 # include_expsyms should be a list of space-separated symbols to be *always*
10289 # included in the symbol list
10290 include_expsyms=
10291 # exclude_expsyms can be an extended regexp of symbols to exclude
10292 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10293 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10294 # as well as any symbol that contains 'd'.
10295 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10296 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10297 # platforms (ab)use it in PIC code, but their linkers get confused if
10298 # the symbol is explicitly referenced. Since portable code cannot
10299 # rely on this symbol name, it's probably fine to never include it in
10300 # preloaded symbol tables.
10301 # Exclude shared library initialization/finalization symbols.
10302 extract_expsyms_cmds=
10303
10304 case $host_os in
10305 cygwin* | mingw* | pw32* | cegcc*)
10306 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10307 # When not using gcc, we currently assume that we are using
10308 # Microsoft Visual C++.
10309 if test yes != "$GCC"; then
10310 with_gnu_ld=no
10311 fi
10312 ;;
10313 interix*)
10314 # we just hope/assume this is gcc and not c89 (= MSVC++)
10315 with_gnu_ld=yes
10316 ;;
10317 openbsd* | bitrig*)
10318 with_gnu_ld=no
10319 ;;
10320 linux* | k*bsd*-gnu | gnu*)
10321 link_all_deplibs=no
10322 ;;
10323 esac
10324
10325 ld_shlibs=yes
10326
10327 # On some targets, GNU ld is compatible enough with the native linker
10328 # that we're better off using the native interface for both.
10329 lt_use_gnu_ld_interface=no
10330 if test yes = "$with_gnu_ld"; then
10331 case $host_os in
10332 aix*)
10333 # The AIX port of GNU ld has always aspired to compatibility
10334 # with the native linker. However, as the warning in the GNU ld
10335 # block says, versions before 2.19.5* couldn't really create working
10336 # shared libraries, regardless of the interface used.
10337 case `$LD -v 2>&1` in
10338 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10339 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10340 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10341 *)
10342 lt_use_gnu_ld_interface=yes
10343 ;;
10344 esac
10345 ;;
10346 *)
10347 lt_use_gnu_ld_interface=yes
10348 ;;
10349 esac
10350 fi
10351
10352 if test yes = "$lt_use_gnu_ld_interface"; then
10353 # If archive_cmds runs LD, not CC, wlarc should be empty
10354 wlarc='$wl'
10355
10356 # Set some defaults for GNU ld with shared library support. These
10357 # are reset later if shared libraries are not supported. Putting them
10358 # here allows them to be overridden if necessary.
10359 runpath_var=LD_RUN_PATH
10360 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10361 export_dynamic_flag_spec='$wl--export-dynamic'
10362 # ancient GNU ld didn't support --whole-archive et. al.
10363 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10364 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10365 else
10366 whole_archive_flag_spec=
10367 fi
10368 supports_anon_versioning=no
10369 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10370 *GNU\ gold*) supports_anon_versioning=yes ;;
10371 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10372 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10373 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10374 *\ 2.11.*) ;; # other 2.11 versions
10375 *) supports_anon_versioning=yes ;;
10376 esac
10377
10378 # See if GNU ld supports shared libraries.
10379 case $host_os in
10380 aix[3-9]*)
10381 # On AIX/PPC, the GNU linker is very broken
10382 if test ia64 != "$host_cpu"; then
10383 ld_shlibs=no
10384 cat <<_LT_EOF 1>&2
10385
10386 *** Warning: the GNU linker, at least up to release 2.19, is reported
10387 *** to be unable to reliably create shared libraries on AIX.
10388 *** Therefore, libtool is disabling shared libraries support. If you
10389 *** really care for shared libraries, you may want to install binutils
10390 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10391 *** You will then need to restart the configuration process.
10392
10393 _LT_EOF
10394 fi
10395 ;;
10396
10397 amigaos*)
10398 case $host_cpu in
10399 powerpc)
10400 # see comment about AmigaOS4 .so support
10401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10402 archive_expsym_cmds=''
10403 ;;
10404 m68k)
10405 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)'
10406 hardcode_libdir_flag_spec='-L$libdir'
10407 hardcode_minus_L=yes
10408 ;;
10409 esac
10410 ;;
10411
10412 beos*)
10413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10414 allow_undefined_flag=unsupported
10415 # Joseph Beckenbach <[email protected]> says some releases of gcc
10416 # support --undefined. This deserves some investigation. FIXME
10417 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10418 else
10419 ld_shlibs=no
10420 fi
10421 ;;
10422
10423 cygwin* | mingw* | pw32* | cegcc*)
10424 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10425 # as there is no search path for DLLs.
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 export_dynamic_flag_spec='$wl--export-all-symbols'
10428 allow_undefined_flag=unsupported
10429 always_export_symbols=no
10430 enable_shared_with_static_runtimes=yes
10431 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'
10432 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10433
10434 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10436 # If the export-symbols file already is a .def file, use it as
10437 # is; otherwise, prepend EXPORTS...
10438 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10439 cp $export_symbols $output_objdir/$soname.def;
10440 else
10441 echo EXPORTS > $output_objdir/$soname.def;
10442 cat $export_symbols >> $output_objdir/$soname.def;
10443 fi~
10444 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10445 else
10446 ld_shlibs=no
10447 fi
10448 ;;
10449
10450 haiku*)
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10452 link_all_deplibs=yes
10453 ;;
10454
10455 os2*)
10456 hardcode_libdir_flag_spec='-L$libdir'
10457 hardcode_minus_L=yes
10458 allow_undefined_flag=unsupported
10459 shrext_cmds=.dll
10460 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10461 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10462 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10463 $ECHO EXPORTS >> $output_objdir/$libname.def~
10464 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10465 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10466 emximp -o $lib $output_objdir/$libname.def'
10467 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10468 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10469 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10470 $ECHO EXPORTS >> $output_objdir/$libname.def~
10471 prefix_cmds="$SED"~
10472 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10473 prefix_cmds="$prefix_cmds -e 1d";
10474 fi~
10475 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10476 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10477 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10478 emximp -o $lib $output_objdir/$libname.def'
10479 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10480 enable_shared_with_static_runtimes=yes
10481 ;;
10482
10483 interix[3-9]*)
10484 hardcode_direct=no
10485 hardcode_shlibpath_var=no
10486 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10487 export_dynamic_flag_spec='$wl-E'
10488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10489 # Instead, shared libraries are loaded at an image base (0x10000000 by
10490 # default) and relocated if they conflict, which is a slow very memory
10491 # consuming and fragmenting process. To avoid this, we pick a random,
10492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10495 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'
10496 ;;
10497
10498 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10499 tmp_diet=no
10500 if test linux-dietlibc = "$host_os"; then
10501 case $cc_basename in
10502 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10503 esac
10504 fi
10505 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10506 && test no = "$tmp_diet"
10507 then
10508 tmp_addflag=' $pic_flag'
10509 tmp_sharedflag='-shared'
10510 case $cc_basename,$host_cpu in
10511 pgcc*) # Portland Group C compiler
10512 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'
10513 tmp_addflag=' $pic_flag'
10514 ;;
10515 pgf77* | pgf90* | pgf95* | pgfortran*)
10516 # Portland Group f77 and f90 compilers
10517 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'
10518 tmp_addflag=' $pic_flag -Mnomain' ;;
10519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10520 tmp_addflag=' -i_dynamic' ;;
10521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10522 tmp_addflag=' -i_dynamic -nofor_main' ;;
10523 ifc* | ifort*) # Intel Fortran compiler
10524 tmp_addflag=' -nofor_main' ;;
10525 lf95*) # Lahey Fortran 8.1
10526 whole_archive_flag_spec=
10527 tmp_sharedflag='--shared' ;;
10528 nagfor*) # NAGFOR 5.3
10529 tmp_sharedflag='-Wl,-shared' ;;
10530 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10531 tmp_sharedflag='-qmkshrobj'
10532 tmp_addflag= ;;
10533 nvcc*) # Cuda Compiler Driver 2.2
10534 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'
10535 compiler_needs_object=yes
10536 ;;
10537 esac
10538 case `$CC -V 2>&1 | sed 5q` in
10539 *Sun\ C*) # Sun C 5.9
10540 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'
10541 compiler_needs_object=yes
10542 tmp_sharedflag='-G' ;;
10543 *Sun\ F*) # Sun Fortran 8.3
10544 tmp_sharedflag='-G' ;;
10545 esac
10546 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10547
10548 if test yes = "$supports_anon_versioning"; then
10549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10551 echo "local: *; };" >> $output_objdir/$libname.ver~
10552 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10553 fi
10554
10555 case $cc_basename in
10556 tcc*)
10557 export_dynamic_flag_spec='-rdynamic'
10558 ;;
10559 xlf* | bgf* | bgxlf* | mpixlf*)
10560 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10561 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10562 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10563 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10564 if test yes = "$supports_anon_versioning"; then
10565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10567 echo "local: *; };" >> $output_objdir/$libname.ver~
10568 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10569 fi
10570 ;;
10571 esac
10572 else
10573 ld_shlibs=no
10574 fi
10575 ;;
10576
10577 netbsd* | netbsdelf*-gnu)
10578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10579 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10580 wlarc=
10581 else
10582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10583 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10584 fi
10585 ;;
10586
10587 solaris*)
10588 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10589 ld_shlibs=no
10590 cat <<_LT_EOF 1>&2
10591
10592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10593 *** create shared libraries on Solaris systems. Therefore, libtool
10594 *** is disabling shared libraries support. We urge you to upgrade GNU
10595 *** binutils to release 2.9.1 or newer. Another option is to modify
10596 *** your PATH or compiler configuration so that the native linker is
10597 *** used, and then restart.
10598
10599 _LT_EOF
10600 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10602 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10603 else
10604 ld_shlibs=no
10605 fi
10606 ;;
10607
10608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10609 case `$LD -v 2>&1` in
10610 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10611 ld_shlibs=no
10612 cat <<_LT_EOF 1>&2
10613
10614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10615 *** reliably create shared libraries on SCO systems. Therefore, libtool
10616 *** is disabling shared libraries support. We urge you to upgrade GNU
10617 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10618 *** your PATH or compiler configuration so that the native linker is
10619 *** used, and then restart.
10620
10621 _LT_EOF
10622 ;;
10623 *)
10624 # For security reasons, it is highly recommended that you always
10625 # use absolute paths for naming shared libraries, and exclude the
10626 # DT_RUNPATH tag from executables and libraries. But doing so
10627 # requires that you compile everything twice, which is a pain.
10628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10629 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10632 else
10633 ld_shlibs=no
10634 fi
10635 ;;
10636 esac
10637 ;;
10638
10639 sunos4*)
10640 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10641 wlarc=
10642 hardcode_direct=yes
10643 hardcode_shlibpath_var=no
10644 ;;
10645
10646 *)
10647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10648 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10649 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10650 else
10651 ld_shlibs=no
10652 fi
10653 ;;
10654 esac
10655
10656 if test no = "$ld_shlibs"; then
10657 runpath_var=
10658 hardcode_libdir_flag_spec=
10659 export_dynamic_flag_spec=
10660 whole_archive_flag_spec=
10661 fi
10662 else
10663 # PORTME fill in a description of your system's linker (not GNU ld)
10664 case $host_os in
10665 aix3*)
10666 allow_undefined_flag=unsupported
10667 always_export_symbols=yes
10668 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'
10669 # Note: this linker hardcodes the directories in LIBPATH if there
10670 # are no directories specified by -L.
10671 hardcode_minus_L=yes
10672 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10673 # Neither direct hardcoding nor static linking is supported with a
10674 # broken collect2.
10675 hardcode_direct=unsupported
10676 fi
10677 ;;
10678
10679 aix[4-9]*)
10680 if test ia64 = "$host_cpu"; then
10681 # On IA64, the linker does run time linking by default, so we don't
10682 # have to do anything special.
10683 aix_use_runtimelinking=no
10684 exp_sym_flag='-Bexport'
10685 no_entry_flag=
10686 else
10687 # If we're using GNU nm, then we don't want the "-C" option.
10688 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10689 # Without the "-l" option, or with the "-B" option, AIX nm treats
10690 # weak defined symbols like other global defined symbols, whereas
10691 # GNU nm marks them as "W".
10692 # While the 'weak' keyword is ignored in the Export File, we need
10693 # it in the Import File for the 'aix-soname' feature, so we have
10694 # to replace the "-B" option with "-P" for AIX nm.
10695 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10696 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'
10697 else
10698 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'
10699 fi
10700 aix_use_runtimelinking=no
10701
10702 # Test if we are trying to use run time linking or normal
10703 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10704 # have runtime linking enabled, and use it for executables.
10705 # For shared libraries, we enable/disable runtime linking
10706 # depending on the kind of the shared library created -
10707 # when "with_aix_soname,aix_use_runtimelinking" is:
10708 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10709 # "aix,yes" lib.so shared, rtl:yes, for executables
10710 # lib.a static archive
10711 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10712 # lib.a(lib.so.V) shared, rtl:no, for executables
10713 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10714 # lib.a(lib.so.V) shared, rtl:no
10715 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10716 # lib.a static archive
10717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10718 for ld_flag in $LDFLAGS; do
10719 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10720 aix_use_runtimelinking=yes
10721 break
10722 fi
10723 done
10724 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10725 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10726 # so we don't have lib.a shared libs to link our executables.
10727 # We have to force runtime linking in this case.
10728 aix_use_runtimelinking=yes
10729 LDFLAGS="$LDFLAGS -Wl,-brtl"
10730 fi
10731 ;;
10732 esac
10733
10734 exp_sym_flag='-bexport'
10735 no_entry_flag='-bnoentry'
10736 fi
10737
10738 # When large executables or shared objects are built, AIX ld can
10739 # have problems creating the table of contents. If linking a library
10740 # or program results in "error TOC overflow" add -mminimal-toc to
10741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10743
10744 archive_cmds=''
10745 hardcode_direct=yes
10746 hardcode_direct_absolute=yes
10747 hardcode_libdir_separator=':'
10748 link_all_deplibs=yes
10749 file_list_spec='$wl-f,'
10750 case $with_aix_soname,$aix_use_runtimelinking in
10751 aix,*) ;; # traditional, no import file
10752 svr4,* | *,yes) # use import file
10753 # The Import File defines what to hardcode.
10754 hardcode_direct=no
10755 hardcode_direct_absolute=no
10756 ;;
10757 esac
10758
10759 if test yes = "$GCC"; then
10760 case $host_os in aix4.[012]|aix4.[012].*)
10761 # We only want to do this on AIX 4.2 and lower, the check
10762 # below for broken collect2 doesn't work under 4.3+
10763 collect2name=`$CC -print-prog-name=collect2`
10764 if test -f "$collect2name" &&
10765 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10766 then
10767 # We have reworked collect2
10768 :
10769 else
10770 # We have old collect2
10771 hardcode_direct=unsupported
10772 # It fails to find uninstalled libraries when the uninstalled
10773 # path is not listed in the libpath. Setting hardcode_minus_L
10774 # to unsupported forces relinking
10775 hardcode_minus_L=yes
10776 hardcode_libdir_flag_spec='-L$libdir'
10777 hardcode_libdir_separator=
10778 fi
10779 ;;
10780 esac
10781 shared_flag='-shared'
10782 if test yes = "$aix_use_runtimelinking"; then
10783 shared_flag="$shared_flag "'$wl-G'
10784 fi
10785 # Need to ensure runtime linking is disabled for the traditional
10786 # shared library, or the linker may eventually find shared libraries
10787 # /with/ Import File - we do not want to mix them.
10788 shared_flag_aix='-shared'
10789 shared_flag_svr4='-shared $wl-G'
10790 else
10791 # not using gcc
10792 if test ia64 = "$host_cpu"; then
10793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10794 # chokes on -Wl,-G. The following line is correct:
10795 shared_flag='-G'
10796 else
10797 if test yes = "$aix_use_runtimelinking"; then
10798 shared_flag='$wl-G'
10799 else
10800 shared_flag='$wl-bM:SRE'
10801 fi
10802 shared_flag_aix='$wl-bM:SRE'
10803 shared_flag_svr4='$wl-G'
10804 fi
10805 fi
10806
10807 export_dynamic_flag_spec='$wl-bexpall'
10808 # It seems that -bexpall does not export symbols beginning with
10809 # underscore (_), so it is better to generate a list of symbols to export.
10810 always_export_symbols=yes
10811 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10812 # Warning - without using the other runtime loading flags (-brtl),
10813 # -berok will link without error, but may produce a broken library.
10814 allow_undefined_flag='-berok'
10815 # Determine the default libpath from the value encoded in an
10816 # empty executable.
10817 if test set = "${lt_cv_aix_libpath+set}"; then
10818 aix_libpath=$lt_cv_aix_libpath
10819 else
10820 if ${lt_cv_aix_libpath_+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825
10826 int
10827 main ()
10828 {
10829
10830 ;
10831 return 0;
10832 }
10833 _ACEOF
10834 if ac_fn_c_try_link "$LINENO"; then :
10835
10836 lt_aix_libpath_sed='
10837 /Import File Strings/,/^$/ {
10838 /^0/ {
10839 s/^0 *\([^ ]*\) *$/\1/
10840 p
10841 }
10842 }'
10843 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10844 # Check for a 64-bit object if we didn't find anything.
10845 if test -z "$lt_cv_aix_libpath_"; then
10846 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10847 fi
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 if test -z "$lt_cv_aix_libpath_"; then
10852 lt_cv_aix_libpath_=/usr/lib:/lib
10853 fi
10854
10855 fi
10856
10857 aix_libpath=$lt_cv_aix_libpath_
10858 fi
10859
10860 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10861 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
10862 else
10863 if test ia64 = "$host_cpu"; then
10864 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10865 allow_undefined_flag="-z nodefs"
10866 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"
10867 else
10868 # Determine the default libpath from the value encoded in an
10869 # empty executable.
10870 if test set = "${lt_cv_aix_libpath+set}"; then
10871 aix_libpath=$lt_cv_aix_libpath
10872 else
10873 if ${lt_cv_aix_libpath_+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878
10879 int
10880 main ()
10881 {
10882
10883 ;
10884 return 0;
10885 }
10886 _ACEOF
10887 if ac_fn_c_try_link "$LINENO"; then :
10888
10889 lt_aix_libpath_sed='
10890 /Import File Strings/,/^$/ {
10891 /^0/ {
10892 s/^0 *\([^ ]*\) *$/\1/
10893 p
10894 }
10895 }'
10896 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10897 # Check for a 64-bit object if we didn't find anything.
10898 if test -z "$lt_cv_aix_libpath_"; then
10899 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10900 fi
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 if test -z "$lt_cv_aix_libpath_"; then
10905 lt_cv_aix_libpath_=/usr/lib:/lib
10906 fi
10907
10908 fi
10909
10910 aix_libpath=$lt_cv_aix_libpath_
10911 fi
10912
10913 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10914 # Warning - without using the other run time loading flags,
10915 # -berok will link without error, but may produce a broken library.
10916 no_undefined_flag=' $wl-bernotok'
10917 allow_undefined_flag=' $wl-berok'
10918 if test yes = "$with_gnu_ld"; then
10919 # We only use this code for GNU lds that support --whole-archive.
10920 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10921 else
10922 # Exported symbols can be pulled into shared objects from archives
10923 whole_archive_flag_spec='$convenience'
10924 fi
10925 archive_cmds_need_lc=yes
10926 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10927 # -brtl affects multiple linker settings, -berok does not and is overridden later
10928 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10929 if test svr4 != "$with_aix_soname"; then
10930 # This is similar to how AIX traditionally builds its shared libraries.
10931 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'
10932 fi
10933 if test aix != "$with_aix_soname"; then
10934 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'
10935 else
10936 # used by -dlpreopen to get the symbols
10937 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10938 fi
10939 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10940 fi
10941 fi
10942 ;;
10943
10944 amigaos*)
10945 case $host_cpu in
10946 powerpc)
10947 # see comment about AmigaOS4 .so support
10948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10949 archive_expsym_cmds=''
10950 ;;
10951 m68k)
10952 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)'
10953 hardcode_libdir_flag_spec='-L$libdir'
10954 hardcode_minus_L=yes
10955 ;;
10956 esac
10957 ;;
10958
10959 bsdi[45]*)
10960 export_dynamic_flag_spec=-rdynamic
10961 ;;
10962
10963 cygwin* | mingw* | pw32* | cegcc*)
10964 # When not using gcc, we currently assume that we are using
10965 # Microsoft Visual C++.
10966 # hardcode_libdir_flag_spec is actually meaningless, as there is
10967 # no search path for DLLs.
10968 case $cc_basename in
10969 cl*)
10970 # Native MSVC
10971 hardcode_libdir_flag_spec=' '
10972 allow_undefined_flag=unsupported
10973 always_export_symbols=yes
10974 file_list_spec='@'
10975 # Tell ltmain to make .lib files, not .a files.
10976 libext=lib
10977 # Tell ltmain to make .dll files, not .so files.
10978 shrext_cmds=.dll
10979 # FIXME: Setting linknames here is a bad hack.
10980 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10981 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10982 cp "$export_symbols" "$output_objdir/$soname.def";
10983 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10984 else
10985 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10986 fi~
10987 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10988 linknames='
10989 # The linker will not automatically build a static lib if we build a DLL.
10990 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10991 enable_shared_with_static_runtimes=yes
10992 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10994 # Don't use ranlib
10995 old_postinstall_cmds='chmod 644 $oldlib'
10996 postlink_cmds='lt_outputfile="@OUTPUT@"~
10997 lt_tool_outputfile="@TOOL_OUTPUT@"~
10998 case $lt_outputfile in
10999 *.exe|*.EXE) ;;
11000 *)
11001 lt_outputfile=$lt_outputfile.exe
11002 lt_tool_outputfile=$lt_tool_outputfile.exe
11003 ;;
11004 esac~
11005 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11006 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11007 $RM "$lt_outputfile.manifest";
11008 fi'
11009 ;;
11010 *)
11011 # Assume MSVC wrapper
11012 hardcode_libdir_flag_spec=' '
11013 allow_undefined_flag=unsupported
11014 # Tell ltmain to make .lib files, not .a files.
11015 libext=lib
11016 # Tell ltmain to make .dll files, not .so files.
11017 shrext_cmds=.dll
11018 # FIXME: Setting linknames here is a bad hack.
11019 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11020 # The linker will automatically build a .lib file if we build a DLL.
11021 old_archive_from_new_cmds='true'
11022 # FIXME: Should let the user specify the lib program.
11023 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11024 enable_shared_with_static_runtimes=yes
11025 ;;
11026 esac
11027 ;;
11028
11029 darwin* | rhapsody*)
11030
11031
11032 archive_cmds_need_lc=no
11033 hardcode_direct=no
11034 hardcode_automatic=yes
11035 hardcode_shlibpath_var=unsupported
11036 if test yes = "$lt_cv_ld_force_load"; then
11037 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\"`'
11038
11039 else
11040 whole_archive_flag_spec=''
11041 fi
11042 link_all_deplibs=yes
11043 allow_undefined_flag=$_lt_dar_allow_undefined
11044 case $cc_basename in
11045 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11046 *) _lt_dar_can_shared=$GCC ;;
11047 esac
11048 if test yes = "$_lt_dar_can_shared"; then
11049 output_verbose_link_cmd=func_echo_all
11050 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11051 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11052 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"
11053 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"
11054
11055 else
11056 ld_shlibs=no
11057 fi
11058
11059 ;;
11060
11061 dgux*)
11062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11063 hardcode_libdir_flag_spec='-L$libdir'
11064 hardcode_shlibpath_var=no
11065 ;;
11066
11067 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11068 # support. Future versions do this automatically, but an explicit c++rt0.o
11069 # does not break anything, and helps significantly (at the cost of a little
11070 # extra space).
11071 freebsd2.2*)
11072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11073 hardcode_libdir_flag_spec='-R$libdir'
11074 hardcode_direct=yes
11075 hardcode_shlibpath_var=no
11076 ;;
11077
11078 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11079 freebsd2.*)
11080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11081 hardcode_direct=yes
11082 hardcode_minus_L=yes
11083 hardcode_shlibpath_var=no
11084 ;;
11085
11086 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11087 freebsd* | dragonfly*)
11088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11089 hardcode_libdir_flag_spec='-R$libdir'
11090 hardcode_direct=yes
11091 hardcode_shlibpath_var=no
11092 ;;
11093
11094 hpux9*)
11095 if test yes = "$GCC"; then
11096 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'
11097 else
11098 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'
11099 fi
11100 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11101 hardcode_libdir_separator=:
11102 hardcode_direct=yes
11103
11104 # hardcode_minus_L: Not really in the search PATH,
11105 # but as the default location of the library.
11106 hardcode_minus_L=yes
11107 export_dynamic_flag_spec='$wl-E'
11108 ;;
11109
11110 hpux10*)
11111 if test yes,no = "$GCC,$with_gnu_ld"; then
11112 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11113 else
11114 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11115 fi
11116 if test no = "$with_gnu_ld"; then
11117 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11118 hardcode_libdir_separator=:
11119 hardcode_direct=yes
11120 hardcode_direct_absolute=yes
11121 export_dynamic_flag_spec='$wl-E'
11122 # hardcode_minus_L: Not really in the search PATH,
11123 # but as the default location of the library.
11124 hardcode_minus_L=yes
11125 fi
11126 ;;
11127
11128 hpux11*)
11129 if test yes,no = "$GCC,$with_gnu_ld"; then
11130 case $host_cpu in
11131 hppa*64*)
11132 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 ;;
11134 ia64*)
11135 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11136 ;;
11137 *)
11138 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11139 ;;
11140 esac
11141 else
11142 case $host_cpu in
11143 hppa*64*)
11144 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11145 ;;
11146 ia64*)
11147 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11148 ;;
11149 *)
11150
11151 # Older versions of the 11.00 compiler do not understand -b yet
11152 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11154 $as_echo_n "checking if $CC understands -b... " >&6; }
11155 if ${lt_cv_prog_compiler__b+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 lt_cv_prog_compiler__b=no
11159 save_LDFLAGS=$LDFLAGS
11160 LDFLAGS="$LDFLAGS -b"
11161 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11162 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11163 # The linker can only warn and ignore the option if not recognized
11164 # So say no if there are warnings
11165 if test -s conftest.err; then
11166 # Append any errors to the config.log.
11167 cat conftest.err 1>&5
11168 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11170 if diff conftest.exp conftest.er2 >/dev/null; then
11171 lt_cv_prog_compiler__b=yes
11172 fi
11173 else
11174 lt_cv_prog_compiler__b=yes
11175 fi
11176 fi
11177 $RM -r conftest*
11178 LDFLAGS=$save_LDFLAGS
11179
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11182 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11183
11184 if test yes = "$lt_cv_prog_compiler__b"; then
11185 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11186 else
11187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11188 fi
11189
11190 ;;
11191 esac
11192 fi
11193 if test no = "$with_gnu_ld"; then
11194 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11195 hardcode_libdir_separator=:
11196
11197 case $host_cpu in
11198 hppa*64*|ia64*)
11199 hardcode_direct=no
11200 hardcode_shlibpath_var=no
11201 ;;
11202 *)
11203 hardcode_direct=yes
11204 hardcode_direct_absolute=yes
11205 export_dynamic_flag_spec='$wl-E'
11206
11207 # hardcode_minus_L: Not really in the search PATH,
11208 # but as the default location of the library.
11209 hardcode_minus_L=yes
11210 ;;
11211 esac
11212 fi
11213 ;;
11214
11215 irix5* | irix6* | nonstopux*)
11216 if test yes = "$GCC"; then
11217 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'
11218 # Try to use the -exported_symbol ld option, if it does not
11219 # work, assume that -exports_file does not work either and
11220 # implicitly export all symbols.
11221 # This should be the same for all languages, so no per-tag cache variable.
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11223 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11224 if ${lt_cv_irix_exported_symbol+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 save_LDFLAGS=$LDFLAGS
11228 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231 int foo (void) { return 0; }
11232 _ACEOF
11233 if ac_fn_c_try_link "$LINENO"; then :
11234 lt_cv_irix_exported_symbol=yes
11235 else
11236 lt_cv_irix_exported_symbol=no
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240 LDFLAGS=$save_LDFLAGS
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11243 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11244 if test yes = "$lt_cv_irix_exported_symbol"; then
11245 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'
11246 fi
11247 link_all_deplibs=no
11248 else
11249 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'
11250 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'
11251 fi
11252 archive_cmds_need_lc='no'
11253 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11254 hardcode_libdir_separator=:
11255 inherit_rpath=yes
11256 link_all_deplibs=yes
11257 ;;
11258
11259 linux*)
11260 case $cc_basename in
11261 tcc*)
11262 # Fabrice Bellard et al's Tiny C Compiler
11263 ld_shlibs=yes
11264 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11265 ;;
11266 esac
11267 ;;
11268
11269 netbsd* | netbsdelf*-gnu)
11270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11272 else
11273 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11274 fi
11275 hardcode_libdir_flag_spec='-R$libdir'
11276 hardcode_direct=yes
11277 hardcode_shlibpath_var=no
11278 ;;
11279
11280 newsos6)
11281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 hardcode_direct=yes
11283 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11284 hardcode_libdir_separator=:
11285 hardcode_shlibpath_var=no
11286 ;;
11287
11288 *nto* | *qnx*)
11289 ;;
11290
11291 openbsd* | bitrig*)
11292 if test -f /usr/libexec/ld.so; then
11293 hardcode_direct=yes
11294 hardcode_shlibpath_var=no
11295 hardcode_direct_absolute=yes
11296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11297 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11298 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11299 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11300 export_dynamic_flag_spec='$wl-E'
11301 else
11302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11303 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11304 fi
11305 else
11306 ld_shlibs=no
11307 fi
11308 ;;
11309
11310 os2*)
11311 hardcode_libdir_flag_spec='-L$libdir'
11312 hardcode_minus_L=yes
11313 allow_undefined_flag=unsupported
11314 shrext_cmds=.dll
11315 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11316 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11317 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11318 $ECHO EXPORTS >> $output_objdir/$libname.def~
11319 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11320 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11321 emximp -o $lib $output_objdir/$libname.def'
11322 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11323 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11324 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11325 $ECHO EXPORTS >> $output_objdir/$libname.def~
11326 prefix_cmds="$SED"~
11327 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11328 prefix_cmds="$prefix_cmds -e 1d";
11329 fi~
11330 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11331 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11332 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11333 emximp -o $lib $output_objdir/$libname.def'
11334 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11335 enable_shared_with_static_runtimes=yes
11336 ;;
11337
11338 osf3*)
11339 if test yes = "$GCC"; then
11340 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11341 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'
11342 else
11343 allow_undefined_flag=' -expect_unresolved \*'
11344 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'
11345 fi
11346 archive_cmds_need_lc='no'
11347 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11348 hardcode_libdir_separator=:
11349 ;;
11350
11351 osf4* | osf5*) # as osf3* with the addition of -msym flag
11352 if test yes = "$GCC"; then
11353 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11354 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'
11355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11356 else
11357 allow_undefined_flag=' -expect_unresolved \*'
11358 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'
11359 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~
11360 $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'
11361
11362 # Both c and cxx compiler support -rpath directly
11363 hardcode_libdir_flag_spec='-rpath $libdir'
11364 fi
11365 archive_cmds_need_lc='no'
11366 hardcode_libdir_separator=:
11367 ;;
11368
11369 solaris*)
11370 no_undefined_flag=' -z defs'
11371 if test yes = "$GCC"; then
11372 wlarc='$wl'
11373 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11375 $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'
11376 else
11377 case `$CC -V 2>&1` in
11378 *"Compilers 5.0"*)
11379 wlarc=''
11380 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11382 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11383 ;;
11384 *)
11385 wlarc='$wl'
11386 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11388 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11389 ;;
11390 esac
11391 fi
11392 hardcode_libdir_flag_spec='-R$libdir'
11393 hardcode_shlibpath_var=no
11394 case $host_os in
11395 solaris2.[0-5] | solaris2.[0-5].*) ;;
11396 *)
11397 # The compiler driver will combine and reorder linker options,
11398 # but understands '-z linker_flag'. GCC discards it without '$wl',
11399 # but is careful enough not to reorder.
11400 # Supported since Solaris 2.6 (maybe 2.5.1?)
11401 if test yes = "$GCC"; then
11402 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11403 else
11404 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11405 fi
11406 ;;
11407 esac
11408 link_all_deplibs=yes
11409 ;;
11410
11411 sunos4*)
11412 if test sequent = "$host_vendor"; then
11413 # Use $CC to link under sequent, because it throws in some extra .o
11414 # files that make .init and .fini sections work.
11415 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11416 else
11417 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11418 fi
11419 hardcode_libdir_flag_spec='-L$libdir'
11420 hardcode_direct=yes
11421 hardcode_minus_L=yes
11422 hardcode_shlibpath_var=no
11423 ;;
11424
11425 sysv4)
11426 case $host_vendor in
11427 sni)
11428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11429 hardcode_direct=yes # is this really true???
11430 ;;
11431 siemens)
11432 ## LD is ld it makes a PLAMLIB
11433 ## CC just makes a GrossModule.
11434 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11435 reload_cmds='$CC -r -o $output$reload_objs'
11436 hardcode_direct=no
11437 ;;
11438 motorola)
11439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11441 ;;
11442 esac
11443 runpath_var='LD_RUN_PATH'
11444 hardcode_shlibpath_var=no
11445 ;;
11446
11447 sysv4.3*)
11448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11449 hardcode_shlibpath_var=no
11450 export_dynamic_flag_spec='-Bexport'
11451 ;;
11452
11453 sysv4*MP*)
11454 if test -d /usr/nec; then
11455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 hardcode_shlibpath_var=no
11457 runpath_var=LD_RUN_PATH
11458 hardcode_runpath_var=yes
11459 ld_shlibs=yes
11460 fi
11461 ;;
11462
11463 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11464 no_undefined_flag='$wl-z,text'
11465 archive_cmds_need_lc=no
11466 hardcode_shlibpath_var=no
11467 runpath_var='LD_RUN_PATH'
11468
11469 if test yes = "$GCC"; then
11470 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11471 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11472 else
11473 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11474 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11475 fi
11476 ;;
11477
11478 sysv5* | sco3.2v5* | sco5v6*)
11479 # Note: We CANNOT use -z defs as we might desire, because we do not
11480 # link with -lc, and that would cause any symbols used from libc to
11481 # always be unresolved, which means just about no library would
11482 # ever link correctly. If we're not using GNU ld we use -z text
11483 # though, which does catch some bad symbols but isn't as heavy-handed
11484 # as -z defs.
11485 no_undefined_flag='$wl-z,text'
11486 allow_undefined_flag='$wl-z,nodefs'
11487 archive_cmds_need_lc=no
11488 hardcode_shlibpath_var=no
11489 hardcode_libdir_flag_spec='$wl-R,$libdir'
11490 hardcode_libdir_separator=':'
11491 link_all_deplibs=yes
11492 export_dynamic_flag_spec='$wl-Bexport'
11493 runpath_var='LD_RUN_PATH'
11494
11495 if test yes = "$GCC"; then
11496 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11497 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498 else
11499 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11500 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11501 fi
11502 ;;
11503
11504 uts4*)
11505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11506 hardcode_libdir_flag_spec='-L$libdir'
11507 hardcode_shlibpath_var=no
11508 ;;
11509
11510 *)
11511 ld_shlibs=no
11512 ;;
11513 esac
11514
11515 if test sni = "$host_vendor"; then
11516 case $host in
11517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11518 export_dynamic_flag_spec='$wl-Blargedynsym'
11519 ;;
11520 esac
11521 fi
11522 fi
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11525 $as_echo "$ld_shlibs" >&6; }
11526 test no = "$ld_shlibs" && can_build_shared=no
11527
11528 with_gnu_ld=$with_gnu_ld
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544 #
11545 # Do we need to explicitly link libc?
11546 #
11547 case "x$archive_cmds_need_lc" in
11548 x|xyes)
11549 # Assume -lc should be added
11550 archive_cmds_need_lc=yes
11551
11552 if test yes,yes = "$GCC,$enable_shared"; then
11553 case $archive_cmds in
11554 *'~'*)
11555 # FIXME: we may have to deal with multi-command sequences.
11556 ;;
11557 '$CC '*)
11558 # Test whether the compiler implicitly links with -lc since on some
11559 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11560 # to ld, don't add -lc before -lgcc.
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11562 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11563 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 $RM conftest*
11567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11568
11569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11570 (eval $ac_compile) 2>&5
11571 ac_status=$?
11572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11573 test $ac_status = 0; } 2>conftest.err; then
11574 soname=conftest
11575 lib=conftest
11576 libobjs=conftest.$ac_objext
11577 deplibs=
11578 wl=$lt_prog_compiler_wl
11579 pic_flag=$lt_prog_compiler_pic
11580 compiler_flags=-v
11581 linker_flags=-v
11582 verstring=
11583 output_objdir=.
11584 libname=conftest
11585 lt_save_allow_undefined_flag=$allow_undefined_flag
11586 allow_undefined_flag=
11587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11588 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11589 ac_status=$?
11590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11591 test $ac_status = 0; }
11592 then
11593 lt_cv_archive_cmds_need_lc=no
11594 else
11595 lt_cv_archive_cmds_need_lc=yes
11596 fi
11597 allow_undefined_flag=$lt_save_allow_undefined_flag
11598 else
11599 cat conftest.err 1>&5
11600 fi
11601 $RM conftest*
11602
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11605 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11606 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11607 ;;
11608 esac
11609 fi
11610 ;;
11611 esac
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11765 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11766
11767 if test yes = "$GCC"; then
11768 case $host_os in
11769 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11770 *) lt_awk_arg='/^libraries:/' ;;
11771 esac
11772 case $host_os in
11773 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11774 *) lt_sed_strip_eq='s|=/|/|g' ;;
11775 esac
11776 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11777 case $lt_search_path_spec in
11778 *\;*)
11779 # if the path contains ";" then we assume it to be the separator
11780 # otherwise default to the standard path separator (i.e. ":") - it is
11781 # assumed that no part of a normal pathname contains ";" but that should
11782 # okay in the real world where ";" in dirpaths is itself problematic.
11783 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11784 ;;
11785 *)
11786 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11787 ;;
11788 esac
11789 # Ok, now we have the path, separated by spaces, we can step through it
11790 # and add multilib dir if necessary...
11791 lt_tmp_lt_search_path_spec=
11792 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11793 # ...but if some path component already ends with the multilib dir we assume
11794 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11795 case "$lt_multi_os_dir; $lt_search_path_spec " in
11796 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11797 lt_multi_os_dir=
11798 ;;
11799 esac
11800 for lt_sys_path in $lt_search_path_spec; do
11801 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11803 elif test -n "$lt_multi_os_dir"; then
11804 test -d "$lt_sys_path" && \
11805 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11806 fi
11807 done
11808 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11809 BEGIN {RS = " "; FS = "/|\n";} {
11810 lt_foo = "";
11811 lt_count = 0;
11812 for (lt_i = NF; lt_i > 0; lt_i--) {
11813 if ($lt_i != "" && $lt_i != ".") {
11814 if ($lt_i == "..") {
11815 lt_count++;
11816 } else {
11817 if (lt_count == 0) {
11818 lt_foo = "/" $lt_i lt_foo;
11819 } else {
11820 lt_count--;
11821 }
11822 }
11823 }
11824 }
11825 if (lt_foo != "") { lt_freq[lt_foo]++; }
11826 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11827 }'`
11828 # AWK program above erroneously prepends '/' to C:/dos/paths
11829 # for these hosts.
11830 case $host_os in
11831 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11832 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11833 esac
11834 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11835 else
11836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11837 fi
11838 library_names_spec=
11839 libname_spec='lib$name'
11840 soname_spec=
11841 shrext_cmds=.so
11842 postinstall_cmds=
11843 postuninstall_cmds=
11844 finish_cmds=
11845 finish_eval=
11846 shlibpath_var=
11847 shlibpath_overrides_runpath=unknown
11848 version_type=none
11849 dynamic_linker="$host_os ld.so"
11850 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11851 need_lib_prefix=unknown
11852 hardcode_into_libs=no
11853
11854 # when you set need_version to no, make sure it does not cause -set_version
11855 # flags to be left without arguments
11856 need_version=unknown
11857
11858
11859
11860 case $host_os in
11861 aix3*)
11862 version_type=linux # correct to gnu/linux during the next big refactor
11863 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11864 shlibpath_var=LIBPATH
11865
11866 # AIX 3 has no versioning support, so we append a major version to the name.
11867 soname_spec='$libname$release$shared_ext$major'
11868 ;;
11869
11870 aix[4-9]*)
11871 version_type=linux # correct to gnu/linux during the next big refactor
11872 need_lib_prefix=no
11873 need_version=no
11874 hardcode_into_libs=yes
11875 if test ia64 = "$host_cpu"; then
11876 # AIX 5 supports IA64
11877 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 else
11880 # With GCC up to 2.95.x, collect2 would create an import file
11881 # for dependence libraries. The import file would start with
11882 # the line '#! .'. This would cause the generated library to
11883 # depend on '.', always an invalid library. This was fixed in
11884 # development snapshots of GCC prior to 3.0.
11885 case $host_os in
11886 aix4 | aix4.[01] | aix4.[01].*)
11887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11888 echo ' yes '
11889 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11890 :
11891 else
11892 can_build_shared=no
11893 fi
11894 ;;
11895 esac
11896 # Using Import Files as archive members, it is possible to support
11897 # filename-based versioning of shared library archives on AIX. While
11898 # this would work for both with and without runtime linking, it will
11899 # prevent static linking of such archives. So we do filename-based
11900 # shared library versioning with .so extension only, which is used
11901 # when both runtime linking and shared linking is enabled.
11902 # Unfortunately, runtime linking may impact performance, so we do
11903 # not want this to be the default eventually. Also, we use the
11904 # versioned .so libs for executables only if there is the -brtl
11905 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11906 # To allow for filename-based versioning support, we need to create
11907 # libNAME.so.V as an archive file, containing:
11908 # *) an Import File, referring to the versioned filename of the
11909 # archive as well as the shared archive member, telling the
11910 # bitwidth (32 or 64) of that shared object, and providing the
11911 # list of exported symbols of that shared object, eventually
11912 # decorated with the 'weak' keyword
11913 # *) the shared object with the F_LOADONLY flag set, to really avoid
11914 # it being seen by the linker.
11915 # At run time we better use the real file rather than another symlink,
11916 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11917
11918 case $with_aix_soname,$aix_use_runtimelinking in
11919 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11920 # soname into executable. Probably we can add versioning support to
11921 # collect2, so additional links can be useful in future.
11922 aix,yes) # traditional libtool
11923 dynamic_linker='AIX unversionable lib.so'
11924 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11925 # instead of lib<name>.a to let people know that these are not
11926 # typical AIX shared libraries.
11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11928 ;;
11929 aix,no) # traditional AIX only
11930 dynamic_linker='AIX lib.a(lib.so.V)'
11931 # We preserve .a as extension for shared libraries through AIX4.2
11932 # and later when we are not doing run time linking.
11933 library_names_spec='$libname$release.a $libname.a'
11934 soname_spec='$libname$release$shared_ext$major'
11935 ;;
11936 svr4,*) # full svr4 only
11937 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11938 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11939 # We do not specify a path in Import Files, so LIBPATH fires.
11940 shlibpath_overrides_runpath=yes
11941 ;;
11942 *,yes) # both, prefer svr4
11943 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11944 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11945 # unpreferred sharedlib libNAME.a needs extra handling
11946 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"'
11947 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"'
11948 # We do not specify a path in Import Files, so LIBPATH fires.
11949 shlibpath_overrides_runpath=yes
11950 ;;
11951 *,no) # both, prefer aix
11952 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11953 library_names_spec='$libname$release.a $libname.a'
11954 soname_spec='$libname$release$shared_ext$major'
11955 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11956 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)'
11957 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"'
11958 ;;
11959 esac
11960 shlibpath_var=LIBPATH
11961 fi
11962 ;;
11963
11964 amigaos*)
11965 case $host_cpu in
11966 powerpc)
11967 # Since July 2007 AmigaOS4 officially supports .so libraries.
11968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11970 ;;
11971 m68k)
11972 library_names_spec='$libname.ixlibrary $libname.a'
11973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11974 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'
11975 ;;
11976 esac
11977 ;;
11978
11979 beos*)
11980 library_names_spec='$libname$shared_ext'
11981 dynamic_linker="$host_os ld.so"
11982 shlibpath_var=LIBRARY_PATH
11983 ;;
11984
11985 bsdi[45]*)
11986 version_type=linux # correct to gnu/linux during the next big refactor
11987 need_version=no
11988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11989 soname_spec='$libname$release$shared_ext$major'
11990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11994 # the default ld.so.conf also contains /usr/contrib/lib and
11995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11996 # libtool to hard-code these into programs
11997 ;;
11998
11999 cygwin* | mingw* | pw32* | cegcc*)
12000 version_type=windows
12001 shrext_cmds=.dll
12002 need_version=no
12003 need_lib_prefix=no
12004
12005 case $GCC,$cc_basename in
12006 yes,*)
12007 # gcc
12008 library_names_spec='$libname.dll.a'
12009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12010 postinstall_cmds='base_file=`basename \$file`~
12011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12012 dldir=$destdir/`dirname \$dlpath`~
12013 test -d \$dldir || mkdir -p \$dldir~
12014 $install_prog $dir/$dlname \$dldir/$dlname~
12015 chmod a+x \$dldir/$dlname~
12016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12018 fi'
12019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12020 dlpath=$dir/\$dldll~
12021 $RM \$dlpath'
12022 shlibpath_overrides_runpath=yes
12023
12024 case $host_os in
12025 cygwin*)
12026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12027 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12028
12029 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12030 ;;
12031 mingw* | cegcc*)
12032 # MinGW DLLs use traditional 'lib' prefix
12033 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12034 ;;
12035 pw32*)
12036 # pw32 DLLs use 'pw' prefix rather than 'lib'
12037 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12038 ;;
12039 esac
12040 dynamic_linker='Win32 ld.exe'
12041 ;;
12042
12043 *,cl*)
12044 # Native MSVC
12045 libname_spec='$name'
12046 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12047 library_names_spec='$libname.dll.lib'
12048
12049 case $build_os in
12050 mingw*)
12051 sys_lib_search_path_spec=
12052 lt_save_ifs=$IFS
12053 IFS=';'
12054 for lt_path in $LIB
12055 do
12056 IFS=$lt_save_ifs
12057 # Let DOS variable expansion print the short 8.3 style file name.
12058 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12059 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12060 done
12061 IFS=$lt_save_ifs
12062 # Convert to MSYS style.
12063 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12064 ;;
12065 cygwin*)
12066 # Convert to unix form, then to dos form, then back to unix form
12067 # but this time dos style (no spaces!) so that the unix form looks
12068 # like /cygdrive/c/PROGRA~1:/cygdr...
12069 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12070 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12071 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12072 ;;
12073 *)
12074 sys_lib_search_path_spec=$LIB
12075 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12076 # It is most probably a Windows format PATH.
12077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12078 else
12079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12080 fi
12081 # FIXME: find the short name or the path components, as spaces are
12082 # common. (e.g. "Program Files" -> "PROGRA~1")
12083 ;;
12084 esac
12085
12086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12087 postinstall_cmds='base_file=`basename \$file`~
12088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12089 dldir=$destdir/`dirname \$dlpath`~
12090 test -d \$dldir || mkdir -p \$dldir~
12091 $install_prog $dir/$dlname \$dldir/$dlname'
12092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12093 dlpath=$dir/\$dldll~
12094 $RM \$dlpath'
12095 shlibpath_overrides_runpath=yes
12096 dynamic_linker='Win32 link.exe'
12097 ;;
12098
12099 *)
12100 # Assume MSVC wrapper
12101 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12102 dynamic_linker='Win32 ld.exe'
12103 ;;
12104 esac
12105 # FIXME: first we should search . and the directory the executable is in
12106 shlibpath_var=PATH
12107 ;;
12108
12109 darwin* | rhapsody*)
12110 dynamic_linker="$host_os dyld"
12111 version_type=darwin
12112 need_lib_prefix=no
12113 need_version=no
12114 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12115 soname_spec='$libname$release$major$shared_ext'
12116 shlibpath_overrides_runpath=yes
12117 shlibpath_var=DYLD_LIBRARY_PATH
12118 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12119
12120 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12122 ;;
12123
12124 dgux*)
12125 version_type=linux # correct to gnu/linux during the next big refactor
12126 need_lib_prefix=no
12127 need_version=no
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129 soname_spec='$libname$release$shared_ext$major'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 ;;
12132
12133 freebsd* | dragonfly*)
12134 # DragonFly does not have aout. When/if they implement a new
12135 # versioning mechanism, adjust this.
12136 if test -x /usr/bin/objformat; then
12137 objformat=`/usr/bin/objformat`
12138 else
12139 case $host_os in
12140 freebsd[23].*) objformat=aout ;;
12141 *) objformat=elf ;;
12142 esac
12143 fi
12144 version_type=freebsd-$objformat
12145 case $version_type in
12146 freebsd-elf*)
12147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12148 soname_spec='$libname$release$shared_ext$major'
12149 need_version=no
12150 need_lib_prefix=no
12151 ;;
12152 freebsd-*)
12153 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12154 need_version=yes
12155 ;;
12156 esac
12157 shlibpath_var=LD_LIBRARY_PATH
12158 case $host_os in
12159 freebsd2.*)
12160 shlibpath_overrides_runpath=yes
12161 ;;
12162 freebsd3.[01]* | freebsdelf3.[01]*)
12163 shlibpath_overrides_runpath=yes
12164 hardcode_into_libs=yes
12165 ;;
12166 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12167 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12168 shlibpath_overrides_runpath=no
12169 hardcode_into_libs=yes
12170 ;;
12171 *) # from 4.6 on, and DragonFly
12172 shlibpath_overrides_runpath=yes
12173 hardcode_into_libs=yes
12174 ;;
12175 esac
12176 ;;
12177
12178 haiku*)
12179 version_type=linux # correct to gnu/linux during the next big refactor
12180 need_lib_prefix=no
12181 need_version=no
12182 dynamic_linker="$host_os runtime_loader"
12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12184 soname_spec='$libname$release$shared_ext$major'
12185 shlibpath_var=LIBRARY_PATH
12186 shlibpath_overrides_runpath=no
12187 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12188 hardcode_into_libs=yes
12189 ;;
12190
12191 hpux9* | hpux10* | hpux11*)
12192 # Give a soname corresponding to the major version so that dld.sl refuses to
12193 # link against other versions.
12194 version_type=sunos
12195 need_lib_prefix=no
12196 need_version=no
12197 case $host_cpu in
12198 ia64*)
12199 shrext_cmds='.so'
12200 hardcode_into_libs=yes
12201 dynamic_linker="$host_os dld.so"
12202 shlibpath_var=LD_LIBRARY_PATH
12203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205 soname_spec='$libname$release$shared_ext$major'
12206 if test 32 = "$HPUX_IA64_MODE"; then
12207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12208 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12209 else
12210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12211 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12212 fi
12213 ;;
12214 hppa*64*)
12215 shrext_cmds='.sl'
12216 hardcode_into_libs=yes
12217 dynamic_linker="$host_os dld.sl"
12218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12221 soname_spec='$libname$release$shared_ext$major'
12222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12224 ;;
12225 *)
12226 shrext_cmds='.sl'
12227 dynamic_linker="$host_os dld.sl"
12228 shlibpath_var=SHLIB_PATH
12229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12231 soname_spec='$libname$release$shared_ext$major'
12232 ;;
12233 esac
12234 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12235 postinstall_cmds='chmod 555 $lib'
12236 # or fails outright, so override atomically:
12237 install_override_mode=555
12238 ;;
12239
12240 interix[3-9]*)
12241 version_type=linux # correct to gnu/linux during the next big refactor
12242 need_lib_prefix=no
12243 need_version=no
12244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12245 soname_spec='$libname$release$shared_ext$major'
12246 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=no
12249 hardcode_into_libs=yes
12250 ;;
12251
12252 irix5* | irix6* | nonstopux*)
12253 case $host_os in
12254 nonstopux*) version_type=nonstopux ;;
12255 *)
12256 if test yes = "$lt_cv_prog_gnu_ld"; then
12257 version_type=linux # correct to gnu/linux during the next big refactor
12258 else
12259 version_type=irix
12260 fi ;;
12261 esac
12262 need_lib_prefix=no
12263 need_version=no
12264 soname_spec='$libname$release$shared_ext$major'
12265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12266 case $host_os in
12267 irix5* | nonstopux*)
12268 libsuff= shlibsuff=
12269 ;;
12270 *)
12271 case $LD in # libtool.m4 will add one of these switches to LD
12272 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12273 libsuff= shlibsuff= libmagic=32-bit;;
12274 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12275 libsuff=32 shlibsuff=N32 libmagic=N32;;
12276 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12277 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12278 *) libsuff= shlibsuff= libmagic=never-match;;
12279 esac
12280 ;;
12281 esac
12282 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12283 shlibpath_overrides_runpath=no
12284 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12285 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12286 hardcode_into_libs=yes
12287 ;;
12288
12289 # No shared lib support for Linux oldld, aout, or coff.
12290 linux*oldld* | linux*aout* | linux*coff*)
12291 dynamic_linker=no
12292 ;;
12293
12294 linux*android*)
12295 version_type=none # Android doesn't support versioned libraries.
12296 need_lib_prefix=no
12297 need_version=no
12298 library_names_spec='$libname$release$shared_ext'
12299 soname_spec='$libname$release$shared_ext'
12300 finish_cmds=
12301 shlibpath_var=LD_LIBRARY_PATH
12302 shlibpath_overrides_runpath=yes
12303
12304 # This implies no fast_install, which is unacceptable.
12305 # Some rework will be needed to allow for fast_install
12306 # before this can be enabled.
12307 hardcode_into_libs=yes
12308
12309 dynamic_linker='Android linker'
12310 # Don't embed -rpath directories since the linker doesn't support them.
12311 hardcode_libdir_flag_spec='-L$libdir'
12312 ;;
12313
12314 # This must be glibc/ELF.
12315 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12316 version_type=linux # correct to gnu/linux during the next big refactor
12317 need_lib_prefix=no
12318 need_version=no
12319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12320 soname_spec='$libname$release$shared_ext$major'
12321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=no
12324
12325 # Some binutils ld are patched to set DT_RUNPATH
12326 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 lt_cv_shlibpath_overrides_runpath=no
12330 save_LDFLAGS=$LDFLAGS
12331 save_libdir=$libdir
12332 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12333 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336
12337 int
12338 main ()
12339 {
12340
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_link "$LINENO"; then :
12346 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12347 lt_cv_shlibpath_overrides_runpath=yes
12348 fi
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LDFLAGS=$save_LDFLAGS
12353 libdir=$save_libdir
12354
12355 fi
12356
12357 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12358
12359 # This implies no fast_install, which is unacceptable.
12360 # Some rework will be needed to allow for fast_install
12361 # before this can be enabled.
12362 hardcode_into_libs=yes
12363
12364 # Ideally, we could use ldconfig to report *all* directores which are
12365 # searched for libraries, however this is still not possible. Aside from not
12366 # being certain /sbin/ldconfig is available, command
12367 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12368 # even though it is searched at run-time. Try to do the best guess by
12369 # appending ld.so.conf contents (and includes) to the search path.
12370 if test -f /etc/ld.so.conf; then
12371 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' ' '`
12372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12373 fi
12374
12375 # We used to test for /lib/ld.so.1 and disable shared libraries on
12376 # powerpc, because MkLinux only supported shared libraries with the
12377 # GNU dynamic linker. Since this was broken with cross compilers,
12378 # most powerpc-linux boxes support dynamic linking these days and
12379 # people can always --disable-shared, the test was removed, and we
12380 # assume the GNU/Linux dynamic linker is in use.
12381 dynamic_linker='GNU/Linux ld.so'
12382 ;;
12383
12384 netbsdelf*-gnu)
12385 version_type=linux
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12389 soname_spec='${libname}${release}${shared_ext}$major'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=no
12392 hardcode_into_libs=yes
12393 dynamic_linker='NetBSD ld.elf_so'
12394 ;;
12395
12396 netbsd*)
12397 version_type=sunos
12398 need_lib_prefix=no
12399 need_version=no
12400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12403 dynamic_linker='NetBSD (a.out) ld.so'
12404 else
12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12406 soname_spec='$libname$release$shared_ext$major'
12407 dynamic_linker='NetBSD ld.elf_so'
12408 fi
12409 shlibpath_var=LD_LIBRARY_PATH
12410 shlibpath_overrides_runpath=yes
12411 hardcode_into_libs=yes
12412 ;;
12413
12414 newsos6)
12415 version_type=linux # correct to gnu/linux during the next big refactor
12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 shlibpath_overrides_runpath=yes
12419 ;;
12420
12421 *nto* | *qnx*)
12422 version_type=qnx
12423 need_lib_prefix=no
12424 need_version=no
12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426 soname_spec='$libname$release$shared_ext$major'
12427 shlibpath_var=LD_LIBRARY_PATH
12428 shlibpath_overrides_runpath=no
12429 hardcode_into_libs=yes
12430 dynamic_linker='ldqnx.so'
12431 ;;
12432
12433 openbsd* | bitrig*)
12434 version_type=sunos
12435 sys_lib_dlsearch_path_spec=/usr/lib
12436 need_lib_prefix=no
12437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12438 need_version=no
12439 else
12440 need_version=yes
12441 fi
12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12444 shlibpath_var=LD_LIBRARY_PATH
12445 shlibpath_overrides_runpath=yes
12446 ;;
12447
12448 os2*)
12449 libname_spec='$name'
12450 version_type=windows
12451 shrext_cmds=.dll
12452 need_version=no
12453 need_lib_prefix=no
12454 # OS/2 can only load a DLL with a base name of 8 characters or less.
12455 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12456 v=$($ECHO $release$versuffix | tr -d .-);
12457 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12458 $ECHO $n$v`$shared_ext'
12459 library_names_spec='${libname}_dll.$libext'
12460 dynamic_linker='OS/2 ld.exe'
12461 shlibpath_var=BEGINLIBPATH
12462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12464 postinstall_cmds='base_file=`basename \$file`~
12465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12466 dldir=$destdir/`dirname \$dlpath`~
12467 test -d \$dldir || mkdir -p \$dldir~
12468 $install_prog $dir/$dlname \$dldir/$dlname~
12469 chmod a+x \$dldir/$dlname~
12470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12472 fi'
12473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12474 dlpath=$dir/\$dldll~
12475 $RM \$dlpath'
12476 ;;
12477
12478 osf3* | osf4* | osf5*)
12479 version_type=osf
12480 need_lib_prefix=no
12481 need_version=no
12482 soname_spec='$libname$release$shared_ext$major'
12483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12487 ;;
12488
12489 rdos*)
12490 dynamic_linker=no
12491 ;;
12492
12493 solaris*)
12494 version_type=linux # correct to gnu/linux during the next big refactor
12495 need_lib_prefix=no
12496 need_version=no
12497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12498 soname_spec='$libname$release$shared_ext$major'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 shlibpath_overrides_runpath=yes
12501 hardcode_into_libs=yes
12502 # ldd complains unless libraries are executable
12503 postinstall_cmds='chmod +x $lib'
12504 ;;
12505
12506 sunos4*)
12507 version_type=sunos
12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 shlibpath_overrides_runpath=yes
12512 if test yes = "$with_gnu_ld"; then
12513 need_lib_prefix=no
12514 fi
12515 need_version=yes
12516 ;;
12517
12518 sysv4 | sysv4.3*)
12519 version_type=linux # correct to gnu/linux during the next big refactor
12520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12521 soname_spec='$libname$release$shared_ext$major'
12522 shlibpath_var=LD_LIBRARY_PATH
12523 case $host_vendor in
12524 sni)
12525 shlibpath_overrides_runpath=no
12526 need_lib_prefix=no
12527 runpath_var=LD_RUN_PATH
12528 ;;
12529 siemens)
12530 need_lib_prefix=no
12531 ;;
12532 motorola)
12533 need_lib_prefix=no
12534 need_version=no
12535 shlibpath_overrides_runpath=no
12536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12537 ;;
12538 esac
12539 ;;
12540
12541 sysv4*MP*)
12542 if test -d /usr/nec; then
12543 version_type=linux # correct to gnu/linux during the next big refactor
12544 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12545 soname_spec='$libname$shared_ext.$major'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 fi
12548 ;;
12549
12550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12551 version_type=sco
12552 need_lib_prefix=no
12553 need_version=no
12554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12555 soname_spec='$libname$release$shared_ext$major'
12556 shlibpath_var=LD_LIBRARY_PATH
12557 shlibpath_overrides_runpath=yes
12558 hardcode_into_libs=yes
12559 if test yes = "$with_gnu_ld"; then
12560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12561 else
12562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12563 case $host_os in
12564 sco3.2v5*)
12565 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12566 ;;
12567 esac
12568 fi
12569 sys_lib_dlsearch_path_spec='/usr/lib'
12570 ;;
12571
12572 tpf*)
12573 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12574 version_type=linux # correct to gnu/linux during the next big refactor
12575 need_lib_prefix=no
12576 need_version=no
12577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 shlibpath_overrides_runpath=no
12580 hardcode_into_libs=yes
12581 ;;
12582
12583 uts4*)
12584 version_type=linux # correct to gnu/linux during the next big refactor
12585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586 soname_spec='$libname$release$shared_ext$major'
12587 shlibpath_var=LD_LIBRARY_PATH
12588 ;;
12589
12590 *)
12591 dynamic_linker=no
12592 ;;
12593 esac
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12595 $as_echo "$dynamic_linker" >&6; }
12596 test no = "$dynamic_linker" && can_build_shared=no
12597
12598 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12599 if test yes = "$GCC"; then
12600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12601 fi
12602
12603 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12604 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12605 fi
12606
12607 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12608 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12609 fi
12610
12611 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12612 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12613
12614 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12615 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12616
12617 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12618 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12717 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12718 hardcode_action=
12719 if test -n "$hardcode_libdir_flag_spec" ||
12720 test -n "$runpath_var" ||
12721 test yes = "$hardcode_automatic"; then
12722
12723 # We can hardcode non-existent directories.
12724 if test no != "$hardcode_direct" &&
12725 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12726 # have to relink, otherwise we might link with an installed library
12727 # when we should be linking with a yet-to-be-installed one
12728 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12729 test no != "$hardcode_minus_L"; then
12730 # Linking always hardcodes the temporary library directory.
12731 hardcode_action=relink
12732 else
12733 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12734 hardcode_action=immediate
12735 fi
12736 else
12737 # We cannot hardcode anything, or else we can only hardcode existing
12738 # directories.
12739 hardcode_action=unsupported
12740 fi
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12742 $as_echo "$hardcode_action" >&6; }
12743
12744 if test relink = "$hardcode_action" ||
12745 test yes = "$inherit_rpath"; then
12746 # Fast installation is not supported
12747 enable_fast_install=no
12748 elif test yes = "$shlibpath_overrides_runpath" ||
12749 test no = "$enable_shared"; then
12750 # Fast installation is not necessary
12751 enable_fast_install=needless
12752 fi
12753
12754
12755
12756
12757
12758
12759 if test yes != "$enable_dlopen"; then
12760 enable_dlopen=unknown
12761 enable_dlopen_self=unknown
12762 enable_dlopen_self_static=unknown
12763 else
12764 lt_cv_dlopen=no
12765 lt_cv_dlopen_libs=
12766
12767 case $host_os in
12768 beos*)
12769 lt_cv_dlopen=load_add_on
12770 lt_cv_dlopen_libs=
12771 lt_cv_dlopen_self=yes
12772 ;;
12773
12774 mingw* | pw32* | cegcc*)
12775 lt_cv_dlopen=LoadLibrary
12776 lt_cv_dlopen_libs=
12777 ;;
12778
12779 cygwin*)
12780 lt_cv_dlopen=dlopen
12781 lt_cv_dlopen_libs=
12782 ;;
12783
12784 darwin*)
12785 # if libdl is installed we need to link against it
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12787 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12788 if ${ac_cv_lib_dl_dlopen+:} false; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 ac_check_lib_save_LIBS=$LIBS
12792 LIBS="-ldl $LIBS"
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char dlopen ();
12803 int
12804 main ()
12805 {
12806 return dlopen ();
12807 ;
12808 return 0;
12809 }
12810 _ACEOF
12811 if ac_fn_c_try_link "$LINENO"; then :
12812 ac_cv_lib_dl_dlopen=yes
12813 else
12814 ac_cv_lib_dl_dlopen=no
12815 fi
12816 rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12821 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12822 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12823 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12824 else
12825
12826 lt_cv_dlopen=dyld
12827 lt_cv_dlopen_libs=
12828 lt_cv_dlopen_self=yes
12829
12830 fi
12831
12832 ;;
12833
12834 tpf*)
12835 # Don't try to run any link tests for TPF. We know it's impossible
12836 # because TPF is a cross-compiler, and we know how we open DSOs.
12837 lt_cv_dlopen=dlopen
12838 lt_cv_dlopen_libs=
12839 lt_cv_dlopen_self=no
12840 ;;
12841
12842 *)
12843 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12844 if test "x$ac_cv_func_shl_load" = xyes; then :
12845 lt_cv_dlopen=shl_load
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12848 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12849 if ${ac_cv_lib_dld_shl_load+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 ac_check_lib_save_LIBS=$LIBS
12853 LIBS="-ldld $LIBS"
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char shl_load ();
12864 int
12865 main ()
12866 {
12867 return shl_load ();
12868 ;
12869 return 0;
12870 }
12871 _ACEOF
12872 if ac_fn_c_try_link "$LINENO"; then :
12873 ac_cv_lib_dld_shl_load=yes
12874 else
12875 ac_cv_lib_dld_shl_load=no
12876 fi
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12880 fi
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12882 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12883 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12884 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12885 else
12886 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12887 if test "x$ac_cv_func_dlopen" = xyes; then :
12888 lt_cv_dlopen=dlopen
12889 else
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12892 if ${ac_cv_lib_dl_dlopen+:} false; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 ac_check_lib_save_LIBS=$LIBS
12896 LIBS="-ldl $LIBS"
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char dlopen ();
12907 int
12908 main ()
12909 {
12910 return dlopen ();
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"; then :
12916 ac_cv_lib_dl_dlopen=yes
12917 else
12918 ac_cv_lib_dl_dlopen=no
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12923 fi
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12925 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12926 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12927 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12930 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12931 if ${ac_cv_lib_svld_dlopen+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 ac_check_lib_save_LIBS=$LIBS
12935 LIBS="-lsvld $LIBS"
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938
12939 /* Override any GCC internal prototype to avoid an error.
12940 Use char because int might match the return type of a GCC
12941 builtin and then its argument prototype would still apply. */
12942 #ifdef __cplusplus
12943 extern "C"
12944 #endif
12945 char dlopen ();
12946 int
12947 main ()
12948 {
12949 return dlopen ();
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_c_try_link "$LINENO"; then :
12955 ac_cv_lib_svld_dlopen=yes
12956 else
12957 ac_cv_lib_svld_dlopen=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12962 fi
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12964 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12965 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12966 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12969 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12970 if ${ac_cv_lib_dld_dld_link+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 ac_check_lib_save_LIBS=$LIBS
12974 LIBS="-ldld $LIBS"
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char dld_link ();
12985 int
12986 main ()
12987 {
12988 return dld_link ();
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_link "$LINENO"; then :
12994 ac_cv_lib_dld_dld_link=yes
12995 else
12996 ac_cv_lib_dld_dld_link=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13000 LIBS=$ac_check_lib_save_LIBS
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13003 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13004 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13005 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13006 fi
13007
13008
13009 fi
13010
13011
13012 fi
13013
13014
13015 fi
13016
13017
13018 fi
13019
13020
13021 fi
13022
13023 ;;
13024 esac
13025
13026 if test no = "$lt_cv_dlopen"; then
13027 enable_dlopen=no
13028 else
13029 enable_dlopen=yes
13030 fi
13031
13032 case $lt_cv_dlopen in
13033 dlopen)
13034 save_CPPFLAGS=$CPPFLAGS
13035 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13036
13037 save_LDFLAGS=$LDFLAGS
13038 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13039
13040 save_LIBS=$LIBS
13041 LIBS="$lt_cv_dlopen_libs $LIBS"
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13044 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13045 if ${lt_cv_dlopen_self+:} false; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 if test yes = "$cross_compiling"; then :
13049 lt_cv_dlopen_self=cross
13050 else
13051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13052 lt_status=$lt_dlunknown
13053 cat > conftest.$ac_ext <<_LT_EOF
13054 #line $LINENO "configure"
13055 #include "confdefs.h"
13056
13057 #if HAVE_DLFCN_H
13058 #include <dlfcn.h>
13059 #endif
13060
13061 #include <stdio.h>
13062
13063 #ifdef RTLD_GLOBAL
13064 # define LT_DLGLOBAL RTLD_GLOBAL
13065 #else
13066 # ifdef DL_GLOBAL
13067 # define LT_DLGLOBAL DL_GLOBAL
13068 # else
13069 # define LT_DLGLOBAL 0
13070 # endif
13071 #endif
13072
13073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13074 find out it does not work in some platform. */
13075 #ifndef LT_DLLAZY_OR_NOW
13076 # ifdef RTLD_LAZY
13077 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13078 # else
13079 # ifdef DL_LAZY
13080 # define LT_DLLAZY_OR_NOW DL_LAZY
13081 # else
13082 # ifdef RTLD_NOW
13083 # define LT_DLLAZY_OR_NOW RTLD_NOW
13084 # else
13085 # ifdef DL_NOW
13086 # define LT_DLLAZY_OR_NOW DL_NOW
13087 # else
13088 # define LT_DLLAZY_OR_NOW 0
13089 # endif
13090 # endif
13091 # endif
13092 # endif
13093 #endif
13094
13095 /* When -fvisibility=hidden is used, assume the code has been annotated
13096 correspondingly for the symbols needed. */
13097 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13098 int fnord () __attribute__((visibility("default")));
13099 #endif
13100
13101 int fnord () { return 42; }
13102 int main ()
13103 {
13104 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13105 int status = $lt_dlunknown;
13106
13107 if (self)
13108 {
13109 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13110 else
13111 {
13112 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13113 else puts (dlerror ());
13114 }
13115 /* dlclose (self); */
13116 }
13117 else
13118 puts (dlerror ());
13119
13120 return status;
13121 }
13122 _LT_EOF
13123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13124 (eval $ac_link) 2>&5
13125 ac_status=$?
13126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13127 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13128 (./conftest; exit; ) >&5 2>/dev/null
13129 lt_status=$?
13130 case x$lt_status in
13131 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13132 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13133 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13134 esac
13135 else :
13136 # compilation failed
13137 lt_cv_dlopen_self=no
13138 fi
13139 fi
13140 rm -fr conftest*
13141
13142
13143 fi
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13145 $as_echo "$lt_cv_dlopen_self" >&6; }
13146
13147 if test yes = "$lt_cv_dlopen_self"; then
13148 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13150 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13151 if ${lt_cv_dlopen_self_static+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 if test yes = "$cross_compiling"; then :
13155 lt_cv_dlopen_self_static=cross
13156 else
13157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13158 lt_status=$lt_dlunknown
13159 cat > conftest.$ac_ext <<_LT_EOF
13160 #line $LINENO "configure"
13161 #include "confdefs.h"
13162
13163 #if HAVE_DLFCN_H
13164 #include <dlfcn.h>
13165 #endif
13166
13167 #include <stdio.h>
13168
13169 #ifdef RTLD_GLOBAL
13170 # define LT_DLGLOBAL RTLD_GLOBAL
13171 #else
13172 # ifdef DL_GLOBAL
13173 # define LT_DLGLOBAL DL_GLOBAL
13174 # else
13175 # define LT_DLGLOBAL 0
13176 # endif
13177 #endif
13178
13179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13180 find out it does not work in some platform. */
13181 #ifndef LT_DLLAZY_OR_NOW
13182 # ifdef RTLD_LAZY
13183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13184 # else
13185 # ifdef DL_LAZY
13186 # define LT_DLLAZY_OR_NOW DL_LAZY
13187 # else
13188 # ifdef RTLD_NOW
13189 # define LT_DLLAZY_OR_NOW RTLD_NOW
13190 # else
13191 # ifdef DL_NOW
13192 # define LT_DLLAZY_OR_NOW DL_NOW
13193 # else
13194 # define LT_DLLAZY_OR_NOW 0
13195 # endif
13196 # endif
13197 # endif
13198 # endif
13199 #endif
13200
13201 /* When -fvisibility=hidden is used, assume the code has been annotated
13202 correspondingly for the symbols needed. */
13203 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13204 int fnord () __attribute__((visibility("default")));
13205 #endif
13206
13207 int fnord () { return 42; }
13208 int main ()
13209 {
13210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13211 int status = $lt_dlunknown;
13212
13213 if (self)
13214 {
13215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13216 else
13217 {
13218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13219 else puts (dlerror ());
13220 }
13221 /* dlclose (self); */
13222 }
13223 else
13224 puts (dlerror ());
13225
13226 return status;
13227 }
13228 _LT_EOF
13229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13230 (eval $ac_link) 2>&5
13231 ac_status=$?
13232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13233 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13234 (./conftest; exit; ) >&5 2>/dev/null
13235 lt_status=$?
13236 case x$lt_status in
13237 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13238 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13239 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13240 esac
13241 else :
13242 # compilation failed
13243 lt_cv_dlopen_self_static=no
13244 fi
13245 fi
13246 rm -fr conftest*
13247
13248
13249 fi
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13251 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13252 fi
13253
13254 CPPFLAGS=$save_CPPFLAGS
13255 LDFLAGS=$save_LDFLAGS
13256 LIBS=$save_LIBS
13257 ;;
13258 esac
13259
13260 case $lt_cv_dlopen_self in
13261 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13262 *) enable_dlopen_self=unknown ;;
13263 esac
13264
13265 case $lt_cv_dlopen_self_static in
13266 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13267 *) enable_dlopen_self_static=unknown ;;
13268 esac
13269 fi
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287 striplib=
13288 old_striplib=
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13290 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13291 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13292 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13293 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13295 $as_echo "yes" >&6; }
13296 else
13297 # FIXME - insert some real tests, host_os isn't really good enough
13298 case $host_os in
13299 darwin*)
13300 if test -n "$STRIP"; then
13301 striplib="$STRIP -x"
13302 old_striplib="$STRIP -S"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13308 fi
13309 ;;
13310 *)
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13313 ;;
13314 esac
13315 fi
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328 # Report what library types will actually be built
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13330 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13332 $as_echo "$can_build_shared" >&6; }
13333
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13335 $as_echo_n "checking whether to build shared libraries... " >&6; }
13336 test no = "$can_build_shared" && enable_shared=no
13337
13338 # On AIX, shared libraries and static libraries use the same namespace, and
13339 # are all built from PIC.
13340 case $host_os in
13341 aix3*)
13342 test yes = "$enable_shared" && enable_static=no
13343 if test -n "$RANLIB"; then
13344 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13345 postinstall_cmds='$RANLIB $lib'
13346 fi
13347 ;;
13348
13349 aix[4-9]*)
13350 if test ia64 != "$host_cpu"; then
13351 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13352 yes,aix,yes) ;; # shared object as lib.so file only
13353 yes,svr4,*) ;; # shared object as lib.so archive member only
13354 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13355 esac
13356 fi
13357 ;;
13358 esac
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13360 $as_echo "$enable_shared" >&6; }
13361
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13363 $as_echo_n "checking whether to build static libraries... " >&6; }
13364 # Make sure either enable_shared or enable_static is yes.
13365 test yes = "$enable_shared" || enable_static=yes
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13367 $as_echo "$enable_static" >&6; }
13368
13369
13370
13371
13372 fi
13373 ac_ext=c
13374 ac_cpp='$CPP $CPPFLAGS'
13375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13378
13379 CC=$lt_save_CC
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395 ac_config_commands="$ac_config_commands libtool"
13396
13397
13398
13399
13400 # Only expand once:
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13412 if test -n "$ac_tool_prefix"; then
13413 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13414 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 case $PKG_CONFIG in
13421 [\\/]* | ?:[\\/]*)
13422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13423 ;;
13424 *)
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 ;;
13441 esac
13442 fi
13443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13444 if test -n "$PKG_CONFIG"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13446 $as_echo "$PKG_CONFIG" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450 fi
13451
13452
13453 fi
13454 if test -z "$ac_cv_path_PKG_CONFIG"; then
13455 ac_pt_PKG_CONFIG=$PKG_CONFIG
13456 # Extract the first word of "pkg-config", so it can be a program name with args.
13457 set dummy pkg-config; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459 $as_echo_n "checking for $ac_word... " >&6; }
13460 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 case $ac_pt_PKG_CONFIG in
13464 [\\/]* | ?:[\\/]*)
13465 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13466 ;;
13467 *)
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13470 do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479 done
13480 done
13481 IFS=$as_save_IFS
13482
13483 ;;
13484 esac
13485 fi
13486 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13487 if test -n "$ac_pt_PKG_CONFIG"; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13489 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13490 else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493 fi
13494
13495 if test "x$ac_pt_PKG_CONFIG" = x; then
13496 PKG_CONFIG=""
13497 else
13498 case $cross_compiling:$ac_tool_warned in
13499 yes:)
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13502 ac_tool_warned=yes ;;
13503 esac
13504 PKG_CONFIG=$ac_pt_PKG_CONFIG
13505 fi
13506 else
13507 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13508 fi
13509
13510 fi
13511 if test -n "$PKG_CONFIG"; then
13512 _pkg_min_version=0.9.0
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13514 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13515 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13517 $as_echo "yes" >&6; }
13518 else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13521 PKG_CONFIG=""
13522 fi
13523 fi
13524
13525 pkg_failed=no
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13527 $as_echo_n "checking for GTK... " >&6; }
13528
13529 if test -n "$GTK_CFLAGS"; then
13530 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13531 elif test -n "$PKG_CONFIG"; then
13532 if test -n "$PKG_CONFIG" && \
13533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5
13534 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5
13535 ac_status=$?
13536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13537 test $ac_status = 0; }; then
13538 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
13539 test "x$?" != "x0" && pkg_failed=yes
13540 else
13541 pkg_failed=yes
13542 fi
13543 else
13544 pkg_failed=untried
13545 fi
13546 if test -n "$GTK_LIBS"; then
13547 pkg_cv_GTK_LIBS="$GTK_LIBS"
13548 elif test -n "$PKG_CONFIG"; then
13549 if test -n "$PKG_CONFIG" && \
13550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5
13551 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
13556 test "x$?" != "x0" && pkg_failed=yes
13557 else
13558 pkg_failed=yes
13559 fi
13560 else
13561 pkg_failed=untried
13562 fi
13563
13564
13565
13566 if test $pkg_failed = yes; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13569
13570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13571 _pkg_short_errors_supported=yes
13572 else
13573 _pkg_short_errors_supported=no
13574 fi
13575 if test $_pkg_short_errors_supported = yes; then
13576 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1`
13577 else
13578 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1`
13579 fi
13580 # Put the nasty error message in config.log where it belongs
13581 echo "$GTK_PKG_ERRORS" >&5
13582
13583 exit
13584 elif test $pkg_failed = untried; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13586 $as_echo "no" >&6; }
13587 exit
13588 else
13589 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13590 GTK_LIBS=$pkg_cv_GTK_LIBS
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13592 $as_echo "yes" >&6; }
13593
13594 fi
13595
13596
13597
13598
13599 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
13602 $as_echo_n "checking for inet_aton in -lc... " >&6; }
13603 if ${ac_cv_lib_c_inet_aton+:} false; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 ac_check_lib_save_LIBS=$LIBS
13607 LIBS="-lc $LIBS"
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610
13611 /* Override any GCC internal prototype to avoid an error.
13612 Use char because int might match the return type of a GCC
13613 builtin and then its argument prototype would still apply. */
13614 #ifdef __cplusplus
13615 extern "C"
13616 #endif
13617 char inet_aton ();
13618 int
13619 main ()
13620 {
13621 return inet_aton ();
13622 ;
13623 return 0;
13624 }
13625 _ACEOF
13626 if ac_fn_c_try_link "$LINENO"; then :
13627 ac_cv_lib_c_inet_aton=yes
13628 else
13629 ac_cv_lib_c_inet_aton=no
13630 fi
13631 rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 LIBS=$ac_check_lib_save_LIBS
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
13636 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
13637 if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
13638 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
13639
13640 fi
13641
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
13643 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
13644 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-lresolv $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13655 #ifdef __cplusplus
13656 extern "C"
13657 #endif
13658 char inet_aton ();
13659 int
13660 main ()
13661 {
13662 return inet_aton ();
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 ac_cv_lib_resolv_inet_aton=yes
13669 else
13670 ac_cv_lib_resolv_inet_aton=no
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LIBS=$ac_check_lib_save_LIBS
13675 fi
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
13677 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
13678 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
13679 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
13680
13681 fi
13682
13683
13684
13685 cat >>confdefs.h <<_ACEOF
13686 #define DEBUG 0
13687 _ACEOF
13688
13689
13690
13691 cat >>confdefs.h <<_ACEOF
13692 #define PACKAGE "${PACKAGE}"
13693 _ACEOF
13694
13695
13696 cat >>confdefs.h <<_ACEOF
13697 #define VERSION "${VERSION}"
13698 _ACEOF
13699
13700
13701
13702
13703 # Expand datadir
13704 if test "x${datadir}" = 'x${datarootdir}'; then
13705 if test "x${datarootdir}" = 'x${prefix}/share'; then
13706 if test "x${prefix}" = 'xNONE'; then
13707 datadir="${ac_default_prefix}/share"
13708 else
13709 datadir="${prefix}/share"
13710 fi
13711 else
13712 datadir="${datarootdir}"
13713 fi
13714 fi
13715
13716
13717 cat >>confdefs.h <<_ACEOF
13718 #define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}"
13719 _ACEOF
13720
13721
13722
13723 # Check whether --with-icons-path was given.
13724 if test "${with_icons_path+set}" = set; then :
13725 withval=$with_icons_path; ICON_DIR=$withval
13726 else
13727 ICON_DIR="${datadir}/icons/hicolor"
13728 fi
13729
13730
13731
13732 cat >>confdefs.h <<_ACEOF
13733 #define PACKAGE_ICON_DIR "${ICON_DIR}"
13734 _ACEOF
13735
13736
13737
13738 if test "x$GCC" = "xyes"; then \
13739 CFLAGS+=" -Wall -Wextra -ggdb"; \
13740 fi
13741
13742 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/themes/Makefile"
13743
13744 cat >confcache <<\_ACEOF
13745 # This file is a shell script that caches the results of configure
13746 # tests run on this system so they can be shared between configure
13747 # scripts and configure runs, see configure's option --config-cache.
13748 # It is not useful on other systems. If it contains results you don't
13749 # want to keep, you may remove or edit it.
13750 #
13751 # config.status only pays attention to the cache file if you give it
13752 # the --recheck option to rerun configure.
13753 #
13754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13756 # following values.
13757
13758 _ACEOF
13759
13760 # The following way of writing the cache mishandles newlines in values,
13761 # but we know of no workaround that is simple, portable, and efficient.
13762 # So, we kill variables containing newlines.
13763 # Ultrix sh set writes to stderr and can't be redirected directly,
13764 # and sets the high bit in the cache file unless we assign to the vars.
13765 (
13766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13767 eval ac_val=\$$ac_var
13768 case $ac_val in #(
13769 *${as_nl}*)
13770 case $ac_var in #(
13771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13773 esac
13774 case $ac_var in #(
13775 _ | IFS | as_nl) ;; #(
13776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13777 *) { eval $ac_var=; unset $ac_var;} ;;
13778 esac ;;
13779 esac
13780 done
13781
13782 (set) 2>&1 |
13783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13784 *${as_nl}ac_space=\ *)
13785 # `set' does not quote correctly, so add quotes: double-quote
13786 # substitution turns \\\\ into \\, and sed turns \\ into \.
13787 sed -n \
13788 "s/'/'\\\\''/g;
13789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13790 ;; #(
13791 *)
13792 # `set' quotes correctly as required by POSIX, so do not add quotes.
13793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13794 ;;
13795 esac |
13796 sort
13797 ) |
13798 sed '
13799 /^ac_cv_env_/b end
13800 t clear
13801 :clear
13802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13803 t end
13804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13805 :end' >>confcache
13806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13807 if test -w "$cache_file"; then
13808 if test "x$cache_file" != "x/dev/null"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13810 $as_echo "$as_me: updating cache $cache_file" >&6;}
13811 if test ! -f "$cache_file" || test -h "$cache_file"; then
13812 cat confcache >"$cache_file"
13813 else
13814 case $cache_file in #(
13815 */* | ?:*)
13816 mv -f confcache "$cache_file"$$ &&
13817 mv -f "$cache_file"$$ "$cache_file" ;; #(
13818 *)
13819 mv -f confcache "$cache_file" ;;
13820 esac
13821 fi
13822 fi
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13826 fi
13827 fi
13828 rm -f confcache
13829
13830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13831 # Let make expand exec_prefix.
13832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13833
13834 DEFS=-DHAVE_CONFIG_H
13835
13836 ac_libobjs=
13837 ac_ltlibobjs=
13838 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13839 # 1. Remove the extension, and $U if already installed.
13840 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13841 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13843 # will be set to the directory where LIBOBJS objects are built.
13844 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13845 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13846 done
13847 LIBOBJS=$ac_libobjs
13848
13849 LTLIBOBJS=$ac_ltlibobjs
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13853 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13854 if test -n "$am_sleep_pid"; then
13855 # Hide warnings about reused PIDs.
13856 wait $am_sleep_pid 2>/dev/null
13857 fi
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13859 $as_echo "done" >&6; }
13860 if test -n "$EXEEXT"; then
13861 am__EXEEXT_TRUE=
13862 am__EXEEXT_FALSE='#'
13863 else
13864 am__EXEEXT_TRUE='#'
13865 am__EXEEXT_FALSE=
13866 fi
13867
13868 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13869 as_fn_error $? "conditional \"AMDEP\" was never defined.
13870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13871 fi
13872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13873 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13875 fi
13876 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13877 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13879 fi
13880 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13881 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13883 fi
13884
13885 : "${CONFIG_STATUS=./config.status}"
13886 ac_write_fail=0
13887 ac_clean_files_save=$ac_clean_files
13888 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13890 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13891 as_write_fail=0
13892 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13893 #! $SHELL
13894 # Generated by $as_me.
13895 # Run this file to recreate the current configuration.
13896 # Compiler output produced by configure, useful for debugging
13897 # configure, is in config.log if it exists.
13898
13899 debug=false
13900 ac_cs_recheck=false
13901 ac_cs_silent=false
13902
13903 SHELL=\${CONFIG_SHELL-$SHELL}
13904 export SHELL
13905 _ASEOF
13906 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13907 ## -------------------- ##
13908 ## M4sh Initialization. ##
13909 ## -------------------- ##
13910
13911 # Be more Bourne compatible
13912 DUALCASE=1; export DUALCASE # for MKS sh
13913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13914 emulate sh
13915 NULLCMD=:
13916 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13917 # is contrary to our usage. Disable this feature.
13918 alias -g '${1+"$@"}'='"$@"'
13919 setopt NO_GLOB_SUBST
13920 else
13921 case `(set -o) 2>/dev/null` in #(
13922 *posix*) :
13923 set -o posix ;; #(
13924 *) :
13925 ;;
13926 esac
13927 fi
13928
13929
13930 as_nl='
13931 '
13932 export as_nl
13933 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13934 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13936 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13937 # Prefer a ksh shell builtin over an external printf program on Solaris,
13938 # but without wasting forks for bash or zsh.
13939 if test -z "$BASH_VERSION$ZSH_VERSION" \
13940 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13941 as_echo='print -r --'
13942 as_echo_n='print -rn --'
13943 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13944 as_echo='printf %s\n'
13945 as_echo_n='printf %s'
13946 else
13947 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13948 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13949 as_echo_n='/usr/ucb/echo -n'
13950 else
13951 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13952 as_echo_n_body='eval
13953 arg=$1;
13954 case $arg in #(
13955 *"$as_nl"*)
13956 expr "X$arg" : "X\\(.*\\)$as_nl";
13957 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13958 esac;
13959 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13960 '
13961 export as_echo_n_body
13962 as_echo_n='sh -c $as_echo_n_body as_echo'
13963 fi
13964 export as_echo_body
13965 as_echo='sh -c $as_echo_body as_echo'
13966 fi
13967
13968 # The user is always right.
13969 if test "${PATH_SEPARATOR+set}" != set; then
13970 PATH_SEPARATOR=:
13971 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13972 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13973 PATH_SEPARATOR=';'
13974 }
13975 fi
13976
13977
13978 # IFS
13979 # We need space, tab and new line, in precisely that order. Quoting is
13980 # there to prevent editors from complaining about space-tab.
13981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13982 # splitting by setting IFS to empty value.)
13983 IFS=" "" $as_nl"
13984
13985 # Find who we are. Look in the path if we contain no directory separator.
13986 as_myself=
13987 case $0 in #((
13988 *[\\/]* ) as_myself=$0 ;;
13989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in $PATH
13991 do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13995 done
13996 IFS=$as_save_IFS
13997
13998 ;;
13999 esac
14000 # We did not find ourselves, most probably we were run as `sh COMMAND'
14001 # in which case we are not to be found in the path.
14002 if test "x$as_myself" = x; then
14003 as_myself=$0
14004 fi
14005 if test ! -f "$as_myself"; then
14006 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14007 exit 1
14008 fi
14009
14010 # Unset variables that we do not need and which cause bugs (e.g. in
14011 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14012 # suppresses any "Segmentation fault" message there. '((' could
14013 # trigger a bug in pdksh 5.2.14.
14014 for as_var in BASH_ENV ENV MAIL MAILPATH
14015 do eval test x\${$as_var+set} = xset \
14016 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14017 done
14018 PS1='$ '
14019 PS2='> '
14020 PS4='+ '
14021
14022 # NLS nuisances.
14023 LC_ALL=C
14024 export LC_ALL
14025 LANGUAGE=C
14026 export LANGUAGE
14027
14028 # CDPATH.
14029 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14030
14031
14032 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14033 # ----------------------------------------
14034 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14035 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14036 # script with STATUS, using 1 if that was 0.
14037 as_fn_error ()
14038 {
14039 as_status=$1; test $as_status -eq 0 && as_status=1
14040 if test "$4"; then
14041 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14042 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14043 fi
14044 $as_echo "$as_me: error: $2" >&2
14045 as_fn_exit $as_status
14046 } # as_fn_error
14047
14048
14049 # as_fn_set_status STATUS
14050 # -----------------------
14051 # Set $? to STATUS, without forking.
14052 as_fn_set_status ()
14053 {
14054 return $1
14055 } # as_fn_set_status
14056
14057 # as_fn_exit STATUS
14058 # -----------------
14059 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14060 as_fn_exit ()
14061 {
14062 set +e
14063 as_fn_set_status $1
14064 exit $1
14065 } # as_fn_exit
14066
14067 # as_fn_unset VAR
14068 # ---------------
14069 # Portably unset VAR.
14070 as_fn_unset ()
14071 {
14072 { eval $1=; unset $1;}
14073 }
14074 as_unset=as_fn_unset
14075 # as_fn_append VAR VALUE
14076 # ----------------------
14077 # Append the text in VALUE to the end of the definition contained in VAR. Take
14078 # advantage of any shell optimizations that allow amortized linear growth over
14079 # repeated appends, instead of the typical quadratic growth present in naive
14080 # implementations.
14081 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14082 eval 'as_fn_append ()
14083 {
14084 eval $1+=\$2
14085 }'
14086 else
14087 as_fn_append ()
14088 {
14089 eval $1=\$$1\$2
14090 }
14091 fi # as_fn_append
14092
14093 # as_fn_arith ARG...
14094 # ------------------
14095 # Perform arithmetic evaluation on the ARGs, and store the result in the
14096 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14097 # must be portable across $(()) and expr.
14098 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14099 eval 'as_fn_arith ()
14100 {
14101 as_val=$(( $* ))
14102 }'
14103 else
14104 as_fn_arith ()
14105 {
14106 as_val=`expr "$@" || test $? -eq 1`
14107 }
14108 fi # as_fn_arith
14109
14110
14111 if expr a : '\(a\)' >/dev/null 2>&1 &&
14112 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14113 as_expr=expr
14114 else
14115 as_expr=false
14116 fi
14117
14118 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14119 as_basename=basename
14120 else
14121 as_basename=false
14122 fi
14123
14124 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14125 as_dirname=dirname
14126 else
14127 as_dirname=false
14128 fi
14129
14130 as_me=`$as_basename -- "$0" ||
14131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14132 X"$0" : 'X\(//\)$' \| \
14133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14134 $as_echo X/"$0" |
14135 sed '/^.*\/\([^/][^/]*\)\/*$/{
14136 s//\1/
14137 q
14138 }
14139 /^X\/\(\/\/\)$/{
14140 s//\1/
14141 q
14142 }
14143 /^X\/\(\/\).*/{
14144 s//\1/
14145 q
14146 }
14147 s/.*/./; q'`
14148
14149 # Avoid depending upon Character Ranges.
14150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14153 as_cr_digits='0123456789'
14154 as_cr_alnum=$as_cr_Letters$as_cr_digits
14155
14156 ECHO_C= ECHO_N= ECHO_T=
14157 case `echo -n x` in #(((((
14158 -n*)
14159 case `echo 'xy\c'` in
14160 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14161 xy) ECHO_C='\c';;
14162 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14163 ECHO_T=' ';;
14164 esac;;
14165 *)
14166 ECHO_N='-n';;
14167 esac
14168
14169 rm -f conf$$ conf$$.exe conf$$.file
14170 if test -d conf$$.dir; then
14171 rm -f conf$$.dir/conf$$.file
14172 else
14173 rm -f conf$$.dir
14174 mkdir conf$$.dir 2>/dev/null
14175 fi
14176 if (echo >conf$$.file) 2>/dev/null; then
14177 if ln -s conf$$.file conf$$ 2>/dev/null; then
14178 as_ln_s='ln -s'
14179 # ... but there are two gotchas:
14180 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14181 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14182 # In both cases, we have to default to `cp -pR'.
14183 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14184 as_ln_s='cp -pR'
14185 elif ln conf$$.file conf$$ 2>/dev/null; then
14186 as_ln_s=ln
14187 else
14188 as_ln_s='cp -pR'
14189 fi
14190 else
14191 as_ln_s='cp -pR'
14192 fi
14193 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14194 rmdir conf$$.dir 2>/dev/null
14195
14196
14197 # as_fn_mkdir_p
14198 # -------------
14199 # Create "$as_dir" as a directory, including parents if necessary.
14200 as_fn_mkdir_p ()
14201 {
14202
14203 case $as_dir in #(
14204 -*) as_dir=./$as_dir;;
14205 esac
14206 test -d "$as_dir" || eval $as_mkdir_p || {
14207 as_dirs=
14208 while :; do
14209 case $as_dir in #(
14210 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14211 *) as_qdir=$as_dir;;
14212 esac
14213 as_dirs="'$as_qdir' $as_dirs"
14214 as_dir=`$as_dirname -- "$as_dir" ||
14215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14216 X"$as_dir" : 'X\(//\)[^/]' \| \
14217 X"$as_dir" : 'X\(//\)$' \| \
14218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14219 $as_echo X"$as_dir" |
14220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14221 s//\1/
14222 q
14223 }
14224 /^X\(\/\/\)[^/].*/{
14225 s//\1/
14226 q
14227 }
14228 /^X\(\/\/\)$/{
14229 s//\1/
14230 q
14231 }
14232 /^X\(\/\).*/{
14233 s//\1/
14234 q
14235 }
14236 s/.*/./; q'`
14237 test -d "$as_dir" && break
14238 done
14239 test -z "$as_dirs" || eval "mkdir $as_dirs"
14240 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14241
14242
14243 } # as_fn_mkdir_p
14244 if mkdir -p . 2>/dev/null; then
14245 as_mkdir_p='mkdir -p "$as_dir"'
14246 else
14247 test -d ./-p && rmdir ./-p
14248 as_mkdir_p=false
14249 fi
14250
14251
14252 # as_fn_executable_p FILE
14253 # -----------------------
14254 # Test if FILE is an executable regular file.
14255 as_fn_executable_p ()
14256 {
14257 test -f "$1" && test -x "$1"
14258 } # as_fn_executable_p
14259 as_test_x='test -x'
14260 as_executable_p=as_fn_executable_p
14261
14262 # Sed expression to map a string onto a valid CPP name.
14263 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14264
14265 # Sed expression to map a string onto a valid variable name.
14266 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14267
14268
14269 exec 6>&1
14270 ## ----------------------------------- ##
14271 ## Main body of $CONFIG_STATUS script. ##
14272 ## ----------------------------------- ##
14273 _ASEOF
14274 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14275
14276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14277 # Save the log message, to keep $0 and so on meaningful, and to
14278 # report actual input values of CONFIG_FILES etc. instead of their
14279 # values after options handling.
14280 ac_log="
14281 This file was extended by gtkatlantic $as_me 0.6.3, which was
14282 generated by GNU Autoconf 2.69. Invocation command line was
14283
14284 CONFIG_FILES = $CONFIG_FILES
14285 CONFIG_HEADERS = $CONFIG_HEADERS
14286 CONFIG_LINKS = $CONFIG_LINKS
14287 CONFIG_COMMANDS = $CONFIG_COMMANDS
14288 $ $0 $@
14289
14290 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14291 "
14292
14293 _ACEOF
14294
14295 case $ac_config_files in *"
14296 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14297 esac
14298
14299 case $ac_config_headers in *"
14300 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14301 esac
14302
14303
14304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14305 # Files that config.status was made for.
14306 config_files="$ac_config_files"
14307 config_headers="$ac_config_headers"
14308 config_commands="$ac_config_commands"
14309
14310 _ACEOF
14311
14312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14313 ac_cs_usage="\
14314 \`$as_me' instantiates files and other configuration actions
14315 from templates according to the current configuration. Unless the files
14316 and actions are specified as TAGs, all are instantiated by default.
14317
14318 Usage: $0 [OPTION]... [TAG]...
14319
14320 -h, --help print this help, then exit
14321 -V, --version print version number and configuration settings, then exit
14322 --config print configuration, then exit
14323 -q, --quiet, --silent
14324 do not print progress messages
14325 -d, --debug don't remove temporary files
14326 --recheck update $as_me by reconfiguring in the same conditions
14327 --file=FILE[:TEMPLATE]
14328 instantiate the configuration file FILE
14329 --header=FILE[:TEMPLATE]
14330 instantiate the configuration header FILE
14331
14332 Configuration files:
14333 $config_files
14334
14335 Configuration headers:
14336 $config_headers
14337
14338 Configuration commands:
14339 $config_commands
14340
14341 Report bugs to the package provider."
14342
14343 _ACEOF
14344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14345 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14346 ac_cs_version="\\
14347 gtkatlantic config.status 0.6.3
14348 configured by $0, generated by GNU Autoconf 2.69,
14349 with options \\"\$ac_cs_config\\"
14350
14351 Copyright (C) 2012 Free Software Foundation, Inc.
14352 This config.status script is free software; the Free Software Foundation
14353 gives unlimited permission to copy, distribute and modify it."
14354
14355 ac_pwd='$ac_pwd'
14356 srcdir='$srcdir'
14357 INSTALL='$INSTALL'
14358 MKDIR_P='$MKDIR_P'
14359 AWK='$AWK'
14360 test -n "\$AWK" || AWK=awk
14361 _ACEOF
14362
14363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14364 # The default lists apply if the user does not specify any file.
14365 ac_need_defaults=:
14366 while test $# != 0
14367 do
14368 case $1 in
14369 --*=?*)
14370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14372 ac_shift=:
14373 ;;
14374 --*=)
14375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14376 ac_optarg=
14377 ac_shift=:
14378 ;;
14379 *)
14380 ac_option=$1
14381 ac_optarg=$2
14382 ac_shift=shift
14383 ;;
14384 esac
14385
14386 case $ac_option in
14387 # Handling of the options.
14388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14389 ac_cs_recheck=: ;;
14390 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14391 $as_echo "$ac_cs_version"; exit ;;
14392 --config | --confi | --conf | --con | --co | --c )
14393 $as_echo "$ac_cs_config"; exit ;;
14394 --debug | --debu | --deb | --de | --d | -d )
14395 debug=: ;;
14396 --file | --fil | --fi | --f )
14397 $ac_shift
14398 case $ac_optarg in
14399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14400 '') as_fn_error $? "missing file argument" ;;
14401 esac
14402 as_fn_append CONFIG_FILES " '$ac_optarg'"
14403 ac_need_defaults=false;;
14404 --header | --heade | --head | --hea )
14405 $ac_shift
14406 case $ac_optarg in
14407 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14408 esac
14409 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14410 ac_need_defaults=false;;
14411 --he | --h)
14412 # Conflict between --help and --header
14413 as_fn_error $? "ambiguous option: \`$1'
14414 Try \`$0 --help' for more information.";;
14415 --help | --hel | -h )
14416 $as_echo "$ac_cs_usage"; exit ;;
14417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14419 ac_cs_silent=: ;;
14420
14421 # This is an error.
14422 -*) as_fn_error $? "unrecognized option: \`$1'
14423 Try \`$0 --help' for more information." ;;
14424
14425 *) as_fn_append ac_config_targets " $1"
14426 ac_need_defaults=false ;;
14427
14428 esac
14429 shift
14430 done
14431
14432 ac_configure_extra_args=
14433
14434 if $ac_cs_silent; then
14435 exec 6>/dev/null
14436 ac_configure_extra_args="$ac_configure_extra_args --silent"
14437 fi
14438
14439 _ACEOF
14440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14441 if \$ac_cs_recheck; then
14442 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14443 shift
14444 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14445 CONFIG_SHELL='$SHELL'
14446 export CONFIG_SHELL
14447 exec "\$@"
14448 fi
14449
14450 _ACEOF
14451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452 exec 5>>config.log
14453 {
14454 echo
14455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14456 ## Running $as_me. ##
14457 _ASBOX
14458 $as_echo "$ac_log"
14459 } >&5
14460
14461 _ACEOF
14462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14463 #
14464 # INIT-COMMANDS
14465 #
14466 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14467
14468
14469 # The HP-UX ksh and POSIX shell print the target directory to stdout
14470 # if CDPATH is set.
14471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14472
14473 sed_quote_subst='$sed_quote_subst'
14474 double_quote_subst='$double_quote_subst'
14475 delay_variable_subst='$delay_variable_subst'
14476 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14477 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14478 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14479 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14480 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14481 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14482 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14483 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14484 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14485 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14486 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14487 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14488 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14489 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14490 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14491 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14492 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14493 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14494 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14495 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14496 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14497 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14498 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14499 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14500 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14501 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14502 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14503 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14504 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14505 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14506 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14507 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14508 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14509 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14510 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14511 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14512 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14513 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14514 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14515 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14516 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14517 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14518 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14519 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14520 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14521 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14522 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14523 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14524 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14525 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14526 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14527 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14528 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14529 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14530 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14531 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14532 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14533 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14534 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"`'
14535 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14536 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14537 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14538 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14539 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14540 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14541 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14542 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14543 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14544 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14545 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14546 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14547 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14548 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14549 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14550 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14551 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14552 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14553 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14554 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14555 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14556 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14557 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14558 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14559 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14560 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14561 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14562 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14563 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14564 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14565 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14566 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14567 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14568 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14569 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14570 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14571 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14572 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14573 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14574 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14575 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14576 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14577 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14578 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14579 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14580 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14581 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14582 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14583 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14584 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14585 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14586 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14587 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14588 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14589 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14590 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14591 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14592 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14593 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14594 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14595 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14596 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14597 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14598 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14599 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14600 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14601 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14602 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14603 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14604 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14605 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14606 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14607 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14608 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14609 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14610 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14611
14612 LTCC='$LTCC'
14613 LTCFLAGS='$LTCFLAGS'
14614 compiler='$compiler_DEFAULT'
14615
14616 # A function that is used when there is no print builtin or printf.
14617 func_fallback_echo ()
14618 {
14619 eval 'cat <<_LTECHO_EOF
14620 \$1
14621 _LTECHO_EOF'
14622 }
14623
14624 # Quote evaled strings.
14625 for var in SHELL \
14626 ECHO \
14627 PATH_SEPARATOR \
14628 SED \
14629 GREP \
14630 EGREP \
14631 FGREP \
14632 LD \
14633 NM \
14634 LN_S \
14635 lt_SP2NL \
14636 lt_NL2SP \
14637 reload_flag \
14638 OBJDUMP \
14639 deplibs_check_method \
14640 file_magic_cmd \
14641 file_magic_glob \
14642 want_nocaseglob \
14643 DLLTOOL \
14644 sharedlib_from_linklib_cmd \
14645 AR \
14646 AR_FLAGS \
14647 archiver_list_spec \
14648 STRIP \
14649 RANLIB \
14650 CC \
14651 CFLAGS \
14652 compiler \
14653 lt_cv_sys_global_symbol_pipe \
14654 lt_cv_sys_global_symbol_to_cdecl \
14655 lt_cv_sys_global_symbol_to_import \
14656 lt_cv_sys_global_symbol_to_c_name_address \
14657 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14658 lt_cv_nm_interface \
14659 nm_file_list_spec \
14660 lt_cv_truncate_bin \
14661 lt_prog_compiler_no_builtin_flag \
14662 lt_prog_compiler_pic \
14663 lt_prog_compiler_wl \
14664 lt_prog_compiler_static \
14665 lt_cv_prog_compiler_c_o \
14666 need_locks \
14667 MANIFEST_TOOL \
14668 DSYMUTIL \
14669 NMEDIT \
14670 LIPO \
14671 OTOOL \
14672 OTOOL64 \
14673 shrext_cmds \
14674 export_dynamic_flag_spec \
14675 whole_archive_flag_spec \
14676 compiler_needs_object \
14677 with_gnu_ld \
14678 allow_undefined_flag \
14679 no_undefined_flag \
14680 hardcode_libdir_flag_spec \
14681 hardcode_libdir_separator \
14682 exclude_expsyms \
14683 include_expsyms \
14684 file_list_spec \
14685 variables_saved_for_relink \
14686 libname_spec \
14687 library_names_spec \
14688 soname_spec \
14689 install_override_mode \
14690 finish_eval \
14691 old_striplib \
14692 striplib; do
14693 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14694 *[\\\\\\\`\\"\\\$]*)
14695 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14696 ;;
14697 *)
14698 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14699 ;;
14700 esac
14701 done
14702
14703 # Double-quote double-evaled strings.
14704 for var in reload_cmds \
14705 old_postinstall_cmds \
14706 old_postuninstall_cmds \
14707 old_archive_cmds \
14708 extract_expsyms_cmds \
14709 old_archive_from_new_cmds \
14710 old_archive_from_expsyms_cmds \
14711 archive_cmds \
14712 archive_expsym_cmds \
14713 module_cmds \
14714 module_expsym_cmds \
14715 export_symbols_cmds \
14716 prelink_cmds \
14717 postlink_cmds \
14718 postinstall_cmds \
14719 postuninstall_cmds \
14720 finish_cmds \
14721 sys_lib_search_path_spec \
14722 configure_time_dlsearch_path \
14723 configure_time_lt_sys_library_path; do
14724 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14725 *[\\\\\\\`\\"\\\$]*)
14726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14727 ;;
14728 *)
14729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14730 ;;
14731 esac
14732 done
14733
14734 ac_aux_dir='$ac_aux_dir'
14735
14736 # See if we are running on zsh, and set the options that allow our
14737 # commands through without removal of \ escapes INIT.
14738 if test -n "\${ZSH_VERSION+set}"; then
14739 setopt NO_GLOB_SUBST
14740 fi
14741
14742
14743 PACKAGE='$PACKAGE'
14744 VERSION='$VERSION'
14745 RM='$RM'
14746 ofile='$ofile'
14747
14748
14749
14750
14751 _ACEOF
14752
14753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14754
14755 # Handling of arguments.
14756 for ac_config_target in $ac_config_targets
14757 do
14758 case $ac_config_target in
14759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14763 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14764 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14765 "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;;
14766
14767 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14768 esac
14769 done
14770
14771
14772 # If the user did not use the arguments to specify the items to instantiate,
14773 # then the envvar interface is used. Set only those that are not.
14774 # We use the long form for the default assignment because of an extremely
14775 # bizarre bug on SunOS 4.1.3.
14776 if $ac_need_defaults; then
14777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14780 fi
14781
14782 # Have a temporary directory for convenience. Make it in the build tree
14783 # simply because there is no reason against having it here, and in addition,
14784 # creating and moving files from /tmp can sometimes cause problems.
14785 # Hook for its removal unless debugging.
14786 # Note that there is a small window in which the directory will not be cleaned:
14787 # after its creation but before its name has been assigned to `$tmp'.
14788 $debug ||
14789 {
14790 tmp= ac_tmp=
14791 trap 'exit_status=$?
14792 : "${ac_tmp:=$tmp}"
14793 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14794 ' 0
14795 trap 'as_fn_exit 1' 1 2 13 15
14796 }
14797 # Create a (secure) tmp directory for tmp files.
14798
14799 {
14800 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14801 test -d "$tmp"
14802 } ||
14803 {
14804 tmp=./conf$$-$RANDOM
14805 (umask 077 && mkdir "$tmp")
14806 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14807 ac_tmp=$tmp
14808
14809 # Set up the scripts for CONFIG_FILES section.
14810 # No need to generate them if there are no CONFIG_FILES.
14811 # This happens for instance with `./config.status config.h'.
14812 if test -n "$CONFIG_FILES"; then
14813
14814
14815 ac_cr=`echo X | tr X '\015'`
14816 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14817 # But we know of no other shell where ac_cr would be empty at this
14818 # point, so we can use a bashism as a fallback.
14819 if test "x$ac_cr" = x; then
14820 eval ac_cr=\$\'\\r\'
14821 fi
14822 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14823 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14824 ac_cs_awk_cr='\\r'
14825 else
14826 ac_cs_awk_cr=$ac_cr
14827 fi
14828
14829 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14830 _ACEOF
14831
14832
14833 {
14834 echo "cat >conf$$subs.awk <<_ACEOF" &&
14835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14836 echo "_ACEOF"
14837 } >conf$$subs.sh ||
14838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14839 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14840 ac_delim='%!_!# '
14841 for ac_last_try in false false false false false :; do
14842 . ./conf$$subs.sh ||
14843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14844
14845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14846 if test $ac_delim_n = $ac_delim_num; then
14847 break
14848 elif $ac_last_try; then
14849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14850 else
14851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14852 fi
14853 done
14854 rm -f conf$$subs.sh
14855
14856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14857 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14858 _ACEOF
14859 sed -n '
14860 h
14861 s/^/S["/; s/!.*/"]=/
14862 p
14863 g
14864 s/^[^!]*!//
14865 :repl
14866 t repl
14867 s/'"$ac_delim"'$//
14868 t delim
14869 :nl
14870 h
14871 s/\(.\{148\}\)..*/\1/
14872 t more1
14873 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14874 p
14875 n
14876 b repl
14877 :more1
14878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14879 p
14880 g
14881 s/.\{148\}//
14882 t nl
14883 :delim
14884 h
14885 s/\(.\{148\}\)..*/\1/
14886 t more2
14887 s/["\\]/\\&/g; s/^/"/; s/$/"/
14888 p
14889 b
14890 :more2
14891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14892 p
14893 g
14894 s/.\{148\}//
14895 t delim
14896 ' <conf$$subs.awk | sed '
14897 /^[^""]/{
14898 N
14899 s/\n//
14900 }
14901 ' >>$CONFIG_STATUS || ac_write_fail=1
14902 rm -f conf$$subs.awk
14903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14904 _ACAWK
14905 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14906 for (key in S) S_is_set[key] = 1
14907 FS = ""
14908
14909 }
14910 {
14911 line = $ 0
14912 nfields = split(line, field, "@")
14913 substed = 0
14914 len = length(field[1])
14915 for (i = 2; i < nfields; i++) {
14916 key = field[i]
14917 keylen = length(key)
14918 if (S_is_set[key]) {
14919 value = S[key]
14920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14921 len += length(value) + length(field[++i])
14922 substed = 1
14923 } else
14924 len += 1 + keylen
14925 }
14926
14927 print line
14928 }
14929
14930 _ACAWK
14931 _ACEOF
14932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14933 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14934 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14935 else
14936 cat
14937 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14938 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14939 _ACEOF
14940
14941 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14942 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14943 # trailing colons and then remove the whole line if VPATH becomes empty
14944 # (actually we leave an empty line to preserve line numbers).
14945 if test "x$srcdir" = x.; then
14946 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14947 h
14948 s///
14949 s/^/:/
14950 s/[ ]*$/:/
14951 s/:\$(srcdir):/:/g
14952 s/:\${srcdir}:/:/g
14953 s/:@srcdir@:/:/g
14954 s/^:*//
14955 s/:*$//
14956 x
14957 s/\(=[ ]*\).*/\1/
14958 G
14959 s/\n//
14960 s/^[^=]*=[ ]*$//
14961 }'
14962 fi
14963
14964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14965 fi # test -n "$CONFIG_FILES"
14966
14967 # Set up the scripts for CONFIG_HEADERS section.
14968 # No need to generate them if there are no CONFIG_HEADERS.
14969 # This happens for instance with `./config.status Makefile'.
14970 if test -n "$CONFIG_HEADERS"; then
14971 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14972 BEGIN {
14973 _ACEOF
14974
14975 # Transform confdefs.h into an awk script `defines.awk', embedded as
14976 # here-document in config.status, that substitutes the proper values into
14977 # config.h.in to produce config.h.
14978
14979 # Create a delimiter string that does not exist in confdefs.h, to ease
14980 # handling of long lines.
14981 ac_delim='%!_!# '
14982 for ac_last_try in false false :; do
14983 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14984 if test -z "$ac_tt"; then
14985 break
14986 elif $ac_last_try; then
14987 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14988 else
14989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14990 fi
14991 done
14992
14993 # For the awk script, D is an array of macro values keyed by name,
14994 # likewise P contains macro parameters if any. Preserve backslash
14995 # newline sequences.
14996
14997 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14998 sed -n '
14999 s/.\{148\}/&'"$ac_delim"'/g
15000 t rset
15001 :rset
15002 s/^[ ]*#[ ]*define[ ][ ]*/ /
15003 t def
15004 d
15005 :def
15006 s/\\$//
15007 t bsnl
15008 s/["\\]/\\&/g
15009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15010 D["\1"]=" \3"/p
15011 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15012 d
15013 :bsnl
15014 s/["\\]/\\&/g
15015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15016 D["\1"]=" \3\\\\\\n"\\/p
15017 t cont
15018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15019 t cont
15020 d
15021 :cont
15022 n
15023 s/.\{148\}/&'"$ac_delim"'/g
15024 t clear
15025 :clear
15026 s/\\$//
15027 t bsnlc
15028 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15029 d
15030 :bsnlc
15031 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15032 b cont
15033 ' <confdefs.h | sed '
15034 s/'"$ac_delim"'/"\\\
15035 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15036
15037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15038 for (key in D) D_is_set[key] = 1
15039 FS = ""
15040 }
15041 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15042 line = \$ 0
15043 split(line, arg, " ")
15044 if (arg[1] == "#") {
15045 defundef = arg[2]
15046 mac1 = arg[3]
15047 } else {
15048 defundef = substr(arg[1], 2)
15049 mac1 = arg[2]
15050 }
15051 split(mac1, mac2, "(") #)
15052 macro = mac2[1]
15053 prefix = substr(line, 1, index(line, defundef) - 1)
15054 if (D_is_set[macro]) {
15055 # Preserve the white space surrounding the "#".
15056 print prefix "define", macro P[macro] D[macro]
15057 next
15058 } else {
15059 # Replace #undef with comments. This is necessary, for example,
15060 # in the case of _POSIX_SOURCE, which is predefined and required
15061 # on some systems where configure will not decide to define it.
15062 if (defundef == "undef") {
15063 print "/*", prefix defundef, macro, "*/"
15064 next
15065 }
15066 }
15067 }
15068 { print }
15069 _ACAWK
15070 _ACEOF
15071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15073 fi # test -n "$CONFIG_HEADERS"
15074
15075
15076 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15077 shift
15078 for ac_tag
15079 do
15080 case $ac_tag in
15081 :[FHLC]) ac_mode=$ac_tag; continue;;
15082 esac
15083 case $ac_mode$ac_tag in
15084 :[FHL]*:*);;
15085 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15086 :[FH]-) ac_tag=-:-;;
15087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15088 esac
15089 ac_save_IFS=$IFS
15090 IFS=:
15091 set x $ac_tag
15092 IFS=$ac_save_IFS
15093 shift
15094 ac_file=$1
15095 shift
15096
15097 case $ac_mode in
15098 :L) ac_source=$1;;
15099 :[FH])
15100 ac_file_inputs=
15101 for ac_f
15102 do
15103 case $ac_f in
15104 -) ac_f="$ac_tmp/stdin";;
15105 *) # Look for the file first in the build tree, then in the source tree
15106 # (if the path is not absolute). The absolute path cannot be DOS-style,
15107 # because $ac_f cannot contain `:'.
15108 test -f "$ac_f" ||
15109 case $ac_f in
15110 [\\/$]*) false;;
15111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15112 esac ||
15113 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15114 esac
15115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15116 as_fn_append ac_file_inputs " '$ac_f'"
15117 done
15118
15119 # Let's still pretend it is `configure' which instantiates (i.e., don't
15120 # use $as_me), people would be surprised to read:
15121 # /* config.h. Generated by config.status. */
15122 configure_input='Generated from '`
15123 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15124 `' by configure.'
15125 if test x"$ac_file" != x-; then
15126 configure_input="$ac_file. $configure_input"
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15128 $as_echo "$as_me: creating $ac_file" >&6;}
15129 fi
15130 # Neutralize special characters interpreted by sed in replacement strings.
15131 case $configure_input in #(
15132 *\&* | *\|* | *\\* )
15133 ac_sed_conf_input=`$as_echo "$configure_input" |
15134 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15135 *) ac_sed_conf_input=$configure_input;;
15136 esac
15137
15138 case $ac_tag in
15139 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15141 esac
15142 ;;
15143 esac
15144
15145 ac_dir=`$as_dirname -- "$ac_file" ||
15146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15147 X"$ac_file" : 'X\(//\)[^/]' \| \
15148 X"$ac_file" : 'X\(//\)$' \| \
15149 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15150 $as_echo X"$ac_file" |
15151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15152 s//\1/
15153 q
15154 }
15155 /^X\(\/\/\)[^/].*/{
15156 s//\1/
15157 q
15158 }
15159 /^X\(\/\/\)$/{
15160 s//\1/
15161 q
15162 }
15163 /^X\(\/\).*/{
15164 s//\1/
15165 q
15166 }
15167 s/.*/./; q'`
15168 as_dir="$ac_dir"; as_fn_mkdir_p
15169 ac_builddir=.
15170
15171 case "$ac_dir" in
15172 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15173 *)
15174 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15175 # A ".." for each directory in $ac_dir_suffix.
15176 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15177 case $ac_top_builddir_sub in
15178 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15179 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15180 esac ;;
15181 esac
15182 ac_abs_top_builddir=$ac_pwd
15183 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15184 # for backward compatibility:
15185 ac_top_builddir=$ac_top_build_prefix
15186
15187 case $srcdir in
15188 .) # We are building in place.
15189 ac_srcdir=.
15190 ac_top_srcdir=$ac_top_builddir_sub
15191 ac_abs_top_srcdir=$ac_pwd ;;
15192 [\\/]* | ?:[\\/]* ) # Absolute name.
15193 ac_srcdir=$srcdir$ac_dir_suffix;
15194 ac_top_srcdir=$srcdir
15195 ac_abs_top_srcdir=$srcdir ;;
15196 *) # Relative name.
15197 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15198 ac_top_srcdir=$ac_top_build_prefix$srcdir
15199 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15200 esac
15201 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15202
15203
15204 case $ac_mode in
15205 :F)
15206 #
15207 # CONFIG_FILE
15208 #
15209
15210 case $INSTALL in
15211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15212 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15213 esac
15214 ac_MKDIR_P=$MKDIR_P
15215 case $MKDIR_P in
15216 [\\/$]* | ?:[\\/]* ) ;;
15217 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15218 esac
15219 _ACEOF
15220
15221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15222 # If the template does not know about datarootdir, expand it.
15223 # FIXME: This hack should be removed a few years after 2.60.
15224 ac_datarootdir_hack=; ac_datarootdir_seen=
15225 ac_sed_dataroot='
15226 /datarootdir/ {
15227 p
15228 q
15229 }
15230 /@datadir@/p
15231 /@docdir@/p
15232 /@infodir@/p
15233 /@localedir@/p
15234 /@mandir@/p'
15235 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15236 *datarootdir*) ac_datarootdir_seen=yes;;
15237 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15239 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15240 _ACEOF
15241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 ac_datarootdir_hack='
15243 s&@datadir@&$datadir&g
15244 s&@docdir@&$docdir&g
15245 s&@infodir@&$infodir&g
15246 s&@localedir@&$localedir&g
15247 s&@mandir@&$mandir&g
15248 s&\\\${datarootdir}&$datarootdir&g' ;;
15249 esac
15250 _ACEOF
15251
15252 # Neutralize VPATH when `$srcdir' = `.'.
15253 # Shell code in configure.ac might set extrasub.
15254 # FIXME: do we really want to maintain this feature?
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 ac_sed_extra="$ac_vpsub
15257 $extrasub
15258 _ACEOF
15259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15260 :t
15261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15262 s|@configure_input@|$ac_sed_conf_input|;t t
15263 s&@top_builddir@&$ac_top_builddir_sub&;t t
15264 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15265 s&@srcdir@&$ac_srcdir&;t t
15266 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15267 s&@top_srcdir@&$ac_top_srcdir&;t t
15268 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15269 s&@builddir@&$ac_builddir&;t t
15270 s&@abs_builddir@&$ac_abs_builddir&;t t
15271 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15272 s&@INSTALL@&$ac_INSTALL&;t t
15273 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15274 $ac_datarootdir_hack
15275 "
15276 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15277 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15278
15279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15280 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15282 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15284 which seems to be undefined. Please make sure it is defined" >&5
15285 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15286 which seems to be undefined. Please make sure it is defined" >&2;}
15287
15288 rm -f "$ac_tmp/stdin"
15289 case $ac_file in
15290 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15291 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15292 esac \
15293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15294 ;;
15295 :H)
15296 #
15297 # CONFIG_HEADER
15298 #
15299 if test x"$ac_file" != x-; then
15300 {
15301 $as_echo "/* $configure_input */" \
15302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15303 } >"$ac_tmp/config.h" \
15304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15305 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15307 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15308 else
15309 rm -f "$ac_file"
15310 mv "$ac_tmp/config.h" "$ac_file" \
15311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15312 fi
15313 else
15314 $as_echo "/* $configure_input */" \
15315 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15316 || as_fn_error $? "could not create -" "$LINENO" 5
15317 fi
15318 # Compute "$ac_file"'s index in $config_headers.
15319 _am_arg="$ac_file"
15320 _am_stamp_count=1
15321 for _am_header in $config_headers :; do
15322 case $_am_header in
15323 $_am_arg | $_am_arg:* )
15324 break ;;
15325 * )
15326 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15327 esac
15328 done
15329 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15330 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15331 X"$_am_arg" : 'X\(//\)[^/]' \| \
15332 X"$_am_arg" : 'X\(//\)$' \| \
15333 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15334 $as_echo X"$_am_arg" |
15335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15336 s//\1/
15337 q
15338 }
15339 /^X\(\/\/\)[^/].*/{
15340 s//\1/
15341 q
15342 }
15343 /^X\(\/\/\)$/{
15344 s//\1/
15345 q
15346 }
15347 /^X\(\/\).*/{
15348 s//\1/
15349 q
15350 }
15351 s/.*/./; q'`/stamp-h$_am_stamp_count
15352 ;;
15353
15354 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15355 $as_echo "$as_me: executing $ac_file commands" >&6;}
15356 ;;
15357 esac
15358
15359
15360 case $ac_file$ac_mode in
15361 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15362 # Older Autoconf quotes --file arguments for eval, but not when files
15363 # are listed without --file. Let's play safe and only enable the eval
15364 # if we detect the quoting.
15365 # TODO: see whether this extra hack can be removed once we start
15366 # requiring Autoconf 2.70 or later.
15367 case $CONFIG_FILES in #(
15368 *\'*) :
15369 eval set x "$CONFIG_FILES" ;; #(
15370 *) :
15371 set x $CONFIG_FILES ;; #(
15372 *) :
15373 ;;
15374 esac
15375 shift
15376 # Used to flag and report bootstrapping failures.
15377 am_rc=0
15378 for am_mf
15379 do
15380 # Strip MF so we end up with the name of the file.
15381 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15382 # Check whether this is an Automake generated Makefile which includes
15383 # dependency-tracking related rules and includes.
15384 # Grep'ing the whole file directly is not great: AIX grep has a line
15385 # limit of 2048, but all sed's we know have understand at least 4000.
15386 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15387 || continue
15388 am_dirpart=`$as_dirname -- "$am_mf" ||
15389 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15390 X"$am_mf" : 'X\(//\)[^/]' \| \
15391 X"$am_mf" : 'X\(//\)$' \| \
15392 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15393 $as_echo X"$am_mf" |
15394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15395 s//\1/
15396 q
15397 }
15398 /^X\(\/\/\)[^/].*/{
15399 s//\1/
15400 q
15401 }
15402 /^X\(\/\/\)$/{
15403 s//\1/
15404 q
15405 }
15406 /^X\(\/\).*/{
15407 s//\1/
15408 q
15409 }
15410 s/.*/./; q'`
15411 am_filepart=`$as_basename -- "$am_mf" ||
15412 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15413 X"$am_mf" : 'X\(//\)$' \| \
15414 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X/"$am_mf" |
15416 sed '/^.*\/\([^/][^/]*\)\/*$/{
15417 s//\1/
15418 q
15419 }
15420 /^X\/\(\/\/\)$/{
15421 s//\1/
15422 q
15423 }
15424 /^X\/\(\/\).*/{
15425 s//\1/
15426 q
15427 }
15428 s/.*/./; q'`
15429 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15430 && sed -e '/# am--include-marker/d' "$am_filepart" \
15431 | $MAKE -f - am--depfiles" >&5
15432 (cd "$am_dirpart" \
15433 && sed -e '/# am--include-marker/d' "$am_filepart" \
15434 | $MAKE -f - am--depfiles) >&5 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } || am_rc=$?
15438 done
15439 if test $am_rc -ne 0; then
15440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15442 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15443 for automatic dependency tracking. If GNU make was not used, consider
15444 re-running the configure script with MAKE=\"gmake\" (or whatever is
15445 necessary). You can also try re-running configure with the
15446 '--disable-dependency-tracking' option to at least be able to build
15447 the package (albeit without support for automatic dependency tracking).
15448 See \`config.log' for more details" "$LINENO" 5; }
15449 fi
15450 { am_dirpart=; unset am_dirpart;}
15451 { am_filepart=; unset am_filepart;}
15452 { am_mf=; unset am_mf;}
15453 { am_rc=; unset am_rc;}
15454 rm -f conftest-deps.mk
15455 }
15456 ;;
15457 "libtool":C)
15458
15459 # See if we are running on zsh, and set the options that allow our
15460 # commands through without removal of \ escapes.
15461 if test -n "${ZSH_VERSION+set}"; then
15462 setopt NO_GLOB_SUBST
15463 fi
15464
15465 cfgfile=${ofile}T
15466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15467 $RM "$cfgfile"
15468
15469 cat <<_LT_EOF >> "$cfgfile"
15470 #! $SHELL
15471 # Generated automatically by $as_me ($PACKAGE) $VERSION
15472 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15473
15474 # Provide generalized library-building support services.
15475 # Written by Gordon Matzigkeit, 1996
15476
15477 # Copyright (C) 2014 Free Software Foundation, Inc.
15478 # This is free software; see the source for copying conditions. There is NO
15479 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15480
15481 # GNU Libtool is free software; you can redistribute it and/or modify
15482 # it under the terms of the GNU General Public License as published by
15483 # the Free Software Foundation; either version 2 of of the License, or
15484 # (at your option) any later version.
15485 #
15486 # As a special exception to the GNU General Public License, if you
15487 # distribute this file as part of a program or library that is built
15488 # using GNU Libtool, you may include this file under the same
15489 # distribution terms that you use for the rest of that program.
15490 #
15491 # GNU Libtool is distributed in the hope that it will be useful, but
15492 # WITHOUT ANY WARRANTY; without even the implied warranty of
15493 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15494 # GNU General Public License for more details.
15495 #
15496 # You should have received a copy of the GNU General Public License
15497 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15498
15499
15500 # The names of the tagged configurations supported by this script.
15501 available_tags=''
15502
15503 # Configured defaults for sys_lib_dlsearch_path munging.
15504 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15505
15506 # ### BEGIN LIBTOOL CONFIG
15507
15508 # Which release of libtool.m4 was used?
15509 macro_version=$macro_version
15510 macro_revision=$macro_revision
15511
15512 # Whether or not to build shared libraries.
15513 build_libtool_libs=$enable_shared
15514
15515 # Whether or not to build static libraries.
15516 build_old_libs=$enable_static
15517
15518 # What type of objects to build.
15519 pic_mode=$pic_mode
15520
15521 # Whether or not to optimize for fast installation.
15522 fast_install=$enable_fast_install
15523
15524 # Shared archive member basename,for filename based shared library versioning on AIX.
15525 shared_archive_member_spec=$shared_archive_member_spec
15526
15527 # Shell to use when invoking shell scripts.
15528 SHELL=$lt_SHELL
15529
15530 # An echo program that protects backslashes.
15531 ECHO=$lt_ECHO
15532
15533 # The PATH separator for the build system.
15534 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15535
15536 # The host system.
15537 host_alias=$host_alias
15538 host=$host
15539 host_os=$host_os
15540
15541 # The build system.
15542 build_alias=$build_alias
15543 build=$build
15544 build_os=$build_os
15545
15546 # A sed program that does not truncate output.
15547 SED=$lt_SED
15548
15549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15550 Xsed="\$SED -e 1s/^X//"
15551
15552 # A grep program that handles long lines.
15553 GREP=$lt_GREP
15554
15555 # An ERE matcher.
15556 EGREP=$lt_EGREP
15557
15558 # A literal string matcher.
15559 FGREP=$lt_FGREP
15560
15561 # A BSD- or MS-compatible name lister.
15562 NM=$lt_NM
15563
15564 # Whether we need soft or hard links.
15565 LN_S=$lt_LN_S
15566
15567 # What is the maximum length of a command?
15568 max_cmd_len=$max_cmd_len
15569
15570 # Object file suffix (normally "o").
15571 objext=$ac_objext
15572
15573 # Executable file suffix (normally "").
15574 exeext=$exeext
15575
15576 # whether the shell understands "unset".
15577 lt_unset=$lt_unset
15578
15579 # turn spaces into newlines.
15580 SP2NL=$lt_lt_SP2NL
15581
15582 # turn newlines into spaces.
15583 NL2SP=$lt_lt_NL2SP
15584
15585 # convert \$build file names to \$host format.
15586 to_host_file_cmd=$lt_cv_to_host_file_cmd
15587
15588 # convert \$build files to toolchain format.
15589 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15590
15591 # An object symbol dumper.
15592 OBJDUMP=$lt_OBJDUMP
15593
15594 # Method to check whether dependent libraries are shared objects.
15595 deplibs_check_method=$lt_deplibs_check_method
15596
15597 # Command to use when deplibs_check_method = "file_magic".
15598 file_magic_cmd=$lt_file_magic_cmd
15599
15600 # How to find potential files when deplibs_check_method = "file_magic".
15601 file_magic_glob=$lt_file_magic_glob
15602
15603 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15604 want_nocaseglob=$lt_want_nocaseglob
15605
15606 # DLL creation program.
15607 DLLTOOL=$lt_DLLTOOL
15608
15609 # Command to associate shared and link libraries.
15610 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15611
15612 # The archiver.
15613 AR=$lt_AR
15614
15615 # Flags to create an archive.
15616 AR_FLAGS=$lt_AR_FLAGS
15617
15618 # How to feed a file listing to the archiver.
15619 archiver_list_spec=$lt_archiver_list_spec
15620
15621 # A symbol stripping program.
15622 STRIP=$lt_STRIP
15623
15624 # Commands used to install an old-style archive.
15625 RANLIB=$lt_RANLIB
15626 old_postinstall_cmds=$lt_old_postinstall_cmds
15627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15628
15629 # Whether to use a lock for old archive extraction.
15630 lock_old_archive_extraction=$lock_old_archive_extraction
15631
15632 # A C compiler.
15633 LTCC=$lt_CC
15634
15635 # LTCC compiler flags.
15636 LTCFLAGS=$lt_CFLAGS
15637
15638 # Take the output of nm and produce a listing of raw symbols and C names.
15639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15640
15641 # Transform the output of nm in a proper C declaration.
15642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15643
15644 # Transform the output of nm into a list of symbols to manually relocate.
15645 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15646
15647 # Transform the output of nm in a C name address pair.
15648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15649
15650 # Transform the output of nm in a C name address pair when lib prefix is needed.
15651 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15652
15653 # The name lister interface.
15654 nm_interface=$lt_lt_cv_nm_interface
15655
15656 # Specify filename containing input files for \$NM.
15657 nm_file_list_spec=$lt_nm_file_list_spec
15658
15659 # The root where to search for dependent libraries,and where our libraries should be installed.
15660 lt_sysroot=$lt_sysroot
15661
15662 # Command to truncate a binary pipe.
15663 lt_truncate_bin=$lt_lt_cv_truncate_bin
15664
15665 # The name of the directory that contains temporary libtool files.
15666 objdir=$objdir
15667
15668 # Used to examine libraries when file_magic_cmd begins with "file".
15669 MAGIC_CMD=$MAGIC_CMD
15670
15671 # Must we lock files when doing compilation?
15672 need_locks=$lt_need_locks
15673
15674 # Manifest tool.
15675 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15676
15677 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15678 DSYMUTIL=$lt_DSYMUTIL
15679
15680 # Tool to change global to local symbols on Mac OS X.
15681 NMEDIT=$lt_NMEDIT
15682
15683 # Tool to manipulate fat objects and archives on Mac OS X.
15684 LIPO=$lt_LIPO
15685
15686 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15687 OTOOL=$lt_OTOOL
15688
15689 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15690 OTOOL64=$lt_OTOOL64
15691
15692 # Old archive suffix (normally "a").
15693 libext=$libext
15694
15695 # Shared library suffix (normally ".so").
15696 shrext_cmds=$lt_shrext_cmds
15697
15698 # The commands to extract the exported symbol list from a shared archive.
15699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15700
15701 # Variables whose values should be saved in libtool wrapper scripts and
15702 # restored at link time.
15703 variables_saved_for_relink=$lt_variables_saved_for_relink
15704
15705 # Do we need the "lib" prefix for modules?
15706 need_lib_prefix=$need_lib_prefix
15707
15708 # Do we need a version for libraries?
15709 need_version=$need_version
15710
15711 # Library versioning type.
15712 version_type=$version_type
15713
15714 # Shared library runtime path variable.
15715 runpath_var=$runpath_var
15716
15717 # Shared library path variable.
15718 shlibpath_var=$shlibpath_var
15719
15720 # Is shlibpath searched before the hard-coded library search path?
15721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15722
15723 # Format of library name prefix.
15724 libname_spec=$lt_libname_spec
15725
15726 # List of archive names. First name is the real one, the rest are links.
15727 # The last name is the one that the linker finds with -lNAME
15728 library_names_spec=$lt_library_names_spec
15729
15730 # The coded name of the library, if different from the real name.
15731 soname_spec=$lt_soname_spec
15732
15733 # Permission mode override for installation of shared libraries.
15734 install_override_mode=$lt_install_override_mode
15735
15736 # Command to use after installation of a shared archive.
15737 postinstall_cmds=$lt_postinstall_cmds
15738
15739 # Command to use after uninstallation of a shared archive.
15740 postuninstall_cmds=$lt_postuninstall_cmds
15741
15742 # Commands used to finish a libtool library installation in a directory.
15743 finish_cmds=$lt_finish_cmds
15744
15745 # As "finish_cmds", except a single script fragment to be evaled but
15746 # not shown.
15747 finish_eval=$lt_finish_eval
15748
15749 # Whether we should hardcode library paths into libraries.
15750 hardcode_into_libs=$hardcode_into_libs
15751
15752 # Compile-time system search path for libraries.
15753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15754
15755 # Detected run-time system search path for libraries.
15756 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15757
15758 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15759 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15760
15761 # Whether dlopen is supported.
15762 dlopen_support=$enable_dlopen
15763
15764 # Whether dlopen of programs is supported.
15765 dlopen_self=$enable_dlopen_self
15766
15767 # Whether dlopen of statically linked programs is supported.
15768 dlopen_self_static=$enable_dlopen_self_static
15769
15770 # Commands to strip libraries.
15771 old_striplib=$lt_old_striplib
15772 striplib=$lt_striplib
15773
15774
15775 # The linker used to build libraries.
15776 LD=$lt_LD
15777
15778 # How to create reloadable object files.
15779 reload_flag=$lt_reload_flag
15780 reload_cmds=$lt_reload_cmds
15781
15782 # Commands used to build an old-style archive.
15783 old_archive_cmds=$lt_old_archive_cmds
15784
15785 # A language specific compiler.
15786 CC=$lt_compiler
15787
15788 # Is the compiler the GNU compiler?
15789 with_gcc=$GCC
15790
15791 # Compiler flag to turn off builtin functions.
15792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15793
15794 # Additional compiler flags for building library objects.
15795 pic_flag=$lt_lt_prog_compiler_pic
15796
15797 # How to pass a linker flag through the compiler.
15798 wl=$lt_lt_prog_compiler_wl
15799
15800 # Compiler flag to prevent dynamic linking.
15801 link_static_flag=$lt_lt_prog_compiler_static
15802
15803 # Does compiler simultaneously support -c and -o options?
15804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15805
15806 # Whether or not to add -lc for building shared libraries.
15807 build_libtool_need_lc=$archive_cmds_need_lc
15808
15809 # Whether or not to disallow shared libs when runtime libs are static.
15810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15811
15812 # Compiler flag to allow reflexive dlopens.
15813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15814
15815 # Compiler flag to generate shared objects directly from archives.
15816 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15817
15818 # Whether the compiler copes with passing no objects directly.
15819 compiler_needs_object=$lt_compiler_needs_object
15820
15821 # Create an old-style archive from a shared archive.
15822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15823
15824 # Create a temporary old-style archive to link instead of a shared archive.
15825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15826
15827 # Commands used to build a shared archive.
15828 archive_cmds=$lt_archive_cmds
15829 archive_expsym_cmds=$lt_archive_expsym_cmds
15830
15831 # Commands used to build a loadable module if different from building
15832 # a shared archive.
15833 module_cmds=$lt_module_cmds
15834 module_expsym_cmds=$lt_module_expsym_cmds
15835
15836 # Whether we are building with GNU ld or not.
15837 with_gnu_ld=$lt_with_gnu_ld
15838
15839 # Flag that allows shared libraries with undefined symbols to be built.
15840 allow_undefined_flag=$lt_allow_undefined_flag
15841
15842 # Flag that enforces no undefined symbols.
15843 no_undefined_flag=$lt_no_undefined_flag
15844
15845 # Flag to hardcode \$libdir into a binary during linking.
15846 # This must work even if \$libdir does not exist
15847 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15848
15849 # Whether we need a single "-rpath" flag with a separated argument.
15850 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15851
15852 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15853 # DIR into the resulting binary.
15854 hardcode_direct=$hardcode_direct
15855
15856 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15857 # DIR into the resulting binary and the resulting library dependency is
15858 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15859 # library is relocated.
15860 hardcode_direct_absolute=$hardcode_direct_absolute
15861
15862 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15863 # into the resulting binary.
15864 hardcode_minus_L=$hardcode_minus_L
15865
15866 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15867 # into the resulting binary.
15868 hardcode_shlibpath_var=$hardcode_shlibpath_var
15869
15870 # Set to "yes" if building a shared library automatically hardcodes DIR
15871 # into the library and all subsequent libraries and executables linked
15872 # against it.
15873 hardcode_automatic=$hardcode_automatic
15874
15875 # Set to yes if linker adds runtime paths of dependent libraries
15876 # to runtime path list.
15877 inherit_rpath=$inherit_rpath
15878
15879 # Whether libtool must link a program against all its dependency libraries.
15880 link_all_deplibs=$link_all_deplibs
15881
15882 # Set to "yes" if exported symbols are required.
15883 always_export_symbols=$always_export_symbols
15884
15885 # The commands to list exported symbols.
15886 export_symbols_cmds=$lt_export_symbols_cmds
15887
15888 # Symbols that should not be listed in the preloaded symbols.
15889 exclude_expsyms=$lt_exclude_expsyms
15890
15891 # Symbols that must always be exported.
15892 include_expsyms=$lt_include_expsyms
15893
15894 # Commands necessary for linking programs (against libraries) with templates.
15895 prelink_cmds=$lt_prelink_cmds
15896
15897 # Commands necessary for finishing linking programs.
15898 postlink_cmds=$lt_postlink_cmds
15899
15900 # Specify filename containing input files.
15901 file_list_spec=$lt_file_list_spec
15902
15903 # How to hardcode a shared library path into an executable.
15904 hardcode_action=$hardcode_action
15905
15906 # ### END LIBTOOL CONFIG
15907
15908 _LT_EOF
15909
15910 cat <<'_LT_EOF' >> "$cfgfile"
15911
15912 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15913
15914 # func_munge_path_list VARIABLE PATH
15915 # -----------------------------------
15916 # VARIABLE is name of variable containing _space_ separated list of
15917 # directories to be munged by the contents of PATH, which is string
15918 # having a format:
15919 # "DIR[:DIR]:"
15920 # string "DIR[ DIR]" will be prepended to VARIABLE
15921 # ":DIR[:DIR]"
15922 # string "DIR[ DIR]" will be appended to VARIABLE
15923 # "DIRP[:DIRP]::[DIRA:]DIRA"
15924 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15925 # "DIRA[ DIRA]" will be appended to VARIABLE
15926 # "DIR[:DIR]"
15927 # VARIABLE will be replaced by "DIR[ DIR]"
15928 func_munge_path_list ()
15929 {
15930 case x$2 in
15931 x)
15932 ;;
15933 *:)
15934 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15935 ;;
15936 x:*)
15937 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15938 ;;
15939 *::*)
15940 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15941 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15942 ;;
15943 *)
15944 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15945 ;;
15946 esac
15947 }
15948
15949
15950 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15951 func_cc_basename ()
15952 {
15953 for cc_temp in $*""; do
15954 case $cc_temp in
15955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15957 \-*) ;;
15958 *) break;;
15959 esac
15960 done
15961 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15962 }
15963
15964
15965 # ### END FUNCTIONS SHARED WITH CONFIGURE
15966
15967 _LT_EOF
15968
15969 case $host_os in
15970 aix3*)
15971 cat <<\_LT_EOF >> "$cfgfile"
15972 # AIX sometimes has problems with the GCC collect2 program. For some
15973 # reason, if we set the COLLECT_NAMES environment variable, the problems
15974 # vanish in a puff of smoke.
15975 if test set != "${COLLECT_NAMES+set}"; then
15976 COLLECT_NAMES=
15977 export COLLECT_NAMES
15978 fi
15979 _LT_EOF
15980 ;;
15981 esac
15982
15983
15984 ltmain=$ac_aux_dir/ltmain.sh
15985
15986
15987 # We use sed instead of cat because bash on DJGPP gets confused if
15988 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15989 # text mode, it properly converts lines to CR/LF. This bash problem
15990 # is reportedly fixed, but why not run on old versions too?
15991 sed '$q' "$ltmain" >> "$cfgfile" \
15992 || (rm -f "$cfgfile"; exit 1)
15993
15994 mv -f "$cfgfile" "$ofile" ||
15995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15996 chmod +x "$ofile"
15997
15998 ;;
15999
16000 esac
16001 done # for ac_tag
16002
16003
16004 as_fn_exit 0
16005 _ACEOF
16006 ac_clean_files=$ac_clean_files_save
16007
16008 test $ac_write_fail = 0 ||
16009 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16010
16011
16012 # configure is writing to config.log, and then calls config.status.
16013 # config.status does its own redirection, appending to config.log.
16014 # Unfortunately, on DOS this fails, as config.log is still kept open
16015 # by configure, so config.status won't be able to write to it; its
16016 # output is simply discarded. So we exec the FD to /dev/null,
16017 # effectively closing config.log, so it can be properly (re)opened and
16018 # appended to by config.status. When coming back to configure, we
16019 # need to make the FD available again.
16020 if test "$no_create" != yes; then
16021 ac_cs_success=:
16022 ac_config_status_args=
16023 test "$silent" = yes &&
16024 ac_config_status_args="$ac_config_status_args --quiet"
16025 exec 5>/dev/null
16026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16027 exec 5>>config.log
16028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16029 # would make configure fail if this is the last instruction.
16030 $ac_cs_success || as_fn_exit 1
16031 fi
16032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16035 fi
16036