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 compizconfig-python 0.8.18.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='compizconfig-python'
592 PACKAGE_TARNAME='compizconfig-python'
593 PACKAGE_VERSION='0.8.18'
594 PACKAGE_STRING='compizconfig-python 0.8.18'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 CYTHON
639 PYTHON_INCLUDES
640 PYTHON_SOINIT_PREFIX
641 PYTHON_MAJOR_VER
642 pkgpyexecdir
643 pyexecdir
644 pkgpythondir
645 pythondir
646 PYTHON_PLATFORM
647 PYTHON_EXEC_PREFIX
648 PYTHON_PREFIX
649 PYTHON_VERSION
650 PYTHON
651 CCS_REQUIRES
652 CCS_LIBS
653 CCS_CFLAGS
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 LT_SYS_LIBRARY_PATH
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 RANLIB
665 ac_ct_AR
666 AR
667 DLLTOOL
668 OBJDUMP
669 LN_S
670 NM
671 ac_ct_DUMPBIN
672 DUMPBIN
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 LIBTOOL
687 CPP
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 AM_BACKSLASH
709 AM_DEFAULT_VERBOSITY
710 AM_DEFAULT_V
711 AM_V
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 runstatedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_silent_rules
778 enable_maintainer_mode
779 enable_dependency_tracking
780 enable_shared
781 enable_static
782 with_pic
783 enable_fast_install
784 with_aix_soname
785 with_gnu_ld
786 with_sysroot
787 enable_libtool_lock
788 with_cython
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CPP
799 LT_SYS_LIBRARY_PATH
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 CCS_CFLAGS
804 CCS_LIBS
805 PYTHON'
806
807
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
829
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 runstatedir='${localstatedir}/run'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -runstatedir | --runstatedir | --runstatedi | --runstated \
1098 | --runstate | --runstat | --runsta | --runst | --runs \
1099 | --run | --ru | --r)
1100 ac_prev=runstatedir ;;
1101 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1102 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1103 | --run=* | --ru=* | --r=*)
1104 runstatedir=$ac_optarg ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir runstatedir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures compizconfig-python 0.8.18 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root
1406 [DATAROOTDIR/doc/compizconfig-python]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1412
1413 cat <<\_ACEOF
1414
1415 Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419
1420 System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of compizconfig-python 0.8.18:";;
1429 esac
1430 cat <<\_ACEOF
1431
1432 Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-silent-rules less verbose build output (undo: "make V=1")
1437 --disable-silent-rules verbose build output (undo: "make V=0")
1438 --enable-maintainer-mode
1439 enable make rules and dependencies not useful (and
1440 sometimes confusing) to the casual installer
1441 --enable-dependency-tracking
1442 do not reject slow dependency extractors
1443 --disable-dependency-tracking
1444 speeds up one-time build
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1455 both]
1456 --with-aix-soname=aix|svr4|both
1457 shared library versioning (aka "SONAME") variant to
1458 provide on AIX, [default=aix].
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1460 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1461 compiler's sysroot if not specified).
1462 --with-cython=PATH
1463
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CPP C preprocessor
1473 LT_SYS_LIBRARY_PATH
1474 User-defined run-time library search path.
1475 PKG_CONFIG path to pkg-config utility
1476 PKG_CONFIG_PATH
1477 directories to add to pkg-config's search path
1478 PKG_CONFIG_LIBDIR
1479 path overriding pkg-config's built-in search path
1480 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1481 CCS_LIBS linker flags for CCS, overriding pkg-config
1482 PYTHON the Python interpreter
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to <[email protected]>.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 compizconfig-python configure 0.8.18
1551 generated by GNU Autoconf 2.69
1552
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_link ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 test -x conftest$ac_exeext
1630 }; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637 fi
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_link
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists and can be compiled using the include files in
1688 # INCLUDES, setting the cache variable VAR accordingly.
1689 ac_fn_c_check_header_compile ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696 else
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703 eval "$3=yes"
1704 else
1705 eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_c_check_header_compile
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=$ac_status
1751 fi
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1774
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1779
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1785
1786 #undef $2
1787
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1801
1802 int
1803 main ()
1804 {
1805 return $2 ();
1806 ;
1807 return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_func
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1827
1828 It was created by compizconfig-python $as_me 0.8.18, which was
1829 generated by GNU Autoconf 2.69. Invocation command line was
1830
1831 $ $0 $@
1832
1833 _ACEOF
1834 exec 5>>config.log
1835 {
1836 cat <<_ASUNAME
1837 ## --------- ##
1838 ## Platform. ##
1839 ## --------- ##
1840
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849
1850 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1851 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1854 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1855 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1856 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1857
1858 _ASUNAME
1859
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 $as_echo "PATH: $as_dir"
1866 done
1867 IFS=$as_save_IFS
1868
1869 } >&5
1870
1871 cat >&5 <<_ACEOF
1872
1873
1874 ## ----------- ##
1875 ## Core tests. ##
1876 ## ----------- ##
1877
1878 _ACEOF
1879
1880
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1886 ac_configure_args=
1887 ac_configure_args0=
1888 ac_configure_args1=
1889 ac_must_keep_next=false
1890 for ac_pass in 1 2
1891 do
1892 for ac_arg
1893 do
1894 case $ac_arg in
1895 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897 | -silent | --silent | --silen | --sile | --sil)
1898 continue ;;
1899 *\'*)
1900 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 esac
1902 case $ac_pass in
1903 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1904 2)
1905 as_fn_append ac_configure_args1 " '$ac_arg'"
1906 if test $ac_must_keep_next = true; then
1907 ac_must_keep_next=false # Got value, back to normal.
1908 else
1909 case $ac_arg in
1910 *=* | --config-cache | -C | -disable-* | --disable-* \
1911 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913 | -with-* | --with-* | -without-* | --without-* | --x)
1914 case "$ac_configure_args0 " in
1915 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1916 esac
1917 ;;
1918 -* ) ac_must_keep_next=true ;;
1919 esac
1920 fi
1921 as_fn_append ac_configure_args " '$ac_arg'"
1922 ;;
1923 esac
1924 done
1925 done
1926 { ac_configure_args0=; unset ac_configure_args0;}
1927 { ac_configure_args1=; unset ac_configure_args1;}
1928
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log. We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935 # Save into config.log some information that might help in debugging.
1936 {
1937 echo
1938
1939 $as_echo "## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##"
1942 echo
1943 # The following way of writing the cache mishandles newlines in values,
1944 (
1945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1946 eval ac_val=\$$ac_var
1947 case $ac_val in #(
1948 *${as_nl}*)
1949 case $ac_var in #(
1950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1952 esac
1953 case $ac_var in #(
1954 _ | IFS | as_nl) ;; #(
1955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1956 *) { eval $ac_var=; unset $ac_var;} ;;
1957 esac ;;
1958 esac
1959 done
1960 (set) 2>&1 |
1961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962 *${as_nl}ac_space=\ *)
1963 sed -n \
1964 "s/'\''/'\''\\\\'\'''\''/g;
1965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1966 ;; #(
1967 *)
1968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 ;;
1970 esac |
1971 sort
1972 )
1973 echo
1974
1975 $as_echo "## ----------------- ##
1976 ## Output variables. ##
1977 ## ----------------- ##"
1978 echo
1979 for ac_var in $ac_subst_vars
1980 do
1981 eval ac_val=\$$ac_var
1982 case $ac_val in
1983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984 esac
1985 $as_echo "$ac_var='\''$ac_val'\''"
1986 done | sort
1987 echo
1988
1989 if test -n "$ac_subst_files"; then
1990 $as_echo "## ------------------- ##
1991 ## File substitutions. ##
1992 ## ------------------- ##"
1993 echo
1994 for ac_var in $ac_subst_files
1995 do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in
1998 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 esac
2000 $as_echo "$ac_var='\''$ac_val'\''"
2001 done | sort
2002 echo
2003 fi
2004
2005 if test -s confdefs.h; then
2006 $as_echo "## ----------- ##
2007 ## confdefs.h. ##
2008 ## ----------- ##"
2009 echo
2010 cat confdefs.h
2011 echo
2012 fi
2013 test "$ac_signal" != 0 &&
2014 $as_echo "$as_me: caught signal $ac_signal"
2015 $as_echo "$as_me: exit $exit_status"
2016 } >&5
2017 rm -f core *.core core.conftest.* &&
2018 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2019 exit $exit_status
2020 ' 0
2021 for ac_signal in 1 2 13 15; do
2022 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2023 done
2024 ac_signal=0
2025
2026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2027 rm -f -r conftest* confdefs.h
2028
2029 $as_echo "/* confdefs.h */" > confdefs.h
2030
2031 # Predefined preprocessor variables.
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_STRING "$PACKAGE_STRING"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_URL "$PACKAGE_URL"
2055 _ACEOF
2056
2057
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2060 ac_site_file1=NONE
2061 ac_site_file2=NONE
2062 if test -n "$CONFIG_SITE"; then
2063 # We do not want a PATH search for config.site.
2064 case $CONFIG_SITE in #((
2065 -*) ac_site_file1=./$CONFIG_SITE;;
2066 */*) ac_site_file1=$CONFIG_SITE;;
2067 *) ac_site_file1=./$CONFIG_SITE;;
2068 esac
2069 elif test "x$prefix" != xNONE; then
2070 ac_site_file1=$prefix/share/config.site
2071 ac_site_file2=$prefix/etc/config.site
2072 else
2073 ac_site_file1=$ac_default_prefix/share/config.site
2074 ac_site_file2=$ac_default_prefix/etc/config.site
2075 fi
2076 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2077 do
2078 test "x$ac_site_file" = xNONE && continue
2079 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2081 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2082 sed 's/^/| /' "$ac_site_file" >&5
2083 . "$ac_site_file" \
2084 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2086 as_fn_error $? "failed to load site script $ac_site_file
2087 See \`config.log' for more details" "$LINENO" 5; }
2088 fi
2089 done
2090
2091 if test -r "$cache_file"; then
2092 # Some versions of bash will fail to source /dev/null (special files
2093 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2094 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2096 $as_echo "$as_me: loading cache $cache_file" >&6;}
2097 case $cache_file in
2098 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2099 *) . "./$cache_file";;
2100 esac
2101 fi
2102 else
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2104 $as_echo "$as_me: creating cache $cache_file" >&6;}
2105 >$cache_file
2106 fi
2107
2108 # Check that the precious variables saved in the cache have kept the same
2109 # value.
2110 ac_cache_corrupted=false
2111 for ac_var in $ac_precious_vars; do
2112 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2113 eval ac_new_set=\$ac_env_${ac_var}_set
2114 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2115 eval ac_new_val=\$ac_env_${ac_var}_value
2116 case $ac_old_set,$ac_new_set in
2117 set,)
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2120 ac_cache_corrupted=: ;;
2121 ,set)
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2124 ac_cache_corrupted=: ;;
2125 ,);;
2126 *)
2127 if test "x$ac_old_val" != "x$ac_new_val"; then
2128 # differences in whitespace do not lead to failure.
2129 ac_old_val_w=`echo x $ac_old_val`
2130 ac_new_val_w=`echo x $ac_new_val`
2131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2134 ac_cache_corrupted=:
2135 else
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2138 eval $ac_var=\$ac_old_val
2139 fi
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2144 fi;;
2145 esac
2146 # Pass precious variables to config.status.
2147 if test "$ac_new_set" = set; then
2148 case $ac_new_val in
2149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 *) ac_arg=$ac_var=$ac_new_val ;;
2151 esac
2152 case " $ac_configure_args " in
2153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2154 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2155 esac
2156 fi
2157 done
2158 if $ac_cache_corrupted; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2163 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2164 fi
2165 ## -------------------- ##
2166 ## Main body of script. ##
2167 ## -------------------- ##
2168
2169 ac_ext=c
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174
2175
2176
2177 am__api_version='1.15'
2178
2179 ac_aux_dir=
2180 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2181 if test -f "$ac_dir/install-sh"; then
2182 ac_aux_dir=$ac_dir
2183 ac_install_sh="$ac_aux_dir/install-sh -c"
2184 break
2185 elif test -f "$ac_dir/install.sh"; then
2186 ac_aux_dir=$ac_dir
2187 ac_install_sh="$ac_aux_dir/install.sh -c"
2188 break
2189 elif test -f "$ac_dir/shtool"; then
2190 ac_aux_dir=$ac_dir
2191 ac_install_sh="$ac_aux_dir/shtool install -c"
2192 break
2193 fi
2194 done
2195 if test -z "$ac_aux_dir"; then
2196 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2197 fi
2198
2199 # These three variables are undocumented and unsupported,
2200 # and are intended to be withdrawn in a future Autoconf release.
2201 # They can cause serious problems if a builder's source tree is in a directory
2202 # whose full name contains unusual characters.
2203 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2204 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2205 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206
2207
2208 # Find a good install program. We prefer a C program (faster),
2209 # so one script is as good as another. But avoid the broken or
2210 # incompatible versions:
2211 # SysV /etc/install, /usr/sbin/install
2212 # SunOS /usr/etc/install
2213 # IRIX /sbin/install
2214 # AIX /bin/install
2215 # AmigaOS /C/install, which installs bootblocks on floppy discs
2216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2219 # OS/2's system install, which has a completely different semantic
2220 # ./install, which can be erroneously created by make from ./install.sh.
2221 # Reject install programs that cannot install multiple files.
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2223 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2224 if test -z "$INSTALL"; then
2225 if ${ac_cv_path_install+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 # Account for people who put trailing slashes in PATH elements.
2234 case $as_dir/ in #((
2235 ./ | .// | /[cC]/* | \
2236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2237 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2238 /usr/ucb/* ) ;;
2239 *)
2240 # OSF1 and SCO ODT 3.0 have their own names for install.
2241 # Don't use installbsd from OSF since it installs stuff as root
2242 # by default.
2243 for ac_prog in ginstall scoinst install; do
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2246 if test $ac_prog = install &&
2247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # AIX install. It has an incompatible calling convention.
2249 :
2250 elif test $ac_prog = install &&
2251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252 # program-specific install script used by HP pwplus--don't use.
2253 :
2254 else
2255 rm -rf conftest.one conftest.two conftest.dir
2256 echo one > conftest.one
2257 echo two > conftest.two
2258 mkdir conftest.dir
2259 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2260 test -s conftest.one && test -s conftest.two &&
2261 test -s conftest.dir/conftest.one &&
2262 test -s conftest.dir/conftest.two
2263 then
2264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2265 break 3
2266 fi
2267 fi
2268 fi
2269 done
2270 done
2271 ;;
2272 esac
2273
2274 done
2275 IFS=$as_save_IFS
2276
2277 rm -rf conftest.one conftest.two conftest.dir
2278
2279 fi
2280 if test "${ac_cv_path_install+set}" = set; then
2281 INSTALL=$ac_cv_path_install
2282 else
2283 # As a last resort, use the slow shell script. Don't cache a
2284 # value for INSTALL within a source directory, because that will
2285 # break other packages using the cache if that directory is
2286 # removed, or if the value is a relative name.
2287 INSTALL=$ac_install_sh
2288 fi
2289 fi
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2291 $as_echo "$INSTALL" >&6; }
2292
2293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2294 # It thinks the first close brace ends the variable substitution.
2295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2296
2297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2298
2299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2300
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2302 $as_echo_n "checking whether build environment is sane... " >&6; }
2303 # Reject unsafe characters in $srcdir or the absolute working directory
2304 # name. Accept space and tab only in the latter.
2305 am_lf='
2306 '
2307 case `pwd` in
2308 *[\\\"\#\$\&\'\`$am_lf]*)
2309 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2310 esac
2311 case $srcdir in
2312 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2313 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2314 esac
2315
2316 # Do 'set' in a subshell so we don't clobber the current shell's
2317 # arguments. Must try -L first in case configure is actually a
2318 # symlink; some systems play weird games with the mod time of symlinks
2319 # (eg FreeBSD returns the mod time of the symlink's containing
2320 # directory).
2321 if (
2322 am_has_slept=no
2323 for am_try in 1 2; do
2324 echo "timestamp, slept: $am_has_slept" > conftest.file
2325 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2326 if test "$*" = "X"; then
2327 # -L didn't work.
2328 set X `ls -t "$srcdir/configure" conftest.file`
2329 fi
2330 if test "$*" != "X $srcdir/configure conftest.file" \
2331 && test "$*" != "X conftest.file $srcdir/configure"; then
2332
2333 # If neither matched, then we have a broken ls. This can happen
2334 # if, for instance, CONFIG_SHELL is bash and it inherits a
2335 # broken ls alias from the environment. This has actually
2336 # happened. Such a system could not be considered "sane".
2337 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2338 alias in your environment" "$LINENO" 5
2339 fi
2340 if test "$2" = conftest.file || test $am_try -eq 2; then
2341 break
2342 fi
2343 # Just in case.
2344 sleep 1
2345 am_has_slept=yes
2346 done
2347 test "$2" = conftest.file
2348 )
2349 then
2350 # Ok.
2351 :
2352 else
2353 as_fn_error $? "newly created file is older than distributed files!
2354 Check your system clock" "$LINENO" 5
2355 fi
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2357 $as_echo "yes" >&6; }
2358 # If we didn't sleep, we still need to ensure time stamps of config.status and
2359 # generated files are strictly newer.
2360 am_sleep_pid=
2361 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2362 ( sleep 1 ) &
2363 am_sleep_pid=$!
2364 fi
2365
2366 rm -f conftest.file
2367
2368 test "$program_prefix" != NONE &&
2369 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2370 # Use a double $ so make ignores it.
2371 test "$program_suffix" != NONE &&
2372 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2373 # Double any \ or $.
2374 # By default was `s,x,x', remove it if useless.
2375 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2376 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2377
2378 # Expand $ac_aux_dir to an absolute path.
2379 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2380
2381 if test x"${MISSING+set}" != xset; then
2382 case $am_aux_dir in
2383 *\ * | *\ *)
2384 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2385 *)
2386 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2387 esac
2388 fi
2389 # Use eval to expand $SHELL
2390 if eval "$MISSING --is-lightweight"; then
2391 am_missing_run="$MISSING "
2392 else
2393 am_missing_run=
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2395 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2396 fi
2397
2398 if test x"${install_sh+set}" != xset; then
2399 case $am_aux_dir in
2400 *\ * | *\ *)
2401 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2402 *)
2403 install_sh="\${SHELL} $am_aux_dir/install-sh"
2404 esac
2405 fi
2406
2407 # Installed binaries are usually stripped using 'strip' when the user
2408 # run "make install-strip". However 'strip' might not be the right
2409 # tool to use in cross-compilation environments, therefore Automake
2410 # will honor the 'STRIP' environment variable to overrule this program.
2411 if test "$cross_compiling" != no; then
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}strip; ac_word=$2
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if ${ac_cv_prog_STRIP+:} false; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$STRIP"; then
2421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 STRIP=$ac_cv_prog_STRIP
2441 if test -n "$STRIP"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2443 $as_echo "$STRIP" >&6; }
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449
2450 fi
2451 if test -z "$ac_cv_prog_STRIP"; then
2452 ac_ct_STRIP=$STRIP
2453 # Extract the first word of "strip", so it can be a program name with args.
2454 set dummy strip; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$ac_ct_STRIP"; then
2461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470 ac_cv_prog_ac_ct_STRIP="strip"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2481 if test -n "$ac_ct_STRIP"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2483 $as_echo "$ac_ct_STRIP" >&6; }
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489 if test "x$ac_ct_STRIP" = x; then
2490 STRIP=":"
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 STRIP=$ac_ct_STRIP
2499 fi
2500 else
2501 STRIP="$ac_cv_prog_STRIP"
2502 fi
2503
2504 fi
2505 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2508 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2509 if test -z "$MKDIR_P"; then
2510 if ${ac_cv_path_mkdir+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_prog in mkdir gmkdir; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2521 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2522 'mkdir (GNU coreutils) '* | \
2523 'mkdir (coreutils) '* | \
2524 'mkdir (fileutils) '4.1*)
2525 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2526 break 3;;
2527 esac
2528 done
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534
2535 test -d ./--version && rmdir ./--version
2536 if test "${ac_cv_path_mkdir+set}" = set; then
2537 MKDIR_P="$ac_cv_path_mkdir -p"
2538 else
2539 # As a last resort, use the slow shell script. Don't cache a
2540 # value for MKDIR_P within a source directory, because that will
2541 # break other packages using the cache if that directory is
2542 # removed, or if the value is a relative name.
2543 MKDIR_P="$ac_install_sh -d"
2544 fi
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2547 $as_echo "$MKDIR_P" >&6; }
2548
2549 for ac_prog in gawk mawk nawk awk
2550 do
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 set dummy $ac_prog; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_AWK+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$AWK"; then
2559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_AWK="$ac_prog"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 AWK=$ac_cv_prog_AWK
2579 if test -n "$AWK"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2581 $as_echo "$AWK" >&6; }
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 test -n "$AWK" && break
2589 done
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2592 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2593 set x ${MAKE-make}
2594 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2595 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 cat >conftest.make <<\_ACEOF
2599 SHELL = /bin/sh
2600 all:
2601 @echo '@@@%%%=$(MAKE)=@@@%%%'
2602 _ACEOF
2603 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2604 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2605 *@@@%%%=?*=@@@%%%*)
2606 eval ac_cv_prog_make_${ac_make}_set=yes;;
2607 *)
2608 eval ac_cv_prog_make_${ac_make}_set=no;;
2609 esac
2610 rm -f conftest.make
2611 fi
2612 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2614 $as_echo "yes" >&6; }
2615 SET_MAKE=
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 SET_MAKE="MAKE=${MAKE-make}"
2620 fi
2621
2622 rm -rf .tst 2>/dev/null
2623 mkdir .tst 2>/dev/null
2624 if test -d .tst; then
2625 am__leading_dot=.
2626 else
2627 am__leading_dot=_
2628 fi
2629 rmdir .tst 2>/dev/null
2630
2631 # Check whether --enable-silent-rules was given.
2632 if test "${enable_silent_rules+set}" = set; then :
2633 enableval=$enable_silent_rules;
2634 fi
2635
2636 case $enable_silent_rules in # (((
2637 yes) AM_DEFAULT_VERBOSITY=0;;
2638 no) AM_DEFAULT_VERBOSITY=1;;
2639 *) AM_DEFAULT_VERBOSITY=1;;
2640 esac
2641 am_make=${MAKE-make}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2643 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2644 if ${am_cv_make_support_nested_variables+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if $as_echo 'TRUE=$(BAR$(V))
2648 BAR0=false
2649 BAR1=true
2650 V=1
2651 am__doit:
2652 @$(TRUE)
2653 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2654 am_cv_make_support_nested_variables=yes
2655 else
2656 am_cv_make_support_nested_variables=no
2657 fi
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2660 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2661 if test $am_cv_make_support_nested_variables = yes; then
2662 AM_V='$(V)'
2663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2664 else
2665 AM_V=$AM_DEFAULT_VERBOSITY
2666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2667 fi
2668 AM_BACKSLASH='\'
2669
2670 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2671 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2672 # is not polluted with repeated "-I."
2673 am__isrc=' -I$(srcdir)'
2674 # test to see if srcdir already configured
2675 if test -f $srcdir/config.status; then
2676 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2677 fi
2678 fi
2679
2680 # test whether we have cygpath
2681 if test -z "$CYGPATH_W"; then
2682 if (cygpath --version) >/dev/null 2>/dev/null; then
2683 CYGPATH_W='cygpath -w'
2684 else
2685 CYGPATH_W=echo
2686 fi
2687 fi
2688
2689
2690 # Define the identity of the package.
2691 PACKAGE='compizconfig-python'
2692 VERSION='0.8.18'
2693
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE "$PACKAGE"
2697 _ACEOF
2698
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define VERSION "$VERSION"
2702 _ACEOF
2703
2704 # Some tools Automake needs.
2705
2706 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2707
2708
2709 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2710
2711
2712 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2713
2714
2715 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2716
2717
2718 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2719
2720 # For better backward compatibility. To be removed once Automake 1.9.x
2721 # dies out for good. For more background, see:
2722 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2723 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2724 mkdir_p='$(MKDIR_P)'
2725
2726 # We need awk for the "check" target (and possibly the TAP driver). The
2727 # system "awk" is bad on some platforms.
2728 # Always define AMTAR for backward compatibility. Yes, it's still used
2729 # in the wild :-( We should find a proper way to deprecate it ...
2730 AMTAR='$${TAR-tar}'
2731
2732
2733 # We'll loop over all known methods to create a tar archive until one works.
2734 _am_tools='gnutar pax cpio none'
2735
2736 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2737
2738
2739
2740
2741
2742
2743 # POSIX will say in a future version that running "rm -f" with no argument
2744 # is OK; and we want to be able to make that assumption in our Makefile
2745 # recipes. So use an aggressive probe to check that the usage we want is
2746 # actually supported "in the wild" to an acceptable degree.
2747 # See automake bug#10828.
2748 # To make any issue more visible, cause the running configure to be aborted
2749 # by default if the 'rm' program in use doesn't match our expectations; the
2750 # user can still override this though.
2751 if rm -f && rm -fr && rm -rf; then : OK; else
2752 cat >&2 <<'END'
2753 Oops!
2754
2755 Your 'rm' program seems unable to run without file operands specified
2756 on the command line, even when the '-f' option is present. This is contrary
2757 to the behaviour of most rm programs out there, and not conforming with
2758 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2759
2760 Please tell [email protected] about your system, including the value
2761 of your $PATH and any error possibly output before this message. This
2762 can help us improve future automake versions.
2763
2764 END
2765 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2766 echo 'Configuration will proceed anyway, since you have set the' >&2
2767 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2768 echo >&2
2769 else
2770 cat >&2 <<'END'
2771 Aborting the configuration process, to ensure you take notice of the issue.
2772
2773 You can download and install GNU coreutils to get an 'rm' implementation
2774 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2775
2776 If you want to complete the configuration process using your problematic
2777 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2778 to "yes", and re-run configure.
2779
2780 END
2781 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2782 fi
2783 fi
2784
2785 ac_config_headers="$ac_config_headers config.h"
2786
2787
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2790 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2791 # Check whether --enable-maintainer-mode was given.
2792 if test "${enable_maintainer_mode+set}" = set; then :
2793 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2794 else
2795 USE_MAINTAINER_MODE=no
2796 fi
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2799 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2800 if test $USE_MAINTAINER_MODE = yes; then
2801 MAINTAINER_MODE_TRUE=
2802 MAINTAINER_MODE_FALSE='#'
2803 else
2804 MAINTAINER_MODE_TRUE='#'
2805 MAINTAINER_MODE_FALSE=
2806 fi
2807
2808 MAINT=$MAINTAINER_MODE_TRUE
2809
2810
2811
2812 DEPDIR="${am__leading_dot}deps"
2813
2814 ac_config_commands="$ac_config_commands depfiles"
2815
2816
2817 am_make=${MAKE-make}
2818 cat > confinc << 'END'
2819 am__doit:
2820 @echo this is the am__doit target
2821 .PHONY: am__doit
2822 END
2823 # If we don't find an include directive, just comment out the code.
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2825 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2826 am__include="#"
2827 am__quote=
2828 _am_result=none
2829 # First try GNU make style include.
2830 echo "include confinc" > confmf
2831 # Ignore all kinds of additional output from 'make'.
2832 case `$am_make -s -f confmf 2> /dev/null` in #(
2833 *the\ am__doit\ target*)
2834 am__include=include
2835 am__quote=
2836 _am_result=GNU
2837 ;;
2838 esac
2839 # Now try BSD make style include.
2840 if test "$am__include" = "#"; then
2841 echo '.include "confinc"' > confmf
2842 case `$am_make -s -f confmf 2> /dev/null` in #(
2843 *the\ am__doit\ target*)
2844 am__include=.include
2845 am__quote="\""
2846 _am_result=BSD
2847 ;;
2848 esac
2849 fi
2850
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2853 $as_echo "$_am_result" >&6; }
2854 rm -f confinc confmf
2855
2856 # Check whether --enable-dependency-tracking was given.
2857 if test "${enable_dependency_tracking+set}" = set; then :
2858 enableval=$enable_dependency_tracking;
2859 fi
2860
2861 if test "x$enable_dependency_tracking" != xno; then
2862 am_depcomp="$ac_aux_dir/depcomp"
2863 AMDEPBACKSLASH='\'
2864 am__nodep='_no'
2865 fi
2866 if test "x$enable_dependency_tracking" != xno; then
2867 AMDEP_TRUE=
2868 AMDEP_FALSE='#'
2869 else
2870 AMDEP_TRUE='#'
2871 AMDEP_FALSE=
2872 fi
2873
2874
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 fi
2919 if test -z "$ac_cv_prog_CC"; then
2920 ac_ct_CC=$CC
2921 # Extract the first word of "gcc", so it can be a program name with args.
2922 set dummy gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_CC="gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957 if test "x$ac_ct_CC" = x; then
2958 CC=""
2959 else
2960 case $cross_compiling:$ac_tool_warned in
2961 yes:)
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964 ac_tool_warned=yes ;;
2965 esac
2966 CC=$ac_ct_CC
2967 fi
2968 else
2969 CC="$ac_cv_prog_CC"
2970 fi
2971
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_CC="${ac_tool_prefix}cc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011 fi
3012 fi
3013 if test -z "$CC"; then
3014 # Extract the first word of "cc", so it can be a program name with args.
3015 set dummy cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 ac_prog_rejected=no
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033 ac_prog_rejected=yes
3034 continue
3035 fi
3036 ac_cv_prog_CC="cc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 if test $ac_prog_rejected = yes; then
3045 # We found a bogon in the path, so make sure we never use it.
3046 set dummy $ac_cv_prog_CC
3047 shift
3048 if test $# != 0; then
3049 # We chose a different compiler from the bogus one.
3050 # However, it has the same basename, so the bogon will be chosen
3051 # first if we set CC to just the basename; use the full file name.
3052 shift
3053 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3054 fi
3055 fi
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 fi
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 for ac_prog in cl.exe
3072 do
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 test -n "$CC" && break
3111 done
3112 fi
3113 if test -z "$CC"; then
3114 ac_ct_CC=$CC
3115 for ac_prog in cl.exe
3116 do
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$ac_ct_CC"; then
3125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_CC="$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 test -n "$ac_ct_CC" && break
3155 done
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3167 fi
3168 fi
3169
3170 fi
3171
3172
3173 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "no acceptable C compiler found in \$PATH
3176 See \`config.log' for more details" "$LINENO" 5; }
3177
3178 # Provide some information about the compiler.
3179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3180 set X $ac_compile
3181 ac_compiler=$2
3182 for ac_option in --version -v -V -qversion; do
3183 { { ac_try="$ac_compiler $ac_option >&5"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3191 ac_status=$?
3192 if test -s conftest.err; then
3193 sed '10a\
3194 ... rest of stderr output deleted ...
3195 10q' conftest.err >conftest.er1
3196 cat conftest.er1 >&5
3197 fi
3198 rm -f conftest.er1 conftest.err
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }
3201 done
3202
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3218 # of exeext.
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3220 $as_echo_n "checking whether the C compiler works... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3222
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3225
3226 ac_rmfiles=
3227 for ac_file in $ac_files
3228 do
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3232 esac
3233 done
3234 rm -f $ac_rmfiles
3235
3236 if { { ac_try="$ac_link_default"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_link_default") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; then :
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3251 # Autoconf.
3252 for ac_file in $ac_files ''
3253 do
3254 test -f "$ac_file" || continue
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3257 ;;
3258 [ab].out )
3259 # We found the default executable, but exeext='' is most
3260 # certainly right.
3261 break;;
3262 *.* )
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3264 then :; else
3265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 fi
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3271 # actually working.
3272 break;;
3273 * )
3274 break;;
3275 esac
3276 done
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3278
3279 else
3280 ac_file=''
3281 fi
3282 if test -z "$ac_file"; then :
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error 77 "C compiler cannot create executables
3291 See \`config.log' for more details" "$LINENO" 5; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3301
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3320 # `rm'.
3321 for ac_file in conftest.exe conftest conftest.*; do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 break;;
3327 * ) break;;
3328 esac
3329 done
3330 else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details" "$LINENO" 5; }
3335 fi
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3339
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3342 ac_exeext=$EXEEXT
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345 #include <stdio.h>
3346 int
3347 main ()
3348 {
3349 FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run. If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362 { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 if { ac_try='./conftest$ac_cv_exeext'
3374 { { case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; }; then
3384 cross_compiling=no
3385 else
3386 if test "$cross_compiling" = maybe; then
3387 cross_compiling=yes
3388 else
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details" "$LINENO" 5; }
3394 fi
3395 fi
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3399
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if ${ac_cv_objext+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_compile") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 for ac_file in conftest.o conftest.obj conftest.*; do
3431 test -f "$ac_file" || continue;
3432 case $ac_file in
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435 break;;
3436 esac
3437 done
3438 else
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details" "$LINENO" 5; }
3446 fi
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3452 ac_objext=$OBJEXT
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if ${ac_cv_c_compiler_gnu+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464 #ifndef __GNUC__
3465 choke me
3466 #endif
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473 ac_compiler_gnu=yes
3474 else
3475 ac_compiler_gnu=no
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3484 GCC=yes
3485 else
3486 GCC=
3487 fi
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if ${ac_cv_prog_cc_g+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 ac_save_c_werror_flag=$ac_c_werror_flag
3496 ac_c_werror_flag=yes
3497 ac_cv_prog_cc_g=no
3498 CFLAGS="-g"
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501
3502 int
3503 main ()
3504 {
3505
3506 ;
3507 return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_prog_cc_g=yes
3512 else
3513 CFLAGS=""
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516
3517 int
3518 main ()
3519 {
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526
3527 else
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3529 CFLAGS="-g"
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532
3533 int
3534 main ()
3535 {
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542 ac_cv_prog_cc_g=yes
3543 fi
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554 CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556 if test "$GCC" = yes; then
3557 CFLAGS="-g -O2"
3558 else
3559 CFLAGS="-g"
3560 fi
3561 else
3562 if test "$GCC" = yes; then
3563 CFLAGS="-O2"
3564 else
3565 CFLAGS=
3566 fi
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if ${ac_cv_prog_cc_c89+:} false; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 ac_cv_prog_cc_c89=no
3574 ac_save_CC=$CC
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 #include <stdarg.h>
3578 #include <stdio.h>
3579 struct stat;
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3584 char **p;
3585 int i;
3586 {
3587 return p[i];
3588 }
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3590 {
3591 char *s;
3592 va_list v;
3593 va_start (v,p);
3594 s = g (p, va_arg (v,int));
3595 va_end (v);
3596 return s;
3597 }
3598
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3600 function prototypes and stuff, but not '\xHH' hex character constants.
3601 These don't provoke an error unfortunately, instead are silently treated
3602 as 'x'. The following induces an error, until -std is added to get
3603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3604 array size at least. It's necessary to write '\x00'==0 to get something
3605 that's true only with -std. */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609 inside strings and character constants. */
3610 #define FOO(x) 'x'
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617 int argc;
3618 char **argv;
3619 int
3620 main ()
3621 {
3622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 do
3630 CC="$ac_save_CC $ac_arg"
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_c89=$ac_arg
3633 fi
3634 rm -f core conftest.err conftest.$ac_objext
3635 test "x$ac_cv_prog_cc_c89" != "xno" && break
3636 done
3637 rm -f conftest.$ac_ext
3638 CC=$ac_save_CC
3639
3640 fi
3641 # AC_CACHE_VAL
3642 case "x$ac_cv_prog_cc_c89" in
3643 x)
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 $as_echo "none needed" >&6; } ;;
3646 xno)
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 $as_echo "unsupported" >&6; } ;;
3649 *)
3650 CC="$CC $ac_cv_prog_cc_c89"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3653 esac
3654 if test "x$ac_cv_prog_cc_c89" != xno; then :
3655
3656 fi
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3670 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3671 if ${am_cv_prog_cc_c_o+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 int
3678 main ()
3679 {
3680
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 # Make sure it works both with $CC and with simple cc.
3686 # Following AC_PROG_CC_C_O, we do the test twice because some
3687 # compilers refuse to overwrite an existing .o file with -o,
3688 # though they will create one.
3689 am_cv_prog_cc_c_o=yes
3690 for am_i in 1 2; do
3691 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3692 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } \
3696 && test -f conftest2.$ac_objext; then
3697 : OK
3698 else
3699 am_cv_prog_cc_c_o=no
3700 break
3701 fi
3702 done
3703 rm -f core conftest*
3704 unset am_i
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3707 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3708 if test "$am_cv_prog_cc_c_o" != yes; then
3709 # Losing compiler, so override with the script.
3710 # FIXME: It is wrong to rewrite CC.
3711 # But if we don't then we get into trouble of one sort or another.
3712 # A longer-term fix would be to have automake use am__CC in this case,
3713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3714 CC="$am_aux_dir/compile $CC"
3715 fi
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722
3723 depcc="$CC" am_compiler_list=
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3726 $as_echo_n "checking dependency style of $depcc... " >&6; }
3727 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3731 # We make a subdir and do the tests there. Otherwise we can end up
3732 # making bogus files that we don't know about and never remove. For
3733 # instance it was reported that on HP-UX the gcc test will end up
3734 # making a dummy file named 'D' -- because '-MD' means "put the output
3735 # in D".
3736 rm -rf conftest.dir
3737 mkdir conftest.dir
3738 # Copy depcomp to subdir because otherwise we won't find it if we're
3739 # using a relative directory.
3740 cp "$am_depcomp" conftest.dir
3741 cd conftest.dir
3742 # We will build objects and dependencies in a subdirectory because
3743 # it helps to detect inapplicable dependency modes. For instance
3744 # both Tru64's cc and ICC support -MD to output dependencies as a
3745 # side effect of compilation, but ICC will put the dependencies in
3746 # the current directory while Tru64 will put them in the object
3747 # directory.
3748 mkdir sub
3749
3750 am_cv_CC_dependencies_compiler_type=none
3751 if test "$am_compiler_list" = ""; then
3752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3753 fi
3754 am__universal=false
3755 case " $depcc " in #(
3756 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3757 esac
3758
3759 for depmode in $am_compiler_list; do
3760 # Setup a source with many dependencies, because some compilers
3761 # like to wrap large dependency lists on column 80 (with \), and
3762 # we should not choose a depcomp mode which is confused by this.
3763 #
3764 # We need to recreate these files for each test, as the compiler may
3765 # overwrite some of them when testing with obscure command lines.
3766 # This happens at least with the AIX C compiler.
3767 : > sub/conftest.c
3768 for i in 1 2 3 4 5 6; do
3769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3771 # Solaris 10 /bin/sh.
3772 echo '/* dummy */' > sub/conftst$i.h
3773 done
3774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3776 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3777 # mode. It turns out that the SunPro C++ compiler does not properly
3778 # handle '-M -o', and we need to detect this. Also, some Intel
3779 # versions had trouble with output in subdirs.
3780 am__obj=sub/conftest.${OBJEXT-o}
3781 am__minus_obj="-o $am__obj"
3782 case $depmode in
3783 gcc)
3784 # This depmode causes a compiler race in universal mode.
3785 test "$am__universal" = false || continue
3786 ;;
3787 nosideeffect)
3788 # After this tag, mechanisms are not by side-effect, so they'll
3789 # only be used when explicitly requested.
3790 if test "x$enable_dependency_tracking" = xyes; then
3791 continue
3792 else
3793 break
3794 fi
3795 ;;
3796 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3797 # This compiler won't grok '-c -o', but also, the minuso test has
3798 # not run yet. These depmodes are late enough in the game, and
3799 # so weak that their functioning should not be impacted.
3800 am__obj=conftest.${OBJEXT-o}
3801 am__minus_obj=
3802 ;;
3803 none) break ;;
3804 esac
3805 if depmode=$depmode \
3806 source=sub/conftest.c object=$am__obj \
3807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3808 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3809 >/dev/null 2>conftest.err &&
3810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814 # icc doesn't choke on unknown options, it will just issue warnings
3815 # or remarks (even with -Werror). So we grep stderr for any message
3816 # that says an option was ignored or not supported.
3817 # When given -MP, icc 7.0 and 7.1 complain thusly:
3818 # icc: Command line warning: ignoring option '-M'; no argument required
3819 # The diagnosis changed in icc 8.0:
3820 # icc: Command line remark: option '-MP' not supported
3821 if (grep 'ignoring option' conftest.err ||
3822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823 am_cv_CC_dependencies_compiler_type=$depmode
3824 break
3825 fi
3826 fi
3827 done
3828
3829 cd ..
3830 rm -rf conftest.dir
3831 else
3832 am_cv_CC_dependencies_compiler_type=none
3833 fi
3834
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3837 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3838 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3839
3840 if
3841 test "x$enable_dependency_tracking" != xno \
3842 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3843 am__fastdepCC_TRUE=
3844 am__fastdepCC_FALSE='#'
3845 else
3846 am__fastdepCC_TRUE='#'
3847 am__fastdepCC_FALSE=
3848 fi
3849
3850
3851
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3853 $as_echo_n "checking for library containing strerror... " >&6; }
3854 if ${ac_cv_search_strerror+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 ac_func_search_save_LIBS=$LIBS
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860
3861 /* Override any GCC internal prototype to avoid an error.
3862 Use char because int might match the return type of a GCC
3863 builtin and then its argument prototype would still apply. */
3864 #ifdef __cplusplus
3865 extern "C"
3866 #endif
3867 char strerror ();
3868 int
3869 main ()
3870 {
3871 return strerror ();
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 for ac_lib in '' cposix; do
3877 if test -z "$ac_lib"; then
3878 ac_res="none required"
3879 else
3880 ac_res=-l$ac_lib
3881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3882 fi
3883 if ac_fn_c_try_link "$LINENO"; then :
3884 ac_cv_search_strerror=$ac_res
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext \
3887 conftest$ac_exeext
3888 if ${ac_cv_search_strerror+:} false; then :
3889 break
3890 fi
3891 done
3892 if ${ac_cv_search_strerror+:} false; then :
3893
3894 else
3895 ac_cv_search_strerror=no
3896 fi
3897 rm conftest.$ac_ext
3898 LIBS=$ac_func_search_save_LIBS
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3901 $as_echo "$ac_cv_search_strerror" >&6; }
3902 ac_res=$ac_cv_search_strerror
3903 if test "$ac_res" != no; then :
3904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3905
3906 fi
3907
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_prog_CC+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test -n "$CC"; then
3922 ac_cv_prog_CC="$CC" # Let the user override the test.
3923 else
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935 done
3936 done
3937 IFS=$as_save_IFS
3938
3939 fi
3940 fi
3941 CC=$ac_cv_prog_CC
3942 if test -n "$CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944 $as_echo "$CC" >&6; }
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 fi
3949
3950
3951 fi
3952 if test -z "$ac_cv_prog_CC"; then
3953 ac_ct_CC=$CC
3954 # Extract the first word of "gcc", so it can be a program name with args.
3955 set dummy gcc; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 if test -n "$ac_ct_CC"; then
3962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CC="gcc"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975 done
3976 done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3982 if test -n "$ac_ct_CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3984 $as_echo "$ac_ct_CC" >&6; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990 if test "x$ac_ct_CC" = x; then
3991 CC=""
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994 yes:)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997 ac_tool_warned=yes ;;
3998 esac
3999 CC=$ac_ct_CC
4000 fi
4001 else
4002 CC="$ac_cv_prog_CC"
4003 fi
4004
4005 if test -z "$CC"; then
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}cc; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC="${ac_tool_prefix}cc"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4027 fi
4028 done
4029 done
4030 IFS=$as_save_IFS
4031
4032 fi
4033 fi
4034 CC=$ac_cv_prog_CC
4035 if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 fi
4042
4043
4044 fi
4045 fi
4046 if test -z "$CC"; then
4047 # Extract the first word of "cc", so it can be a program name with args.
4048 set dummy cc; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_CC+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -n "$CC"; then
4055 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 else
4057 ac_prog_rejected=no
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4066 ac_prog_rejected=yes
4067 continue
4068 fi
4069 ac_cv_prog_CC="cc"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073 done
4074 done
4075 IFS=$as_save_IFS
4076
4077 if test $ac_prog_rejected = yes; then
4078 # We found a bogon in the path, so make sure we never use it.
4079 set dummy $ac_cv_prog_CC
4080 shift
4081 if test $# != 0; then
4082 # We chose a different compiler from the bogus one.
4083 # However, it has the same basename, so the bogon will be chosen
4084 # first if we set CC to just the basename; use the full file name.
4085 shift
4086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4087 fi
4088 fi
4089 fi
4090 fi
4091 CC=$ac_cv_prog_CC
4092 if test -n "$CC"; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4094 $as_echo "$CC" >&6; }
4095 else
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097 $as_echo "no" >&6; }
4098 fi
4099
4100
4101 fi
4102 if test -z "$CC"; then
4103 if test -n "$ac_tool_prefix"; then
4104 for ac_prog in cl.exe
4105 do
4106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_CC+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -n "$CC"; then
4114 ac_cv_prog_CC="$CC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127 done
4128 done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 CC=$ac_cv_prog_CC
4134 if test -n "$CC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136 $as_echo "$CC" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141
4142
4143 test -n "$CC" && break
4144 done
4145 fi
4146 if test -z "$CC"; then
4147 ac_ct_CC=$CC
4148 for ac_prog in cl.exe
4149 do
4150 # Extract the first word of "$ac_prog", so it can be a program name with args.
4151 set dummy $ac_prog; ac_word=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -n "$ac_ct_CC"; then
4158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_ac_ct_CC="$ac_prog"
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4170 fi
4171 done
4172 done
4173 IFS=$as_save_IFS
4174
4175 fi
4176 fi
4177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4178 if test -n "$ac_ct_CC"; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4180 $as_echo "$ac_ct_CC" >&6; }
4181 else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 fi
4185
4186
4187 test -n "$ac_ct_CC" && break
4188 done
4189
4190 if test "x$ac_ct_CC" = x; then
4191 CC=""
4192 else
4193 case $cross_compiling:$ac_tool_warned in
4194 yes:)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197 ac_tool_warned=yes ;;
4198 esac
4199 CC=$ac_ct_CC
4200 fi
4201 fi
4202
4203 fi
4204
4205
4206 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208 as_fn_error $? "no acceptable C compiler found in \$PATH
4209 See \`config.log' for more details" "$LINENO" 5; }
4210
4211 # Provide some information about the compiler.
4212 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4213 set X $ac_compile
4214 ac_compiler=$2
4215 for ac_option in --version -v -V -qversion; do
4216 { { ac_try="$ac_compiler $ac_option >&5"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 $as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4224 ac_status=$?
4225 if test -s conftest.err; then
4226 sed '10a\
4227 ... rest of stderr output deleted ...
4228 10q' conftest.err >conftest.er1
4229 cat conftest.er1 >&5
4230 fi
4231 rm -f conftest.er1 conftest.err
4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }
4234 done
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4237 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4238 if ${ac_cv_c_compiler_gnu+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243
4244 int
4245 main ()
4246 {
4247 #ifndef __GNUC__
4248 choke me
4249 #endif
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"; then :
4256 ac_compiler_gnu=yes
4257 else
4258 ac_compiler_gnu=no
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4262
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4265 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4266 if test $ac_compiler_gnu = yes; then
4267 GCC=yes
4268 else
4269 GCC=
4270 fi
4271 ac_test_CFLAGS=${CFLAGS+set}
4272 ac_save_CFLAGS=$CFLAGS
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4274 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4275 if ${ac_cv_prog_cc_g+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 ac_save_c_werror_flag=$ac_c_werror_flag
4279 ac_c_werror_flag=yes
4280 ac_cv_prog_cc_g=no
4281 CFLAGS="-g"
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284
4285 int
4286 main ()
4287 {
4288
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_prog_cc_g=yes
4295 else
4296 CFLAGS=""
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299
4300 int
4301 main ()
4302 {
4303
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309
4310 else
4311 ac_c_werror_flag=$ac_save_c_werror_flag
4312 CFLAGS="-g"
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315
4316 int
4317 main ()
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_prog_cc_g=yes
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 fi
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 ac_c_werror_flag=$ac_save_c_werror_flag
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4335 $as_echo "$ac_cv_prog_cc_g" >&6; }
4336 if test "$ac_test_CFLAGS" = set; then
4337 CFLAGS=$ac_save_CFLAGS
4338 elif test $ac_cv_prog_cc_g = yes; then
4339 if test "$GCC" = yes; then
4340 CFLAGS="-g -O2"
4341 else
4342 CFLAGS="-g"
4343 fi
4344 else
4345 if test "$GCC" = yes; then
4346 CFLAGS="-O2"
4347 else
4348 CFLAGS=
4349 fi
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4352 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4353 if ${ac_cv_prog_cc_c89+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 ac_cv_prog_cc_c89=no
4357 ac_save_CC=$CC
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <stdarg.h>
4361 #include <stdio.h>
4362 struct stat;
4363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4364 struct buf { int x; };
4365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4366 static char *e (p, i)
4367 char **p;
4368 int i;
4369 {
4370 return p[i];
4371 }
4372 static char *f (char * (*g) (char **, int), char **p, ...)
4373 {
4374 char *s;
4375 va_list v;
4376 va_start (v,p);
4377 s = g (p, va_arg (v,int));
4378 va_end (v);
4379 return s;
4380 }
4381
4382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4383 function prototypes and stuff, but not '\xHH' hex character constants.
4384 These don't provoke an error unfortunately, instead are silently treated
4385 as 'x'. The following induces an error, until -std is added to get
4386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4387 array size at least. It's necessary to write '\x00'==0 to get something
4388 that's true only with -std. */
4389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4390
4391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4392 inside strings and character constants. */
4393 #define FOO(x) 'x'
4394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4395
4396 int test (int i, double x);
4397 struct s1 {int (*f) (int a);};
4398 struct s2 {int (*f) (double a);};
4399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4400 int argc;
4401 char **argv;
4402 int
4403 main ()
4404 {
4405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4412 do
4413 CC="$ac_save_CC $ac_arg"
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_prog_cc_c89=$ac_arg
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext
4418 test "x$ac_cv_prog_cc_c89" != "xno" && break
4419 done
4420 rm -f conftest.$ac_ext
4421 CC=$ac_save_CC
4422
4423 fi
4424 # AC_CACHE_VAL
4425 case "x$ac_cv_prog_cc_c89" in
4426 x)
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4428 $as_echo "none needed" >&6; } ;;
4429 xno)
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4431 $as_echo "unsupported" >&6; } ;;
4432 *)
4433 CC="$CC $ac_cv_prog_cc_c89"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4436 esac
4437 if test "x$ac_cv_prog_cc_c89" != xno; then :
4438
4439 fi
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447 ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4453 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4454 if ${am_cv_prog_cc_c_o+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459
4460 int
4461 main ()
4462 {
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 # Make sure it works both with $CC and with simple cc.
4469 # Following AC_PROG_CC_C_O, we do the test twice because some
4470 # compilers refuse to overwrite an existing .o file with -o,
4471 # though they will create one.
4472 am_cv_prog_cc_c_o=yes
4473 for am_i in 1 2; do
4474 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4475 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } \
4479 && test -f conftest2.$ac_objext; then
4480 : OK
4481 else
4482 am_cv_prog_cc_c_o=no
4483 break
4484 fi
4485 done
4486 rm -f core conftest*
4487 unset am_i
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4490 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4491 if test "$am_cv_prog_cc_c_o" != yes; then
4492 # Losing compiler, so override with the script.
4493 # FIXME: It is wrong to rewrite CC.
4494 # But if we don't then we get into trouble of one sort or another.
4495 # A longer-term fix would be to have automake use am__CC in this case,
4496 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4497 CC="$am_aux_dir/compile $CC"
4498 fi
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505
4506 depcc="$CC" am_compiler_list=
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4509 $as_echo_n "checking dependency style of $depcc... " >&6; }
4510 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4514 # We make a subdir and do the tests there. Otherwise we can end up
4515 # making bogus files that we don't know about and never remove. For
4516 # instance it was reported that on HP-UX the gcc test will end up
4517 # making a dummy file named 'D' -- because '-MD' means "put the output
4518 # in D".
4519 rm -rf conftest.dir
4520 mkdir conftest.dir
4521 # Copy depcomp to subdir because otherwise we won't find it if we're
4522 # using a relative directory.
4523 cp "$am_depcomp" conftest.dir
4524 cd conftest.dir
4525 # We will build objects and dependencies in a subdirectory because
4526 # it helps to detect inapplicable dependency modes. For instance
4527 # both Tru64's cc and ICC support -MD to output dependencies as a
4528 # side effect of compilation, but ICC will put the dependencies in
4529 # the current directory while Tru64 will put them in the object
4530 # directory.
4531 mkdir sub
4532
4533 am_cv_CC_dependencies_compiler_type=none
4534 if test "$am_compiler_list" = ""; then
4535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4536 fi
4537 am__universal=false
4538 case " $depcc " in #(
4539 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4540 esac
4541
4542 for depmode in $am_compiler_list; do
4543 # Setup a source with many dependencies, because some compilers
4544 # like to wrap large dependency lists on column 80 (with \), and
4545 # we should not choose a depcomp mode which is confused by this.
4546 #
4547 # We need to recreate these files for each test, as the compiler may
4548 # overwrite some of them when testing with obscure command lines.
4549 # This happens at least with the AIX C compiler.
4550 : > sub/conftest.c
4551 for i in 1 2 3 4 5 6; do
4552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4553 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4554 # Solaris 10 /bin/sh.
4555 echo '/* dummy */' > sub/conftst$i.h
4556 done
4557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4558
4559 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4560 # mode. It turns out that the SunPro C++ compiler does not properly
4561 # handle '-M -o', and we need to detect this. Also, some Intel
4562 # versions had trouble with output in subdirs.
4563 am__obj=sub/conftest.${OBJEXT-o}
4564 am__minus_obj="-o $am__obj"
4565 case $depmode in
4566 gcc)
4567 # This depmode causes a compiler race in universal mode.
4568 test "$am__universal" = false || continue
4569 ;;
4570 nosideeffect)
4571 # After this tag, mechanisms are not by side-effect, so they'll
4572 # only be used when explicitly requested.
4573 if test "x$enable_dependency_tracking" = xyes; then
4574 continue
4575 else
4576 break
4577 fi
4578 ;;
4579 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4580 # This compiler won't grok '-c -o', but also, the minuso test has
4581 # not run yet. These depmodes are late enough in the game, and
4582 # so weak that their functioning should not be impacted.
4583 am__obj=conftest.${OBJEXT-o}
4584 am__minus_obj=
4585 ;;
4586 none) break ;;
4587 esac
4588 if depmode=$depmode \
4589 source=sub/conftest.c object=$am__obj \
4590 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4591 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4592 >/dev/null 2>conftest.err &&
4593 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4597 # icc doesn't choke on unknown options, it will just issue warnings
4598 # or remarks (even with -Werror). So we grep stderr for any message
4599 # that says an option was ignored or not supported.
4600 # When given -MP, icc 7.0 and 7.1 complain thusly:
4601 # icc: Command line warning: ignoring option '-M'; no argument required
4602 # The diagnosis changed in icc 8.0:
4603 # icc: Command line remark: option '-MP' not supported
4604 if (grep 'ignoring option' conftest.err ||
4605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4606 am_cv_CC_dependencies_compiler_type=$depmode
4607 break
4608 fi
4609 fi
4610 done
4611
4612 cd ..
4613 rm -rf conftest.dir
4614 else
4615 am_cv_CC_dependencies_compiler_type=none
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4620 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4622
4623 if
4624 test "x$enable_dependency_tracking" != xno \
4625 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4626 am__fastdepCC_TRUE=
4627 am__fastdepCC_FALSE='#'
4628 else
4629 am__fastdepCC_TRUE='#'
4630 am__fastdepCC_FALSE=
4631 fi
4632
4633
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4640 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4641 # On Suns, sometimes $CPP names a directory.
4642 if test -n "$CPP" && test -d "$CPP"; then
4643 CPP=
4644 fi
4645 if test -z "$CPP"; then
4646 if ${ac_cv_prog_CPP+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 # Double quotes because CPP needs to be expanded
4650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4651 do
4652 ac_preproc_ok=false
4653 for ac_c_preproc_warn_flag in '' yes
4654 do
4655 # Use a header file that comes with gcc, so configuring glibc
4656 # with a fresh cross-compiler works.
4657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4658 # <limits.h> exists even on freestanding compilers.
4659 # On the NeXT, cc -E runs the code through the compiler's parser,
4660 # not just through cpp. "Syntax error" is here to catch this case.
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663 #ifdef __STDC__
4664 # include <limits.h>
4665 #else
4666 # include <assert.h>
4667 #endif
4668 Syntax error
4669 _ACEOF
4670 if ac_fn_c_try_cpp "$LINENO"; then :
4671
4672 else
4673 # Broken: fails on valid input.
4674 continue
4675 fi
4676 rm -f conftest.err conftest.i conftest.$ac_ext
4677
4678 # OK, works on sane cases. Now check whether nonexistent headers
4679 # can be detected and how.
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 #include <ac_nonexistent.h>
4683 _ACEOF
4684 if ac_fn_c_try_cpp "$LINENO"; then :
4685 # Broken: success on invalid input.
4686 continue
4687 else
4688 # Passes both tests.
4689 ac_preproc_ok=:
4690 break
4691 fi
4692 rm -f conftest.err conftest.i conftest.$ac_ext
4693
4694 done
4695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4696 rm -f conftest.i conftest.err conftest.$ac_ext
4697 if $ac_preproc_ok; then :
4698 break
4699 fi
4700
4701 done
4702 ac_cv_prog_CPP=$CPP
4703
4704 fi
4705 CPP=$ac_cv_prog_CPP
4706 else
4707 ac_cv_prog_CPP=$CPP
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4710 $as_echo "$CPP" >&6; }
4711 ac_preproc_ok=false
4712 for ac_c_preproc_warn_flag in '' yes
4713 do
4714 # Use a header file that comes with gcc, so configuring glibc
4715 # with a fresh cross-compiler works.
4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4717 # <limits.h> exists even on freestanding compilers.
4718 # On the NeXT, cc -E runs the code through the compiler's parser,
4719 # not just through cpp. "Syntax error" is here to catch this case.
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #ifdef __STDC__
4723 # include <limits.h>
4724 #else
4725 # include <assert.h>
4726 #endif
4727 Syntax error
4728 _ACEOF
4729 if ac_fn_c_try_cpp "$LINENO"; then :
4730
4731 else
4732 # Broken: fails on valid input.
4733 continue
4734 fi
4735 rm -f conftest.err conftest.i conftest.$ac_ext
4736
4737 # OK, works on sane cases. Now check whether nonexistent headers
4738 # can be detected and how.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <ac_nonexistent.h>
4742 _ACEOF
4743 if ac_fn_c_try_cpp "$LINENO"; then :
4744 # Broken: success on invalid input.
4745 continue
4746 else
4747 # Passes both tests.
4748 ac_preproc_ok=:
4749 break
4750 fi
4751 rm -f conftest.err conftest.i conftest.$ac_ext
4752
4753 done
4754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4755 rm -f conftest.i conftest.err conftest.$ac_ext
4756 if $ac_preproc_ok; then :
4757
4758 else
4759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4761 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4762 See \`config.log' for more details" "$LINENO" 5; }
4763 fi
4764
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770
4771 case `pwd` in
4772 *\ * | *\ *)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4774 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4775 esac
4776
4777
4778
4779 macro_version='2.4.6'
4780 macro_revision='2.4.6'
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 ltmain=$ac_aux_dir/ltmain.sh
4795
4796 # Make sure we can run config.sub.
4797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4798 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4801 $as_echo_n "checking build system type... " >&6; }
4802 if ${ac_cv_build+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_build_alias=$build_alias
4806 test "x$ac_build_alias" = x &&
4807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4808 test "x$ac_build_alias" = x &&
4809 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4812
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4815 $as_echo "$ac_cv_build" >&6; }
4816 case $ac_cv_build in
4817 *-*-*) ;;
4818 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4819 esac
4820 build=$ac_cv_build
4821 ac_save_IFS=$IFS; IFS='-'
4822 set x $ac_cv_build
4823 shift
4824 build_cpu=$1
4825 build_vendor=$2
4826 shift; shift
4827 # Remember, the first character of IFS is used to create $*,
4828 # except with old shells:
4829 build_os=$*
4830 IFS=$ac_save_IFS
4831 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4835 $as_echo_n "checking host system type... " >&6; }
4836 if ${ac_cv_host+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test "x$host_alias" = x; then
4840 ac_cv_host=$ac_cv_build
4841 else
4842 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4844 fi
4845
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4848 $as_echo "$ac_cv_host" >&6; }
4849 case $ac_cv_host in
4850 *-*-*) ;;
4851 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4852 esac
4853 host=$ac_cv_host
4854 ac_save_IFS=$IFS; IFS='-'
4855 set x $ac_cv_host
4856 shift
4857 host_cpu=$1
4858 host_vendor=$2
4859 shift; shift
4860 # Remember, the first character of IFS is used to create $*,
4861 # except with old shells:
4862 host_os=$*
4863 IFS=$ac_save_IFS
4864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4865
4866
4867 # Backslashify metacharacters that are still active within
4868 # double-quoted strings.
4869 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4870
4871 # Same as above, but do not quote variable references.
4872 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4873
4874 # Sed substitution to delay expansion of an escaped shell variable in a
4875 # double_quote_subst'ed string.
4876 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4877
4878 # Sed substitution to delay expansion of an escaped single quote.
4879 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4880
4881 # Sed substitution to avoid accidental globbing in evaled expressions
4882 no_glob_subst='s/\*/\\\*/g'
4883
4884 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4886 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4889 $as_echo_n "checking how to print strings... " >&6; }
4890 # Test print first, because it will be a builtin if present.
4891 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4892 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4893 ECHO='print -r --'
4894 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4895 ECHO='printf %s\n'
4896 else
4897 # Use this function as a fallback that always works.
4898 func_fallback_echo ()
4899 {
4900 eval 'cat <<_LTECHO_EOF
4901 $1
4902 _LTECHO_EOF'
4903 }
4904 ECHO='func_fallback_echo'
4905 fi
4906
4907 # func_echo_all arg...
4908 # Invoke $ECHO with all args, space-separated.
4909 func_echo_all ()
4910 {
4911 $ECHO ""
4912 }
4913
4914 case $ECHO in
4915 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4916 $as_echo "printf" >&6; } ;;
4917 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4918 $as_echo "print -r" >&6; } ;;
4919 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4920 $as_echo "cat" >&6; } ;;
4921 esac
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4937 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4938 if ${ac_cv_path_SED+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4942 for ac_i in 1 2 3 4 5 6 7; do
4943 ac_script="$ac_script$as_nl$ac_script"
4944 done
4945 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4946 { ac_script=; unset ac_script;}
4947 if test -z "$SED"; then
4948 ac_path_SED_found=false
4949 # Loop through the user's path and test for each of PROGNAME-LIST
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_prog in sed gsed; do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4958 as_fn_executable_p "$ac_path_SED" || continue
4959 # Check for GNU ac_path_SED and select it if it is found.
4960 # Check for GNU $ac_path_SED
4961 case `"$ac_path_SED" --version 2>&1` in
4962 *GNU*)
4963 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4964 *)
4965 ac_count=0
4966 $as_echo_n 0123456789 >"conftest.in"
4967 while :
4968 do
4969 cat "conftest.in" "conftest.in" >"conftest.tmp"
4970 mv "conftest.tmp" "conftest.in"
4971 cp "conftest.in" "conftest.nl"
4972 $as_echo '' >> "conftest.nl"
4973 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975 as_fn_arith $ac_count + 1 && ac_count=$as_val
4976 if test $ac_count -gt ${ac_path_SED_max-0}; then
4977 # Best one so far, save it but keep looking for a better one
4978 ac_cv_path_SED="$ac_path_SED"
4979 ac_path_SED_max=$ac_count
4980 fi
4981 # 10*(2^10) chars as input seems more than enough
4982 test $ac_count -gt 10 && break
4983 done
4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985 esac
4986
4987 $ac_path_SED_found && break 3
4988 done
4989 done
4990 done
4991 IFS=$as_save_IFS
4992 if test -z "$ac_cv_path_SED"; then
4993 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4994 fi
4995 else
4996 ac_cv_path_SED=$SED
4997 fi
4998
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5001 $as_echo "$ac_cv_path_SED" >&6; }
5002 SED="$ac_cv_path_SED"
5003 rm -f conftest.sed
5004
5005 test -z "$SED" && SED=sed
5006 Xsed="$SED -e 1s/^X//"
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5020 if ${ac_cv_path_GREP+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -z "$GREP"; then
5024 ac_path_GREP_found=false
5025 # Loop through the user's path and test for each of PROGNAME-LIST
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_prog in grep ggrep; do
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5034 as_fn_executable_p "$ac_path_GREP" || continue
5035 # Check for GNU ac_path_GREP and select it if it is found.
5036 # Check for GNU $ac_path_GREP
5037 case `"$ac_path_GREP" --version 2>&1` in
5038 *GNU*)
5039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5040 *)
5041 ac_count=0
5042 $as_echo_n 0123456789 >"conftest.in"
5043 while :
5044 do
5045 cat "conftest.in" "conftest.in" >"conftest.tmp"
5046 mv "conftest.tmp" "conftest.in"
5047 cp "conftest.in" "conftest.nl"
5048 $as_echo 'GREP' >> "conftest.nl"
5049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051 as_fn_arith $ac_count + 1 && ac_count=$as_val
5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5053 # Best one so far, save it but keep looking for a better one
5054 ac_cv_path_GREP="$ac_path_GREP"
5055 ac_path_GREP_max=$ac_count
5056 fi
5057 # 10*(2^10) chars as input seems more than enough
5058 test $ac_count -gt 10 && break
5059 done
5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061 esac
5062
5063 $ac_path_GREP_found && break 3
5064 done
5065 done
5066 done
5067 IFS=$as_save_IFS
5068 if test -z "$ac_cv_path_GREP"; then
5069 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070 fi
5071 else
5072 ac_cv_path_GREP=$GREP
5073 fi
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5077 $as_echo "$ac_cv_path_GREP" >&6; }
5078 GREP="$ac_cv_path_GREP"
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5082 $as_echo_n "checking for egrep... " >&6; }
5083 if ${ac_cv_path_EGREP+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5087 then ac_cv_path_EGREP="$GREP -E"
5088 else
5089 if test -z "$EGREP"; then
5090 ac_path_EGREP_found=false
5091 # Loop through the user's path and test for each of PROGNAME-LIST
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_prog in egrep; do
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5100 as_fn_executable_p "$ac_path_EGREP" || continue
5101 # Check for GNU ac_path_EGREP and select it if it is found.
5102 # Check for GNU $ac_path_EGREP
5103 case `"$ac_path_EGREP" --version 2>&1` in
5104 *GNU*)
5105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5106 *)
5107 ac_count=0
5108 $as_echo_n 0123456789 >"conftest.in"
5109 while :
5110 do
5111 cat "conftest.in" "conftest.in" >"conftest.tmp"
5112 mv "conftest.tmp" "conftest.in"
5113 cp "conftest.in" "conftest.nl"
5114 $as_echo 'EGREP' >> "conftest.nl"
5115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5117 as_fn_arith $ac_count + 1 && ac_count=$as_val
5118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5119 # Best one so far, save it but keep looking for a better one
5120 ac_cv_path_EGREP="$ac_path_EGREP"
5121 ac_path_EGREP_max=$ac_count
5122 fi
5123 # 10*(2^10) chars as input seems more than enough
5124 test $ac_count -gt 10 && break
5125 done
5126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127 esac
5128
5129 $ac_path_EGREP_found && break 3
5130 done
5131 done
5132 done
5133 IFS=$as_save_IFS
5134 if test -z "$ac_cv_path_EGREP"; then
5135 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136 fi
5137 else
5138 ac_cv_path_EGREP=$EGREP
5139 fi
5140
5141 fi
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5144 $as_echo "$ac_cv_path_EGREP" >&6; }
5145 EGREP="$ac_cv_path_EGREP"
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5149 $as_echo_n "checking for fgrep... " >&6; }
5150 if ${ac_cv_path_FGREP+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5154 then ac_cv_path_FGREP="$GREP -F"
5155 else
5156 if test -z "$FGREP"; then
5157 ac_path_FGREP_found=false
5158 # Loop through the user's path and test for each of PROGNAME-LIST
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_prog in fgrep; do
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5167 as_fn_executable_p "$ac_path_FGREP" || continue
5168 # Check for GNU ac_path_FGREP and select it if it is found.
5169 # Check for GNU $ac_path_FGREP
5170 case `"$ac_path_FGREP" --version 2>&1` in
5171 *GNU*)
5172 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5173 *)
5174 ac_count=0
5175 $as_echo_n 0123456789 >"conftest.in"
5176 while :
5177 do
5178 cat "conftest.in" "conftest.in" >"conftest.tmp"
5179 mv "conftest.tmp" "conftest.in"
5180 cp "conftest.in" "conftest.nl"
5181 $as_echo 'FGREP' >> "conftest.nl"
5182 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5184 as_fn_arith $ac_count + 1 && ac_count=$as_val
5185 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5186 # Best one so far, save it but keep looking for a better one
5187 ac_cv_path_FGREP="$ac_path_FGREP"
5188 ac_path_FGREP_max=$ac_count
5189 fi
5190 # 10*(2^10) chars as input seems more than enough
5191 test $ac_count -gt 10 && break
5192 done
5193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5194 esac
5195
5196 $ac_path_FGREP_found && break 3
5197 done
5198 done
5199 done
5200 IFS=$as_save_IFS
5201 if test -z "$ac_cv_path_FGREP"; then
5202 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5203 fi
5204 else
5205 ac_cv_path_FGREP=$FGREP
5206 fi
5207
5208 fi
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5211 $as_echo "$ac_cv_path_FGREP" >&6; }
5212 FGREP="$ac_cv_path_FGREP"
5213
5214
5215 test -z "$GREP" && GREP=grep
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 # Check whether --with-gnu-ld was given.
5236 if test "${with_gnu_ld+set}" = set; then :
5237 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5238 else
5239 with_gnu_ld=no
5240 fi
5241
5242 ac_prog=ld
5243 if test yes = "$GCC"; then
5244 # Check if gcc -print-prog-name=ld gives a path.
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5246 $as_echo_n "checking for ld used by $CC... " >&6; }
5247 case $host in
5248 *-*-mingw*)
5249 # gcc leaves a trailing carriage return, which upsets mingw
5250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5251 *)
5252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5253 esac
5254 case $ac_prog in
5255 # Accept absolute paths.
5256 [\\/]* | ?:[\\/]*)
5257 re_direlt='/[^/][^/]*/\.\./'
5258 # Canonicalize the pathname of ld
5259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5262 done
5263 test -z "$LD" && LD=$ac_prog
5264 ;;
5265 "")
5266 # If it fails, then pretend we aren't using GCC.
5267 ac_prog=ld
5268 ;;
5269 *)
5270 # If it is relative, then search for the first ld in PATH.
5271 with_gnu_ld=unknown
5272 ;;
5273 esac
5274 elif test yes = "$with_gnu_ld"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5276 $as_echo_n "checking for GNU ld... " >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5279 $as_echo_n "checking for non-GNU ld... " >&6; }
5280 fi
5281 if ${lt_cv_path_LD+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -z "$LD"; then
5285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5286 for ac_dir in $PATH; do
5287 IFS=$lt_save_ifs
5288 test -z "$ac_dir" && ac_dir=.
5289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5290 lt_cv_path_LD=$ac_dir/$ac_prog
5291 # Check to see if the program is GNU ld. I'd rather use --version,
5292 # but apparently some variants of GNU ld only accept -v.
5293 # Break only if it was the GNU/non-GNU ld that we prefer.
5294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5295 *GNU* | *'with BFD'*)
5296 test no != "$with_gnu_ld" && break
5297 ;;
5298 *)
5299 test yes != "$with_gnu_ld" && break
5300 ;;
5301 esac
5302 fi
5303 done
5304 IFS=$lt_save_ifs
5305 else
5306 lt_cv_path_LD=$LD # Let the user override the test with a path.
5307 fi
5308 fi
5309
5310 LD=$lt_cv_path_LD
5311 if test -n "$LD"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5313 $as_echo "$LD" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5321 if ${lt_cv_prog_gnu_ld+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5325 case `$LD -v 2>&1 </dev/null` in
5326 *GNU* | *'with BFD'*)
5327 lt_cv_prog_gnu_ld=yes
5328 ;;
5329 *)
5330 lt_cv_prog_gnu_ld=no
5331 ;;
5332 esac
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5336 with_gnu_ld=$lt_cv_prog_gnu_ld
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5348 if ${lt_cv_path_NM+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$NM"; then
5352 # Let the user override the test.
5353 lt_cv_path_NM=$NM
5354 else
5355 lt_nm_to_check=${ac_tool_prefix}nm
5356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5357 lt_nm_to_check="$lt_nm_to_check nm"
5358 fi
5359 for lt_tmp_nm in $lt_nm_to_check; do
5360 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5362 IFS=$lt_save_ifs
5363 test -z "$ac_dir" && ac_dir=.
5364 tmp_nm=$ac_dir/$lt_tmp_nm
5365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5366 # Check to see if the nm accepts a BSD-compat flag.
5367 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5368 # nm: unknown option "B" ignored
5369 # Tru64's nm complains that /dev/null is an invalid object file
5370 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5371 case $build_os in
5372 mingw*) lt_bad_file=conftest.nm/nofile ;;
5373 *) lt_bad_file=/dev/null ;;
5374 esac
5375 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5376 *$lt_bad_file* | *'Invalid file or object type'*)
5377 lt_cv_path_NM="$tmp_nm -B"
5378 break 2
5379 ;;
5380 *)
5381 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5382 */dev/null*)
5383 lt_cv_path_NM="$tmp_nm -p"
5384 break 2
5385 ;;
5386 *)
5387 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5388 continue # so that we can try to find one that supports BSD flags
5389 ;;
5390 esac
5391 ;;
5392 esac
5393 fi
5394 done
5395 IFS=$lt_save_ifs
5396 done
5397 : ${lt_cv_path_NM=no}
5398 fi
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5401 $as_echo "$lt_cv_path_NM" >&6; }
5402 if test no != "$lt_cv_path_NM"; then
5403 NM=$lt_cv_path_NM
5404 else
5405 # Didn't find any BSD compatible name lister, look for dumpbin.
5406 if test -n "$DUMPBIN"; then :
5407 # Let the user override the test.
5408 else
5409 if test -n "$ac_tool_prefix"; then
5410 for ac_prog in dumpbin "link -dump"
5411 do
5412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_DUMPBIN+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$DUMPBIN"; then
5420 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433 done
5434 done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 DUMPBIN=$ac_cv_prog_DUMPBIN
5440 if test -n "$DUMPBIN"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5442 $as_echo "$DUMPBIN" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 test -n "$DUMPBIN" && break
5450 done
5451 fi
5452 if test -z "$DUMPBIN"; then
5453 ac_ct_DUMPBIN=$DUMPBIN
5454 for ac_prog in dumpbin "link -dump"
5455 do
5456 # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$ac_ct_DUMPBIN"; then
5464 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5484 if test -n "$ac_ct_DUMPBIN"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5486 $as_echo "$ac_ct_DUMPBIN" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 test -n "$ac_ct_DUMPBIN" && break
5494 done
5495
5496 if test "x$ac_ct_DUMPBIN" = x; then
5497 DUMPBIN=":"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 DUMPBIN=$ac_ct_DUMPBIN
5506 fi
5507 fi
5508
5509 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5510 *COFF*)
5511 DUMPBIN="$DUMPBIN -symbols -headers"
5512 ;;
5513 *)
5514 DUMPBIN=:
5515 ;;
5516 esac
5517 fi
5518
5519 if test : != "$DUMPBIN"; then
5520 NM=$DUMPBIN
5521 fi
5522 fi
5523 test -z "$NM" && NM=nm
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5531 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5532 if ${lt_cv_nm_interface+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 lt_cv_nm_interface="BSD nm"
5536 echo "int some_variable = 0;" > conftest.$ac_ext
5537 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5538 (eval "$ac_compile" 2>conftest.err)
5539 cat conftest.err >&5
5540 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5541 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5542 cat conftest.err >&5
5543 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5544 cat conftest.out >&5
5545 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5546 lt_cv_nm_interface="MS dumpbin"
5547 fi
5548 rm -f conftest*
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5551 $as_echo "$lt_cv_nm_interface" >&6; }
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5554 $as_echo_n "checking whether ln -s works... " >&6; }
5555 LN_S=$as_ln_s
5556 if test "$LN_S" = "ln -s"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558 $as_echo "yes" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5561 $as_echo "no, using $LN_S" >&6; }
5562 fi
5563
5564 # find the maximum length of command line arguments
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5566 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5567 if ${lt_cv_sys_max_cmd_len+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 i=0
5571 teststring=ABCD
5572
5573 case $build_os in
5574 msdosdjgpp*)
5575 # On DJGPP, this test can blow up pretty badly due to problems in libc
5576 # (any single argument exceeding 2000 bytes causes a buffer overrun
5577 # during glob expansion). Even if it were fixed, the result of this
5578 # check would be larger than it should be.
5579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5580 ;;
5581
5582 gnu*)
5583 # Under GNU Hurd, this test is not required because there is
5584 # no limit to the length of command line arguments.
5585 # Libtool will interpret -1 as no limit whatsoever
5586 lt_cv_sys_max_cmd_len=-1;
5587 ;;
5588
5589 cygwin* | mingw* | cegcc*)
5590 # On Win9x/ME, this test blows up -- it succeeds, but takes
5591 # about 5 minutes as the teststring grows exponentially.
5592 # Worse, since 9x/ME are not pre-emptively multitasking,
5593 # you end up with a "frozen" computer, even though with patience
5594 # the test eventually succeeds (with a max line length of 256k).
5595 # Instead, let's just punt: use the minimum linelength reported by
5596 # all of the supported platforms: 8192 (on NT/2K/XP).
5597 lt_cv_sys_max_cmd_len=8192;
5598 ;;
5599
5600 mint*)
5601 # On MiNT this can take a long time and run out of memory.
5602 lt_cv_sys_max_cmd_len=8192;
5603 ;;
5604
5605 amigaos*)
5606 # On AmigaOS with pdksh, this test takes hours, literally.
5607 # So we just punt and use a minimum line length of 8192.
5608 lt_cv_sys_max_cmd_len=8192;
5609 ;;
5610
5611 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5612 # This has been around since 386BSD, at least. Likely further.
5613 if test -x /sbin/sysctl; then
5614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5615 elif test -x /usr/sbin/sysctl; then
5616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5617 else
5618 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5619 fi
5620 # And add a safety zone
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5623 ;;
5624
5625 interix*)
5626 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5627 lt_cv_sys_max_cmd_len=196608
5628 ;;
5629
5630 os2*)
5631 # The test takes a long time on OS/2.
5632 lt_cv_sys_max_cmd_len=8192
5633 ;;
5634
5635 osf*)
5636 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5637 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5638 # nice to cause kernel panics so lets avoid the loop below.
5639 # First set a reasonable default.
5640 lt_cv_sys_max_cmd_len=16384
5641 #
5642 if test -x /sbin/sysconfig; then
5643 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5644 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5645 esac
5646 fi
5647 ;;
5648 sco3.2v5*)
5649 lt_cv_sys_max_cmd_len=102400
5650 ;;
5651 sysv5* | sco5v6* | sysv4.2uw2*)
5652 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5653 if test -n "$kargmax"; then
5654 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5655 else
5656 lt_cv_sys_max_cmd_len=32768
5657 fi
5658 ;;
5659 *)
5660 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5661 if test -n "$lt_cv_sys_max_cmd_len" && \
5662 test undefined != "$lt_cv_sys_max_cmd_len"; then
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5665 else
5666 # Make teststring a little bigger before we do anything with it.
5667 # a 1K string should be a reasonable start.
5668 for i in 1 2 3 4 5 6 7 8; do
5669 teststring=$teststring$teststring
5670 done
5671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5672 # If test is not a shell built-in, we'll probably end up computing a
5673 # maximum length that is only half of the actual maximum length, but
5674 # we can't tell.
5675 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5676 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5677 test 17 != "$i" # 1/2 MB should be enough
5678 do
5679 i=`expr $i + 1`
5680 teststring=$teststring$teststring
5681 done
5682 # Only check the string length outside the loop.
5683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5684 teststring=
5685 # Add a significant safety factor because C++ compilers can tack on
5686 # massive amounts of additional arguments before passing them to the
5687 # linker. It appears as though 1/2 is a usable value.
5688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5689 fi
5690 ;;
5691 esac
5692
5693 fi
5694
5695 if test -n "$lt_cv_sys_max_cmd_len"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5697 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5700 $as_echo "none" >&6; }
5701 fi
5702 max_cmd_len=$lt_cv_sys_max_cmd_len
5703
5704
5705
5706
5707
5708
5709 : ${CP="cp -f"}
5710 : ${MV="mv -f"}
5711 : ${RM="rm -f"}
5712
5713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5714 lt_unset=unset
5715 else
5716 lt_unset=false
5717 fi
5718
5719
5720
5721
5722
5723 # test EBCDIC or ASCII
5724 case `echo X|tr X '\101'` in
5725 A) # ASCII based system
5726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5727 lt_SP2NL='tr \040 \012'
5728 lt_NL2SP='tr \015\012 \040\040'
5729 ;;
5730 *) # EBCDIC based system
5731 lt_SP2NL='tr \100 \n'
5732 lt_NL2SP='tr \r\n \100\100'
5733 ;;
5734 esac
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5745 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5746 if ${lt_cv_to_host_file_cmd+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 case $host in
5750 *-*-mingw* )
5751 case $build in
5752 *-*-mingw* ) # actually msys
5753 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5754 ;;
5755 *-*-cygwin* )
5756 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5757 ;;
5758 * ) # otherwise, assume *nix
5759 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5760 ;;
5761 esac
5762 ;;
5763 *-*-cygwin* )
5764 case $build in
5765 *-*-mingw* ) # actually msys
5766 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5767 ;;
5768 *-*-cygwin* )
5769 lt_cv_to_host_file_cmd=func_convert_file_noop
5770 ;;
5771 * ) # otherwise, assume *nix
5772 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5773 ;;
5774 esac
5775 ;;
5776 * ) # unhandled hosts (and "normal" native builds)
5777 lt_cv_to_host_file_cmd=func_convert_file_noop
5778 ;;
5779 esac
5780
5781 fi
5782
5783 to_host_file_cmd=$lt_cv_to_host_file_cmd
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5785 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5786
5787
5788
5789
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5792 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5793 if ${lt_cv_to_tool_file_cmd+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 #assume ordinary cross tools, or native build.
5797 lt_cv_to_tool_file_cmd=func_convert_file_noop
5798 case $host in
5799 *-*-mingw* )
5800 case $build in
5801 *-*-mingw* ) # actually msys
5802 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5803 ;;
5804 esac
5805 ;;
5806 esac
5807
5808 fi
5809
5810 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5812 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5813
5814
5815
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5819 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5820 if ${lt_cv_ld_reload_flag+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 lt_cv_ld_reload_flag='-r'
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5826 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5827 reload_flag=$lt_cv_ld_reload_flag
5828 case $reload_flag in
5829 "" | " "*) ;;
5830 *) reload_flag=" $reload_flag" ;;
5831 esac
5832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833 case $host_os in
5834 cygwin* | mingw* | pw32* | cegcc*)
5835 if test yes != "$GCC"; then
5836 reload_cmds=false
5837 fi
5838 ;;
5839 darwin*)
5840 if test yes = "$GCC"; then
5841 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5842 else
5843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5844 fi
5845 ;;
5846 esac
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_OBJDUMP+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -n "$OBJDUMP"; then
5865 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878 done
5879 done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 OBJDUMP=$ac_cv_prog_OBJDUMP
5885 if test -n "$OBJDUMP"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5887 $as_echo "$OBJDUMP" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894 fi
5895 if test -z "$ac_cv_prog_OBJDUMP"; then
5896 ac_ct_OBJDUMP=$OBJDUMP
5897 # Extract the first word of "objdump", so it can be a program name with args.
5898 set dummy objdump; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$ac_ct_OBJDUMP"; then
5905 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5925 if test -n "$ac_ct_OBJDUMP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5927 $as_echo "$ac_ct_OBJDUMP" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933 if test "x$ac_ct_OBJDUMP" = x; then
5934 OBJDUMP="false"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5941 esac
5942 OBJDUMP=$ac_ct_OBJDUMP
5943 fi
5944 else
5945 OBJDUMP="$ac_cv_prog_OBJDUMP"
5946 fi
5947
5948 test -z "$OBJDUMP" && OBJDUMP=objdump
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5959 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5960 if ${lt_cv_deplibs_check_method+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 lt_cv_file_magic_cmd='$MAGIC_CMD'
5964 lt_cv_file_magic_test_file=
5965 lt_cv_deplibs_check_method='unknown'
5966 # Need to set the preceding variable on all platforms that support
5967 # interlibrary dependencies.
5968 # 'none' -- dependencies not supported.
5969 # 'unknown' -- same as none, but documents that we really don't know.
5970 # 'pass_all' -- all dependencies passed with no checks.
5971 # 'test_compile' -- check by making test program.
5972 # 'file_magic [[regex]]' -- check by looking for files in library path
5973 # that responds to the $file_magic_cmd with a given extended regex.
5974 # If you have 'file' or equivalent on your system and you're not sure
5975 # whether 'pass_all' will *always* work, you probably want this one.
5976
5977 case $host_os in
5978 aix[4-9]*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982 beos*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986 bsdi[45]*)
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5988 lt_cv_file_magic_cmd='/usr/bin/file -L'
5989 lt_cv_file_magic_test_file=/shlib/libc.so
5990 ;;
5991
5992 cygwin*)
5993 # func_win32_libid is a shell function defined in ltmain.sh
5994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5995 lt_cv_file_magic_cmd='func_win32_libid'
5996 ;;
5997
5998 mingw* | pw32*)
5999 # Base MSYS/MinGW do not provide the 'file' command needed by
6000 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6001 # unless we find 'file', for example because we are cross-compiling.
6002 if ( file / ) >/dev/null 2>&1; then
6003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6004 lt_cv_file_magic_cmd='func_win32_libid'
6005 else
6006 # Keep this pattern in sync with the one in func_win32_libid.
6007 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6008 lt_cv_file_magic_cmd='$OBJDUMP -f'
6009 fi
6010 ;;
6011
6012 cegcc*)
6013 # use the weaker test based on 'objdump'. See mingw*.
6014 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6015 lt_cv_file_magic_cmd='$OBJDUMP -f'
6016 ;;
6017
6018 darwin* | rhapsody*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 freebsd* | dragonfly*)
6023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6024 case $host_cpu in
6025 i*86 )
6026 # Not sure whether the presence of OpenBSD here was a mistake.
6027 # Let's accept both of them until this is cleared up.
6028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6029 lt_cv_file_magic_cmd=/usr/bin/file
6030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6031 ;;
6032 esac
6033 else
6034 lt_cv_deplibs_check_method=pass_all
6035 fi
6036 ;;
6037
6038 haiku*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042 hpux10.20* | hpux11*)
6043 lt_cv_file_magic_cmd=/usr/bin/file
6044 case $host_cpu in
6045 ia64*)
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6048 ;;
6049 hppa*64*)
6050 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]'
6051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6052 ;;
6053 *)
6054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6056 ;;
6057 esac
6058 ;;
6059
6060 interix[3-9]*)
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6063 ;;
6064
6065 irix5* | irix6* | nonstopux*)
6066 case $LD in
6067 *-32|*"-32 ") libmagic=32-bit;;
6068 *-n32|*"-n32 ") libmagic=N32;;
6069 *-64|*"-64 ") libmagic=64-bit;;
6070 *) libmagic=never-match;;
6071 esac
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075 # This must be glibc/ELF.
6076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080 netbsd* | netbsdelf*-gnu)
6081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6085 fi
6086 ;;
6087
6088 newos6*)
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6092 ;;
6093
6094 *nto* | *qnx*)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097
6098 openbsd* | bitrig*)
6099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6101 else
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103 fi
6104 ;;
6105
6106 osf3* | osf4* | osf5*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110 rdos*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114 solaris*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122 sysv4 | sysv4.3*)
6123 case $host_vendor in
6124 motorola)
6125 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]'
6126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6127 ;;
6128 ncr)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131 sequent)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6134 ;;
6135 sni)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6138 lt_cv_file_magic_test_file=/lib/libc.so
6139 ;;
6140 siemens)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143 pc)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146 esac
6147 ;;
6148
6149 tpf*)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152 os2*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155 esac
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6159 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6160
6161 file_magic_glob=
6162 want_nocaseglob=no
6163 if test "$build" = "$host"; then
6164 case $host_os in
6165 mingw* | pw32*)
6166 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6167 want_nocaseglob=yes
6168 else
6169 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6170 fi
6171 ;;
6172 esac
6173 fi
6174
6175 file_magic_cmd=$lt_cv_file_magic_cmd
6176 deplibs_check_method=$lt_cv_deplibs_check_method
6177 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_DLLTOOL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$DLLTOOL"; then
6209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 DLLTOOL=$ac_cv_prog_DLLTOOL
6229 if test -n "$DLLTOOL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6231 $as_echo "$DLLTOOL" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 fi
6239 if test -z "$ac_cv_prog_DLLTOOL"; then
6240 ac_ct_DLLTOOL=$DLLTOOL
6241 # Extract the first word of "dlltool", so it can be a program name with args.
6242 set dummy dlltool; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if test -n "$ac_ct_DLLTOOL"; then
6249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6269 if test -n "$ac_ct_DLLTOOL"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6271 $as_echo "$ac_ct_DLLTOOL" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277 if test "x$ac_ct_DLLTOOL" = x; then
6278 DLLTOOL="false"
6279 else
6280 case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286 DLLTOOL=$ac_ct_DLLTOOL
6287 fi
6288 else
6289 DLLTOOL="$ac_cv_prog_DLLTOOL"
6290 fi
6291
6292 test -z "$DLLTOOL" && DLLTOOL=dlltool
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6304 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6305 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 lt_cv_sharedlib_from_linklib_cmd='unknown'
6309
6310 case $host_os in
6311 cygwin* | mingw* | pw32* | cegcc*)
6312 # two different shell functions defined in ltmain.sh;
6313 # decide which one to use based on capabilities of $DLLTOOL
6314 case `$DLLTOOL --help 2>&1` in
6315 *--identify-strict*)
6316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6317 ;;
6318 *)
6319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6320 ;;
6321 esac
6322 ;;
6323 *)
6324 # fallback: assume linklib IS sharedlib
6325 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6326 ;;
6327 esac
6328
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6331 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6332 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6333 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6334
6335
6336
6337
6338
6339
6340
6341 if test -n "$ac_tool_prefix"; then
6342 for ac_prog in ar
6343 do
6344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_AR+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$AR"; then
6352 ac_cv_prog_AR="$AR" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 AR=$ac_cv_prog_AR
6372 if test -n "$AR"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6374 $as_echo "$AR" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 test -n "$AR" && break
6382 done
6383 fi
6384 if test -z "$AR"; then
6385 ac_ct_AR=$AR
6386 for ac_prog in ar
6387 do
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$ac_ct_AR"; then
6396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ac_ct_AR="$ac_prog"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6416 if test -n "$ac_ct_AR"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6418 $as_echo "$ac_ct_AR" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 test -n "$ac_ct_AR" && break
6426 done
6427
6428 if test "x$ac_ct_AR" = x; then
6429 AR="false"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 AR=$ac_ct_AR
6438 fi
6439 fi
6440
6441 : ${AR=ar}
6442 : ${AR_FLAGS=cru}
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6455 $as_echo_n "checking for archiver @FILE support... " >&6; }
6456 if ${lt_cv_ar_at_file+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 lt_cv_ar_at_file=no
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463 int
6464 main ()
6465 {
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 echo conftest.$ac_objext > conftest.lst
6473 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6475 (eval $lt_ar_try) 2>&5
6476 ac_status=$?
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; }
6479 if test 0 -eq "$ac_status"; then
6480 # Ensure the archiver fails upon bogus file names.
6481 rm -f conftest.$ac_objext libconftest.a
6482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6483 (eval $lt_ar_try) 2>&5
6484 ac_status=$?
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }
6487 if test 0 -ne "$ac_status"; then
6488 lt_cv_ar_at_file=@
6489 fi
6490 fi
6491 rm -f conftest.* libconftest.a
6492
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6498 $as_echo "$lt_cv_ar_at_file" >&6; }
6499
6500 if test no = "$lt_cv_ar_at_file"; then
6501 archiver_list_spec=
6502 else
6503 archiver_list_spec=$lt_cv_ar_at_file
6504 fi
6505
6506
6507
6508
6509
6510
6511
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}strip; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_STRIP+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 if test -n "$STRIP"; then
6521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534 done
6535 done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 STRIP=$ac_cv_prog_STRIP
6541 if test -n "$STRIP"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6543 $as_echo "$STRIP" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_STRIP"; then
6552 ac_ct_STRIP=$STRIP
6553 # Extract the first word of "strip", so it can be a program name with args.
6554 set dummy strip; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -n "$ac_ct_STRIP"; then
6561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_ac_ct_STRIP="strip"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6581 if test -n "$ac_ct_STRIP"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6583 $as_echo "$ac_ct_STRIP" >&6; }
6584 else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589 if test "x$ac_ct_STRIP" = x; then
6590 STRIP=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598 STRIP=$ac_ct_STRIP
6599 fi
6600 else
6601 STRIP="$ac_cv_prog_STRIP"
6602 fi
6603
6604 test -z "$STRIP" && STRIP=:
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_RANLIB+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 RANLIB=$ac_cv_prog_RANLIB
6640 if test -n "$RANLIB"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6642 $as_echo "$RANLIB" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653 set dummy ranlib; 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_ac_ct_RANLIB+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680 if test -n "$ac_ct_RANLIB"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6682 $as_echo "$ac_ct_RANLIB" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688 if test "x$ac_ct_RANLIB" = x; then
6689 RANLIB=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697 RANLIB=$ac_ct_RANLIB
6698 fi
6699 else
6700 RANLIB="$ac_cv_prog_RANLIB"
6701 fi
6702
6703 test -z "$RANLIB" && RANLIB=:
6704
6705
6706
6707
6708
6709
6710 # Determine commands to create old-style static archives.
6711 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6712 old_postinstall_cmds='chmod 644 $oldlib'
6713 old_postuninstall_cmds=
6714
6715 if test -n "$RANLIB"; then
6716 case $host_os in
6717 bitrig* | openbsd*)
6718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6719 ;;
6720 *)
6721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6722 ;;
6723 esac
6724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6725 fi
6726
6727 case $host_os in
6728 darwin*)
6729 lock_old_archive_extraction=yes ;;
6730 *)
6731 lock_old_archive_extraction=no ;;
6732 esac
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 # If no C compiler was specified, use CC.
6773 LTCC=${LTCC-"$CC"}
6774
6775 # If no C compiler flags were specified, use CFLAGS.
6776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777
6778 # Allow CC to be a program name with arguments.
6779 compiler=$CC
6780
6781
6782 # Check for command to grab the raw symbol name followed by C symbol from nm.
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6784 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6785 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788
6789 # These are sane defaults that work on at least a few old systems.
6790 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6791
6792 # Character class describing NM global symbol codes.
6793 symcode='[BCDEGRST]'
6794
6795 # Regexp to match symbols that can be accessed directly from C.
6796 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797
6798 # Define system-specific variables.
6799 case $host_os in
6800 aix*)
6801 symcode='[BCDT]'
6802 ;;
6803 cygwin* | mingw* | pw32* | cegcc*)
6804 symcode='[ABCDGISTW]'
6805 ;;
6806 hpux*)
6807 if test ia64 = "$host_cpu"; then
6808 symcode='[ABCDEGRST]'
6809 fi
6810 ;;
6811 irix* | nonstopux*)
6812 symcode='[BCDEGRST]'
6813 ;;
6814 osf*)
6815 symcode='[BCDEGQRST]'
6816 ;;
6817 solaris*)
6818 symcode='[BDRT]'
6819 ;;
6820 sco3.2v5*)
6821 symcode='[DT]'
6822 ;;
6823 sysv4.2uw2*)
6824 symcode='[DT]'
6825 ;;
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827 symcode='[ABDT]'
6828 ;;
6829 sysv4)
6830 symcode='[DFNSTU]'
6831 ;;
6832 esac
6833
6834 # If we're using GNU nm, then use its standard symbol codes.
6835 case `$NM -V 2>&1` in
6836 *GNU* | *'with BFD'*)
6837 symcode='[ABCDGIRSTW]' ;;
6838 esac
6839
6840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6841 # Gets list of data symbols to import.
6842 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6843 # Adjust the below global symbol transforms to fixup imported variables.
6844 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6845 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6846 lt_c_name_lib_hook="\
6847 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6848 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6849 else
6850 # Disable hooks by default.
6851 lt_cv_sys_global_symbol_to_import=
6852 lt_cdecl_hook=
6853 lt_c_name_hook=
6854 lt_c_name_lib_hook=
6855 fi
6856
6857 # Transform an extracted symbol line into a proper C declaration.
6858 # Some systems (esp. on ia64) link data and code symbols differently,
6859 # so use this general approach.
6860 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6861 $lt_cdecl_hook\
6862 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6863 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6864
6865 # Transform an extracted symbol line into symbol name and symbol address
6866 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6867 $lt_c_name_hook\
6868 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6869 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6870
6871 # Transform an extracted symbol line into symbol name with lib prefix and
6872 # symbol address.
6873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6874 $lt_c_name_lib_hook\
6875 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6876 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6877 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6878
6879 # Handle CRLF in mingw tool chain
6880 opt_cr=
6881 case $build_os in
6882 mingw*)
6883 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6884 ;;
6885 esac
6886
6887 # Try without a prefix underscore, then with it.
6888 for ac_symprfx in "" "_"; do
6889
6890 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6891 symxfrm="\\1 $ac_symprfx\\2 \\2"
6892
6893 # Write the raw and C identifiers.
6894 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6895 # Fake it for dumpbin and say T for any non-static function,
6896 # D for any global variable and I for any imported variable.
6897 # Also find C++ and __fastcall symbols from MSVC++,
6898 # which start with @ or ?.
6899 lt_cv_sys_global_symbol_pipe="$AWK '"\
6900 " {last_section=section; section=\$ 3};"\
6901 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6902 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6903 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6904 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6905 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6906 " \$ 0!~/External *\|/{next};"\
6907 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6908 " {if(hide[section]) next};"\
6909 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6910 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6911 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6912 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6913 " ' prfx=^$ac_symprfx"
6914 else
6915 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6916 fi
6917 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6918
6919 # Check to see that the pipe works correctly.
6920 pipe_works=no
6921
6922 rm -f conftest*
6923 cat > conftest.$ac_ext <<_LT_EOF
6924 #ifdef __cplusplus
6925 extern "C" {
6926 #endif
6927 char nm_test_var;
6928 void nm_test_func(void);
6929 void nm_test_func(void){}
6930 #ifdef __cplusplus
6931 }
6932 #endif
6933 int main(){nm_test_var='a';nm_test_func();return(0);}
6934 _LT_EOF
6935
6936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940 test $ac_status = 0; }; then
6941 # Now try to grab the symbols.
6942 nlist=conftest.nm
6943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6944 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6945 ac_status=$?
6946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947 test $ac_status = 0; } && test -s "$nlist"; then
6948 # Try sorting and uniquifying the output.
6949 if sort "$nlist" | uniq > "$nlist"T; then
6950 mv -f "$nlist"T "$nlist"
6951 else
6952 rm -f "$nlist"T
6953 fi
6954
6955 # Make sure that we snagged all the symbols we need.
6956 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6957 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6958 cat <<_LT_EOF > conftest.$ac_ext
6959 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6960 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6961 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6962 relocations are performed -- see ld's documentation on pseudo-relocs. */
6963 # define LT_DLSYM_CONST
6964 #elif defined __osf__
6965 /* This system does not cope well with relocations in const data. */
6966 # define LT_DLSYM_CONST
6967 #else
6968 # define LT_DLSYM_CONST const
6969 #endif
6970
6971 #ifdef __cplusplus
6972 extern "C" {
6973 #endif
6974
6975 _LT_EOF
6976 # Now generate the symbol file.
6977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6978
6979 cat <<_LT_EOF >> conftest.$ac_ext
6980
6981 /* The mapping between symbol names and symbols. */
6982 LT_DLSYM_CONST struct {
6983 const char *name;
6984 void *address;
6985 }
6986 lt__PROGRAM__LTX_preloaded_symbols[] =
6987 {
6988 { "@PROGRAM@", (void *) 0 },
6989 _LT_EOF
6990 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6991 cat <<\_LT_EOF >> conftest.$ac_ext
6992 {0, (void *) 0}
6993 };
6994
6995 /* This works around a problem in FreeBSD linker */
6996 #ifdef FREEBSD_WORKAROUND
6997 static const void *lt_preloaded_setup() {
6998 return lt__PROGRAM__LTX_preloaded_symbols;
6999 }
7000 #endif
7001
7002 #ifdef __cplusplus
7003 }
7004 #endif
7005 _LT_EOF
7006 # Now try linking the two files.
7007 mv conftest.$ac_objext conftstm.$ac_objext
7008 lt_globsym_save_LIBS=$LIBS
7009 lt_globsym_save_CFLAGS=$CFLAGS
7010 LIBS=conftstm.$ac_objext
7011 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7013 (eval $ac_link) 2>&5
7014 ac_status=$?
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7017 pipe_works=yes
7018 fi
7019 LIBS=$lt_globsym_save_LIBS
7020 CFLAGS=$lt_globsym_save_CFLAGS
7021 else
7022 echo "cannot find nm_test_func in $nlist" >&5
7023 fi
7024 else
7025 echo "cannot find nm_test_var in $nlist" >&5
7026 fi
7027 else
7028 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7029 fi
7030 else
7031 echo "$progname: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7033 fi
7034 rm -rf conftest* conftst*
7035
7036 # Do not use the global_symbol_pipe unless it works.
7037 if test yes = "$pipe_works"; then
7038 break
7039 else
7040 lt_cv_sys_global_symbol_pipe=
7041 fi
7042 done
7043
7044 fi
7045
7046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7047 lt_cv_sys_global_symbol_to_cdecl=
7048 fi
7049 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7051 $as_echo "failed" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7054 $as_echo "ok" >&6; }
7055 fi
7056
7057 # Response file support.
7058 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7059 nm_file_list_spec='@'
7060 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7061 nm_file_list_spec='@'
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7101 $as_echo_n "checking for sysroot... " >&6; }
7102
7103 # Check whether --with-sysroot was given.
7104 if test "${with_sysroot+set}" = set; then :
7105 withval=$with_sysroot;
7106 else
7107 with_sysroot=no
7108 fi
7109
7110
7111 lt_sysroot=
7112 case $with_sysroot in #(
7113 yes)
7114 if test yes = "$GCC"; then
7115 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7116 fi
7117 ;; #(
7118 /*)
7119 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7120 ;; #(
7121 no|'')
7122 ;; #(
7123 *)
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7125 $as_echo "$with_sysroot" >&6; }
7126 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7127 ;;
7128 esac
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7131 $as_echo "${lt_sysroot:-no}" >&6; }
7132
7133
7134
7135
7136
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7138 $as_echo_n "checking for a working dd... " >&6; }
7139 if ${ac_cv_path_lt_DD+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 printf 0123456789abcdef0123456789abcdef >conftest.i
7143 cat conftest.i conftest.i >conftest2.i
7144 : ${lt_DD:=$DD}
7145 if test -z "$lt_DD"; then
7146 ac_path_lt_DD_found=false
7147 # Loop through the user's path and test for each of PROGNAME-LIST
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_prog in dd; do
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7156 as_fn_executable_p "$ac_path_lt_DD" || continue
7157 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7158 cmp -s conftest.i conftest.out \
7159 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7160 fi
7161 $ac_path_lt_DD_found && break 3
7162 done
7163 done
7164 done
7165 IFS=$as_save_IFS
7166 if test -z "$ac_cv_path_lt_DD"; then
7167 :
7168 fi
7169 else
7170 ac_cv_path_lt_DD=$lt_DD
7171 fi
7172
7173 rm -f conftest.i conftest2.i conftest.out
7174 fi
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7176 $as_echo "$ac_cv_path_lt_DD" >&6; }
7177
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7180 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7181 if ${lt_cv_truncate_bin+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 printf 0123456789abcdef0123456789abcdef >conftest.i
7185 cat conftest.i conftest.i >conftest2.i
7186 lt_cv_truncate_bin=
7187 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7188 cmp -s conftest.i conftest.out \
7189 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7190 fi
7191 rm -f conftest.i conftest2.i conftest.out
7192 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7195 $as_echo "$lt_cv_truncate_bin" >&6; }
7196
7197
7198
7199
7200
7201
7202
7203 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7204 func_cc_basename ()
7205 {
7206 for cc_temp in $*""; do
7207 case $cc_temp in
7208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7210 \-*) ;;
7211 *) break;;
7212 esac
7213 done
7214 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7215 }
7216
7217 # Check whether --enable-libtool-lock was given.
7218 if test "${enable_libtool_lock+set}" = set; then :
7219 enableval=$enable_libtool_lock;
7220 fi
7221
7222 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7223
7224 # Some flags need to be propagated to the compiler or linker for good
7225 # libtool support.
7226 case $host in
7227 ia64-*-hpux*)
7228 # Find out what ABI is being produced by ac_compile, and set mode
7229 # options accordingly.
7230 echo 'int i;' > conftest.$ac_ext
7231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7232 (eval $ac_compile) 2>&5
7233 ac_status=$?
7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235 test $ac_status = 0; }; then
7236 case `/usr/bin/file conftest.$ac_objext` in
7237 *ELF-32*)
7238 HPUX_IA64_MODE=32
7239 ;;
7240 *ELF-64*)
7241 HPUX_IA64_MODE=64
7242 ;;
7243 esac
7244 fi
7245 rm -rf conftest*
7246 ;;
7247 *-*-irix6*)
7248 # Find out what ABI is being produced by ac_compile, and set linker
7249 # options accordingly.
7250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 if test yes = "$lt_cv_prog_gnu_ld"; then
7257 case `/usr/bin/file conftest.$ac_objext` in
7258 *32-bit*)
7259 LD="${LD-ld} -melf32bsmip"
7260 ;;
7261 *N32*)
7262 LD="${LD-ld} -melf32bmipn32"
7263 ;;
7264 *64-bit*)
7265 LD="${LD-ld} -melf64bmip"
7266 ;;
7267 esac
7268 else
7269 case `/usr/bin/file conftest.$ac_objext` in
7270 *32-bit*)
7271 LD="${LD-ld} -32"
7272 ;;
7273 *N32*)
7274 LD="${LD-ld} -n32"
7275 ;;
7276 *64-bit*)
7277 LD="${LD-ld} -64"
7278 ;;
7279 esac
7280 fi
7281 fi
7282 rm -rf conftest*
7283 ;;
7284
7285 mips64*-*linux*)
7286 # Find out what ABI is being produced by ac_compile, and set linker
7287 # options accordingly.
7288 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290 (eval $ac_compile) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }; then
7294 emul=elf
7295 case `/usr/bin/file conftest.$ac_objext` in
7296 *32-bit*)
7297 emul="${emul}32"
7298 ;;
7299 *64-bit*)
7300 emul="${emul}64"
7301 ;;
7302 esac
7303 case `/usr/bin/file conftest.$ac_objext` in
7304 *MSB*)
7305 emul="${emul}btsmip"
7306 ;;
7307 *LSB*)
7308 emul="${emul}ltsmip"
7309 ;;
7310 esac
7311 case `/usr/bin/file conftest.$ac_objext` in
7312 *N32*)
7313 emul="${emul}n32"
7314 ;;
7315 esac
7316 LD="${LD-ld} -m $emul"
7317 fi
7318 rm -rf conftest*
7319 ;;
7320
7321 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7322 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7323 # Find out what ABI is being produced by ac_compile, and set linker
7324 # options accordingly. Note that the listed cases only cover the
7325 # situations where additional linker options are needed (such as when
7326 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7327 # vice versa); the common cases where no linker options are needed do
7328 # not appear in the list.
7329 echo 'int i;' > conftest.$ac_ext
7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7331 (eval $ac_compile) 2>&5
7332 ac_status=$?
7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; }; then
7335 case `/usr/bin/file conftest.o` in
7336 *32-bit*)
7337 case $host in
7338 x86_64-*kfreebsd*-gnu)
7339 LD="${LD-ld} -m elf_i386_fbsd"
7340 ;;
7341 x86_64-*linux*)
7342 case `/usr/bin/file conftest.o` in
7343 *x86-64*)
7344 LD="${LD-ld} -m elf32_x86_64"
7345 ;;
7346 *)
7347 LD="${LD-ld} -m elf_i386"
7348 ;;
7349 esac
7350 ;;
7351 powerpc64le-*linux*)
7352 LD="${LD-ld} -m elf32lppclinux"
7353 ;;
7354 powerpc64-*linux*)
7355 LD="${LD-ld} -m elf32ppclinux"
7356 ;;
7357 s390x-*linux*)
7358 LD="${LD-ld} -m elf_s390"
7359 ;;
7360 sparc64-*linux*)
7361 LD="${LD-ld} -m elf32_sparc"
7362 ;;
7363 esac
7364 ;;
7365 *64-bit*)
7366 case $host in
7367 x86_64-*kfreebsd*-gnu)
7368 LD="${LD-ld} -m elf_x86_64_fbsd"
7369 ;;
7370 x86_64-*linux*)
7371 LD="${LD-ld} -m elf_x86_64"
7372 ;;
7373 powerpcle-*linux*)
7374 LD="${LD-ld} -m elf64lppc"
7375 ;;
7376 powerpc-*linux*)
7377 LD="${LD-ld} -m elf64ppc"
7378 ;;
7379 s390*-*linux*|s390*-*tpf*)
7380 LD="${LD-ld} -m elf64_s390"
7381 ;;
7382 sparc*-*linux*)
7383 LD="${LD-ld} -m elf64_sparc"
7384 ;;
7385 esac
7386 ;;
7387 esac
7388 fi
7389 rm -rf conftest*
7390 ;;
7391
7392 *-*-sco3.2v5*)
7393 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7394 SAVE_CFLAGS=$CFLAGS
7395 CFLAGS="$CFLAGS -belf"
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7397 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7398 if ${lt_cv_cc_needs_belf+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 ac_ext=c
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409
7410 int
7411 main ()
7412 {
7413
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 if ac_fn_c_try_link "$LINENO"; then :
7419 lt_cv_cc_needs_belf=yes
7420 else
7421 lt_cv_cc_needs_belf=no
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 ac_ext=c
7426 ac_cpp='$CPP $CPPFLAGS'
7427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7430
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7433 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7434 if test yes != "$lt_cv_cc_needs_belf"; then
7435 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7436 CFLAGS=$SAVE_CFLAGS
7437 fi
7438 ;;
7439 *-*solaris*)
7440 # Find out what ABI is being produced by ac_compile, and set linker
7441 # options accordingly.
7442 echo 'int i;' > conftest.$ac_ext
7443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7444 (eval $ac_compile) 2>&5
7445 ac_status=$?
7446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7447 test $ac_status = 0; }; then
7448 case `/usr/bin/file conftest.o` in
7449 *64-bit*)
7450 case $lt_cv_prog_gnu_ld in
7451 yes*)
7452 case $host in
7453 i?86-*-solaris*|x86_64-*-solaris*)
7454 LD="${LD-ld} -m elf_x86_64"
7455 ;;
7456 sparc*-*-solaris*)
7457 LD="${LD-ld} -m elf64_sparc"
7458 ;;
7459 esac
7460 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7461 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7462 LD=${LD-ld}_sol2
7463 fi
7464 ;;
7465 *)
7466 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7467 LD="${LD-ld} -64"
7468 fi
7469 ;;
7470 esac
7471 ;;
7472 esac
7473 fi
7474 rm -rf conftest*
7475 ;;
7476 esac
7477
7478 need_locks=$enable_libtool_lock
7479
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}mt; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$MANIFEST_TOOL"; then
7489 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7509 if test -n "$MANIFEST_TOOL"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7511 $as_echo "$MANIFEST_TOOL" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518 fi
7519 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7520 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7521 # Extract the first word of "mt", so it can be a program name with args.
7522 set dummy mt; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 if test -n "$ac_ct_MANIFEST_TOOL"; then
7529 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7549 if test -n "$ac_ct_MANIFEST_TOOL"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7551 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7558 MANIFEST_TOOL=":"
7559 else
7560 case $cross_compiling:$ac_tool_warned in
7561 yes:)
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7565 esac
7566 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7567 fi
7568 else
7569 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7570 fi
7571
7572 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7574 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7575 if ${lt_cv_path_mainfest_tool+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 lt_cv_path_mainfest_tool=no
7579 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7580 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7581 cat conftest.err >&5
7582 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7583 lt_cv_path_mainfest_tool=yes
7584 fi
7585 rm -f conftest*
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7588 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7589 if test yes != "$lt_cv_path_mainfest_tool"; then
7590 MANIFEST_TOOL=:
7591 fi
7592
7593
7594
7595
7596
7597
7598 case $host_os in
7599 rhapsody* | darwin*)
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$DSYMUTIL"; then
7609 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7629 if test -n "$DSYMUTIL"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7631 $as_echo "$DSYMUTIL" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_DSYMUTIL"; then
7640 ac_ct_DSYMUTIL=$DSYMUTIL
7641 # Extract the first word of "dsymutil", so it can be a program name with args.
7642 set dummy dsymutil; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$ac_ct_DSYMUTIL"; then
7649 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7669 if test -n "$ac_ct_DSYMUTIL"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7671 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677 if test "x$ac_ct_DSYMUTIL" = x; then
7678 DSYMUTIL=":"
7679 else
7680 case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7685 esac
7686 DSYMUTIL=$ac_ct_DSYMUTIL
7687 fi
7688 else
7689 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7690 fi
7691
7692 if test -n "$ac_tool_prefix"; then
7693 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7694 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_prog_NMEDIT+:} false; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$NMEDIT"; then
7701 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 NMEDIT=$ac_cv_prog_NMEDIT
7721 if test -n "$NMEDIT"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7723 $as_echo "$NMEDIT" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729
7730 fi
7731 if test -z "$ac_cv_prog_NMEDIT"; then
7732 ac_ct_NMEDIT=$NMEDIT
7733 # Extract the first word of "nmedit", so it can be a program name with args.
7734 set dummy nmedit; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$ac_ct_NMEDIT"; then
7741 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7761 if test -n "$ac_ct_NMEDIT"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7763 $as_echo "$ac_ct_NMEDIT" >&6; }
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769 if test "x$ac_ct_NMEDIT" = x; then
7770 NMEDIT=":"
7771 else
7772 case $cross_compiling:$ac_tool_warned in
7773 yes:)
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776 ac_tool_warned=yes ;;
7777 esac
7778 NMEDIT=$ac_ct_NMEDIT
7779 fi
7780 else
7781 NMEDIT="$ac_cv_prog_NMEDIT"
7782 fi
7783
7784 if test -n "$ac_tool_prefix"; then
7785 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_LIPO+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -n "$LIPO"; then
7793 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 LIPO=$ac_cv_prog_LIPO
7813 if test -n "$LIPO"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7815 $as_echo "$LIPO" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822 fi
7823 if test -z "$ac_cv_prog_LIPO"; then
7824 ac_ct_LIPO=$LIPO
7825 # Extract the first word of "lipo", so it can be a program name with args.
7826 set dummy lipo; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$ac_ct_LIPO"; then
7833 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_ac_ct_LIPO="lipo"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7853 if test -n "$ac_ct_LIPO"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7855 $as_echo "$ac_ct_LIPO" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 fi
7860
7861 if test "x$ac_ct_LIPO" = x; then
7862 LIPO=":"
7863 else
7864 case $cross_compiling:$ac_tool_warned in
7865 yes:)
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868 ac_tool_warned=yes ;;
7869 esac
7870 LIPO=$ac_ct_LIPO
7871 fi
7872 else
7873 LIPO="$ac_cv_prog_LIPO"
7874 fi
7875
7876 if test -n "$ac_tool_prefix"; then
7877 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7878 set dummy ${ac_tool_prefix}otool; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if ${ac_cv_prog_OTOOL+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 if test -n "$OTOOL"; then
7885 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7897 fi
7898 done
7899 done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 OTOOL=$ac_cv_prog_OTOOL
7905 if test -n "$OTOOL"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7907 $as_echo "$OTOOL" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913
7914 fi
7915 if test -z "$ac_cv_prog_OTOOL"; then
7916 ac_ct_OTOOL=$OTOOL
7917 # Extract the first word of "otool", so it can be a program name with args.
7918 set dummy otool; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 if test -n "$ac_ct_OTOOL"; then
7925 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_ac_ct_OTOOL="otool"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7945 if test -n "$ac_ct_OTOOL"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7947 $as_echo "$ac_ct_OTOOL" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953 if test "x$ac_ct_OTOOL" = x; then
7954 OTOOL=":"
7955 else
7956 case $cross_compiling:$ac_tool_warned in
7957 yes:)
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960 ac_tool_warned=yes ;;
7961 esac
7962 OTOOL=$ac_ct_OTOOL
7963 fi
7964 else
7965 OTOOL="$ac_cv_prog_OTOOL"
7966 fi
7967
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_prog_OTOOL64+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 if test -n "$OTOOL64"; then
7977 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990 done
7991 done
7992 IFS=$as_save_IFS
7993
7994 fi
7995 fi
7996 OTOOL64=$ac_cv_prog_OTOOL64
7997 if test -n "$OTOOL64"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7999 $as_echo "$OTOOL64" >&6; }
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 fi
8004
8005
8006 fi
8007 if test -z "$ac_cv_prog_OTOOL64"; then
8008 ac_ct_OTOOL64=$OTOOL64
8009 # Extract the first word of "otool64", so it can be a program name with args.
8010 set dummy otool64; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 if test -n "$ac_ct_OTOOL64"; then
8017 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_ac_ct_OTOOL64="otool64"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030 done
8031 done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8037 if test -n "$ac_ct_OTOOL64"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8039 $as_echo "$ac_ct_OTOOL64" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045 if test "x$ac_ct_OTOOL64" = x; then
8046 OTOOL64=":"
8047 else
8048 case $cross_compiling:$ac_tool_warned in
8049 yes:)
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052 ac_tool_warned=yes ;;
8053 esac
8054 OTOOL64=$ac_ct_OTOOL64
8055 fi
8056 else
8057 OTOOL64="$ac_cv_prog_OTOOL64"
8058 fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8087 $as_echo_n "checking for -single_module linker flag... " >&6; }
8088 if ${lt_cv_apple_cc_single_mod+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 lt_cv_apple_cc_single_mod=no
8092 if test -z "$LT_MULTI_MODULE"; then
8093 # By default we will add the -single_module flag. You can override
8094 # by either setting the environment variable LT_MULTI_MODULE
8095 # non-empty at configure time, or by adding -multi_module to the
8096 # link flags.
8097 rm -rf libconftest.dylib*
8098 echo "int foo(void){return 1;}" > conftest.c
8099 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8100 -dynamiclib -Wl,-single_module conftest.c" >&5
8101 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8102 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8103 _lt_result=$?
8104 # If there is a non-empty error log, and "single_module"
8105 # appears in it, assume the flag caused a linker warning
8106 if test -s conftest.err && $GREP single_module conftest.err; then
8107 cat conftest.err >&5
8108 # Otherwise, if the output was created with a 0 exit code from
8109 # the compiler, it worked.
8110 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8111 lt_cv_apple_cc_single_mod=yes
8112 else
8113 cat conftest.err >&5
8114 fi
8115 rm -rf libconftest.dylib*
8116 rm -f conftest.*
8117 fi
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8120 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8123 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8124 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 lt_cv_ld_exported_symbols_list=no
8128 save_LDFLAGS=$LDFLAGS
8129 echo "_main" > conftest.sym
8130 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133
8134 int
8135 main ()
8136 {
8137
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 if ac_fn_c_try_link "$LINENO"; then :
8143 lt_cv_ld_exported_symbols_list=yes
8144 else
8145 lt_cv_ld_exported_symbols_list=no
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8149 LDFLAGS=$save_LDFLAGS
8150
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8153 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8156 $as_echo_n "checking for -force_load linker flag... " >&6; }
8157 if ${lt_cv_ld_force_load+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 lt_cv_ld_force_load=no
8161 cat > conftest.c << _LT_EOF
8162 int forced_loaded() { return 2;}
8163 _LT_EOF
8164 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8165 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8166 echo "$AR cru libconftest.a conftest.o" >&5
8167 $AR cru libconftest.a conftest.o 2>&5
8168 echo "$RANLIB libconftest.a" >&5
8169 $RANLIB libconftest.a 2>&5
8170 cat > conftest.c << _LT_EOF
8171 int main() { return 0;}
8172 _LT_EOF
8173 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8174 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8175 _lt_result=$?
8176 if test -s conftest.err && $GREP force_load conftest.err; then
8177 cat conftest.err >&5
8178 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8179 lt_cv_ld_force_load=yes
8180 else
8181 cat conftest.err >&5
8182 fi
8183 rm -f conftest.err libconftest.a conftest conftest.c
8184 rm -rf conftest.dSYM
8185
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8188 $as_echo "$lt_cv_ld_force_load" >&6; }
8189 case $host_os in
8190 rhapsody* | darwin1.[012])
8191 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8192 darwin1.*)
8193 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8194 darwin*) # darwin 5.x on
8195 # if running on 10.5 or later, the deployment target defaults
8196 # to the OS version, if on x86, and 10.4, the deployment
8197 # target defaults to 10.4. Don't you love it?
8198 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8199 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8200 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8201 10.[012][,.]*)
8202 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8203 10.*)
8204 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8205 esac
8206 ;;
8207 esac
8208 if test yes = "$lt_cv_apple_cc_single_mod"; then
8209 _lt_dar_single_mod='$single_module'
8210 fi
8211 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8212 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8213 else
8214 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8215 fi
8216 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8217 _lt_dsymutil='~$DSYMUTIL $lib || :'
8218 else
8219 _lt_dsymutil=
8220 fi
8221 ;;
8222 esac
8223
8224 # func_munge_path_list VARIABLE PATH
8225 # -----------------------------------
8226 # VARIABLE is name of variable containing _space_ separated list of
8227 # directories to be munged by the contents of PATH, which is string
8228 # having a format:
8229 # "DIR[:DIR]:"
8230 # string "DIR[ DIR]" will be prepended to VARIABLE
8231 # ":DIR[:DIR]"
8232 # string "DIR[ DIR]" will be appended to VARIABLE
8233 # "DIRP[:DIRP]::[DIRA:]DIRA"
8234 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8235 # "DIRA[ DIRA]" will be appended to VARIABLE
8236 # "DIR[:DIR]"
8237 # VARIABLE will be replaced by "DIR[ DIR]"
8238 func_munge_path_list ()
8239 {
8240 case x$2 in
8241 x)
8242 ;;
8243 *:)
8244 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8245 ;;
8246 x:*)
8247 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8248 ;;
8249 *::*)
8250 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8251 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8252 ;;
8253 *)
8254 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8255 ;;
8256 esac
8257 }
8258
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8261 $as_echo_n "checking for ANSI C header files... " >&6; }
8262 if ${ac_cv_header_stdc+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 #include <stdlib.h>
8268 #include <stdarg.h>
8269 #include <string.h>
8270 #include <float.h>
8271
8272 int
8273 main ()
8274 {
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281 ac_cv_header_stdc=yes
8282 else
8283 ac_cv_header_stdc=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286
8287 if test $ac_cv_header_stdc = yes; then
8288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 #include <string.h>
8292
8293 _ACEOF
8294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8295 $EGREP "memchr" >/dev/null 2>&1; then :
8296
8297 else
8298 ac_cv_header_stdc=no
8299 fi
8300 rm -f conftest*
8301
8302 fi
8303
8304 if test $ac_cv_header_stdc = yes; then
8305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #include <stdlib.h>
8309
8310 _ACEOF
8311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8312 $EGREP "free" >/dev/null 2>&1; then :
8313
8314 else
8315 ac_cv_header_stdc=no
8316 fi
8317 rm -f conftest*
8318
8319 fi
8320
8321 if test $ac_cv_header_stdc = yes; then
8322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8323 if test "$cross_compiling" = yes; then :
8324 :
8325 else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #include <ctype.h>
8329 #include <stdlib.h>
8330 #if ((' ' & 0x0FF) == 0x020)
8331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8333 #else
8334 # define ISLOWER(c) \
8335 (('a' <= (c) && (c) <= 'i') \
8336 || ('j' <= (c) && (c) <= 'r') \
8337 || ('s' <= (c) && (c) <= 'z'))
8338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8339 #endif
8340
8341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8342 int
8343 main ()
8344 {
8345 int i;
8346 for (i = 0; i < 256; i++)
8347 if (XOR (islower (i), ISLOWER (i))
8348 || toupper (i) != TOUPPER (i))
8349 return 2;
8350 return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_run "$LINENO"; then :
8354
8355 else
8356 ac_cv_header_stdc=no
8357 fi
8358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8359 conftest.$ac_objext conftest.beam conftest.$ac_ext
8360 fi
8361
8362 fi
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8365 $as_echo "$ac_cv_header_stdc" >&6; }
8366 if test $ac_cv_header_stdc = yes; then
8367
8368 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8369
8370 fi
8371
8372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8373 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8374 inttypes.h stdint.h unistd.h
8375 do :
8376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8378 "
8379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8380 cat >>confdefs.h <<_ACEOF
8381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8382 _ACEOF
8383
8384 fi
8385
8386 done
8387
8388
8389 for ac_header in dlfcn.h
8390 do :
8391 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8392 "
8393 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_DLFCN_H 1
8396 _ACEOF
8397
8398 fi
8399
8400 done
8401
8402
8403
8404
8405
8406 # Set options
8407
8408
8409
8410 enable_dlopen=no
8411
8412
8413 enable_win32_dll=no
8414
8415
8416 # Check whether --enable-shared was given.
8417 if test "${enable_shared+set}" = set; then :
8418 enableval=$enable_shared; p=${PACKAGE-default}
8419 case $enableval in
8420 yes) enable_shared=yes ;;
8421 no) enable_shared=no ;;
8422 *)
8423 enable_shared=no
8424 # Look at the argument we got. We use all the common list separators.
8425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8426 for pkg in $enableval; do
8427 IFS=$lt_save_ifs
8428 if test "X$pkg" = "X$p"; then
8429 enable_shared=yes
8430 fi
8431 done
8432 IFS=$lt_save_ifs
8433 ;;
8434 esac
8435 else
8436 enable_shared=yes
8437 fi
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447 # Check whether --enable-static was given.
8448 if test "${enable_static+set}" = set; then :
8449 enableval=$enable_static; p=${PACKAGE-default}
8450 case $enableval in
8451 yes) enable_static=yes ;;
8452 no) enable_static=no ;;
8453 *)
8454 enable_static=no
8455 # Look at the argument we got. We use all the common list separators.
8456 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8457 for pkg in $enableval; do
8458 IFS=$lt_save_ifs
8459 if test "X$pkg" = "X$p"; then
8460 enable_static=yes
8461 fi
8462 done
8463 IFS=$lt_save_ifs
8464 ;;
8465 esac
8466 else
8467 enable_static=yes
8468 fi
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479 # Check whether --with-pic was given.
8480 if test "${with_pic+set}" = set; then :
8481 withval=$with_pic; lt_p=${PACKAGE-default}
8482 case $withval in
8483 yes|no) pic_mode=$withval ;;
8484 *)
8485 pic_mode=default
8486 # Look at the argument we got. We use all the common list separators.
8487 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8488 for lt_pkg in $withval; do
8489 IFS=$lt_save_ifs
8490 if test "X$lt_pkg" = "X$lt_p"; then
8491 pic_mode=yes
8492 fi
8493 done
8494 IFS=$lt_save_ifs
8495 ;;
8496 esac
8497 else
8498 pic_mode=default
8499 fi
8500
8501
8502
8503
8504
8505
8506
8507
8508 # Check whether --enable-fast-install was given.
8509 if test "${enable_fast_install+set}" = set; then :
8510 enableval=$enable_fast_install; p=${PACKAGE-default}
8511 case $enableval in
8512 yes) enable_fast_install=yes ;;
8513 no) enable_fast_install=no ;;
8514 *)
8515 enable_fast_install=no
8516 # Look at the argument we got. We use all the common list separators.
8517 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8518 for pkg in $enableval; do
8519 IFS=$lt_save_ifs
8520 if test "X$pkg" = "X$p"; then
8521 enable_fast_install=yes
8522 fi
8523 done
8524 IFS=$lt_save_ifs
8525 ;;
8526 esac
8527 else
8528 enable_fast_install=yes
8529 fi
8530
8531
8532
8533
8534
8535
8536
8537
8538 shared_archive_member_spec=
8539 case $host,$enable_shared in
8540 power*-*-aix[5-9]*,yes)
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8542 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8543
8544 # Check whether --with-aix-soname was given.
8545 if test "${with_aix_soname+set}" = set; then :
8546 withval=$with_aix_soname; case $withval in
8547 aix|svr4|both)
8548 ;;
8549 *)
8550 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8551 ;;
8552 esac
8553 lt_cv_with_aix_soname=$with_aix_soname
8554 else
8555 if ${lt_cv_with_aix_soname+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 lt_cv_with_aix_soname=aix
8559 fi
8560
8561 with_aix_soname=$lt_cv_with_aix_soname
8562 fi
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8565 $as_echo "$with_aix_soname" >&6; }
8566 if test aix != "$with_aix_soname"; then
8567 # For the AIX way of multilib, we name the shared archive member
8568 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8569 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8570 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8571 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8572 if test 64 = "${OBJECT_MODE-32}"; then
8573 shared_archive_member_spec=shr_64
8574 else
8575 shared_archive_member_spec=shr
8576 fi
8577 fi
8578 ;;
8579 *)
8580 with_aix_soname=aix
8581 ;;
8582 esac
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593 # This can be used to rebuild libtool when needed
8594 LIBTOOL_DEPS=$ltmain
8595
8596 # Always use our own libtool.
8597 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628 test -z "$LN_S" && LN_S="ln -s"
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 if test -n "${ZSH_VERSION+set}"; then
8644 setopt NO_GLOB_SUBST
8645 fi
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8648 $as_echo_n "checking for objdir... " >&6; }
8649 if ${lt_cv_objdir+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 rm -f .libs 2>/dev/null
8653 mkdir .libs 2>/dev/null
8654 if test -d .libs; then
8655 lt_cv_objdir=.libs
8656 else
8657 # MS-DOS does not allow filenames that begin with a dot.
8658 lt_cv_objdir=_libs
8659 fi
8660 rmdir .libs 2>/dev/null
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8663 $as_echo "$lt_cv_objdir" >&6; }
8664 objdir=$lt_cv_objdir
8665
8666
8667
8668
8669
8670 cat >>confdefs.h <<_ACEOF
8671 #define LT_OBJDIR "$lt_cv_objdir/"
8672 _ACEOF
8673
8674
8675
8676
8677 case $host_os in
8678 aix3*)
8679 # AIX sometimes has problems with the GCC collect2 program. For some
8680 # reason, if we set the COLLECT_NAMES environment variable, the problems
8681 # vanish in a puff of smoke.
8682 if test set != "${COLLECT_NAMES+set}"; then
8683 COLLECT_NAMES=
8684 export COLLECT_NAMES
8685 fi
8686 ;;
8687 esac
8688
8689 # Global variables:
8690 ofile=libtool
8691 can_build_shared=yes
8692
8693 # All known linkers require a '.a' archive for static linking (except MSVC,
8694 # which needs '.lib').
8695 libext=a
8696
8697 with_gnu_ld=$lt_cv_prog_gnu_ld
8698
8699 old_CC=$CC
8700 old_CFLAGS=$CFLAGS
8701
8702 # Set sane defaults for various variables
8703 test -z "$CC" && CC=cc
8704 test -z "$LTCC" && LTCC=$CC
8705 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8706 test -z "$LD" && LD=ld
8707 test -z "$ac_objext" && ac_objext=o
8708
8709 func_cc_basename $compiler
8710 cc_basename=$func_cc_basename_result
8711
8712
8713 # Only perform the check for file, if the check method requires it
8714 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8715 case $deplibs_check_method in
8716 file_magic*)
8717 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8719 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8720 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 case $MAGIC_CMD in
8724 [\\/*] | ?:[\\/]*)
8725 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8726 ;;
8727 *)
8728 lt_save_MAGIC_CMD=$MAGIC_CMD
8729 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8730 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8731 for ac_dir in $ac_dummy; do
8732 IFS=$lt_save_ifs
8733 test -z "$ac_dir" && ac_dir=.
8734 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8735 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8736 if test -n "$file_magic_test_file"; then
8737 case $deplibs_check_method in
8738 "file_magic "*)
8739 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8740 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8742 $EGREP "$file_magic_regex" > /dev/null; then
8743 :
8744 else
8745 cat <<_LT_EOF 1>&2
8746
8747 *** Warning: the command libtool uses to detect shared libraries,
8748 *** $file_magic_cmd, produces output that libtool cannot recognize.
8749 *** The result is that libtool may fail to recognize shared libraries
8750 *** as such. This will affect the creation of libtool libraries that
8751 *** depend on shared libraries, but programs linked with such libtool
8752 *** libraries will work regardless of this problem. Nevertheless, you
8753 *** may want to report the problem to your system manager and/or to
8754 *** [email protected]
8755
8756 _LT_EOF
8757 fi ;;
8758 esac
8759 fi
8760 break
8761 fi
8762 done
8763 IFS=$lt_save_ifs
8764 MAGIC_CMD=$lt_save_MAGIC_CMD
8765 ;;
8766 esac
8767 fi
8768
8769 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8770 if test -n "$MAGIC_CMD"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8772 $as_echo "$MAGIC_CMD" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8776 fi
8777
8778
8779
8780
8781
8782 if test -z "$lt_cv_path_MAGIC_CMD"; then
8783 if test -n "$ac_tool_prefix"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8785 $as_echo_n "checking for file... " >&6; }
8786 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 case $MAGIC_CMD in
8790 [\\/*] | ?:[\\/]*)
8791 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8792 ;;
8793 *)
8794 lt_save_MAGIC_CMD=$MAGIC_CMD
8795 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8797 for ac_dir in $ac_dummy; do
8798 IFS=$lt_save_ifs
8799 test -z "$ac_dir" && ac_dir=.
8800 if test -f "$ac_dir/file"; then
8801 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8802 if test -n "$file_magic_test_file"; then
8803 case $deplibs_check_method in
8804 "file_magic "*)
8805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8806 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8808 $EGREP "$file_magic_regex" > /dev/null; then
8809 :
8810 else
8811 cat <<_LT_EOF 1>&2
8812
8813 *** Warning: the command libtool uses to detect shared libraries,
8814 *** $file_magic_cmd, produces output that libtool cannot recognize.
8815 *** The result is that libtool may fail to recognize shared libraries
8816 *** as such. This will affect the creation of libtool libraries that
8817 *** depend on shared libraries, but programs linked with such libtool
8818 *** libraries will work regardless of this problem. Nevertheless, you
8819 *** may want to report the problem to your system manager and/or to
8820 *** [email protected]
8821
8822 _LT_EOF
8823 fi ;;
8824 esac
8825 fi
8826 break
8827 fi
8828 done
8829 IFS=$lt_save_ifs
8830 MAGIC_CMD=$lt_save_MAGIC_CMD
8831 ;;
8832 esac
8833 fi
8834
8835 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8836 if test -n "$MAGIC_CMD"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8838 $as_echo "$MAGIC_CMD" >&6; }
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842 fi
8843
8844
8845 else
8846 MAGIC_CMD=:
8847 fi
8848 fi
8849
8850 fi
8851 ;;
8852 esac
8853
8854 # Use C for the default configuration in the libtool script
8855
8856 lt_save_CC=$CC
8857 ac_ext=c
8858 ac_cpp='$CPP $CPPFLAGS'
8859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862
8863
8864 # Source file extension for C test sources.
8865 ac_ext=c
8866
8867 # Object file extension for compiled C test sources.
8868 objext=o
8869 objext=$objext
8870
8871 # Code to be used in simple compile tests
8872 lt_simple_compile_test_code="int some_variable = 0;"
8873
8874 # Code to be used in simple link tests
8875 lt_simple_link_test_code='int main(){return(0);}'
8876
8877
8878
8879
8880
8881
8882
8883 # If no C compiler was specified, use CC.
8884 LTCC=${LTCC-"$CC"}
8885
8886 # If no C compiler flags were specified, use CFLAGS.
8887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8888
8889 # Allow CC to be a program name with arguments.
8890 compiler=$CC
8891
8892 # Save the default compiler, since it gets overwritten when the other
8893 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8894 compiler_DEFAULT=$CC
8895
8896 # save warnings/boilerplate of simple test code
8897 ac_outfile=conftest.$ac_objext
8898 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8900 _lt_compiler_boilerplate=`cat conftest.err`
8901 $RM conftest*
8902
8903 ac_outfile=conftest.$ac_objext
8904 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8906 _lt_linker_boilerplate=`cat conftest.err`
8907 $RM -r conftest*
8908
8909
8910 ## CAVEAT EMPTOR:
8911 ## There is no encapsulation within the following macros, do not change
8912 ## the running order or otherwise move them around unless you know exactly
8913 ## what you are doing...
8914 if test -n "$compiler"; then
8915
8916 lt_prog_compiler_no_builtin_flag=
8917
8918 if test yes = "$GCC"; then
8919 case $cc_basename in
8920 nvcc*)
8921 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8922 *)
8923 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8924 esac
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8927 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8928 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 lt_cv_prog_compiler_rtti_exceptions=no
8932 ac_outfile=conftest.$ac_objext
8933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8934 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8935 # Insert the option either (1) after the last *FLAGS variable, or
8936 # (2) before a word containing "conftest.", or (3) at the end.
8937 # Note that $ac_compile itself does not contain backslashes and begins
8938 # with a dollar sign (not a hyphen), so the echo should work correctly.
8939 # The option is referenced via a variable to avoid confusing sed.
8940 lt_compile=`echo "$ac_compile" | $SED \
8941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8943 -e 's:$: $lt_compiler_flag:'`
8944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8945 (eval "$lt_compile" 2>conftest.err)
8946 ac_status=$?
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 if (exit $ac_status) && test -s "$ac_outfile"; then
8950 # The compiler can only warn and ignore the option if not recognized
8951 # So say no if there are warnings other than the usual output.
8952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8955 lt_cv_prog_compiler_rtti_exceptions=yes
8956 fi
8957 fi
8958 $RM conftest*
8959
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8962 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8963
8964 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8966 else
8967 :
8968 fi
8969
8970 fi
8971
8972
8973
8974
8975
8976
8977 lt_prog_compiler_wl=
8978 lt_prog_compiler_pic=
8979 lt_prog_compiler_static=
8980
8981
8982 if test yes = "$GCC"; then
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_static='-static'
8985
8986 case $host_os in
8987 aix*)
8988 # All AIX code is PIC.
8989 if test ia64 = "$host_cpu"; then
8990 # AIX 5 now supports IA64 processor
8991 lt_prog_compiler_static='-Bstatic'
8992 fi
8993 lt_prog_compiler_pic='-fPIC'
8994 ;;
8995
8996 amigaos*)
8997 case $host_cpu in
8998 powerpc)
8999 # see comment about AmigaOS4 .so support
9000 lt_prog_compiler_pic='-fPIC'
9001 ;;
9002 m68k)
9003 # FIXME: we need at least 68020 code to build shared libraries, but
9004 # adding the '-m68020' flag to GCC prevents building anything better,
9005 # like '-m68040'.
9006 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9007 ;;
9008 esac
9009 ;;
9010
9011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9012 # PIC is the default for these OSes.
9013 ;;
9014
9015 mingw* | cygwin* | pw32* | os2* | cegcc*)
9016 # This hack is so that the source file can tell whether it is being
9017 # built for inclusion in a dll (and should export symbols for example).
9018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9019 # (--disable-auto-import) libraries
9020 lt_prog_compiler_pic='-DDLL_EXPORT'
9021 case $host_os in
9022 os2*)
9023 lt_prog_compiler_static='$wl-static'
9024 ;;
9025 esac
9026 ;;
9027
9028 darwin* | rhapsody*)
9029 # PIC is the default on this platform
9030 # Common symbols not allowed in MH_DYLIB files
9031 lt_prog_compiler_pic='-fno-common'
9032 ;;
9033
9034 haiku*)
9035 # PIC is the default for Haiku.
9036 # The "-static" flag exists, but is broken.
9037 lt_prog_compiler_static=
9038 ;;
9039
9040 hpux*)
9041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9043 # sets the default TLS model and affects inlining.
9044 case $host_cpu in
9045 hppa*64*)
9046 # +Z the default
9047 ;;
9048 *)
9049 lt_prog_compiler_pic='-fPIC'
9050 ;;
9051 esac
9052 ;;
9053
9054 interix[3-9]*)
9055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9056 # Instead, we relocate shared libraries at runtime.
9057 ;;
9058
9059 msdosdjgpp*)
9060 # Just because we use GCC doesn't mean we suddenly get shared libraries
9061 # on systems that don't support them.
9062 lt_prog_compiler_can_build_shared=no
9063 enable_shared=no
9064 ;;
9065
9066 *nto* | *qnx*)
9067 # QNX uses GNU C++, but need to define -shared option too, otherwise
9068 # it will coredump.
9069 lt_prog_compiler_pic='-fPIC -shared'
9070 ;;
9071
9072 sysv4*MP*)
9073 if test -d /usr/nec; then
9074 lt_prog_compiler_pic=-Kconform_pic
9075 fi
9076 ;;
9077
9078 *)
9079 lt_prog_compiler_pic='-fPIC'
9080 ;;
9081 esac
9082
9083 case $cc_basename in
9084 nvcc*) # Cuda Compiler Driver 2.2
9085 lt_prog_compiler_wl='-Xlinker '
9086 if test -n "$lt_prog_compiler_pic"; then
9087 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9088 fi
9089 ;;
9090 esac
9091 else
9092 # PORTME Check for flag to pass linker flags through the system compiler.
9093 case $host_os in
9094 aix*)
9095 lt_prog_compiler_wl='-Wl,'
9096 if test ia64 = "$host_cpu"; then
9097 # AIX 5 now supports IA64 processor
9098 lt_prog_compiler_static='-Bstatic'
9099 else
9100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9101 fi
9102 ;;
9103
9104 darwin* | rhapsody*)
9105 # PIC is the default on this platform
9106 # Common symbols not allowed in MH_DYLIB files
9107 lt_prog_compiler_pic='-fno-common'
9108 case $cc_basename in
9109 nagfor*)
9110 # NAG Fortran compiler
9111 lt_prog_compiler_wl='-Wl,-Wl,,'
9112 lt_prog_compiler_pic='-PIC'
9113 lt_prog_compiler_static='-Bstatic'
9114 ;;
9115 esac
9116 ;;
9117
9118 mingw* | cygwin* | pw32* | os2* | cegcc*)
9119 # This hack is so that the source file can tell whether it is being
9120 # built for inclusion in a dll (and should export symbols for example).
9121 lt_prog_compiler_pic='-DDLL_EXPORT'
9122 case $host_os in
9123 os2*)
9124 lt_prog_compiler_static='$wl-static'
9125 ;;
9126 esac
9127 ;;
9128
9129 hpux9* | hpux10* | hpux11*)
9130 lt_prog_compiler_wl='-Wl,'
9131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9132 # not for PA HP-UX.
9133 case $host_cpu in
9134 hppa*64*|ia64*)
9135 # +Z the default
9136 ;;
9137 *)
9138 lt_prog_compiler_pic='+Z'
9139 ;;
9140 esac
9141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9142 lt_prog_compiler_static='$wl-a ${wl}archive'
9143 ;;
9144
9145 irix5* | irix6* | nonstopux*)
9146 lt_prog_compiler_wl='-Wl,'
9147 # PIC (with -KPIC) is the default.
9148 lt_prog_compiler_static='-non_shared'
9149 ;;
9150
9151 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9152 case $cc_basename in
9153 # old Intel for x86_64, which still supported -KPIC.
9154 ecc*)
9155 lt_prog_compiler_wl='-Wl,'
9156 lt_prog_compiler_pic='-KPIC'
9157 lt_prog_compiler_static='-static'
9158 ;;
9159 # icc used to be incompatible with GCC.
9160 # ICC 10 doesn't accept -KPIC any more.
9161 icc* | ifort*)
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_pic='-fPIC'
9164 lt_prog_compiler_static='-static'
9165 ;;
9166 # Lahey Fortran 8.1.
9167 lf95*)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='--shared'
9170 lt_prog_compiler_static='--static'
9171 ;;
9172 nagfor*)
9173 # NAG Fortran compiler
9174 lt_prog_compiler_wl='-Wl,-Wl,,'
9175 lt_prog_compiler_pic='-PIC'
9176 lt_prog_compiler_static='-Bstatic'
9177 ;;
9178 tcc*)
9179 # Fabrice Bellard et al's Tiny C Compiler
9180 lt_prog_compiler_wl='-Wl,'
9181 lt_prog_compiler_pic='-fPIC'
9182 lt_prog_compiler_static='-static'
9183 ;;
9184 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9185 # Portland Group compilers (*not* the Pentium gcc compiler,
9186 # which looks to be a dead project)
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-fpic'
9189 lt_prog_compiler_static='-Bstatic'
9190 ;;
9191 ccc*)
9192 lt_prog_compiler_wl='-Wl,'
9193 # All Alpha code is PIC.
9194 lt_prog_compiler_static='-non_shared'
9195 ;;
9196 xl* | bgxl* | bgf* | mpixl*)
9197 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9198 lt_prog_compiler_wl='-Wl,'
9199 lt_prog_compiler_pic='-qpic'
9200 lt_prog_compiler_static='-qstaticlink'
9201 ;;
9202 *)
9203 case `$CC -V 2>&1 | sed 5q` in
9204 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9205 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9206 lt_prog_compiler_pic='-KPIC'
9207 lt_prog_compiler_static='-Bstatic'
9208 lt_prog_compiler_wl=''
9209 ;;
9210 *Sun\ F* | *Sun*Fortran*)
9211 lt_prog_compiler_pic='-KPIC'
9212 lt_prog_compiler_static='-Bstatic'
9213 lt_prog_compiler_wl='-Qoption ld '
9214 ;;
9215 *Sun\ C*)
9216 # Sun C 5.9
9217 lt_prog_compiler_pic='-KPIC'
9218 lt_prog_compiler_static='-Bstatic'
9219 lt_prog_compiler_wl='-Wl,'
9220 ;;
9221 *Intel*\ [CF]*Compiler*)
9222 lt_prog_compiler_wl='-Wl,'
9223 lt_prog_compiler_pic='-fPIC'
9224 lt_prog_compiler_static='-static'
9225 ;;
9226 *Portland\ Group*)
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='-fpic'
9229 lt_prog_compiler_static='-Bstatic'
9230 ;;
9231 esac
9232 ;;
9233 esac
9234 ;;
9235
9236 newsos6)
9237 lt_prog_compiler_pic='-KPIC'
9238 lt_prog_compiler_static='-Bstatic'
9239 ;;
9240
9241 *nto* | *qnx*)
9242 # QNX uses GNU C++, but need to define -shared option too, otherwise
9243 # it will coredump.
9244 lt_prog_compiler_pic='-fPIC -shared'
9245 ;;
9246
9247 osf3* | osf4* | osf5*)
9248 lt_prog_compiler_wl='-Wl,'
9249 # All OSF/1 code is PIC.
9250 lt_prog_compiler_static='-non_shared'
9251 ;;
9252
9253 rdos*)
9254 lt_prog_compiler_static='-non_shared'
9255 ;;
9256
9257 solaris*)
9258 lt_prog_compiler_pic='-KPIC'
9259 lt_prog_compiler_static='-Bstatic'
9260 case $cc_basename in
9261 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9262 lt_prog_compiler_wl='-Qoption ld ';;
9263 *)
9264 lt_prog_compiler_wl='-Wl,';;
9265 esac
9266 ;;
9267
9268 sunos4*)
9269 lt_prog_compiler_wl='-Qoption ld '
9270 lt_prog_compiler_pic='-PIC'
9271 lt_prog_compiler_static='-Bstatic'
9272 ;;
9273
9274 sysv4 | sysv4.2uw2* | sysv4.3*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-KPIC'
9277 lt_prog_compiler_static='-Bstatic'
9278 ;;
9279
9280 sysv4*MP*)
9281 if test -d /usr/nec; then
9282 lt_prog_compiler_pic='-Kconform_pic'
9283 lt_prog_compiler_static='-Bstatic'
9284 fi
9285 ;;
9286
9287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9288 lt_prog_compiler_wl='-Wl,'
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-Bstatic'
9291 ;;
9292
9293 unicos*)
9294 lt_prog_compiler_wl='-Wl,'
9295 lt_prog_compiler_can_build_shared=no
9296 ;;
9297
9298 uts4*)
9299 lt_prog_compiler_pic='-pic'
9300 lt_prog_compiler_static='-Bstatic'
9301 ;;
9302
9303 *)
9304 lt_prog_compiler_can_build_shared=no
9305 ;;
9306 esac
9307 fi
9308
9309 case $host_os in
9310 # For platforms that do not support PIC, -DPIC is meaningless:
9311 *djgpp*)
9312 lt_prog_compiler_pic=
9313 ;;
9314 *)
9315 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9316 ;;
9317 esac
9318
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9320 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9321 if ${lt_cv_prog_compiler_pic+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9325 fi
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9327 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9328 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9329
9330 #
9331 # Check to make sure the PIC flag actually works.
9332 #
9333 if test -n "$lt_prog_compiler_pic"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9335 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9336 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 lt_cv_prog_compiler_pic_works=no
9340 ac_outfile=conftest.$ac_objext
9341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9342 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9343 # Insert the option either (1) after the last *FLAGS variable, or
9344 # (2) before a word containing "conftest.", or (3) at the end.
9345 # Note that $ac_compile itself does not contain backslashes and begins
9346 # with a dollar sign (not a hyphen), so the echo should work correctly.
9347 # The option is referenced via a variable to avoid confusing sed.
9348 lt_compile=`echo "$ac_compile" | $SED \
9349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9351 -e 's:$: $lt_compiler_flag:'`
9352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9353 (eval "$lt_compile" 2>conftest.err)
9354 ac_status=$?
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 if (exit $ac_status) && test -s "$ac_outfile"; then
9358 # The compiler can only warn and ignore the option if not recognized
9359 # So say no if there are warnings other than the usual output.
9360 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9363 lt_cv_prog_compiler_pic_works=yes
9364 fi
9365 fi
9366 $RM conftest*
9367
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9370 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9371
9372 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9373 case $lt_prog_compiler_pic in
9374 "" | " "*) ;;
9375 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9376 esac
9377 else
9378 lt_prog_compiler_pic=
9379 lt_prog_compiler_can_build_shared=no
9380 fi
9381
9382 fi
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394 #
9395 # Check to make sure the static flag actually works.
9396 #
9397 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9399 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9400 if ${lt_cv_prog_compiler_static_works+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 lt_cv_prog_compiler_static_works=no
9404 save_LDFLAGS=$LDFLAGS
9405 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9406 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9408 # The linker can only warn and ignore the option if not recognized
9409 # So say no if there are warnings
9410 if test -s conftest.err; then
9411 # Append any errors to the config.log.
9412 cat conftest.err 1>&5
9413 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9415 if diff conftest.exp conftest.er2 >/dev/null; then
9416 lt_cv_prog_compiler_static_works=yes
9417 fi
9418 else
9419 lt_cv_prog_compiler_static_works=yes
9420 fi
9421 fi
9422 $RM -r conftest*
9423 LDFLAGS=$save_LDFLAGS
9424
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9427 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9428
9429 if test yes = "$lt_cv_prog_compiler_static_works"; then
9430 :
9431 else
9432 lt_prog_compiler_static=
9433 fi
9434
9435
9436
9437
9438
9439
9440
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9442 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9443 if ${lt_cv_prog_compiler_c_o+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 lt_cv_prog_compiler_c_o=no
9447 $RM -r conftest 2>/dev/null
9448 mkdir conftest
9449 cd conftest
9450 mkdir out
9451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9452
9453 lt_compiler_flag="-o out/conftest2.$ac_objext"
9454 # Insert the option either (1) after the last *FLAGS variable, or
9455 # (2) before a word containing "conftest.", or (3) at the end.
9456 # Note that $ac_compile itself does not contain backslashes and begins
9457 # with a dollar sign (not a hyphen), so the echo should work correctly.
9458 lt_compile=`echo "$ac_compile" | $SED \
9459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9461 -e 's:$: $lt_compiler_flag:'`
9462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9463 (eval "$lt_compile" 2>out/conftest.err)
9464 ac_status=$?
9465 cat out/conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9468 then
9469 # The compiler can only warn and ignore the option if not recognized
9470 # So say no if there are warnings
9471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9474 lt_cv_prog_compiler_c_o=yes
9475 fi
9476 fi
9477 chmod u+w . 2>&5
9478 $RM conftest*
9479 # SGI C++ compiler will create directory out/ii_files/ for
9480 # template instantiation
9481 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9482 $RM out/* && rmdir out
9483 cd ..
9484 $RM -r conftest
9485 $RM conftest*
9486
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9489 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9490
9491
9492
9493
9494
9495
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9497 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9498 if ${lt_cv_prog_compiler_c_o+:} false; then :
9499 $as_echo_n "(cached) " >&6
9500 else
9501 lt_cv_prog_compiler_c_o=no
9502 $RM -r conftest 2>/dev/null
9503 mkdir conftest
9504 cd conftest
9505 mkdir out
9506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9507
9508 lt_compiler_flag="-o out/conftest2.$ac_objext"
9509 # Insert the option either (1) after the last *FLAGS variable, or
9510 # (2) before a word containing "conftest.", or (3) at the end.
9511 # Note that $ac_compile itself does not contain backslashes and begins
9512 # with a dollar sign (not a hyphen), so the echo should work correctly.
9513 lt_compile=`echo "$ac_compile" | $SED \
9514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9516 -e 's:$: $lt_compiler_flag:'`
9517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9518 (eval "$lt_compile" 2>out/conftest.err)
9519 ac_status=$?
9520 cat out/conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9523 then
9524 # The compiler can only warn and ignore the option if not recognized
9525 # So say no if there are warnings
9526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9529 lt_cv_prog_compiler_c_o=yes
9530 fi
9531 fi
9532 chmod u+w . 2>&5
9533 $RM conftest*
9534 # SGI C++ compiler will create directory out/ii_files/ for
9535 # template instantiation
9536 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9537 $RM out/* && rmdir out
9538 cd ..
9539 $RM -r conftest
9540 $RM conftest*
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9544 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9545
9546
9547
9548
9549 hard_links=nottested
9550 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9551 # do not overwrite the value of need_locks provided by the user
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9553 $as_echo_n "checking if we can lock with hard links... " >&6; }
9554 hard_links=yes
9555 $RM conftest*
9556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9557 touch conftest.a
9558 ln conftest.a conftest.b 2>&5 || hard_links=no
9559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9561 $as_echo "$hard_links" >&6; }
9562 if test no = "$hard_links"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9564 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9565 need_locks=warn
9566 fi
9567 else
9568 need_locks=no
9569 fi
9570
9571
9572
9573
9574
9575
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9577 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9578
9579 runpath_var=
9580 allow_undefined_flag=
9581 always_export_symbols=no
9582 archive_cmds=
9583 archive_expsym_cmds=
9584 compiler_needs_object=no
9585 enable_shared_with_static_runtimes=no
9586 export_dynamic_flag_spec=
9587 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9588 hardcode_automatic=no
9589 hardcode_direct=no
9590 hardcode_direct_absolute=no
9591 hardcode_libdir_flag_spec=
9592 hardcode_libdir_separator=
9593 hardcode_minus_L=no
9594 hardcode_shlibpath_var=unsupported
9595 inherit_rpath=no
9596 link_all_deplibs=unknown
9597 module_cmds=
9598 module_expsym_cmds=
9599 old_archive_from_new_cmds=
9600 old_archive_from_expsyms_cmds=
9601 thread_safe_flag_spec=
9602 whole_archive_flag_spec=
9603 # include_expsyms should be a list of space-separated symbols to be *always*
9604 # included in the symbol list
9605 include_expsyms=
9606 # exclude_expsyms can be an extended regexp of symbols to exclude
9607 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9608 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9609 # as well as any symbol that contains 'd'.
9610 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9611 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9612 # platforms (ab)use it in PIC code, but their linkers get confused if
9613 # the symbol is explicitly referenced. Since portable code cannot
9614 # rely on this symbol name, it's probably fine to never include it in
9615 # preloaded symbol tables.
9616 # Exclude shared library initialization/finalization symbols.
9617 extract_expsyms_cmds=
9618
9619 case $host_os in
9620 cygwin* | mingw* | pw32* | cegcc*)
9621 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9622 # When not using gcc, we currently assume that we are using
9623 # Microsoft Visual C++.
9624 if test yes != "$GCC"; then
9625 with_gnu_ld=no
9626 fi
9627 ;;
9628 interix*)
9629 # we just hope/assume this is gcc and not c89 (= MSVC++)
9630 with_gnu_ld=yes
9631 ;;
9632 openbsd* | bitrig*)
9633 with_gnu_ld=no
9634 ;;
9635 linux* | k*bsd*-gnu | gnu*)
9636 link_all_deplibs=no
9637 ;;
9638 esac
9639
9640 ld_shlibs=yes
9641
9642 # On some targets, GNU ld is compatible enough with the native linker
9643 # that we're better off using the native interface for both.
9644 lt_use_gnu_ld_interface=no
9645 if test yes = "$with_gnu_ld"; then
9646 case $host_os in
9647 aix*)
9648 # The AIX port of GNU ld has always aspired to compatibility
9649 # with the native linker. However, as the warning in the GNU ld
9650 # block says, versions before 2.19.5* couldn't really create working
9651 # shared libraries, regardless of the interface used.
9652 case `$LD -v 2>&1` in
9653 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9654 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9655 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9656 *)
9657 lt_use_gnu_ld_interface=yes
9658 ;;
9659 esac
9660 ;;
9661 *)
9662 lt_use_gnu_ld_interface=yes
9663 ;;
9664 esac
9665 fi
9666
9667 if test yes = "$lt_use_gnu_ld_interface"; then
9668 # If archive_cmds runs LD, not CC, wlarc should be empty
9669 wlarc='$wl'
9670
9671 # Set some defaults for GNU ld with shared library support. These
9672 # are reset later if shared libraries are not supported. Putting them
9673 # here allows them to be overridden if necessary.
9674 runpath_var=LD_RUN_PATH
9675 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9676 export_dynamic_flag_spec='$wl--export-dynamic'
9677 # ancient GNU ld didn't support --whole-archive et. al.
9678 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9679 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9680 else
9681 whole_archive_flag_spec=
9682 fi
9683 supports_anon_versioning=no
9684 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9685 *GNU\ gold*) supports_anon_versioning=yes ;;
9686 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9687 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9688 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9689 *\ 2.11.*) ;; # other 2.11 versions
9690 *) supports_anon_versioning=yes ;;
9691 esac
9692
9693 # See if GNU ld supports shared libraries.
9694 case $host_os in
9695 aix[3-9]*)
9696 # On AIX/PPC, the GNU linker is very broken
9697 if test ia64 != "$host_cpu"; then
9698 ld_shlibs=no
9699 cat <<_LT_EOF 1>&2
9700
9701 *** Warning: the GNU linker, at least up to release 2.19, is reported
9702 *** to be unable to reliably create shared libraries on AIX.
9703 *** Therefore, libtool is disabling shared libraries support. If you
9704 *** really care for shared libraries, you may want to install binutils
9705 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9706 *** You will then need to restart the configuration process.
9707
9708 _LT_EOF
9709 fi
9710 ;;
9711
9712 amigaos*)
9713 case $host_cpu in
9714 powerpc)
9715 # see comment about AmigaOS4 .so support
9716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9717 archive_expsym_cmds=''
9718 ;;
9719 m68k)
9720 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)'
9721 hardcode_libdir_flag_spec='-L$libdir'
9722 hardcode_minus_L=yes
9723 ;;
9724 esac
9725 ;;
9726
9727 beos*)
9728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729 allow_undefined_flag=unsupported
9730 # Joseph Beckenbach <[email protected]> says some releases of gcc
9731 # support --undefined. This deserves some investigation. FIXME
9732 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9733 else
9734 ld_shlibs=no
9735 fi
9736 ;;
9737
9738 cygwin* | mingw* | pw32* | cegcc*)
9739 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9740 # as there is no search path for DLLs.
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 export_dynamic_flag_spec='$wl--export-all-symbols'
9743 allow_undefined_flag=unsupported
9744 always_export_symbols=no
9745 enable_shared_with_static_runtimes=yes
9746 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'
9747 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9748
9749 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9751 # If the export-symbols file already is a .def file, use it as
9752 # is; otherwise, prepend EXPORTS...
9753 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9754 cp $export_symbols $output_objdir/$soname.def;
9755 else
9756 echo EXPORTS > $output_objdir/$soname.def;
9757 cat $export_symbols >> $output_objdir/$soname.def;
9758 fi~
9759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9760 else
9761 ld_shlibs=no
9762 fi
9763 ;;
9764
9765 haiku*)
9766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9767 link_all_deplibs=yes
9768 ;;
9769
9770 os2*)
9771 hardcode_libdir_flag_spec='-L$libdir'
9772 hardcode_minus_L=yes
9773 allow_undefined_flag=unsupported
9774 shrext_cmds=.dll
9775 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9776 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9777 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9778 $ECHO EXPORTS >> $output_objdir/$libname.def~
9779 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9780 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9781 emximp -o $lib $output_objdir/$libname.def'
9782 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9783 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9784 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9785 $ECHO EXPORTS >> $output_objdir/$libname.def~
9786 prefix_cmds="$SED"~
9787 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9788 prefix_cmds="$prefix_cmds -e 1d";
9789 fi~
9790 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9791 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9792 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9793 emximp -o $lib $output_objdir/$libname.def'
9794 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9795 enable_shared_with_static_runtimes=yes
9796 ;;
9797
9798 interix[3-9]*)
9799 hardcode_direct=no
9800 hardcode_shlibpath_var=no
9801 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9802 export_dynamic_flag_spec='$wl-E'
9803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9804 # Instead, shared libraries are loaded at an image base (0x10000000 by
9805 # default) and relocated if they conflict, which is a slow very memory
9806 # consuming and fragmenting process. To avoid this, we pick a random,
9807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9810 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'
9811 ;;
9812
9813 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9814 tmp_diet=no
9815 if test linux-dietlibc = "$host_os"; then
9816 case $cc_basename in
9817 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9818 esac
9819 fi
9820 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9821 && test no = "$tmp_diet"
9822 then
9823 tmp_addflag=' $pic_flag'
9824 tmp_sharedflag='-shared'
9825 case $cc_basename,$host_cpu in
9826 pgcc*) # Portland Group C compiler
9827 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'
9828 tmp_addflag=' $pic_flag'
9829 ;;
9830 pgf77* | pgf90* | pgf95* | pgfortran*)
9831 # Portland Group f77 and f90 compilers
9832 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'
9833 tmp_addflag=' $pic_flag -Mnomain' ;;
9834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9835 tmp_addflag=' -i_dynamic' ;;
9836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9837 tmp_addflag=' -i_dynamic -nofor_main' ;;
9838 ifc* | ifort*) # Intel Fortran compiler
9839 tmp_addflag=' -nofor_main' ;;
9840 lf95*) # Lahey Fortran 8.1
9841 whole_archive_flag_spec=
9842 tmp_sharedflag='--shared' ;;
9843 nagfor*) # NAGFOR 5.3
9844 tmp_sharedflag='-Wl,-shared' ;;
9845 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9846 tmp_sharedflag='-qmkshrobj'
9847 tmp_addflag= ;;
9848 nvcc*) # Cuda Compiler Driver 2.2
9849 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'
9850 compiler_needs_object=yes
9851 ;;
9852 esac
9853 case `$CC -V 2>&1 | sed 5q` in
9854 *Sun\ C*) # Sun C 5.9
9855 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'
9856 compiler_needs_object=yes
9857 tmp_sharedflag='-G' ;;
9858 *Sun\ F*) # Sun Fortran 8.3
9859 tmp_sharedflag='-G' ;;
9860 esac
9861 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9862
9863 if test yes = "$supports_anon_versioning"; then
9864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9866 echo "local: *; };" >> $output_objdir/$libname.ver~
9867 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9868 fi
9869
9870 case $cc_basename in
9871 tcc*)
9872 export_dynamic_flag_spec='-rdynamic'
9873 ;;
9874 xlf* | bgf* | bgxlf* | mpixlf*)
9875 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9876 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9877 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9878 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9879 if test yes = "$supports_anon_versioning"; then
9880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9882 echo "local: *; };" >> $output_objdir/$libname.ver~
9883 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9884 fi
9885 ;;
9886 esac
9887 else
9888 ld_shlibs=no
9889 fi
9890 ;;
9891
9892 netbsd* | netbsdelf*-gnu)
9893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9894 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9895 wlarc=
9896 else
9897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9898 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9899 fi
9900 ;;
9901
9902 solaris*)
9903 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9904 ld_shlibs=no
9905 cat <<_LT_EOF 1>&2
9906
9907 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9908 *** create shared libraries on Solaris systems. Therefore, libtool
9909 *** is disabling shared libraries support. We urge you to upgrade GNU
9910 *** binutils to release 2.9.1 or newer. Another option is to modify
9911 *** your PATH or compiler configuration so that the native linker is
9912 *** used, and then restart.
9913
9914 _LT_EOF
9915 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9917 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9918 else
9919 ld_shlibs=no
9920 fi
9921 ;;
9922
9923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9924 case `$LD -v 2>&1` in
9925 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9926 ld_shlibs=no
9927 cat <<_LT_EOF 1>&2
9928
9929 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9930 *** reliably create shared libraries on SCO systems. Therefore, libtool
9931 *** is disabling shared libraries support. We urge you to upgrade GNU
9932 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9933 *** your PATH or compiler configuration so that the native linker is
9934 *** used, and then restart.
9935
9936 _LT_EOF
9937 ;;
9938 *)
9939 # For security reasons, it is highly recommended that you always
9940 # use absolute paths for naming shared libraries, and exclude the
9941 # DT_RUNPATH tag from executables and libraries. But doing so
9942 # requires that you compile everything twice, which is a pain.
9943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9947 else
9948 ld_shlibs=no
9949 fi
9950 ;;
9951 esac
9952 ;;
9953
9954 sunos4*)
9955 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9956 wlarc=
9957 hardcode_direct=yes
9958 hardcode_shlibpath_var=no
9959 ;;
9960
9961 *)
9962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9964 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9965 else
9966 ld_shlibs=no
9967 fi
9968 ;;
9969 esac
9970
9971 if test no = "$ld_shlibs"; then
9972 runpath_var=
9973 hardcode_libdir_flag_spec=
9974 export_dynamic_flag_spec=
9975 whole_archive_flag_spec=
9976 fi
9977 else
9978 # PORTME fill in a description of your system's linker (not GNU ld)
9979 case $host_os in
9980 aix3*)
9981 allow_undefined_flag=unsupported
9982 always_export_symbols=yes
9983 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'
9984 # Note: this linker hardcodes the directories in LIBPATH if there
9985 # are no directories specified by -L.
9986 hardcode_minus_L=yes
9987 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9988 # Neither direct hardcoding nor static linking is supported with a
9989 # broken collect2.
9990 hardcode_direct=unsupported
9991 fi
9992 ;;
9993
9994 aix[4-9]*)
9995 if test ia64 = "$host_cpu"; then
9996 # On IA64, the linker does run time linking by default, so we don't
9997 # have to do anything special.
9998 aix_use_runtimelinking=no
9999 exp_sym_flag='-Bexport'
10000 no_entry_flag=
10001 else
10002 # If we're using GNU nm, then we don't want the "-C" option.
10003 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10004 # Without the "-l" option, or with the "-B" option, AIX nm treats
10005 # weak defined symbols like other global defined symbols, whereas
10006 # GNU nm marks them as "W".
10007 # While the 'weak' keyword is ignored in the Export File, we need
10008 # it in the Import File for the 'aix-soname' feature, so we have
10009 # to replace the "-B" option with "-P" for AIX nm.
10010 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10011 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'
10012 else
10013 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'
10014 fi
10015 aix_use_runtimelinking=no
10016
10017 # Test if we are trying to use run time linking or normal
10018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10019 # have runtime linking enabled, and use it for executables.
10020 # For shared libraries, we enable/disable runtime linking
10021 # depending on the kind of the shared library created -
10022 # when "with_aix_soname,aix_use_runtimelinking" is:
10023 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10024 # "aix,yes" lib.so shared, rtl:yes, for executables
10025 # lib.a static archive
10026 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10027 # lib.a(lib.so.V) shared, rtl:no, for executables
10028 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10029 # lib.a(lib.so.V) shared, rtl:no
10030 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10031 # lib.a static archive
10032 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10033 for ld_flag in $LDFLAGS; do
10034 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10035 aix_use_runtimelinking=yes
10036 break
10037 fi
10038 done
10039 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10040 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10041 # so we don't have lib.a shared libs to link our executables.
10042 # We have to force runtime linking in this case.
10043 aix_use_runtimelinking=yes
10044 LDFLAGS="$LDFLAGS -Wl,-brtl"
10045 fi
10046 ;;
10047 esac
10048
10049 exp_sym_flag='-bexport'
10050 no_entry_flag='-bnoentry'
10051 fi
10052
10053 # When large executables or shared objects are built, AIX ld can
10054 # have problems creating the table of contents. If linking a library
10055 # or program results in "error TOC overflow" add -mminimal-toc to
10056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10058
10059 archive_cmds=''
10060 hardcode_direct=yes
10061 hardcode_direct_absolute=yes
10062 hardcode_libdir_separator=':'
10063 link_all_deplibs=yes
10064 file_list_spec='$wl-f,'
10065 case $with_aix_soname,$aix_use_runtimelinking in
10066 aix,*) ;; # traditional, no import file
10067 svr4,* | *,yes) # use import file
10068 # The Import File defines what to hardcode.
10069 hardcode_direct=no
10070 hardcode_direct_absolute=no
10071 ;;
10072 esac
10073
10074 if test yes = "$GCC"; then
10075 case $host_os in aix4.[012]|aix4.[012].*)
10076 # We only want to do this on AIX 4.2 and lower, the check
10077 # below for broken collect2 doesn't work under 4.3+
10078 collect2name=`$CC -print-prog-name=collect2`
10079 if test -f "$collect2name" &&
10080 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10081 then
10082 # We have reworked collect2
10083 :
10084 else
10085 # We have old collect2
10086 hardcode_direct=unsupported
10087 # It fails to find uninstalled libraries when the uninstalled
10088 # path is not listed in the libpath. Setting hardcode_minus_L
10089 # to unsupported forces relinking
10090 hardcode_minus_L=yes
10091 hardcode_libdir_flag_spec='-L$libdir'
10092 hardcode_libdir_separator=
10093 fi
10094 ;;
10095 esac
10096 shared_flag='-shared'
10097 if test yes = "$aix_use_runtimelinking"; then
10098 shared_flag="$shared_flag "'$wl-G'
10099 fi
10100 # Need to ensure runtime linking is disabled for the traditional
10101 # shared library, or the linker may eventually find shared libraries
10102 # /with/ Import File - we do not want to mix them.
10103 shared_flag_aix='-shared'
10104 shared_flag_svr4='-shared $wl-G'
10105 else
10106 # not using gcc
10107 if test ia64 = "$host_cpu"; then
10108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10109 # chokes on -Wl,-G. The following line is correct:
10110 shared_flag='-G'
10111 else
10112 if test yes = "$aix_use_runtimelinking"; then
10113 shared_flag='$wl-G'
10114 else
10115 shared_flag='$wl-bM:SRE'
10116 fi
10117 shared_flag_aix='$wl-bM:SRE'
10118 shared_flag_svr4='$wl-G'
10119 fi
10120 fi
10121
10122 export_dynamic_flag_spec='$wl-bexpall'
10123 # It seems that -bexpall does not export symbols beginning with
10124 # underscore (_), so it is better to generate a list of symbols to export.
10125 always_export_symbols=yes
10126 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10127 # Warning - without using the other runtime loading flags (-brtl),
10128 # -berok will link without error, but may produce a broken library.
10129 allow_undefined_flag='-berok'
10130 # Determine the default libpath from the value encoded in an
10131 # empty executable.
10132 if test set = "${lt_cv_aix_libpath+set}"; then
10133 aix_libpath=$lt_cv_aix_libpath
10134 else
10135 if ${lt_cv_aix_libpath_+:} false; then :
10136 $as_echo_n "(cached) " >&6
10137 else
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10140
10141 int
10142 main ()
10143 {
10144
10145 ;
10146 return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_link "$LINENO"; then :
10150
10151 lt_aix_libpath_sed='
10152 /Import File Strings/,/^$/ {
10153 /^0/ {
10154 s/^0 *\([^ ]*\) *$/\1/
10155 p
10156 }
10157 }'
10158 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10159 # Check for a 64-bit object if we didn't find anything.
10160 if test -z "$lt_cv_aix_libpath_"; then
10161 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10162 fi
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 if test -z "$lt_cv_aix_libpath_"; then
10167 lt_cv_aix_libpath_=/usr/lib:/lib
10168 fi
10169
10170 fi
10171
10172 aix_libpath=$lt_cv_aix_libpath_
10173 fi
10174
10175 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10176 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
10177 else
10178 if test ia64 = "$host_cpu"; then
10179 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10180 allow_undefined_flag="-z nodefs"
10181 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"
10182 else
10183 # Determine the default libpath from the value encoded in an
10184 # empty executable.
10185 if test set = "${lt_cv_aix_libpath+set}"; then
10186 aix_libpath=$lt_cv_aix_libpath
10187 else
10188 if ${lt_cv_aix_libpath_+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193
10194 int
10195 main ()
10196 {
10197
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203
10204 lt_aix_libpath_sed='
10205 /Import File Strings/,/^$/ {
10206 /^0/ {
10207 s/^0 *\([^ ]*\) *$/\1/
10208 p
10209 }
10210 }'
10211 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10212 # Check for a 64-bit object if we didn't find anything.
10213 if test -z "$lt_cv_aix_libpath_"; then
10214 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10215 fi
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219 if test -z "$lt_cv_aix_libpath_"; then
10220 lt_cv_aix_libpath_=/usr/lib:/lib
10221 fi
10222
10223 fi
10224
10225 aix_libpath=$lt_cv_aix_libpath_
10226 fi
10227
10228 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10229 # Warning - without using the other run time loading flags,
10230 # -berok will link without error, but may produce a broken library.
10231 no_undefined_flag=' $wl-bernotok'
10232 allow_undefined_flag=' $wl-berok'
10233 if test yes = "$with_gnu_ld"; then
10234 # We only use this code for GNU lds that support --whole-archive.
10235 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10236 else
10237 # Exported symbols can be pulled into shared objects from archives
10238 whole_archive_flag_spec='$convenience'
10239 fi
10240 archive_cmds_need_lc=yes
10241 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10242 # -brtl affects multiple linker settings, -berok does not and is overridden later
10243 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10244 if test svr4 != "$with_aix_soname"; then
10245 # This is similar to how AIX traditionally builds its shared libraries.
10246 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'
10247 fi
10248 if test aix != "$with_aix_soname"; then
10249 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'
10250 else
10251 # used by -dlpreopen to get the symbols
10252 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10253 fi
10254 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10255 fi
10256 fi
10257 ;;
10258
10259 amigaos*)
10260 case $host_cpu in
10261 powerpc)
10262 # see comment about AmigaOS4 .so support
10263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10264 archive_expsym_cmds=''
10265 ;;
10266 m68k)
10267 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)'
10268 hardcode_libdir_flag_spec='-L$libdir'
10269 hardcode_minus_L=yes
10270 ;;
10271 esac
10272 ;;
10273
10274 bsdi[45]*)
10275 export_dynamic_flag_spec=-rdynamic
10276 ;;
10277
10278 cygwin* | mingw* | pw32* | cegcc*)
10279 # When not using gcc, we currently assume that we are using
10280 # Microsoft Visual C++.
10281 # hardcode_libdir_flag_spec is actually meaningless, as there is
10282 # no search path for DLLs.
10283 case $cc_basename in
10284 cl*)
10285 # Native MSVC
10286 hardcode_libdir_flag_spec=' '
10287 allow_undefined_flag=unsupported
10288 always_export_symbols=yes
10289 file_list_spec='@'
10290 # Tell ltmain to make .lib files, not .a files.
10291 libext=lib
10292 # Tell ltmain to make .dll files, not .so files.
10293 shrext_cmds=.dll
10294 # FIXME: Setting linknames here is a bad hack.
10295 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10296 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10297 cp "$export_symbols" "$output_objdir/$soname.def";
10298 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10299 else
10300 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10301 fi~
10302 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10303 linknames='
10304 # The linker will not automatically build a static lib if we build a DLL.
10305 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10306 enable_shared_with_static_runtimes=yes
10307 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10309 # Don't use ranlib
10310 old_postinstall_cmds='chmod 644 $oldlib'
10311 postlink_cmds='lt_outputfile="@OUTPUT@"~
10312 lt_tool_outputfile="@TOOL_OUTPUT@"~
10313 case $lt_outputfile in
10314 *.exe|*.EXE) ;;
10315 *)
10316 lt_outputfile=$lt_outputfile.exe
10317 lt_tool_outputfile=$lt_tool_outputfile.exe
10318 ;;
10319 esac~
10320 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10321 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10322 $RM "$lt_outputfile.manifest";
10323 fi'
10324 ;;
10325 *)
10326 # Assume MSVC wrapper
10327 hardcode_libdir_flag_spec=' '
10328 allow_undefined_flag=unsupported
10329 # Tell ltmain to make .lib files, not .a files.
10330 libext=lib
10331 # Tell ltmain to make .dll files, not .so files.
10332 shrext_cmds=.dll
10333 # FIXME: Setting linknames here is a bad hack.
10334 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10335 # The linker will automatically build a .lib file if we build a DLL.
10336 old_archive_from_new_cmds='true'
10337 # FIXME: Should let the user specify the lib program.
10338 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10339 enable_shared_with_static_runtimes=yes
10340 ;;
10341 esac
10342 ;;
10343
10344 darwin* | rhapsody*)
10345
10346
10347 archive_cmds_need_lc=no
10348 hardcode_direct=no
10349 hardcode_automatic=yes
10350 hardcode_shlibpath_var=unsupported
10351 if test yes = "$lt_cv_ld_force_load"; then
10352 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\"`'
10353
10354 else
10355 whole_archive_flag_spec=''
10356 fi
10357 link_all_deplibs=yes
10358 allow_undefined_flag=$_lt_dar_allow_undefined
10359 case $cc_basename in
10360 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10361 *) _lt_dar_can_shared=$GCC ;;
10362 esac
10363 if test yes = "$_lt_dar_can_shared"; then
10364 output_verbose_link_cmd=func_echo_all
10365 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10366 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10367 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"
10368 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"
10369
10370 else
10371 ld_shlibs=no
10372 fi
10373
10374 ;;
10375
10376 dgux*)
10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_libdir_flag_spec='-L$libdir'
10379 hardcode_shlibpath_var=no
10380 ;;
10381
10382 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10383 # support. Future versions do this automatically, but an explicit c++rt0.o
10384 # does not break anything, and helps significantly (at the cost of a little
10385 # extra space).
10386 freebsd2.2*)
10387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10388 hardcode_libdir_flag_spec='-R$libdir'
10389 hardcode_direct=yes
10390 hardcode_shlibpath_var=no
10391 ;;
10392
10393 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10394 freebsd2.*)
10395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_direct=yes
10397 hardcode_minus_L=yes
10398 hardcode_shlibpath_var=no
10399 ;;
10400
10401 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10402 freebsd* | dragonfly*)
10403 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10404 hardcode_libdir_flag_spec='-R$libdir'
10405 hardcode_direct=yes
10406 hardcode_shlibpath_var=no
10407 ;;
10408
10409 hpux9*)
10410 if test yes = "$GCC"; then
10411 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'
10412 else
10413 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'
10414 fi
10415 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10416 hardcode_libdir_separator=:
10417 hardcode_direct=yes
10418
10419 # hardcode_minus_L: Not really in the search PATH,
10420 # but as the default location of the library.
10421 hardcode_minus_L=yes
10422 export_dynamic_flag_spec='$wl-E'
10423 ;;
10424
10425 hpux10*)
10426 if test yes,no = "$GCC,$with_gnu_ld"; then
10427 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10428 else
10429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10430 fi
10431 if test no = "$with_gnu_ld"; then
10432 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10433 hardcode_libdir_separator=:
10434 hardcode_direct=yes
10435 hardcode_direct_absolute=yes
10436 export_dynamic_flag_spec='$wl-E'
10437 # hardcode_minus_L: Not really in the search PATH,
10438 # but as the default location of the library.
10439 hardcode_minus_L=yes
10440 fi
10441 ;;
10442
10443 hpux11*)
10444 if test yes,no = "$GCC,$with_gnu_ld"; then
10445 case $host_cpu in
10446 hppa*64*)
10447 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 ;;
10449 ia64*)
10450 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10451 ;;
10452 *)
10453 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10454 ;;
10455 esac
10456 else
10457 case $host_cpu in
10458 hppa*64*)
10459 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10460 ;;
10461 ia64*)
10462 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10463 ;;
10464 *)
10465
10466 # Older versions of the 11.00 compiler do not understand -b yet
10467 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10469 $as_echo_n "checking if $CC understands -b... " >&6; }
10470 if ${lt_cv_prog_compiler__b+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 lt_cv_prog_compiler__b=no
10474 save_LDFLAGS=$LDFLAGS
10475 LDFLAGS="$LDFLAGS -b"
10476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10478 # The linker can only warn and ignore the option if not recognized
10479 # So say no if there are warnings
10480 if test -s conftest.err; then
10481 # Append any errors to the config.log.
10482 cat conftest.err 1>&5
10483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10485 if diff conftest.exp conftest.er2 >/dev/null; then
10486 lt_cv_prog_compiler__b=yes
10487 fi
10488 else
10489 lt_cv_prog_compiler__b=yes
10490 fi
10491 fi
10492 $RM -r conftest*
10493 LDFLAGS=$save_LDFLAGS
10494
10495 fi
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10497 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10498
10499 if test yes = "$lt_cv_prog_compiler__b"; then
10500 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10501 else
10502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10503 fi
10504
10505 ;;
10506 esac
10507 fi
10508 if test no = "$with_gnu_ld"; then
10509 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10510 hardcode_libdir_separator=:
10511
10512 case $host_cpu in
10513 hppa*64*|ia64*)
10514 hardcode_direct=no
10515 hardcode_shlibpath_var=no
10516 ;;
10517 *)
10518 hardcode_direct=yes
10519 hardcode_direct_absolute=yes
10520 export_dynamic_flag_spec='$wl-E'
10521
10522 # hardcode_minus_L: Not really in the search PATH,
10523 # but as the default location of the library.
10524 hardcode_minus_L=yes
10525 ;;
10526 esac
10527 fi
10528 ;;
10529
10530 irix5* | irix6* | nonstopux*)
10531 if test yes = "$GCC"; then
10532 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'
10533 # Try to use the -exported_symbol ld option, if it does not
10534 # work, assume that -exports_file does not work either and
10535 # implicitly export all symbols.
10536 # This should be the same for all languages, so no per-tag cache variable.
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10538 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10539 if ${lt_cv_irix_exported_symbol+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 save_LDFLAGS=$LDFLAGS
10543 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 int foo (void) { return 0; }
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 lt_cv_irix_exported_symbol=yes
10550 else
10551 lt_cv_irix_exported_symbol=no
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LDFLAGS=$save_LDFLAGS
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10558 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10559 if test yes = "$lt_cv_irix_exported_symbol"; then
10560 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'
10561 fi
10562 link_all_deplibs=no
10563 else
10564 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'
10565 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'
10566 fi
10567 archive_cmds_need_lc='no'
10568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10569 hardcode_libdir_separator=:
10570 inherit_rpath=yes
10571 link_all_deplibs=yes
10572 ;;
10573
10574 linux*)
10575 case $cc_basename in
10576 tcc*)
10577 # Fabrice Bellard et al's Tiny C Compiler
10578 ld_shlibs=yes
10579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10580 ;;
10581 esac
10582 ;;
10583
10584 netbsd* | netbsdelf*-gnu)
10585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10587 else
10588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10589 fi
10590 hardcode_libdir_flag_spec='-R$libdir'
10591 hardcode_direct=yes
10592 hardcode_shlibpath_var=no
10593 ;;
10594
10595 newsos6)
10596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10597 hardcode_direct=yes
10598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10599 hardcode_libdir_separator=:
10600 hardcode_shlibpath_var=no
10601 ;;
10602
10603 *nto* | *qnx*)
10604 ;;
10605
10606 openbsd* | bitrig*)
10607 if test -f /usr/libexec/ld.so; then
10608 hardcode_direct=yes
10609 hardcode_shlibpath_var=no
10610 hardcode_direct_absolute=yes
10611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10614 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10615 export_dynamic_flag_spec='$wl-E'
10616 else
10617 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10618 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10619 fi
10620 else
10621 ld_shlibs=no
10622 fi
10623 ;;
10624
10625 os2*)
10626 hardcode_libdir_flag_spec='-L$libdir'
10627 hardcode_minus_L=yes
10628 allow_undefined_flag=unsupported
10629 shrext_cmds=.dll
10630 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10631 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10632 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10633 $ECHO EXPORTS >> $output_objdir/$libname.def~
10634 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10636 emximp -o $lib $output_objdir/$libname.def'
10637 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10638 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10639 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10640 $ECHO EXPORTS >> $output_objdir/$libname.def~
10641 prefix_cmds="$SED"~
10642 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10643 prefix_cmds="$prefix_cmds -e 1d";
10644 fi~
10645 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10646 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10647 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10648 emximp -o $lib $output_objdir/$libname.def'
10649 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10650 enable_shared_with_static_runtimes=yes
10651 ;;
10652
10653 osf3*)
10654 if test yes = "$GCC"; then
10655 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10656 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'
10657 else
10658 allow_undefined_flag=' -expect_unresolved \*'
10659 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'
10660 fi
10661 archive_cmds_need_lc='no'
10662 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10663 hardcode_libdir_separator=:
10664 ;;
10665
10666 osf4* | osf5*) # as osf3* with the addition of -msym flag
10667 if test yes = "$GCC"; then
10668 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10669 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'
10670 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10671 else
10672 allow_undefined_flag=' -expect_unresolved \*'
10673 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'
10674 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~
10675 $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'
10676
10677 # Both c and cxx compiler support -rpath directly
10678 hardcode_libdir_flag_spec='-rpath $libdir'
10679 fi
10680 archive_cmds_need_lc='no'
10681 hardcode_libdir_separator=:
10682 ;;
10683
10684 solaris*)
10685 no_undefined_flag=' -z defs'
10686 if test yes = "$GCC"; then
10687 wlarc='$wl'
10688 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10689 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10690 $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'
10691 else
10692 case `$CC -V 2>&1` in
10693 *"Compilers 5.0"*)
10694 wlarc=''
10695 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10696 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10697 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10698 ;;
10699 *)
10700 wlarc='$wl'
10701 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10703 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10704 ;;
10705 esac
10706 fi
10707 hardcode_libdir_flag_spec='-R$libdir'
10708 hardcode_shlibpath_var=no
10709 case $host_os in
10710 solaris2.[0-5] | solaris2.[0-5].*) ;;
10711 *)
10712 # The compiler driver will combine and reorder linker options,
10713 # but understands '-z linker_flag'. GCC discards it without '$wl',
10714 # but is careful enough not to reorder.
10715 # Supported since Solaris 2.6 (maybe 2.5.1?)
10716 if test yes = "$GCC"; then
10717 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10718 else
10719 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10720 fi
10721 ;;
10722 esac
10723 link_all_deplibs=yes
10724 ;;
10725
10726 sunos4*)
10727 if test sequent = "$host_vendor"; then
10728 # Use $CC to link under sequent, because it throws in some extra .o
10729 # files that make .init and .fini sections work.
10730 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10731 else
10732 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10733 fi
10734 hardcode_libdir_flag_spec='-L$libdir'
10735 hardcode_direct=yes
10736 hardcode_minus_L=yes
10737 hardcode_shlibpath_var=no
10738 ;;
10739
10740 sysv4)
10741 case $host_vendor in
10742 sni)
10743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10744 hardcode_direct=yes # is this really true???
10745 ;;
10746 siemens)
10747 ## LD is ld it makes a PLAMLIB
10748 ## CC just makes a GrossModule.
10749 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10750 reload_cmds='$CC -r -o $output$reload_objs'
10751 hardcode_direct=no
10752 ;;
10753 motorola)
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10756 ;;
10757 esac
10758 runpath_var='LD_RUN_PATH'
10759 hardcode_shlibpath_var=no
10760 ;;
10761
10762 sysv4.3*)
10763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764 hardcode_shlibpath_var=no
10765 export_dynamic_flag_spec='-Bexport'
10766 ;;
10767
10768 sysv4*MP*)
10769 if test -d /usr/nec; then
10770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771 hardcode_shlibpath_var=no
10772 runpath_var=LD_RUN_PATH
10773 hardcode_runpath_var=yes
10774 ld_shlibs=yes
10775 fi
10776 ;;
10777
10778 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10779 no_undefined_flag='$wl-z,text'
10780 archive_cmds_need_lc=no
10781 hardcode_shlibpath_var=no
10782 runpath_var='LD_RUN_PATH'
10783
10784 if test yes = "$GCC"; then
10785 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 else
10788 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 fi
10791 ;;
10792
10793 sysv5* | sco3.2v5* | sco5v6*)
10794 # Note: We CANNOT use -z defs as we might desire, because we do not
10795 # link with -lc, and that would cause any symbols used from libc to
10796 # always be unresolved, which means just about no library would
10797 # ever link correctly. If we're not using GNU ld we use -z text
10798 # though, which does catch some bad symbols but isn't as heavy-handed
10799 # as -z defs.
10800 no_undefined_flag='$wl-z,text'
10801 allow_undefined_flag='$wl-z,nodefs'
10802 archive_cmds_need_lc=no
10803 hardcode_shlibpath_var=no
10804 hardcode_libdir_flag_spec='$wl-R,$libdir'
10805 hardcode_libdir_separator=':'
10806 link_all_deplibs=yes
10807 export_dynamic_flag_spec='$wl-Bexport'
10808 runpath_var='LD_RUN_PATH'
10809
10810 if test yes = "$GCC"; then
10811 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 else
10814 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 fi
10817 ;;
10818
10819 uts4*)
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_libdir_flag_spec='-L$libdir'
10822 hardcode_shlibpath_var=no
10823 ;;
10824
10825 *)
10826 ld_shlibs=no
10827 ;;
10828 esac
10829
10830 if test sni = "$host_vendor"; then
10831 case $host in
10832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10833 export_dynamic_flag_spec='$wl-Blargedynsym'
10834 ;;
10835 esac
10836 fi
10837 fi
10838
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10840 $as_echo "$ld_shlibs" >&6; }
10841 test no = "$ld_shlibs" && can_build_shared=no
10842
10843 with_gnu_ld=$with_gnu_ld
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859 #
10860 # Do we need to explicitly link libc?
10861 #
10862 case "x$archive_cmds_need_lc" in
10863 x|xyes)
10864 # Assume -lc should be added
10865 archive_cmds_need_lc=yes
10866
10867 if test yes,yes = "$GCC,$enable_shared"; then
10868 case $archive_cmds in
10869 *'~'*)
10870 # FIXME: we may have to deal with multi-command sequences.
10871 ;;
10872 '$CC '*)
10873 # Test whether the compiler implicitly links with -lc since on some
10874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10875 # to ld, don't add -lc before -lgcc.
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10877 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10878 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 $RM conftest*
10882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10883
10884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10885 (eval $ac_compile) 2>&5
10886 ac_status=$?
10887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10888 test $ac_status = 0; } 2>conftest.err; then
10889 soname=conftest
10890 lib=conftest
10891 libobjs=conftest.$ac_objext
10892 deplibs=
10893 wl=$lt_prog_compiler_wl
10894 pic_flag=$lt_prog_compiler_pic
10895 compiler_flags=-v
10896 linker_flags=-v
10897 verstring=
10898 output_objdir=.
10899 libname=conftest
10900 lt_save_allow_undefined_flag=$allow_undefined_flag
10901 allow_undefined_flag=
10902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10903 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10904 ac_status=$?
10905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10906 test $ac_status = 0; }
10907 then
10908 lt_cv_archive_cmds_need_lc=no
10909 else
10910 lt_cv_archive_cmds_need_lc=yes
10911 fi
10912 allow_undefined_flag=$lt_save_allow_undefined_flag
10913 else
10914 cat conftest.err 1>&5
10915 fi
10916 $RM conftest*
10917
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10920 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10921 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10922 ;;
10923 esac
10924 fi
10925 ;;
10926 esac
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11081
11082 if test yes = "$GCC"; then
11083 case $host_os in
11084 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11085 *) lt_awk_arg='/^libraries:/' ;;
11086 esac
11087 case $host_os in
11088 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11089 *) lt_sed_strip_eq='s|=/|/|g' ;;
11090 esac
11091 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11092 case $lt_search_path_spec in
11093 *\;*)
11094 # if the path contains ";" then we assume it to be the separator
11095 # otherwise default to the standard path separator (i.e. ":") - it is
11096 # assumed that no part of a normal pathname contains ";" but that should
11097 # okay in the real world where ";" in dirpaths is itself problematic.
11098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11099 ;;
11100 *)
11101 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11102 ;;
11103 esac
11104 # Ok, now we have the path, separated by spaces, we can step through it
11105 # and add multilib dir if necessary...
11106 lt_tmp_lt_search_path_spec=
11107 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11108 # ...but if some path component already ends with the multilib dir we assume
11109 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11110 case "$lt_multi_os_dir; $lt_search_path_spec " in
11111 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11112 lt_multi_os_dir=
11113 ;;
11114 esac
11115 for lt_sys_path in $lt_search_path_spec; do
11116 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11118 elif test -n "$lt_multi_os_dir"; then
11119 test -d "$lt_sys_path" && \
11120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11121 fi
11122 done
11123 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11124 BEGIN {RS = " "; FS = "/|\n";} {
11125 lt_foo = "";
11126 lt_count = 0;
11127 for (lt_i = NF; lt_i > 0; lt_i--) {
11128 if ($lt_i != "" && $lt_i != ".") {
11129 if ($lt_i == "..") {
11130 lt_count++;
11131 } else {
11132 if (lt_count == 0) {
11133 lt_foo = "/" $lt_i lt_foo;
11134 } else {
11135 lt_count--;
11136 }
11137 }
11138 }
11139 }
11140 if (lt_foo != "") { lt_freq[lt_foo]++; }
11141 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11142 }'`
11143 # AWK program above erroneously prepends '/' to C:/dos/paths
11144 # for these hosts.
11145 case $host_os in
11146 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11147 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11148 esac
11149 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11150 else
11151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11152 fi
11153 library_names_spec=
11154 libname_spec='lib$name'
11155 soname_spec=
11156 shrext_cmds=.so
11157 postinstall_cmds=
11158 postuninstall_cmds=
11159 finish_cmds=
11160 finish_eval=
11161 shlibpath_var=
11162 shlibpath_overrides_runpath=unknown
11163 version_type=none
11164 dynamic_linker="$host_os ld.so"
11165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11166 need_lib_prefix=unknown
11167 hardcode_into_libs=no
11168
11169 # when you set need_version to no, make sure it does not cause -set_version
11170 # flags to be left without arguments
11171 need_version=unknown
11172
11173
11174
11175 case $host_os in
11176 aix3*)
11177 version_type=linux # correct to gnu/linux during the next big refactor
11178 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11179 shlibpath_var=LIBPATH
11180
11181 # AIX 3 has no versioning support, so we append a major version to the name.
11182 soname_spec='$libname$release$shared_ext$major'
11183 ;;
11184
11185 aix[4-9]*)
11186 version_type=linux # correct to gnu/linux during the next big refactor
11187 need_lib_prefix=no
11188 need_version=no
11189 hardcode_into_libs=yes
11190 if test ia64 = "$host_cpu"; then
11191 # AIX 5 supports IA64
11192 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 else
11195 # With GCC up to 2.95.x, collect2 would create an import file
11196 # for dependence libraries. The import file would start with
11197 # the line '#! .'. This would cause the generated library to
11198 # depend on '.', always an invalid library. This was fixed in
11199 # development snapshots of GCC prior to 3.0.
11200 case $host_os in
11201 aix4 | aix4.[01] | aix4.[01].*)
11202 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11203 echo ' yes '
11204 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11205 :
11206 else
11207 can_build_shared=no
11208 fi
11209 ;;
11210 esac
11211 # Using Import Files as archive members, it is possible to support
11212 # filename-based versioning of shared library archives on AIX. While
11213 # this would work for both with and without runtime linking, it will
11214 # prevent static linking of such archives. So we do filename-based
11215 # shared library versioning with .so extension only, which is used
11216 # when both runtime linking and shared linking is enabled.
11217 # Unfortunately, runtime linking may impact performance, so we do
11218 # not want this to be the default eventually. Also, we use the
11219 # versioned .so libs for executables only if there is the -brtl
11220 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11221 # To allow for filename-based versioning support, we need to create
11222 # libNAME.so.V as an archive file, containing:
11223 # *) an Import File, referring to the versioned filename of the
11224 # archive as well as the shared archive member, telling the
11225 # bitwidth (32 or 64) of that shared object, and providing the
11226 # list of exported symbols of that shared object, eventually
11227 # decorated with the 'weak' keyword
11228 # *) the shared object with the F_LOADONLY flag set, to really avoid
11229 # it being seen by the linker.
11230 # At run time we better use the real file rather than another symlink,
11231 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11232
11233 case $with_aix_soname,$aix_use_runtimelinking in
11234 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11235 # soname into executable. Probably we can add versioning support to
11236 # collect2, so additional links can be useful in future.
11237 aix,yes) # traditional libtool
11238 dynamic_linker='AIX unversionable lib.so'
11239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11240 # instead of lib<name>.a to let people know that these are not
11241 # typical AIX shared libraries.
11242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11243 ;;
11244 aix,no) # traditional AIX only
11245 dynamic_linker='AIX lib.a(lib.so.V)'
11246 # We preserve .a as extension for shared libraries through AIX4.2
11247 # and later when we are not doing run time linking.
11248 library_names_spec='$libname$release.a $libname.a'
11249 soname_spec='$libname$release$shared_ext$major'
11250 ;;
11251 svr4,*) # full svr4 only
11252 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11253 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11254 # We do not specify a path in Import Files, so LIBPATH fires.
11255 shlibpath_overrides_runpath=yes
11256 ;;
11257 *,yes) # both, prefer svr4
11258 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11259 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11260 # unpreferred sharedlib libNAME.a needs extra handling
11261 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"'
11262 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"'
11263 # We do not specify a path in Import Files, so LIBPATH fires.
11264 shlibpath_overrides_runpath=yes
11265 ;;
11266 *,no) # both, prefer aix
11267 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11268 library_names_spec='$libname$release.a $libname.a'
11269 soname_spec='$libname$release$shared_ext$major'
11270 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11271 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)'
11272 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"'
11273 ;;
11274 esac
11275 shlibpath_var=LIBPATH
11276 fi
11277 ;;
11278
11279 amigaos*)
11280 case $host_cpu in
11281 powerpc)
11282 # Since July 2007 AmigaOS4 officially supports .so libraries.
11283 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11285 ;;
11286 m68k)
11287 library_names_spec='$libname.ixlibrary $libname.a'
11288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11289 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'
11290 ;;
11291 esac
11292 ;;
11293
11294 beos*)
11295 library_names_spec='$libname$shared_ext'
11296 dynamic_linker="$host_os ld.so"
11297 shlibpath_var=LIBRARY_PATH
11298 ;;
11299
11300 bsdi[45]*)
11301 version_type=linux # correct to gnu/linux during the next big refactor
11302 need_version=no
11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304 soname_spec='$libname$release$shared_ext$major'
11305 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11308 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11309 # the default ld.so.conf also contains /usr/contrib/lib and
11310 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11311 # libtool to hard-code these into programs
11312 ;;
11313
11314 cygwin* | mingw* | pw32* | cegcc*)
11315 version_type=windows
11316 shrext_cmds=.dll
11317 need_version=no
11318 need_lib_prefix=no
11319
11320 case $GCC,$cc_basename in
11321 yes,*)
11322 # gcc
11323 library_names_spec='$libname.dll.a'
11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325 postinstall_cmds='base_file=`basename \$file`~
11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11327 dldir=$destdir/`dirname \$dlpath`~
11328 test -d \$dldir || mkdir -p \$dldir~
11329 $install_prog $dir/$dlname \$dldir/$dlname~
11330 chmod a+x \$dldir/$dlname~
11331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11333 fi'
11334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11335 dlpath=$dir/\$dldll~
11336 $RM \$dlpath'
11337 shlibpath_overrides_runpath=yes
11338
11339 case $host_os in
11340 cygwin*)
11341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11342 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11343
11344 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11345 ;;
11346 mingw* | cegcc*)
11347 # MinGW DLLs use traditional 'lib' prefix
11348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11349 ;;
11350 pw32*)
11351 # pw32 DLLs use 'pw' prefix rather than 'lib'
11352 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11353 ;;
11354 esac
11355 dynamic_linker='Win32 ld.exe'
11356 ;;
11357
11358 *,cl*)
11359 # Native MSVC
11360 libname_spec='$name'
11361 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11362 library_names_spec='$libname.dll.lib'
11363
11364 case $build_os in
11365 mingw*)
11366 sys_lib_search_path_spec=
11367 lt_save_ifs=$IFS
11368 IFS=';'
11369 for lt_path in $LIB
11370 do
11371 IFS=$lt_save_ifs
11372 # Let DOS variable expansion print the short 8.3 style file name.
11373 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11374 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11375 done
11376 IFS=$lt_save_ifs
11377 # Convert to MSYS style.
11378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11379 ;;
11380 cygwin*)
11381 # Convert to unix form, then to dos form, then back to unix form
11382 # but this time dos style (no spaces!) so that the unix form looks
11383 # like /cygdrive/c/PROGRA~1:/cygdr...
11384 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11385 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11386 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11387 ;;
11388 *)
11389 sys_lib_search_path_spec=$LIB
11390 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11391 # It is most probably a Windows format PATH.
11392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11393 else
11394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11395 fi
11396 # FIXME: find the short name or the path components, as spaces are
11397 # common. (e.g. "Program Files" -> "PROGRA~1")
11398 ;;
11399 esac
11400
11401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11402 postinstall_cmds='base_file=`basename \$file`~
11403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11404 dldir=$destdir/`dirname \$dlpath`~
11405 test -d \$dldir || mkdir -p \$dldir~
11406 $install_prog $dir/$dlname \$dldir/$dlname'
11407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11408 dlpath=$dir/\$dldll~
11409 $RM \$dlpath'
11410 shlibpath_overrides_runpath=yes
11411 dynamic_linker='Win32 link.exe'
11412 ;;
11413
11414 *)
11415 # Assume MSVC wrapper
11416 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11417 dynamic_linker='Win32 ld.exe'
11418 ;;
11419 esac
11420 # FIXME: first we should search . and the directory the executable is in
11421 shlibpath_var=PATH
11422 ;;
11423
11424 darwin* | rhapsody*)
11425 dynamic_linker="$host_os dyld"
11426 version_type=darwin
11427 need_lib_prefix=no
11428 need_version=no
11429 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11430 soname_spec='$libname$release$major$shared_ext'
11431 shlibpath_overrides_runpath=yes
11432 shlibpath_var=DYLD_LIBRARY_PATH
11433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11434
11435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11437 ;;
11438
11439 dgux*)
11440 version_type=linux # correct to gnu/linux during the next big refactor
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 soname_spec='$libname$release$shared_ext$major'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 ;;
11447
11448 freebsd* | dragonfly*)
11449 # DragonFly does not have aout. When/if they implement a new
11450 # versioning mechanism, adjust this.
11451 if test -x /usr/bin/objformat; then
11452 objformat=`/usr/bin/objformat`
11453 else
11454 case $host_os in
11455 freebsd[23].*) objformat=aout ;;
11456 *) objformat=elf ;;
11457 esac
11458 fi
11459 version_type=freebsd-$objformat
11460 case $version_type in
11461 freebsd-elf*)
11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463 soname_spec='$libname$release$shared_ext$major'
11464 need_version=no
11465 need_lib_prefix=no
11466 ;;
11467 freebsd-*)
11468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11469 need_version=yes
11470 ;;
11471 esac
11472 shlibpath_var=LD_LIBRARY_PATH
11473 case $host_os in
11474 freebsd2.*)
11475 shlibpath_overrides_runpath=yes
11476 ;;
11477 freebsd3.[01]* | freebsdelf3.[01]*)
11478 shlibpath_overrides_runpath=yes
11479 hardcode_into_libs=yes
11480 ;;
11481 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11482 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11483 shlibpath_overrides_runpath=no
11484 hardcode_into_libs=yes
11485 ;;
11486 *) # from 4.6 on, and DragonFly
11487 shlibpath_overrides_runpath=yes
11488 hardcode_into_libs=yes
11489 ;;
11490 esac
11491 ;;
11492
11493 haiku*)
11494 version_type=linux # correct to gnu/linux during the next big refactor
11495 need_lib_prefix=no
11496 need_version=no
11497 dynamic_linker="$host_os runtime_loader"
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 soname_spec='$libname$release$shared_ext$major'
11500 shlibpath_var=LIBRARY_PATH
11501 shlibpath_overrides_runpath=no
11502 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11503 hardcode_into_libs=yes
11504 ;;
11505
11506 hpux9* | hpux10* | hpux11*)
11507 # Give a soname corresponding to the major version so that dld.sl refuses to
11508 # link against other versions.
11509 version_type=sunos
11510 need_lib_prefix=no
11511 need_version=no
11512 case $host_cpu in
11513 ia64*)
11514 shrext_cmds='.so'
11515 hardcode_into_libs=yes
11516 dynamic_linker="$host_os dld.so"
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11520 soname_spec='$libname$release$shared_ext$major'
11521 if test 32 = "$HPUX_IA64_MODE"; then
11522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11523 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11524 else
11525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11526 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11527 fi
11528 ;;
11529 hppa*64*)
11530 shrext_cmds='.sl'
11531 hardcode_into_libs=yes
11532 dynamic_linker="$host_os dld.sl"
11533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11536 soname_spec='$libname$release$shared_ext$major'
11537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11539 ;;
11540 *)
11541 shrext_cmds='.sl'
11542 dynamic_linker="$host_os dld.sl"
11543 shlibpath_var=SHLIB_PATH
11544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11546 soname_spec='$libname$release$shared_ext$major'
11547 ;;
11548 esac
11549 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11550 postinstall_cmds='chmod 555 $lib'
11551 # or fails outright, so override atomically:
11552 install_override_mode=555
11553 ;;
11554
11555 interix[3-9]*)
11556 version_type=linux # correct to gnu/linux during the next big refactor
11557 need_lib_prefix=no
11558 need_version=no
11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11560 soname_spec='$libname$release$shared_ext$major'
11561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=no
11564 hardcode_into_libs=yes
11565 ;;
11566
11567 irix5* | irix6* | nonstopux*)
11568 case $host_os in
11569 nonstopux*) version_type=nonstopux ;;
11570 *)
11571 if test yes = "$lt_cv_prog_gnu_ld"; then
11572 version_type=linux # correct to gnu/linux during the next big refactor
11573 else
11574 version_type=irix
11575 fi ;;
11576 esac
11577 need_lib_prefix=no
11578 need_version=no
11579 soname_spec='$libname$release$shared_ext$major'
11580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11581 case $host_os in
11582 irix5* | nonstopux*)
11583 libsuff= shlibsuff=
11584 ;;
11585 *)
11586 case $LD in # libtool.m4 will add one of these switches to LD
11587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11588 libsuff= shlibsuff= libmagic=32-bit;;
11589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11590 libsuff=32 shlibsuff=N32 libmagic=N32;;
11591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11593 *) libsuff= shlibsuff= libmagic=never-match;;
11594 esac
11595 ;;
11596 esac
11597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11598 shlibpath_overrides_runpath=no
11599 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11600 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11601 hardcode_into_libs=yes
11602 ;;
11603
11604 # No shared lib support for Linux oldld, aout, or coff.
11605 linux*oldld* | linux*aout* | linux*coff*)
11606 dynamic_linker=no
11607 ;;
11608
11609 linux*android*)
11610 version_type=none # Android doesn't support versioned libraries.
11611 need_lib_prefix=no
11612 need_version=no
11613 library_names_spec='$libname$release$shared_ext'
11614 soname_spec='$libname$release$shared_ext'
11615 finish_cmds=
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes
11618
11619 # This implies no fast_install, which is unacceptable.
11620 # Some rework will be needed to allow for fast_install
11621 # before this can be enabled.
11622 hardcode_into_libs=yes
11623
11624 dynamic_linker='Android linker'
11625 # Don't embed -rpath directories since the linker doesn't support them.
11626 hardcode_libdir_flag_spec='-L$libdir'
11627 ;;
11628
11629 # This must be glibc/ELF.
11630 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11631 version_type=linux # correct to gnu/linux during the next big refactor
11632 need_lib_prefix=no
11633 need_version=no
11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635 soname_spec='$libname$release$shared_ext$major'
11636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=no
11639
11640 # Some binutils ld are patched to set DT_RUNPATH
11641 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 lt_cv_shlibpath_overrides_runpath=no
11645 save_LDFLAGS=$LDFLAGS
11646 save_libdir=$libdir
11647 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11648 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11651
11652 int
11653 main ()
11654 {
11655
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11662 lt_cv_shlibpath_overrides_runpath=yes
11663 fi
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LDFLAGS=$save_LDFLAGS
11668 libdir=$save_libdir
11669
11670 fi
11671
11672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11673
11674 # This implies no fast_install, which is unacceptable.
11675 # Some rework will be needed to allow for fast_install
11676 # before this can be enabled.
11677 hardcode_into_libs=yes
11678
11679 # Ideally, we could use ldconfig to report *all* directores which are
11680 # searched for libraries, however this is still not possible. Aside from not
11681 # being certain /sbin/ldconfig is available, command
11682 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11683 # even though it is searched at run-time. Try to do the best guess by
11684 # appending ld.so.conf contents (and includes) to the search path.
11685 if test -f /etc/ld.so.conf; then
11686 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' ' '`
11687 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11688 fi
11689
11690 # We used to test for /lib/ld.so.1 and disable shared libraries on
11691 # powerpc, because MkLinux only supported shared libraries with the
11692 # GNU dynamic linker. Since this was broken with cross compilers,
11693 # most powerpc-linux boxes support dynamic linking these days and
11694 # people can always --disable-shared, the test was removed, and we
11695 # assume the GNU/Linux dynamic linker is in use.
11696 dynamic_linker='GNU/Linux ld.so'
11697 ;;
11698
11699 netbsdelf*-gnu)
11700 version_type=linux
11701 need_lib_prefix=no
11702 need_version=no
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath=no
11707 hardcode_into_libs=yes
11708 dynamic_linker='NetBSD ld.elf_so'
11709 ;;
11710
11711 netbsd*)
11712 version_type=sunos
11713 need_lib_prefix=no
11714 need_version=no
11715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11718 dynamic_linker='NetBSD (a.out) ld.so'
11719 else
11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721 soname_spec='$libname$release$shared_ext$major'
11722 dynamic_linker='NetBSD ld.elf_so'
11723 fi
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=yes
11726 hardcode_into_libs=yes
11727 ;;
11728
11729 newsos6)
11730 version_type=linux # correct to gnu/linux during the next big refactor
11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 shlibpath_overrides_runpath=yes
11734 ;;
11735
11736 *nto* | *qnx*)
11737 version_type=qnx
11738 need_lib_prefix=no
11739 need_version=no
11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11741 soname_spec='$libname$release$shared_ext$major'
11742 shlibpath_var=LD_LIBRARY_PATH
11743 shlibpath_overrides_runpath=no
11744 hardcode_into_libs=yes
11745 dynamic_linker='ldqnx.so'
11746 ;;
11747
11748 openbsd* | bitrig*)
11749 version_type=sunos
11750 sys_lib_dlsearch_path_spec=/usr/lib
11751 need_lib_prefix=no
11752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11753 need_version=no
11754 else
11755 need_version=yes
11756 fi
11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=yes
11761 ;;
11762
11763 os2*)
11764 libname_spec='$name'
11765 version_type=windows
11766 shrext_cmds=.dll
11767 need_version=no
11768 need_lib_prefix=no
11769 # OS/2 can only load a DLL with a base name of 8 characters or less.
11770 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11771 v=$($ECHO $release$versuffix | tr -d .-);
11772 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11773 $ECHO $n$v`$shared_ext'
11774 library_names_spec='${libname}_dll.$libext'
11775 dynamic_linker='OS/2 ld.exe'
11776 shlibpath_var=BEGINLIBPATH
11777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11779 postinstall_cmds='base_file=`basename \$file`~
11780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11781 dldir=$destdir/`dirname \$dlpath`~
11782 test -d \$dldir || mkdir -p \$dldir~
11783 $install_prog $dir/$dlname \$dldir/$dlname~
11784 chmod a+x \$dldir/$dlname~
11785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11787 fi'
11788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11789 dlpath=$dir/\$dldll~
11790 $RM \$dlpath'
11791 ;;
11792
11793 osf3* | osf4* | osf5*)
11794 version_type=osf
11795 need_lib_prefix=no
11796 need_version=no
11797 soname_spec='$libname$release$shared_ext$major'
11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11802 ;;
11803
11804 rdos*)
11805 dynamic_linker=no
11806 ;;
11807
11808 solaris*)
11809 version_type=linux # correct to gnu/linux during the next big refactor
11810 need_lib_prefix=no
11811 need_version=no
11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813 soname_spec='$libname$release$shared_ext$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=yes
11816 hardcode_into_libs=yes
11817 # ldd complains unless libraries are executable
11818 postinstall_cmds='chmod +x $lib'
11819 ;;
11820
11821 sunos4*)
11822 version_type=sunos
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=yes
11827 if test yes = "$with_gnu_ld"; then
11828 need_lib_prefix=no
11829 fi
11830 need_version=yes
11831 ;;
11832
11833 sysv4 | sysv4.3*)
11834 version_type=linux # correct to gnu/linux during the next big refactor
11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836 soname_spec='$libname$release$shared_ext$major'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 case $host_vendor in
11839 sni)
11840 shlibpath_overrides_runpath=no
11841 need_lib_prefix=no
11842 runpath_var=LD_RUN_PATH
11843 ;;
11844 siemens)
11845 need_lib_prefix=no
11846 ;;
11847 motorola)
11848 need_lib_prefix=no
11849 need_version=no
11850 shlibpath_overrides_runpath=no
11851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11852 ;;
11853 esac
11854 ;;
11855
11856 sysv4*MP*)
11857 if test -d /usr/nec; then
11858 version_type=linux # correct to gnu/linux during the next big refactor
11859 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11860 soname_spec='$libname$shared_ext.$major'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 fi
11863 ;;
11864
11865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11866 version_type=sco
11867 need_lib_prefix=no
11868 need_version=no
11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11870 soname_spec='$libname$release$shared_ext$major'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 shlibpath_overrides_runpath=yes
11873 hardcode_into_libs=yes
11874 if test yes = "$with_gnu_ld"; then
11875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11876 else
11877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11878 case $host_os in
11879 sco3.2v5*)
11880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11881 ;;
11882 esac
11883 fi
11884 sys_lib_dlsearch_path_spec='/usr/lib'
11885 ;;
11886
11887 tpf*)
11888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11889 version_type=linux # correct to gnu/linux during the next big refactor
11890 need_lib_prefix=no
11891 need_version=no
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=no
11895 hardcode_into_libs=yes
11896 ;;
11897
11898 uts4*)
11899 version_type=linux # correct to gnu/linux during the next big refactor
11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901 soname_spec='$libname$release$shared_ext$major'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 ;;
11904
11905 *)
11906 dynamic_linker=no
11907 ;;
11908 esac
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11910 $as_echo "$dynamic_linker" >&6; }
11911 test no = "$dynamic_linker" && can_build_shared=no
11912
11913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11914 if test yes = "$GCC"; then
11915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11916 fi
11917
11918 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11919 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11920 fi
11921
11922 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11923 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11924 fi
11925
11926 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11927 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11928
11929 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11930 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11931
11932 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11933 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12032 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12033 hardcode_action=
12034 if test -n "$hardcode_libdir_flag_spec" ||
12035 test -n "$runpath_var" ||
12036 test yes = "$hardcode_automatic"; then
12037
12038 # We can hardcode non-existent directories.
12039 if test no != "$hardcode_direct" &&
12040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12041 # have to relink, otherwise we might link with an installed library
12042 # when we should be linking with a yet-to-be-installed one
12043 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12044 test no != "$hardcode_minus_L"; then
12045 # Linking always hardcodes the temporary library directory.
12046 hardcode_action=relink
12047 else
12048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12049 hardcode_action=immediate
12050 fi
12051 else
12052 # We cannot hardcode anything, or else we can only hardcode existing
12053 # directories.
12054 hardcode_action=unsupported
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12057 $as_echo "$hardcode_action" >&6; }
12058
12059 if test relink = "$hardcode_action" ||
12060 test yes = "$inherit_rpath"; then
12061 # Fast installation is not supported
12062 enable_fast_install=no
12063 elif test yes = "$shlibpath_overrides_runpath" ||
12064 test no = "$enable_shared"; then
12065 # Fast installation is not necessary
12066 enable_fast_install=needless
12067 fi
12068
12069
12070
12071
12072
12073
12074 if test yes != "$enable_dlopen"; then
12075 enable_dlopen=unknown
12076 enable_dlopen_self=unknown
12077 enable_dlopen_self_static=unknown
12078 else
12079 lt_cv_dlopen=no
12080 lt_cv_dlopen_libs=
12081
12082 case $host_os in
12083 beos*)
12084 lt_cv_dlopen=load_add_on
12085 lt_cv_dlopen_libs=
12086 lt_cv_dlopen_self=yes
12087 ;;
12088
12089 mingw* | pw32* | cegcc*)
12090 lt_cv_dlopen=LoadLibrary
12091 lt_cv_dlopen_libs=
12092 ;;
12093
12094 cygwin*)
12095 lt_cv_dlopen=dlopen
12096 lt_cv_dlopen_libs=
12097 ;;
12098
12099 darwin*)
12100 # if libdl is installed we need to link against it
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12102 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12103 if ${ac_cv_lib_dl_dlopen+:} false; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 ac_check_lib_save_LIBS=$LIBS
12107 LIBS="-ldl $LIBS"
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110
12111 /* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
12114 #ifdef __cplusplus
12115 extern "C"
12116 #endif
12117 char dlopen ();
12118 int
12119 main ()
12120 {
12121 return dlopen ();
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"; then :
12127 ac_cv_lib_dl_dlopen=yes
12128 else
12129 ac_cv_lib_dl_dlopen=no
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12134 fi
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12136 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12137 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12138 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12139 else
12140
12141 lt_cv_dlopen=dyld
12142 lt_cv_dlopen_libs=
12143 lt_cv_dlopen_self=yes
12144
12145 fi
12146
12147 ;;
12148
12149 tpf*)
12150 # Don't try to run any link tests for TPF. We know it's impossible
12151 # because TPF is a cross-compiler, and we know how we open DSOs.
12152 lt_cv_dlopen=dlopen
12153 lt_cv_dlopen_libs=
12154 lt_cv_dlopen_self=no
12155 ;;
12156
12157 *)
12158 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12159 if test "x$ac_cv_func_shl_load" = xyes; then :
12160 lt_cv_dlopen=shl_load
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12163 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12164 if ${ac_cv_lib_dld_shl_load+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-ldld $LIBS"
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171
12172 /* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12175 #ifdef __cplusplus
12176 extern "C"
12177 #endif
12178 char shl_load ();
12179 int
12180 main ()
12181 {
12182 return shl_load ();
12183 ;
12184 return 0;
12185 }
12186 _ACEOF
12187 if ac_fn_c_try_link "$LINENO"; then :
12188 ac_cv_lib_dld_shl_load=yes
12189 else
12190 ac_cv_lib_dld_shl_load=no
12191 fi
12192 rm -f core conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12194 LIBS=$ac_check_lib_save_LIBS
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12197 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12198 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12199 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12200 else
12201 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12202 if test "x$ac_cv_func_dlopen" = xyes; then :
12203 lt_cv_dlopen=dlopen
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12206 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12207 if ${ac_cv_lib_dl_dlopen+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-ldl $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char dlopen ();
12222 int
12223 main ()
12224 {
12225 return dlopen ();
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_dl_dlopen=yes
12232 else
12233 ac_cv_lib_dl_dlopen=no
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12240 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12241 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12242 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12245 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12246 if ${ac_cv_lib_svld_dlopen+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-lsvld $LIBS"
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char dlopen ();
12261 int
12262 main ()
12263 {
12264 return dlopen ();
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 ac_cv_lib_svld_dlopen=yes
12271 else
12272 ac_cv_lib_svld_dlopen=no
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12279 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12280 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12281 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12284 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12285 if ${ac_cv_lib_dld_dld_link+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-ldld $LIBS"
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292
12293 /* Override any GCC internal prototype to avoid an error.
12294 Use char because int might match the return type of a GCC
12295 builtin and then its argument prototype would still apply. */
12296 #ifdef __cplusplus
12297 extern "C"
12298 #endif
12299 char dld_link ();
12300 int
12301 main ()
12302 {
12303 return dld_link ();
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 ac_cv_lib_dld_dld_link=yes
12310 else
12311 ac_cv_lib_dld_dld_link=no
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12318 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12319 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12320 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12321 fi
12322
12323
12324 fi
12325
12326
12327 fi
12328
12329
12330 fi
12331
12332
12333 fi
12334
12335
12336 fi
12337
12338 ;;
12339 esac
12340
12341 if test no = "$lt_cv_dlopen"; then
12342 enable_dlopen=no
12343 else
12344 enable_dlopen=yes
12345 fi
12346
12347 case $lt_cv_dlopen in
12348 dlopen)
12349 save_CPPFLAGS=$CPPFLAGS
12350 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12351
12352 save_LDFLAGS=$LDFLAGS
12353 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12354
12355 save_LIBS=$LIBS
12356 LIBS="$lt_cv_dlopen_libs $LIBS"
12357
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12359 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12360 if ${lt_cv_dlopen_self+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 if test yes = "$cross_compiling"; then :
12364 lt_cv_dlopen_self=cross
12365 else
12366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12367 lt_status=$lt_dlunknown
12368 cat > conftest.$ac_ext <<_LT_EOF
12369 #line $LINENO "configure"
12370 #include "confdefs.h"
12371
12372 #if HAVE_DLFCN_H
12373 #include <dlfcn.h>
12374 #endif
12375
12376 #include <stdio.h>
12377
12378 #ifdef RTLD_GLOBAL
12379 # define LT_DLGLOBAL RTLD_GLOBAL
12380 #else
12381 # ifdef DL_GLOBAL
12382 # define LT_DLGLOBAL DL_GLOBAL
12383 # else
12384 # define LT_DLGLOBAL 0
12385 # endif
12386 #endif
12387
12388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12389 find out it does not work in some platform. */
12390 #ifndef LT_DLLAZY_OR_NOW
12391 # ifdef RTLD_LAZY
12392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12393 # else
12394 # ifdef DL_LAZY
12395 # define LT_DLLAZY_OR_NOW DL_LAZY
12396 # else
12397 # ifdef RTLD_NOW
12398 # define LT_DLLAZY_OR_NOW RTLD_NOW
12399 # else
12400 # ifdef DL_NOW
12401 # define LT_DLLAZY_OR_NOW DL_NOW
12402 # else
12403 # define LT_DLLAZY_OR_NOW 0
12404 # endif
12405 # endif
12406 # endif
12407 # endif
12408 #endif
12409
12410 /* When -fvisibility=hidden is used, assume the code has been annotated
12411 correspondingly for the symbols needed. */
12412 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12413 int fnord () __attribute__((visibility("default")));
12414 #endif
12415
12416 int fnord () { return 42; }
12417 int main ()
12418 {
12419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12420 int status = $lt_dlunknown;
12421
12422 if (self)
12423 {
12424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12425 else
12426 {
12427 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12428 else puts (dlerror ());
12429 }
12430 /* dlclose (self); */
12431 }
12432 else
12433 puts (dlerror ());
12434
12435 return status;
12436 }
12437 _LT_EOF
12438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12439 (eval $ac_link) 2>&5
12440 ac_status=$?
12441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12442 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12443 (./conftest; exit; ) >&5 2>/dev/null
12444 lt_status=$?
12445 case x$lt_status in
12446 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12447 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12448 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12449 esac
12450 else :
12451 # compilation failed
12452 lt_cv_dlopen_self=no
12453 fi
12454 fi
12455 rm -fr conftest*
12456
12457
12458 fi
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12460 $as_echo "$lt_cv_dlopen_self" >&6; }
12461
12462 if test yes = "$lt_cv_dlopen_self"; then
12463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12465 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12466 if ${lt_cv_dlopen_self_static+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 if test yes = "$cross_compiling"; then :
12470 lt_cv_dlopen_self_static=cross
12471 else
12472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12473 lt_status=$lt_dlunknown
12474 cat > conftest.$ac_ext <<_LT_EOF
12475 #line $LINENO "configure"
12476 #include "confdefs.h"
12477
12478 #if HAVE_DLFCN_H
12479 #include <dlfcn.h>
12480 #endif
12481
12482 #include <stdio.h>
12483
12484 #ifdef RTLD_GLOBAL
12485 # define LT_DLGLOBAL RTLD_GLOBAL
12486 #else
12487 # ifdef DL_GLOBAL
12488 # define LT_DLGLOBAL DL_GLOBAL
12489 # else
12490 # define LT_DLGLOBAL 0
12491 # endif
12492 #endif
12493
12494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12495 find out it does not work in some platform. */
12496 #ifndef LT_DLLAZY_OR_NOW
12497 # ifdef RTLD_LAZY
12498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12499 # else
12500 # ifdef DL_LAZY
12501 # define LT_DLLAZY_OR_NOW DL_LAZY
12502 # else
12503 # ifdef RTLD_NOW
12504 # define LT_DLLAZY_OR_NOW RTLD_NOW
12505 # else
12506 # ifdef DL_NOW
12507 # define LT_DLLAZY_OR_NOW DL_NOW
12508 # else
12509 # define LT_DLLAZY_OR_NOW 0
12510 # endif
12511 # endif
12512 # endif
12513 # endif
12514 #endif
12515
12516 /* When -fvisibility=hidden is used, assume the code has been annotated
12517 correspondingly for the symbols needed. */
12518 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12519 int fnord () __attribute__((visibility("default")));
12520 #endif
12521
12522 int fnord () { return 42; }
12523 int main ()
12524 {
12525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12526 int status = $lt_dlunknown;
12527
12528 if (self)
12529 {
12530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12531 else
12532 {
12533 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12534 else puts (dlerror ());
12535 }
12536 /* dlclose (self); */
12537 }
12538 else
12539 puts (dlerror ());
12540
12541 return status;
12542 }
12543 _LT_EOF
12544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12545 (eval $ac_link) 2>&5
12546 ac_status=$?
12547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12548 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12549 (./conftest; exit; ) >&5 2>/dev/null
12550 lt_status=$?
12551 case x$lt_status in
12552 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12553 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12554 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12555 esac
12556 else :
12557 # compilation failed
12558 lt_cv_dlopen_self_static=no
12559 fi
12560 fi
12561 rm -fr conftest*
12562
12563
12564 fi
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12566 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12567 fi
12568
12569 CPPFLAGS=$save_CPPFLAGS
12570 LDFLAGS=$save_LDFLAGS
12571 LIBS=$save_LIBS
12572 ;;
12573 esac
12574
12575 case $lt_cv_dlopen_self in
12576 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12577 *) enable_dlopen_self=unknown ;;
12578 esac
12579
12580 case $lt_cv_dlopen_self_static in
12581 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12582 *) enable_dlopen_self_static=unknown ;;
12583 esac
12584 fi
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602 striplib=
12603 old_striplib=
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12605 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12606 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12607 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12608 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12610 $as_echo "yes" >&6; }
12611 else
12612 # FIXME - insert some real tests, host_os isn't really good enough
12613 case $host_os in
12614 darwin*)
12615 if test -n "$STRIP"; then
12616 striplib="$STRIP -x"
12617 old_striplib="$STRIP -S"
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12619 $as_echo "yes" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624 ;;
12625 *)
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12628 ;;
12629 esac
12630 fi
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643 # Report what library types will actually be built
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12645 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12647 $as_echo "$can_build_shared" >&6; }
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12650 $as_echo_n "checking whether to build shared libraries... " >&6; }
12651 test no = "$can_build_shared" && enable_shared=no
12652
12653 # On AIX, shared libraries and static libraries use the same namespace, and
12654 # are all built from PIC.
12655 case $host_os in
12656 aix3*)
12657 test yes = "$enable_shared" && enable_static=no
12658 if test -n "$RANLIB"; then
12659 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12660 postinstall_cmds='$RANLIB $lib'
12661 fi
12662 ;;
12663
12664 aix[4-9]*)
12665 if test ia64 != "$host_cpu"; then
12666 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12667 yes,aix,yes) ;; # shared object as lib.so file only
12668 yes,svr4,*) ;; # shared object as lib.so archive member only
12669 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12670 esac
12671 fi
12672 ;;
12673 esac
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12675 $as_echo "$enable_shared" >&6; }
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12678 $as_echo_n "checking whether to build static libraries... " >&6; }
12679 # Make sure either enable_shared or enable_static is yes.
12680 test yes = "$enable_shared" || enable_static=yes
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12682 $as_echo "$enable_static" >&6; }
12683
12684
12685
12686
12687 fi
12688 ac_ext=c
12689 ac_cpp='$CPP $CPPFLAGS'
12690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693
12694 CC=$lt_save_CC
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710 ac_config_commands="$ac_config_commands libtool"
12711
12712
12713
12714
12715 # Only expand once:
12716
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12719 $as_echo_n "checking for ANSI C header files... " >&6; }
12720 if ${ac_cv_header_stdc+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725 #include <stdlib.h>
12726 #include <stdarg.h>
12727 #include <string.h>
12728 #include <float.h>
12729
12730 int
12731 main ()
12732 {
12733
12734 ;
12735 return 0;
12736 }
12737 _ACEOF
12738 if ac_fn_c_try_compile "$LINENO"; then :
12739 ac_cv_header_stdc=yes
12740 else
12741 ac_cv_header_stdc=no
12742 fi
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744
12745 if test $ac_cv_header_stdc = yes; then
12746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #include <string.h>
12750
12751 _ACEOF
12752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12753 $EGREP "memchr" >/dev/null 2>&1; then :
12754
12755 else
12756 ac_cv_header_stdc=no
12757 fi
12758 rm -f conftest*
12759
12760 fi
12761
12762 if test $ac_cv_header_stdc = yes; then
12763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 #include <stdlib.h>
12767
12768 _ACEOF
12769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12770 $EGREP "free" >/dev/null 2>&1; then :
12771
12772 else
12773 ac_cv_header_stdc=no
12774 fi
12775 rm -f conftest*
12776
12777 fi
12778
12779 if test $ac_cv_header_stdc = yes; then
12780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12781 if test "$cross_compiling" = yes; then :
12782 :
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <ctype.h>
12787 #include <stdlib.h>
12788 #if ((' ' & 0x0FF) == 0x020)
12789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12791 #else
12792 # define ISLOWER(c) \
12793 (('a' <= (c) && (c) <= 'i') \
12794 || ('j' <= (c) && (c) <= 'r') \
12795 || ('s' <= (c) && (c) <= 'z'))
12796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12797 #endif
12798
12799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12800 int
12801 main ()
12802 {
12803 int i;
12804 for (i = 0; i < 256; i++)
12805 if (XOR (islower (i), ISLOWER (i))
12806 || toupper (i) != TOUPPER (i))
12807 return 2;
12808 return 0;
12809 }
12810 _ACEOF
12811 if ac_fn_c_try_run "$LINENO"; then :
12812
12813 else
12814 ac_cv_header_stdc=no
12815 fi
12816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12817 conftest.$ac_objext conftest.beam conftest.$ac_ext
12818 fi
12819
12820 fi
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12823 $as_echo "$ac_cv_header_stdc" >&6; }
12824 if test $ac_cv_header_stdc = yes; then
12825
12826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12827
12828 fi
12829
12830
12831 CCS_REQUIRES="\
12832 libcompizconfig >= 0.6.99 \
12833 glib-2.0 >= 2.6 "
12834
12835
12836
12837
12838
12839
12840
12841
12842 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12843 if test -n "$ac_tool_prefix"; then
12844 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12845 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 case $PKG_CONFIG in
12852 [\\/]* | ?:[\\/]*)
12853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12854 ;;
12855 *)
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12858 do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12866 fi
12867 done
12868 done
12869 IFS=$as_save_IFS
12870
12871 ;;
12872 esac
12873 fi
12874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12875 if test -n "$PKG_CONFIG"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12877 $as_echo "$PKG_CONFIG" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12881 fi
12882
12883
12884 fi
12885 if test -z "$ac_cv_path_PKG_CONFIG"; then
12886 ac_pt_PKG_CONFIG=$PKG_CONFIG
12887 # Extract the first word of "pkg-config", so it can be a program name with args.
12888 set dummy pkg-config; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 case $ac_pt_PKG_CONFIG in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12897 ;;
12898 *)
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12901 do
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12906 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12909 fi
12910 done
12911 done
12912 IFS=$as_save_IFS
12913
12914 ;;
12915 esac
12916 fi
12917 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12918 if test -n "$ac_pt_PKG_CONFIG"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12920 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924 fi
12925
12926 if test "x$ac_pt_PKG_CONFIG" = x; then
12927 PKG_CONFIG=""
12928 else
12929 case $cross_compiling:$ac_tool_warned in
12930 yes:)
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12933 ac_tool_warned=yes ;;
12934 esac
12935 PKG_CONFIG=$ac_pt_PKG_CONFIG
12936 fi
12937 else
12938 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12939 fi
12940
12941 fi
12942 if test -n "$PKG_CONFIG"; then
12943 _pkg_min_version=0.9.0
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12945 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12946 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12948 $as_echo "yes" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 PKG_CONFIG=""
12953 fi
12954 fi
12955
12956 pkg_failed=no
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
12958 $as_echo_n "checking for CCS... " >&6; }
12959
12960 if test -n "$CCS_CFLAGS"; then
12961 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
12962 elif test -n "$PKG_CONFIG"; then
12963 if test -n "$PKG_CONFIG" && \
12964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$CCS_REQUIRES\""; } >&5
12965 ($PKG_CONFIG --exists --print-errors "$CCS_REQUIRES") 2>&5
12966 ac_status=$?
12967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968 test $ac_status = 0; }; then
12969 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "$CCS_REQUIRES" 2>/dev/null`
12970 test "x$?" != "x0" && pkg_failed=yes
12971 else
12972 pkg_failed=yes
12973 fi
12974 else
12975 pkg_failed=untried
12976 fi
12977 if test -n "$CCS_LIBS"; then
12978 pkg_cv_CCS_LIBS="$CCS_LIBS"
12979 elif test -n "$PKG_CONFIG"; then
12980 if test -n "$PKG_CONFIG" && \
12981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$CCS_REQUIRES\""; } >&5
12982 ($PKG_CONFIG --exists --print-errors "$CCS_REQUIRES") 2>&5
12983 ac_status=$?
12984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12985 test $ac_status = 0; }; then
12986 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "$CCS_REQUIRES" 2>/dev/null`
12987 test "x$?" != "x0" && pkg_failed=yes
12988 else
12989 pkg_failed=yes
12990 fi
12991 else
12992 pkg_failed=untried
12993 fi
12994
12995
12996
12997 if test $pkg_failed = yes; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000
13001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13002 _pkg_short_errors_supported=yes
13003 else
13004 _pkg_short_errors_supported=no
13005 fi
13006 if test $_pkg_short_errors_supported = yes; then
13007 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$CCS_REQUIRES" 2>&1`
13008 else
13009 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$CCS_REQUIRES" 2>&1`
13010 fi
13011 # Put the nasty error message in config.log where it belongs
13012 echo "$CCS_PKG_ERRORS" >&5
13013
13014 as_fn_error $? "Package requirements ($CCS_REQUIRES) were not met:
13015
13016 $CCS_PKG_ERRORS
13017
13018 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13019 installed software in a non-standard prefix.
13020
13021 Alternatively, you may set the environment variables CCS_CFLAGS
13022 and CCS_LIBS to avoid the need to call pkg-config.
13023 See the pkg-config man page for more details." "$LINENO" 5
13024 elif test $pkg_failed = untried; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13029 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13030 is in your PATH or set the PKG_CONFIG environment variable to the full
13031 path to pkg-config.
13032
13033 Alternatively, you may set the environment variables CCS_CFLAGS
13034 and CCS_LIBS to avoid the need to call pkg-config.
13035 See the pkg-config man page for more details.
13036
13037 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13038 See \`config.log' for more details" "$LINENO" 5; }
13039 else
13040 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
13041 CCS_LIBS=$pkg_cv_CCS_LIBS
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13043 $as_echo "yes" >&6; }
13044
13045 fi
13046
13047
13048
13049
13050
13051 if test -z "$PYTHON"; then
13052 for _python in python python3 python2; do
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_python version is < 4.0" >&5
13055 $as_echo_n "checking whether $_python version is < 4.0... " >&6; }
13056 prog="import sys
13057 # split strings by '.' and convert to numeric. Append some zeros
13058 # because we need at least 4 digits for the hex conversion.
13059 # map returns an iterator in Python 3.0 and a list in 2.x
13060 minver = list(map(int, '4.0'.split('.'))) + [0, 0, 0]
13061 minverhex = 0
13062 # xrange is not present in Python 3.0 and range returns an iterator
13063 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13064 sys.exit(sys.hexversion < minverhex)"
13065 if { echo "$as_me:$LINENO: $_python -c "$prog"" >&5
13066 ($_python -c "$prog") >&5 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; then :
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13072 _python_found=no
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13075 $as_echo "yes" >&6; }
13076 _python_found=yes
13077 fi
13078
13079 test "x$_python_found" = xno && continue
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_python version is >= 2.7" >&5
13082 $as_echo_n "checking whether $_python version is >= 2.7... " >&6; }
13083 prog="import sys
13084 # split strings by '.' and convert to numeric. Append some zeros
13085 # because we need at least 4 digits for the hex conversion.
13086 # map returns an iterator in Python 3.0 and a list in 2.x
13087 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13088 minverhex = 0
13089 # xrange is not present in Python 3.0 and range returns an iterator
13090 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13091 sys.exit(sys.hexversion < minverhex)"
13092 if { echo "$as_me:$LINENO: $_python -c "$prog"" >&5
13093 ($_python -c "$prog") >&5 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; then :
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13099 _python_found=yes
13100 else
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13103 _python_found=no
13104 fi
13105
13106 if test "x$_python_found" = xyes; then
13107 # Extract the first word of ""$_python"", so it can be a program name with args.
13108 set dummy "$_python"; ac_word=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_path_PYTHON+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 case $PYTHON in
13115 [\\/]* | ?:[\\/]*)
13116 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13117 ;;
13118 *)
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in $PATH
13121 do
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
13124 for ac_exec_ext in '' $ac_executable_extensions; do
13125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13126 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 break 2
13129 fi
13130 done
13131 done
13132 IFS=$as_save_IFS
13133
13134 ;;
13135 esac
13136 fi
13137 PYTHON=$ac_cv_path_PYTHON
13138 if test -n "$PYTHON"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13140 $as_echo "$PYTHON" >&6; }
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13144 fi
13145
13146
13147
13148 break
13149 fi
13150 done
13151 fi
13152
13153
13154
13155
13156
13157
13158 if test -n "$PYTHON"; then
13159 # If the user set $PYTHON, use it and don't search something else.
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
13161 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
13162 prog="import sys
13163 # split strings by '.' and convert to numeric. Append some zeros
13164 # because we need at least 4 digits for the hex conversion.
13165 # map returns an iterator in Python 3.0 and a list in 2.x
13166 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13167 minverhex = 0
13168 # xrange is not present in Python 3.0 and range returns an iterator
13169 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13170 sys.exit(sys.hexversion < minverhex)"
13171 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13172 ($PYTHON -c "$prog") >&5 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; then :
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177 $as_echo "yes" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
13182 fi
13183 am_display_PYTHON=$PYTHON
13184 else
13185 # Otherwise, try each interpreter until we find one that satisfies
13186 # VERSION.
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
13188 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
13189 if ${am_cv_pathless_PYTHON+:} false; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192
13193 for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
13194 test "$am_cv_pathless_PYTHON" = none && break
13195 prog="import sys
13196 # split strings by '.' and convert to numeric. Append some zeros
13197 # because we need at least 4 digits for the hex conversion.
13198 # map returns an iterator in Python 3.0 and a list in 2.x
13199 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13200 minverhex = 0
13201 # xrange is not present in Python 3.0 and range returns an iterator
13202 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13203 sys.exit(sys.hexversion < minverhex)"
13204 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13205 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; then :
13209 break
13210 fi
13211 done
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13214 $as_echo "$am_cv_pathless_PYTHON" >&6; }
13215 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13216 if test "$am_cv_pathless_PYTHON" = none; then
13217 PYTHON=:
13218 else
13219 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13220 set dummy $am_cv_pathless_PYTHON; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if ${ac_cv_path_PYTHON+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 case $PYTHON in
13227 [\\/]* | ?:[\\/]*)
13228 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13229 ;;
13230 *)
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13233 do
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13238 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242 done
13243 done
13244 IFS=$as_save_IFS
13245
13246 ;;
13247 esac
13248 fi
13249 PYTHON=$ac_cv_path_PYTHON
13250 if test -n "$PYTHON"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13252 $as_echo "$PYTHON" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 fi
13260 am_display_PYTHON=$am_cv_pathless_PYTHON
13261 fi
13262
13263
13264 if test "$PYTHON" = :; then
13265 _python_found=no
13266 else
13267
13268
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13270 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13271 if ${am_cv_python_version+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13277 $as_echo "$am_cv_python_version" >&6; }
13278 PYTHON_VERSION=$am_cv_python_version
13279
13280
13281
13282 PYTHON_PREFIX='${prefix}'
13283
13284 PYTHON_EXEC_PREFIX='${exec_prefix}'
13285
13286
13287
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13289 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13290 if ${am_cv_python_platform+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13296 $as_echo "$am_cv_python_platform" >&6; }
13297 PYTHON_PLATFORM=$am_cv_python_platform
13298
13299
13300 # Just factor out some code duplication.
13301 am_python_setup_sysconfig="\
13302 import sys
13303 # Prefer sysconfig over distutils.sysconfig, for better compatibility
13304 # with python 3.x. See automake bug#10227.
13305 try:
13306 import sysconfig
13307 except ImportError:
13308 can_use_sysconfig = 0
13309 else:
13310 can_use_sysconfig = 1
13311 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13312 # <https://github.com/pypa/virtualenv/issues/118>
13313 try:
13314 from platform import python_implementation
13315 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13316 can_use_sysconfig = 0
13317 except ImportError:
13318 pass"
13319
13320
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13322 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13323 if ${am_cv_python_pythondir+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 if test "x$prefix" = xNONE
13327 then
13328 am_py_prefix=$ac_default_prefix
13329 else
13330 am_py_prefix=$prefix
13331 fi
13332 am_cv_python_pythondir=`$PYTHON -c "
13333 $am_python_setup_sysconfig
13334 if can_use_sysconfig:
13335 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13336 else:
13337 from distutils import sysconfig
13338 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13339 sys.stdout.write(sitedir)"`
13340 case $am_cv_python_pythondir in
13341 $am_py_prefix*)
13342 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13343 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13344 ;;
13345 *)
13346 case $am_py_prefix in
13347 /usr|/System*) ;;
13348 *)
13349 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13350 ;;
13351 esac
13352 ;;
13353 esac
13354
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13357 $as_echo "$am_cv_python_pythondir" >&6; }
13358 pythondir=$am_cv_python_pythondir
13359
13360
13361
13362 pkgpythondir=\${pythondir}/$PACKAGE
13363
13364
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13366 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13367 if ${am_cv_python_pyexecdir+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 if test "x$exec_prefix" = xNONE
13371 then
13372 am_py_exec_prefix=$am_py_prefix
13373 else
13374 am_py_exec_prefix=$exec_prefix
13375 fi
13376 am_cv_python_pyexecdir=`$PYTHON -c "
13377 $am_python_setup_sysconfig
13378 if can_use_sysconfig:
13379 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13380 else:
13381 from distutils import sysconfig
13382 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13383 sys.stdout.write(sitedir)"`
13384 case $am_cv_python_pyexecdir in
13385 $am_py_exec_prefix*)
13386 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13387 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13388 ;;
13389 *)
13390 case $am_py_exec_prefix in
13391 /usr|/System*) ;;
13392 *)
13393 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13394 ;;
13395 esac
13396 ;;
13397 esac
13398
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13401 $as_echo "$am_cv_python_pyexecdir" >&6; }
13402 pyexecdir=$am_cv_python_pyexecdir
13403
13404
13405
13406 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13407
13408
13409 _python_found=yes
13410 fi
13411
13412
13413
13414 if test "x$_python_found" = xyes; then
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is < 4.0" >&5
13417 $as_echo_n "checking whether $PYTHON version is < 4.0... " >&6; }
13418 prog="import sys
13419 # split strings by '.' and convert to numeric. Append some zeros
13420 # because we need at least 4 digits for the hex conversion.
13421 # map returns an iterator in Python 3.0 and a list in 2.x
13422 minver = list(map(int, '4.0'.split('.'))) + [0, 0, 0]
13423 minverhex = 0
13424 # xrange is not present in Python 3.0 and range returns an iterator
13425 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13426 sys.exit(sys.hexversion < minverhex)"
13427 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13428 ($PYTHON -c "$prog") >&5 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; then :
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434 _python_found=no
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437 $as_echo "yes" >&6; }
13438 fi
13439
13440 fi
13441
13442 if test "x$_python_found" = xyes; then
13443
13444 PYTHON_MAJOR_VER=`$PYTHON -c "import sys; print(sys.version_info.major)"`
13445
13446 if test "$PYTHON_MAJOR_VER" -gt 2; then
13447 PYTHON_SOINIT_PREFIX=PyInit_
13448 else
13449 PYTHON_SOINIT_PREFIX=init
13450 fi
13451
13452 py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
13453 py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
13454 python_path=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc(prefix='${py_prefix}'))" 2>/dev/null`
13455 python_arch_path=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc(prefix='${py_exec_prefix}', plat_specific=1))" 2>/dev/null`
13456 if test -n "$python_path"; then
13457 PYTHON_INCLUDES="-I${python_path}"
13458 fi
13459 if test -n "$python_arch_path" && test "$python_path" != "$python_arch_path"; then
13460 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${python_arch_path}"
13461 fi
13462 if test -z "$PYTHON_INCLUDES"; then
13463 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
13464 if test "$py_prefix" != "$py_exec_prefix"; then
13465 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
13466 fi
13467 fi
13468
13469
13470
13471
13472 else
13473 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13474 fi
13475
13476
13477
13478 # Check whether --with-cython was given.
13479 if test "${with_cython+set}" = set; then :
13480 withval=$with_cython; with_cython="$withval"
13481 else
13482 with_cython="cython"
13483 fi
13484
13485
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $with_cython" >&5
13487 $as_echo_n "checking for $with_cython... " >&6; }
13488 CYTHON="`which "$with_cython" 2> /dev/null`"
13489 if test -n "$CYTHON"; then :
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13491 $as_echo "yes" >&6; }
13492
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496 as_fn_error $? "Couldn't find Cython" "$LINENO" 5
13497 fi
13498
13499 ac_config_files="$ac_config_files compizconfig-python.pc Makefile src/Makefile"
13500
13501
13502 cat >confcache <<\_ACEOF
13503 # This file is a shell script that caches the results of configure
13504 # tests run on this system so they can be shared between configure
13505 # scripts and configure runs, see configure's option --config-cache.
13506 # It is not useful on other systems. If it contains results you don't
13507 # want to keep, you may remove or edit it.
13508 #
13509 # config.status only pays attention to the cache file if you give it
13510 # the --recheck option to rerun configure.
13511 #
13512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13514 # following values.
13515
13516 _ACEOF
13517
13518 # The following way of writing the cache mishandles newlines in values,
13519 # but we know of no workaround that is simple, portable, and efficient.
13520 # So, we kill variables containing newlines.
13521 # Ultrix sh set writes to stderr and can't be redirected directly,
13522 # and sets the high bit in the cache file unless we assign to the vars.
13523 (
13524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13525 eval ac_val=\$$ac_var
13526 case $ac_val in #(
13527 *${as_nl}*)
13528 case $ac_var in #(
13529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13531 esac
13532 case $ac_var in #(
13533 _ | IFS | as_nl) ;; #(
13534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13535 *) { eval $ac_var=; unset $ac_var;} ;;
13536 esac ;;
13537 esac
13538 done
13539
13540 (set) 2>&1 |
13541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13542 *${as_nl}ac_space=\ *)
13543 # `set' does not quote correctly, so add quotes: double-quote
13544 # substitution turns \\\\ into \\, and sed turns \\ into \.
13545 sed -n \
13546 "s/'/'\\\\''/g;
13547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13548 ;; #(
13549 *)
13550 # `set' quotes correctly as required by POSIX, so do not add quotes.
13551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13552 ;;
13553 esac |
13554 sort
13555 ) |
13556 sed '
13557 /^ac_cv_env_/b end
13558 t clear
13559 :clear
13560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13561 t end
13562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13563 :end' >>confcache
13564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13565 if test -w "$cache_file"; then
13566 if test "x$cache_file" != "x/dev/null"; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13568 $as_echo "$as_me: updating cache $cache_file" >&6;}
13569 if test ! -f "$cache_file" || test -h "$cache_file"; then
13570 cat confcache >"$cache_file"
13571 else
13572 case $cache_file in #(
13573 */* | ?:*)
13574 mv -f confcache "$cache_file"$$ &&
13575 mv -f "$cache_file"$$ "$cache_file" ;; #(
13576 *)
13577 mv -f confcache "$cache_file" ;;
13578 esac
13579 fi
13580 fi
13581 else
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13584 fi
13585 fi
13586 rm -f confcache
13587
13588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13589 # Let make expand exec_prefix.
13590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13591
13592 DEFS=-DHAVE_CONFIG_H
13593
13594 ac_libobjs=
13595 ac_ltlibobjs=
13596 U=
13597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13598 # 1. Remove the extension, and $U if already installed.
13599 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13600 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13602 # will be set to the directory where LIBOBJS objects are built.
13603 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13604 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13605 done
13606 LIBOBJS=$ac_libobjs
13607
13608 LTLIBOBJS=$ac_ltlibobjs
13609
13610
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13612 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13613 if test -n "$am_sleep_pid"; then
13614 # Hide warnings about reused PIDs.
13615 wait $am_sleep_pid 2>/dev/null
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13618 $as_echo "done" >&6; }
13619 if test -n "$EXEEXT"; then
13620 am__EXEEXT_TRUE=
13621 am__EXEEXT_FALSE='#'
13622 else
13623 am__EXEEXT_TRUE='#'
13624 am__EXEEXT_FALSE=
13625 fi
13626
13627 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13628 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13630 fi
13631 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13632 as_fn_error $? "conditional \"AMDEP\" was never defined.
13633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13634 fi
13635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13636 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13638 fi
13639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13640 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13642 fi
13643
13644 : "${CONFIG_STATUS=./config.status}"
13645 ac_write_fail=0
13646 ac_clean_files_save=$ac_clean_files
13647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13649 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13650 as_write_fail=0
13651 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13652 #! $SHELL
13653 # Generated by $as_me.
13654 # Run this file to recreate the current configuration.
13655 # Compiler output produced by configure, useful for debugging
13656 # configure, is in config.log if it exists.
13657
13658 debug=false
13659 ac_cs_recheck=false
13660 ac_cs_silent=false
13661
13662 SHELL=\${CONFIG_SHELL-$SHELL}
13663 export SHELL
13664 _ASEOF
13665 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13666 ## -------------------- ##
13667 ## M4sh Initialization. ##
13668 ## -------------------- ##
13669
13670 # Be more Bourne compatible
13671 DUALCASE=1; export DUALCASE # for MKS sh
13672 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13673 emulate sh
13674 NULLCMD=:
13675 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13676 # is contrary to our usage. Disable this feature.
13677 alias -g '${1+"$@"}'='"$@"'
13678 setopt NO_GLOB_SUBST
13679 else
13680 case `(set -o) 2>/dev/null` in #(
13681 *posix*) :
13682 set -o posix ;; #(
13683 *) :
13684 ;;
13685 esac
13686 fi
13687
13688
13689 as_nl='
13690 '
13691 export as_nl
13692 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13693 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13694 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13695 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13696 # Prefer a ksh shell builtin over an external printf program on Solaris,
13697 # but without wasting forks for bash or zsh.
13698 if test -z "$BASH_VERSION$ZSH_VERSION" \
13699 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13700 as_echo='print -r --'
13701 as_echo_n='print -rn --'
13702 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13703 as_echo='printf %s\n'
13704 as_echo_n='printf %s'
13705 else
13706 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13707 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13708 as_echo_n='/usr/ucb/echo -n'
13709 else
13710 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13711 as_echo_n_body='eval
13712 arg=$1;
13713 case $arg in #(
13714 *"$as_nl"*)
13715 expr "X$arg" : "X\\(.*\\)$as_nl";
13716 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13717 esac;
13718 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13719 '
13720 export as_echo_n_body
13721 as_echo_n='sh -c $as_echo_n_body as_echo'
13722 fi
13723 export as_echo_body
13724 as_echo='sh -c $as_echo_body as_echo'
13725 fi
13726
13727 # The user is always right.
13728 if test "${PATH_SEPARATOR+set}" != set; then
13729 PATH_SEPARATOR=:
13730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13732 PATH_SEPARATOR=';'
13733 }
13734 fi
13735
13736
13737 # IFS
13738 # We need space, tab and new line, in precisely that order. Quoting is
13739 # there to prevent editors from complaining about space-tab.
13740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13741 # splitting by setting IFS to empty value.)
13742 IFS=" "" $as_nl"
13743
13744 # Find who we are. Look in the path if we contain no directory separator.
13745 as_myself=
13746 case $0 in #((
13747 *[\\/]* ) as_myself=$0 ;;
13748 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13750 do
13751 IFS=$as_save_IFS
13752 test -z "$as_dir" && as_dir=.
13753 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13754 done
13755 IFS=$as_save_IFS
13756
13757 ;;
13758 esac
13759 # We did not find ourselves, most probably we were run as `sh COMMAND'
13760 # in which case we are not to be found in the path.
13761 if test "x$as_myself" = x; then
13762 as_myself=$0
13763 fi
13764 if test ! -f "$as_myself"; then
13765 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13766 exit 1
13767 fi
13768
13769 # Unset variables that we do not need and which cause bugs (e.g. in
13770 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13771 # suppresses any "Segmentation fault" message there. '((' could
13772 # trigger a bug in pdksh 5.2.14.
13773 for as_var in BASH_ENV ENV MAIL MAILPATH
13774 do eval test x\${$as_var+set} = xset \
13775 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13776 done
13777 PS1='$ '
13778 PS2='> '
13779 PS4='+ '
13780
13781 # NLS nuisances.
13782 LC_ALL=C
13783 export LC_ALL
13784 LANGUAGE=C
13785 export LANGUAGE
13786
13787 # CDPATH.
13788 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13789
13790
13791 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13792 # ----------------------------------------
13793 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13794 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13795 # script with STATUS, using 1 if that was 0.
13796 as_fn_error ()
13797 {
13798 as_status=$1; test $as_status -eq 0 && as_status=1
13799 if test "$4"; then
13800 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13801 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13802 fi
13803 $as_echo "$as_me: error: $2" >&2
13804 as_fn_exit $as_status
13805 } # as_fn_error
13806
13807
13808 # as_fn_set_status STATUS
13809 # -----------------------
13810 # Set $? to STATUS, without forking.
13811 as_fn_set_status ()
13812 {
13813 return $1
13814 } # as_fn_set_status
13815
13816 # as_fn_exit STATUS
13817 # -----------------
13818 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13819 as_fn_exit ()
13820 {
13821 set +e
13822 as_fn_set_status $1
13823 exit $1
13824 } # as_fn_exit
13825
13826 # as_fn_unset VAR
13827 # ---------------
13828 # Portably unset VAR.
13829 as_fn_unset ()
13830 {
13831 { eval $1=; unset $1;}
13832 }
13833 as_unset=as_fn_unset
13834 # as_fn_append VAR VALUE
13835 # ----------------------
13836 # Append the text in VALUE to the end of the definition contained in VAR. Take
13837 # advantage of any shell optimizations that allow amortized linear growth over
13838 # repeated appends, instead of the typical quadratic growth present in naive
13839 # implementations.
13840 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13841 eval 'as_fn_append ()
13842 {
13843 eval $1+=\$2
13844 }'
13845 else
13846 as_fn_append ()
13847 {
13848 eval $1=\$$1\$2
13849 }
13850 fi # as_fn_append
13851
13852 # as_fn_arith ARG...
13853 # ------------------
13854 # Perform arithmetic evaluation on the ARGs, and store the result in the
13855 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13856 # must be portable across $(()) and expr.
13857 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13858 eval 'as_fn_arith ()
13859 {
13860 as_val=$(( $* ))
13861 }'
13862 else
13863 as_fn_arith ()
13864 {
13865 as_val=`expr "$@" || test $? -eq 1`
13866 }
13867 fi # as_fn_arith
13868
13869
13870 if expr a : '\(a\)' >/dev/null 2>&1 &&
13871 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13872 as_expr=expr
13873 else
13874 as_expr=false
13875 fi
13876
13877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13878 as_basename=basename
13879 else
13880 as_basename=false
13881 fi
13882
13883 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13884 as_dirname=dirname
13885 else
13886 as_dirname=false
13887 fi
13888
13889 as_me=`$as_basename -- "$0" ||
13890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13891 X"$0" : 'X\(//\)$' \| \
13892 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13893 $as_echo X/"$0" |
13894 sed '/^.*\/\([^/][^/]*\)\/*$/{
13895 s//\1/
13896 q
13897 }
13898 /^X\/\(\/\/\)$/{
13899 s//\1/
13900 q
13901 }
13902 /^X\/\(\/\).*/{
13903 s//\1/
13904 q
13905 }
13906 s/.*/./; q'`
13907
13908 # Avoid depending upon Character Ranges.
13909 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13910 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13911 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13912 as_cr_digits='0123456789'
13913 as_cr_alnum=$as_cr_Letters$as_cr_digits
13914
13915 ECHO_C= ECHO_N= ECHO_T=
13916 case `echo -n x` in #(((((
13917 -n*)
13918 case `echo 'xy\c'` in
13919 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13920 xy) ECHO_C='\c';;
13921 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13922 ECHO_T=' ';;
13923 esac;;
13924 *)
13925 ECHO_N='-n';;
13926 esac
13927
13928 rm -f conf$$ conf$$.exe conf$$.file
13929 if test -d conf$$.dir; then
13930 rm -f conf$$.dir/conf$$.file
13931 else
13932 rm -f conf$$.dir
13933 mkdir conf$$.dir 2>/dev/null
13934 fi
13935 if (echo >conf$$.file) 2>/dev/null; then
13936 if ln -s conf$$.file conf$$ 2>/dev/null; then
13937 as_ln_s='ln -s'
13938 # ... but there are two gotchas:
13939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13941 # In both cases, we have to default to `cp -pR'.
13942 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13943 as_ln_s='cp -pR'
13944 elif ln conf$$.file conf$$ 2>/dev/null; then
13945 as_ln_s=ln
13946 else
13947 as_ln_s='cp -pR'
13948 fi
13949 else
13950 as_ln_s='cp -pR'
13951 fi
13952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13953 rmdir conf$$.dir 2>/dev/null
13954
13955
13956 # as_fn_mkdir_p
13957 # -------------
13958 # Create "$as_dir" as a directory, including parents if necessary.
13959 as_fn_mkdir_p ()
13960 {
13961
13962 case $as_dir in #(
13963 -*) as_dir=./$as_dir;;
13964 esac
13965 test -d "$as_dir" || eval $as_mkdir_p || {
13966 as_dirs=
13967 while :; do
13968 case $as_dir in #(
13969 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13970 *) as_qdir=$as_dir;;
13971 esac
13972 as_dirs="'$as_qdir' $as_dirs"
13973 as_dir=`$as_dirname -- "$as_dir" ||
13974 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13975 X"$as_dir" : 'X\(//\)[^/]' \| \
13976 X"$as_dir" : 'X\(//\)$' \| \
13977 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13978 $as_echo X"$as_dir" |
13979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13980 s//\1/
13981 q
13982 }
13983 /^X\(\/\/\)[^/].*/{
13984 s//\1/
13985 q
13986 }
13987 /^X\(\/\/\)$/{
13988 s//\1/
13989 q
13990 }
13991 /^X\(\/\).*/{
13992 s//\1/
13993 q
13994 }
13995 s/.*/./; q'`
13996 test -d "$as_dir" && break
13997 done
13998 test -z "$as_dirs" || eval "mkdir $as_dirs"
13999 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14000
14001
14002 } # as_fn_mkdir_p
14003 if mkdir -p . 2>/dev/null; then
14004 as_mkdir_p='mkdir -p "$as_dir"'
14005 else
14006 test -d ./-p && rmdir ./-p
14007 as_mkdir_p=false
14008 fi
14009
14010
14011 # as_fn_executable_p FILE
14012 # -----------------------
14013 # Test if FILE is an executable regular file.
14014 as_fn_executable_p ()
14015 {
14016 test -f "$1" && test -x "$1"
14017 } # as_fn_executable_p
14018 as_test_x='test -x'
14019 as_executable_p=as_fn_executable_p
14020
14021 # Sed expression to map a string onto a valid CPP name.
14022 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14023
14024 # Sed expression to map a string onto a valid variable name.
14025 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14026
14027
14028 exec 6>&1
14029 ## ----------------------------------- ##
14030 ## Main body of $CONFIG_STATUS script. ##
14031 ## ----------------------------------- ##
14032 _ASEOF
14033 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14034
14035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14036 # Save the log message, to keep $0 and so on meaningful, and to
14037 # report actual input values of CONFIG_FILES etc. instead of their
14038 # values after options handling.
14039 ac_log="
14040 This file was extended by compizconfig-python $as_me 0.8.18, which was
14041 generated by GNU Autoconf 2.69. Invocation command line was
14042
14043 CONFIG_FILES = $CONFIG_FILES
14044 CONFIG_HEADERS = $CONFIG_HEADERS
14045 CONFIG_LINKS = $CONFIG_LINKS
14046 CONFIG_COMMANDS = $CONFIG_COMMANDS
14047 $ $0 $@
14048
14049 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14050 "
14051
14052 _ACEOF
14053
14054 case $ac_config_files in *"
14055 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14056 esac
14057
14058 case $ac_config_headers in *"
14059 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14060 esac
14061
14062
14063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14064 # Files that config.status was made for.
14065 config_files="$ac_config_files"
14066 config_headers="$ac_config_headers"
14067 config_commands="$ac_config_commands"
14068
14069 _ACEOF
14070
14071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14072 ac_cs_usage="\
14073 \`$as_me' instantiates files and other configuration actions
14074 from templates according to the current configuration. Unless the files
14075 and actions are specified as TAGs, all are instantiated by default.
14076
14077 Usage: $0 [OPTION]... [TAG]...
14078
14079 -h, --help print this help, then exit
14080 -V, --version print version number and configuration settings, then exit
14081 --config print configuration, then exit
14082 -q, --quiet, --silent
14083 do not print progress messages
14084 -d, --debug don't remove temporary files
14085 --recheck update $as_me by reconfiguring in the same conditions
14086 --file=FILE[:TEMPLATE]
14087 instantiate the configuration file FILE
14088 --header=FILE[:TEMPLATE]
14089 instantiate the configuration header FILE
14090
14091 Configuration files:
14092 $config_files
14093
14094 Configuration headers:
14095 $config_headers
14096
14097 Configuration commands:
14098 $config_commands
14099
14100 Report bugs to <[email protected]>."
14101
14102 _ACEOF
14103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14104 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14105 ac_cs_version="\\
14106 compizconfig-python config.status 0.8.18
14107 configured by $0, generated by GNU Autoconf 2.69,
14108 with options \\"\$ac_cs_config\\"
14109
14110 Copyright (C) 2012 Free Software Foundation, Inc.
14111 This config.status script is free software; the Free Software Foundation
14112 gives unlimited permission to copy, distribute and modify it."
14113
14114 ac_pwd='$ac_pwd'
14115 srcdir='$srcdir'
14116 INSTALL='$INSTALL'
14117 MKDIR_P='$MKDIR_P'
14118 AWK='$AWK'
14119 test -n "\$AWK" || AWK=awk
14120 _ACEOF
14121
14122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123 # The default lists apply if the user does not specify any file.
14124 ac_need_defaults=:
14125 while test $# != 0
14126 do
14127 case $1 in
14128 --*=?*)
14129 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14130 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14131 ac_shift=:
14132 ;;
14133 --*=)
14134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14135 ac_optarg=
14136 ac_shift=:
14137 ;;
14138 *)
14139 ac_option=$1
14140 ac_optarg=$2
14141 ac_shift=shift
14142 ;;
14143 esac
14144
14145 case $ac_option in
14146 # Handling of the options.
14147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14148 ac_cs_recheck=: ;;
14149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14150 $as_echo "$ac_cs_version"; exit ;;
14151 --config | --confi | --conf | --con | --co | --c )
14152 $as_echo "$ac_cs_config"; exit ;;
14153 --debug | --debu | --deb | --de | --d | -d )
14154 debug=: ;;
14155 --file | --fil | --fi | --f )
14156 $ac_shift
14157 case $ac_optarg in
14158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14159 '') as_fn_error $? "missing file argument" ;;
14160 esac
14161 as_fn_append CONFIG_FILES " '$ac_optarg'"
14162 ac_need_defaults=false;;
14163 --header | --heade | --head | --hea )
14164 $ac_shift
14165 case $ac_optarg in
14166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14167 esac
14168 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14169 ac_need_defaults=false;;
14170 --he | --h)
14171 # Conflict between --help and --header
14172 as_fn_error $? "ambiguous option: \`$1'
14173 Try \`$0 --help' for more information.";;
14174 --help | --hel | -h )
14175 $as_echo "$ac_cs_usage"; exit ;;
14176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14177 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14178 ac_cs_silent=: ;;
14179
14180 # This is an error.
14181 -*) as_fn_error $? "unrecognized option: \`$1'
14182 Try \`$0 --help' for more information." ;;
14183
14184 *) as_fn_append ac_config_targets " $1"
14185 ac_need_defaults=false ;;
14186
14187 esac
14188 shift
14189 done
14190
14191 ac_configure_extra_args=
14192
14193 if $ac_cs_silent; then
14194 exec 6>/dev/null
14195 ac_configure_extra_args="$ac_configure_extra_args --silent"
14196 fi
14197
14198 _ACEOF
14199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14200 if \$ac_cs_recheck; then
14201 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14202 shift
14203 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14204 CONFIG_SHELL='$SHELL'
14205 export CONFIG_SHELL
14206 exec "\$@"
14207 fi
14208
14209 _ACEOF
14210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14211 exec 5>>config.log
14212 {
14213 echo
14214 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14215 ## Running $as_me. ##
14216 _ASBOX
14217 $as_echo "$ac_log"
14218 } >&5
14219
14220 _ACEOF
14221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14222 #
14223 # INIT-COMMANDS
14224 #
14225 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14226
14227
14228 # The HP-UX ksh and POSIX shell print the target directory to stdout
14229 # if CDPATH is set.
14230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14231
14232 sed_quote_subst='$sed_quote_subst'
14233 double_quote_subst='$double_quote_subst'
14234 delay_variable_subst='$delay_variable_subst'
14235 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14236 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14237 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14238 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14239 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14240 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14241 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14242 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14243 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14244 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14245 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14246 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14247 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14248 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14249 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14250 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14251 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14252 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14253 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14254 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14255 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14256 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14257 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14258 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14259 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14260 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14261 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14262 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14263 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14264 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14265 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14266 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14267 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14268 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14269 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14270 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14271 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14272 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14273 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14274 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14275 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14276 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14277 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14278 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14279 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14280 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14281 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14282 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14283 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14284 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14285 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14286 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14287 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14288 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14289 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14290 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14291 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14292 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14293 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"`'
14294 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14295 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14296 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14297 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14298 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14299 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14300 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14301 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14302 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14303 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14304 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14305 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14306 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14307 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14308 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14309 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14310 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14311 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14312 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14313 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14314 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14315 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14316 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14317 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14318 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14319 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14320 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14321 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14322 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14323 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14324 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14325 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14326 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14327 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14328 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14329 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14330 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14331 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14332 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14333 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14334 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14335 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14336 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14337 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14338 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14339 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14340 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14341 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14342 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14343 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14344 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14345 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14346 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14347 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14348 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14349 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14350 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14351 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14352 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14353 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14354 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14355 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14356 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14357 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14358 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14359 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14360 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14361 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14362 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14363 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14364 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14365 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14366 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14367 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14368 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14369 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14370
14371 LTCC='$LTCC'
14372 LTCFLAGS='$LTCFLAGS'
14373 compiler='$compiler_DEFAULT'
14374
14375 # A function that is used when there is no print builtin or printf.
14376 func_fallback_echo ()
14377 {
14378 eval 'cat <<_LTECHO_EOF
14379 \$1
14380 _LTECHO_EOF'
14381 }
14382
14383 # Quote evaled strings.
14384 for var in SHELL \
14385 ECHO \
14386 PATH_SEPARATOR \
14387 SED \
14388 GREP \
14389 EGREP \
14390 FGREP \
14391 LD \
14392 NM \
14393 LN_S \
14394 lt_SP2NL \
14395 lt_NL2SP \
14396 reload_flag \
14397 OBJDUMP \
14398 deplibs_check_method \
14399 file_magic_cmd \
14400 file_magic_glob \
14401 want_nocaseglob \
14402 DLLTOOL \
14403 sharedlib_from_linklib_cmd \
14404 AR \
14405 AR_FLAGS \
14406 archiver_list_spec \
14407 STRIP \
14408 RANLIB \
14409 CC \
14410 CFLAGS \
14411 compiler \
14412 lt_cv_sys_global_symbol_pipe \
14413 lt_cv_sys_global_symbol_to_cdecl \
14414 lt_cv_sys_global_symbol_to_import \
14415 lt_cv_sys_global_symbol_to_c_name_address \
14416 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14417 lt_cv_nm_interface \
14418 nm_file_list_spec \
14419 lt_cv_truncate_bin \
14420 lt_prog_compiler_no_builtin_flag \
14421 lt_prog_compiler_pic \
14422 lt_prog_compiler_wl \
14423 lt_prog_compiler_static \
14424 lt_cv_prog_compiler_c_o \
14425 need_locks \
14426 MANIFEST_TOOL \
14427 DSYMUTIL \
14428 NMEDIT \
14429 LIPO \
14430 OTOOL \
14431 OTOOL64 \
14432 shrext_cmds \
14433 export_dynamic_flag_spec \
14434 whole_archive_flag_spec \
14435 compiler_needs_object \
14436 with_gnu_ld \
14437 allow_undefined_flag \
14438 no_undefined_flag \
14439 hardcode_libdir_flag_spec \
14440 hardcode_libdir_separator \
14441 exclude_expsyms \
14442 include_expsyms \
14443 file_list_spec \
14444 variables_saved_for_relink \
14445 libname_spec \
14446 library_names_spec \
14447 soname_spec \
14448 install_override_mode \
14449 finish_eval \
14450 old_striplib \
14451 striplib; do
14452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14453 *[\\\\\\\`\\"\\\$]*)
14454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14455 ;;
14456 *)
14457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14458 ;;
14459 esac
14460 done
14461
14462 # Double-quote double-evaled strings.
14463 for var in reload_cmds \
14464 old_postinstall_cmds \
14465 old_postuninstall_cmds \
14466 old_archive_cmds \
14467 extract_expsyms_cmds \
14468 old_archive_from_new_cmds \
14469 old_archive_from_expsyms_cmds \
14470 archive_cmds \
14471 archive_expsym_cmds \
14472 module_cmds \
14473 module_expsym_cmds \
14474 export_symbols_cmds \
14475 prelink_cmds \
14476 postlink_cmds \
14477 postinstall_cmds \
14478 postuninstall_cmds \
14479 finish_cmds \
14480 sys_lib_search_path_spec \
14481 configure_time_dlsearch_path \
14482 configure_time_lt_sys_library_path; do
14483 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14484 *[\\\\\\\`\\"\\\$]*)
14485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14486 ;;
14487 *)
14488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14489 ;;
14490 esac
14491 done
14492
14493 ac_aux_dir='$ac_aux_dir'
14494
14495 # See if we are running on zsh, and set the options that allow our
14496 # commands through without removal of \ escapes INIT.
14497 if test -n "\${ZSH_VERSION+set}"; then
14498 setopt NO_GLOB_SUBST
14499 fi
14500
14501
14502 PACKAGE='$PACKAGE'
14503 VERSION='$VERSION'
14504 RM='$RM'
14505 ofile='$ofile'
14506
14507
14508
14509
14510 _ACEOF
14511
14512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14513
14514 # Handling of arguments.
14515 for ac_config_target in $ac_config_targets
14516 do
14517 case $ac_config_target in
14518 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14519 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14520 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14521 "compizconfig-python.pc") CONFIG_FILES="$CONFIG_FILES compizconfig-python.pc" ;;
14522 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14523 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14524
14525 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14526 esac
14527 done
14528
14529
14530 # If the user did not use the arguments to specify the items to instantiate,
14531 # then the envvar interface is used. Set only those that are not.
14532 # We use the long form for the default assignment because of an extremely
14533 # bizarre bug on SunOS 4.1.3.
14534 if $ac_need_defaults; then
14535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14538 fi
14539
14540 # Have a temporary directory for convenience. Make it in the build tree
14541 # simply because there is no reason against having it here, and in addition,
14542 # creating and moving files from /tmp can sometimes cause problems.
14543 # Hook for its removal unless debugging.
14544 # Note that there is a small window in which the directory will not be cleaned:
14545 # after its creation but before its name has been assigned to `$tmp'.
14546 $debug ||
14547 {
14548 tmp= ac_tmp=
14549 trap 'exit_status=$?
14550 : "${ac_tmp:=$tmp}"
14551 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14552 ' 0
14553 trap 'as_fn_exit 1' 1 2 13 15
14554 }
14555 # Create a (secure) tmp directory for tmp files.
14556
14557 {
14558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14559 test -d "$tmp"
14560 } ||
14561 {
14562 tmp=./conf$$-$RANDOM
14563 (umask 077 && mkdir "$tmp")
14564 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14565 ac_tmp=$tmp
14566
14567 # Set up the scripts for CONFIG_FILES section.
14568 # No need to generate them if there are no CONFIG_FILES.
14569 # This happens for instance with `./config.status config.h'.
14570 if test -n "$CONFIG_FILES"; then
14571
14572
14573 ac_cr=`echo X | tr X '\015'`
14574 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14575 # But we know of no other shell where ac_cr would be empty at this
14576 # point, so we can use a bashism as a fallback.
14577 if test "x$ac_cr" = x; then
14578 eval ac_cr=\$\'\\r\'
14579 fi
14580 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14581 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14582 ac_cs_awk_cr='\\r'
14583 else
14584 ac_cs_awk_cr=$ac_cr
14585 fi
14586
14587 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14588 _ACEOF
14589
14590
14591 {
14592 echo "cat >conf$$subs.awk <<_ACEOF" &&
14593 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14594 echo "_ACEOF"
14595 } >conf$$subs.sh ||
14596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14597 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14598 ac_delim='%!_!# '
14599 for ac_last_try in false false false false false :; do
14600 . ./conf$$subs.sh ||
14601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14602
14603 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14604 if test $ac_delim_n = $ac_delim_num; then
14605 break
14606 elif $ac_last_try; then
14607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14608 else
14609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14610 fi
14611 done
14612 rm -f conf$$subs.sh
14613
14614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14615 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14616 _ACEOF
14617 sed -n '
14618 h
14619 s/^/S["/; s/!.*/"]=/
14620 p
14621 g
14622 s/^[^!]*!//
14623 :repl
14624 t repl
14625 s/'"$ac_delim"'$//
14626 t delim
14627 :nl
14628 h
14629 s/\(.\{148\}\)..*/\1/
14630 t more1
14631 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14632 p
14633 n
14634 b repl
14635 :more1
14636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14637 p
14638 g
14639 s/.\{148\}//
14640 t nl
14641 :delim
14642 h
14643 s/\(.\{148\}\)..*/\1/
14644 t more2
14645 s/["\\]/\\&/g; s/^/"/; s/$/"/
14646 p
14647 b
14648 :more2
14649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14650 p
14651 g
14652 s/.\{148\}//
14653 t delim
14654 ' <conf$$subs.awk | sed '
14655 /^[^""]/{
14656 N
14657 s/\n//
14658 }
14659 ' >>$CONFIG_STATUS || ac_write_fail=1
14660 rm -f conf$$subs.awk
14661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14662 _ACAWK
14663 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14664 for (key in S) S_is_set[key] = 1
14665 FS = ""
14666
14667 }
14668 {
14669 line = $ 0
14670 nfields = split(line, field, "@")
14671 substed = 0
14672 len = length(field[1])
14673 for (i = 2; i < nfields; i++) {
14674 key = field[i]
14675 keylen = length(key)
14676 if (S_is_set[key]) {
14677 value = S[key]
14678 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14679 len += length(value) + length(field[++i])
14680 substed = 1
14681 } else
14682 len += 1 + keylen
14683 }
14684
14685 print line
14686 }
14687
14688 _ACAWK
14689 _ACEOF
14690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14691 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14692 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14693 else
14694 cat
14695 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14696 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14697 _ACEOF
14698
14699 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14700 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14701 # trailing colons and then remove the whole line if VPATH becomes empty
14702 # (actually we leave an empty line to preserve line numbers).
14703 if test "x$srcdir" = x.; then
14704 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14705 h
14706 s///
14707 s/^/:/
14708 s/[ ]*$/:/
14709 s/:\$(srcdir):/:/g
14710 s/:\${srcdir}:/:/g
14711 s/:@srcdir@:/:/g
14712 s/^:*//
14713 s/:*$//
14714 x
14715 s/\(=[ ]*\).*/\1/
14716 G
14717 s/\n//
14718 s/^[^=]*=[ ]*$//
14719 }'
14720 fi
14721
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723 fi # test -n "$CONFIG_FILES"
14724
14725 # Set up the scripts for CONFIG_HEADERS section.
14726 # No need to generate them if there are no CONFIG_HEADERS.
14727 # This happens for instance with `./config.status Makefile'.
14728 if test -n "$CONFIG_HEADERS"; then
14729 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14730 BEGIN {
14731 _ACEOF
14732
14733 # Transform confdefs.h into an awk script `defines.awk', embedded as
14734 # here-document in config.status, that substitutes the proper values into
14735 # config.h.in to produce config.h.
14736
14737 # Create a delimiter string that does not exist in confdefs.h, to ease
14738 # handling of long lines.
14739 ac_delim='%!_!# '
14740 for ac_last_try in false false :; do
14741 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14742 if test -z "$ac_tt"; then
14743 break
14744 elif $ac_last_try; then
14745 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14746 else
14747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14748 fi
14749 done
14750
14751 # For the awk script, D is an array of macro values keyed by name,
14752 # likewise P contains macro parameters if any. Preserve backslash
14753 # newline sequences.
14754
14755 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14756 sed -n '
14757 s/.\{148\}/&'"$ac_delim"'/g
14758 t rset
14759 :rset
14760 s/^[ ]*#[ ]*define[ ][ ]*/ /
14761 t def
14762 d
14763 :def
14764 s/\\$//
14765 t bsnl
14766 s/["\\]/\\&/g
14767 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14768 D["\1"]=" \3"/p
14769 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14770 d
14771 :bsnl
14772 s/["\\]/\\&/g
14773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14774 D["\1"]=" \3\\\\\\n"\\/p
14775 t cont
14776 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14777 t cont
14778 d
14779 :cont
14780 n
14781 s/.\{148\}/&'"$ac_delim"'/g
14782 t clear
14783 :clear
14784 s/\\$//
14785 t bsnlc
14786 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14787 d
14788 :bsnlc
14789 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14790 b cont
14791 ' <confdefs.h | sed '
14792 s/'"$ac_delim"'/"\\\
14793 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14794
14795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14796 for (key in D) D_is_set[key] = 1
14797 FS = ""
14798 }
14799 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14800 line = \$ 0
14801 split(line, arg, " ")
14802 if (arg[1] == "#") {
14803 defundef = arg[2]
14804 mac1 = arg[3]
14805 } else {
14806 defundef = substr(arg[1], 2)
14807 mac1 = arg[2]
14808 }
14809 split(mac1, mac2, "(") #)
14810 macro = mac2[1]
14811 prefix = substr(line, 1, index(line, defundef) - 1)
14812 if (D_is_set[macro]) {
14813 # Preserve the white space surrounding the "#".
14814 print prefix "define", macro P[macro] D[macro]
14815 next
14816 } else {
14817 # Replace #undef with comments. This is necessary, for example,
14818 # in the case of _POSIX_SOURCE, which is predefined and required
14819 # on some systems where configure will not decide to define it.
14820 if (defundef == "undef") {
14821 print "/*", prefix defundef, macro, "*/"
14822 next
14823 }
14824 }
14825 }
14826 { print }
14827 _ACAWK
14828 _ACEOF
14829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14830 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14831 fi # test -n "$CONFIG_HEADERS"
14832
14833
14834 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14835 shift
14836 for ac_tag
14837 do
14838 case $ac_tag in
14839 :[FHLC]) ac_mode=$ac_tag; continue;;
14840 esac
14841 case $ac_mode$ac_tag in
14842 :[FHL]*:*);;
14843 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14844 :[FH]-) ac_tag=-:-;;
14845 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14846 esac
14847 ac_save_IFS=$IFS
14848 IFS=:
14849 set x $ac_tag
14850 IFS=$ac_save_IFS
14851 shift
14852 ac_file=$1
14853 shift
14854
14855 case $ac_mode in
14856 :L) ac_source=$1;;
14857 :[FH])
14858 ac_file_inputs=
14859 for ac_f
14860 do
14861 case $ac_f in
14862 -) ac_f="$ac_tmp/stdin";;
14863 *) # Look for the file first in the build tree, then in the source tree
14864 # (if the path is not absolute). The absolute path cannot be DOS-style,
14865 # because $ac_f cannot contain `:'.
14866 test -f "$ac_f" ||
14867 case $ac_f in
14868 [\\/$]*) false;;
14869 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14870 esac ||
14871 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14872 esac
14873 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14874 as_fn_append ac_file_inputs " '$ac_f'"
14875 done
14876
14877 # Let's still pretend it is `configure' which instantiates (i.e., don't
14878 # use $as_me), people would be surprised to read:
14879 # /* config.h. Generated by config.status. */
14880 configure_input='Generated from '`
14881 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14882 `' by configure.'
14883 if test x"$ac_file" != x-; then
14884 configure_input="$ac_file. $configure_input"
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14886 $as_echo "$as_me: creating $ac_file" >&6;}
14887 fi
14888 # Neutralize special characters interpreted by sed in replacement strings.
14889 case $configure_input in #(
14890 *\&* | *\|* | *\\* )
14891 ac_sed_conf_input=`$as_echo "$configure_input" |
14892 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14893 *) ac_sed_conf_input=$configure_input;;
14894 esac
14895
14896 case $ac_tag in
14897 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14899 esac
14900 ;;
14901 esac
14902
14903 ac_dir=`$as_dirname -- "$ac_file" ||
14904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14905 X"$ac_file" : 'X\(//\)[^/]' \| \
14906 X"$ac_file" : 'X\(//\)$' \| \
14907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14908 $as_echo X"$ac_file" |
14909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14910 s//\1/
14911 q
14912 }
14913 /^X\(\/\/\)[^/].*/{
14914 s//\1/
14915 q
14916 }
14917 /^X\(\/\/\)$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\).*/{
14922 s//\1/
14923 q
14924 }
14925 s/.*/./; q'`
14926 as_dir="$ac_dir"; as_fn_mkdir_p
14927 ac_builddir=.
14928
14929 case "$ac_dir" in
14930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14931 *)
14932 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14933 # A ".." for each directory in $ac_dir_suffix.
14934 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14935 case $ac_top_builddir_sub in
14936 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14937 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14938 esac ;;
14939 esac
14940 ac_abs_top_builddir=$ac_pwd
14941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14942 # for backward compatibility:
14943 ac_top_builddir=$ac_top_build_prefix
14944
14945 case $srcdir in
14946 .) # We are building in place.
14947 ac_srcdir=.
14948 ac_top_srcdir=$ac_top_builddir_sub
14949 ac_abs_top_srcdir=$ac_pwd ;;
14950 [\\/]* | ?:[\\/]* ) # Absolute name.
14951 ac_srcdir=$srcdir$ac_dir_suffix;
14952 ac_top_srcdir=$srcdir
14953 ac_abs_top_srcdir=$srcdir ;;
14954 *) # Relative name.
14955 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14956 ac_top_srcdir=$ac_top_build_prefix$srcdir
14957 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14958 esac
14959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14960
14961
14962 case $ac_mode in
14963 :F)
14964 #
14965 # CONFIG_FILE
14966 #
14967
14968 case $INSTALL in
14969 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14970 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14971 esac
14972 ac_MKDIR_P=$MKDIR_P
14973 case $MKDIR_P in
14974 [\\/$]* | ?:[\\/]* ) ;;
14975 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14976 esac
14977 _ACEOF
14978
14979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14980 # If the template does not know about datarootdir, expand it.
14981 # FIXME: This hack should be removed a few years after 2.60.
14982 ac_datarootdir_hack=; ac_datarootdir_seen=
14983 ac_sed_dataroot='
14984 /datarootdir/ {
14985 p
14986 q
14987 }
14988 /@datadir@/p
14989 /@docdir@/p
14990 /@infodir@/p
14991 /@localedir@/p
14992 /@mandir@/p'
14993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14994 *datarootdir*) ac_datarootdir_seen=yes;;
14995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14997 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14998 _ACEOF
14999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15000 ac_datarootdir_hack='
15001 s&@datadir@&$datadir&g
15002 s&@docdir@&$docdir&g
15003 s&@infodir@&$infodir&g
15004 s&@localedir@&$localedir&g
15005 s&@mandir@&$mandir&g
15006 s&\\\${datarootdir}&$datarootdir&g' ;;
15007 esac
15008 _ACEOF
15009
15010 # Neutralize VPATH when `$srcdir' = `.'.
15011 # Shell code in configure.ac might set extrasub.
15012 # FIXME: do we really want to maintain this feature?
15013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15014 ac_sed_extra="$ac_vpsub
15015 $extrasub
15016 _ACEOF
15017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15018 :t
15019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15020 s|@configure_input@|$ac_sed_conf_input|;t t
15021 s&@top_builddir@&$ac_top_builddir_sub&;t t
15022 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15023 s&@srcdir@&$ac_srcdir&;t t
15024 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15025 s&@top_srcdir@&$ac_top_srcdir&;t t
15026 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15027 s&@builddir@&$ac_builddir&;t t
15028 s&@abs_builddir@&$ac_abs_builddir&;t t
15029 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15030 s&@INSTALL@&$ac_INSTALL&;t t
15031 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15032 $ac_datarootdir_hack
15033 "
15034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15035 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15036
15037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15038 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15040 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15042 which seems to be undefined. Please make sure it is defined" >&5
15043 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15044 which seems to be undefined. Please make sure it is defined" >&2;}
15045
15046 rm -f "$ac_tmp/stdin"
15047 case $ac_file in
15048 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15049 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15050 esac \
15051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15052 ;;
15053 :H)
15054 #
15055 # CONFIG_HEADER
15056 #
15057 if test x"$ac_file" != x-; then
15058 {
15059 $as_echo "/* $configure_input */" \
15060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15061 } >"$ac_tmp/config.h" \
15062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15063 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15065 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15066 else
15067 rm -f "$ac_file"
15068 mv "$ac_tmp/config.h" "$ac_file" \
15069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15070 fi
15071 else
15072 $as_echo "/* $configure_input */" \
15073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15074 || as_fn_error $? "could not create -" "$LINENO" 5
15075 fi
15076 # Compute "$ac_file"'s index in $config_headers.
15077 _am_arg="$ac_file"
15078 _am_stamp_count=1
15079 for _am_header in $config_headers :; do
15080 case $_am_header in
15081 $_am_arg | $_am_arg:* )
15082 break ;;
15083 * )
15084 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15085 esac
15086 done
15087 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15088 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15089 X"$_am_arg" : 'X\(//\)[^/]' \| \
15090 X"$_am_arg" : 'X\(//\)$' \| \
15091 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15092 $as_echo X"$_am_arg" |
15093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15094 s//\1/
15095 q
15096 }
15097 /^X\(\/\/\)[^/].*/{
15098 s//\1/
15099 q
15100 }
15101 /^X\(\/\/\)$/{
15102 s//\1/
15103 q
15104 }
15105 /^X\(\/\).*/{
15106 s//\1/
15107 q
15108 }
15109 s/.*/./; q'`/stamp-h$_am_stamp_count
15110 ;;
15111
15112 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15113 $as_echo "$as_me: executing $ac_file commands" >&6;}
15114 ;;
15115 esac
15116
15117
15118 case $ac_file$ac_mode in
15119 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15120 # Older Autoconf quotes --file arguments for eval, but not when files
15121 # are listed without --file. Let's play safe and only enable the eval
15122 # if we detect the quoting.
15123 case $CONFIG_FILES in
15124 *\'*) eval set x "$CONFIG_FILES" ;;
15125 *) set x $CONFIG_FILES ;;
15126 esac
15127 shift
15128 for mf
15129 do
15130 # Strip MF so we end up with the name of the file.
15131 mf=`echo "$mf" | sed -e 's/:.*$//'`
15132 # Check whether this is an Automake generated Makefile or not.
15133 # We used to match only the files named 'Makefile.in', but
15134 # some people rename them; so instead we look at the file content.
15135 # Grep'ing the first line is not enough: some people post-process
15136 # each Makefile.in and add a new line on top of each file to say so.
15137 # Grep'ing the whole file is not good either: AIX grep has a line
15138 # limit of 2048, but all sed's we know have understand at least 4000.
15139 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15140 dirpart=`$as_dirname -- "$mf" ||
15141 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15142 X"$mf" : 'X\(//\)[^/]' \| \
15143 X"$mf" : 'X\(//\)$' \| \
15144 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15145 $as_echo X"$mf" |
15146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15147 s//\1/
15148 q
15149 }
15150 /^X\(\/\/\)[^/].*/{
15151 s//\1/
15152 q
15153 }
15154 /^X\(\/\/\)$/{
15155 s//\1/
15156 q
15157 }
15158 /^X\(\/\).*/{
15159 s//\1/
15160 q
15161 }
15162 s/.*/./; q'`
15163 else
15164 continue
15165 fi
15166 # Extract the definition of DEPDIR, am__include, and am__quote
15167 # from the Makefile without running 'make'.
15168 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15169 test -z "$DEPDIR" && continue
15170 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15171 test -z "$am__include" && continue
15172 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15173 # Find all dependency output files, they are included files with
15174 # $(DEPDIR) in their names. We invoke sed twice because it is the
15175 # simplest approach to changing $(DEPDIR) to its actual value in the
15176 # expansion.
15177 for file in `sed -n "
15178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15180 # Make sure the directory exists.
15181 test -f "$dirpart/$file" && continue
15182 fdir=`$as_dirname -- "$file" ||
15183 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15184 X"$file" : 'X\(//\)[^/]' \| \
15185 X"$file" : 'X\(//\)$' \| \
15186 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15187 $as_echo X"$file" |
15188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15189 s//\1/
15190 q
15191 }
15192 /^X\(\/\/\)[^/].*/{
15193 s//\1/
15194 q
15195 }
15196 /^X\(\/\/\)$/{
15197 s//\1/
15198 q
15199 }
15200 /^X\(\/\).*/{
15201 s//\1/
15202 q
15203 }
15204 s/.*/./; q'`
15205 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15206 # echo "creating $dirpart/$file"
15207 echo '# dummy' > "$dirpart/$file"
15208 done
15209 done
15210 }
15211 ;;
15212 "libtool":C)
15213
15214 # See if we are running on zsh, and set the options that allow our
15215 # commands through without removal of \ escapes.
15216 if test -n "${ZSH_VERSION+set}"; then
15217 setopt NO_GLOB_SUBST
15218 fi
15219
15220 cfgfile=${ofile}T
15221 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15222 $RM "$cfgfile"
15223
15224 cat <<_LT_EOF >> "$cfgfile"
15225 #! $SHELL
15226 # Generated automatically by $as_me ($PACKAGE) $VERSION
15227 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15228
15229 # Provide generalized library-building support services.
15230 # Written by Gordon Matzigkeit, 1996
15231
15232 # Copyright (C) 2014 Free Software Foundation, Inc.
15233 # This is free software; see the source for copying conditions. There is NO
15234 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15235
15236 # GNU Libtool is free software; you can redistribute it and/or modify
15237 # it under the terms of the GNU General Public License as published by
15238 # the Free Software Foundation; either version 2 of of the License, or
15239 # (at your option) any later version.
15240 #
15241 # As a special exception to the GNU General Public License, if you
15242 # distribute this file as part of a program or library that is built
15243 # using GNU Libtool, you may include this file under the same
15244 # distribution terms that you use for the rest of that program.
15245 #
15246 # GNU Libtool is distributed in the hope that it will be useful, but
15247 # WITHOUT ANY WARRANTY; without even the implied warranty of
15248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15249 # GNU General Public License for more details.
15250 #
15251 # You should have received a copy of the GNU General Public License
15252 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15253
15254
15255 # The names of the tagged configurations supported by this script.
15256 available_tags=''
15257
15258 # Configured defaults for sys_lib_dlsearch_path munging.
15259 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15260
15261 # ### BEGIN LIBTOOL CONFIG
15262
15263 # Which release of libtool.m4 was used?
15264 macro_version=$macro_version
15265 macro_revision=$macro_revision
15266
15267 # Whether or not to build shared libraries.
15268 build_libtool_libs=$enable_shared
15269
15270 # Whether or not to build static libraries.
15271 build_old_libs=$enable_static
15272
15273 # What type of objects to build.
15274 pic_mode=$pic_mode
15275
15276 # Whether or not to optimize for fast installation.
15277 fast_install=$enable_fast_install
15278
15279 # Shared archive member basename,for filename based shared library versioning on AIX.
15280 shared_archive_member_spec=$shared_archive_member_spec
15281
15282 # Shell to use when invoking shell scripts.
15283 SHELL=$lt_SHELL
15284
15285 # An echo program that protects backslashes.
15286 ECHO=$lt_ECHO
15287
15288 # The PATH separator for the build system.
15289 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15290
15291 # The host system.
15292 host_alias=$host_alias
15293 host=$host
15294 host_os=$host_os
15295
15296 # The build system.
15297 build_alias=$build_alias
15298 build=$build
15299 build_os=$build_os
15300
15301 # A sed program that does not truncate output.
15302 SED=$lt_SED
15303
15304 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15305 Xsed="\$SED -e 1s/^X//"
15306
15307 # A grep program that handles long lines.
15308 GREP=$lt_GREP
15309
15310 # An ERE matcher.
15311 EGREP=$lt_EGREP
15312
15313 # A literal string matcher.
15314 FGREP=$lt_FGREP
15315
15316 # A BSD- or MS-compatible name lister.
15317 NM=$lt_NM
15318
15319 # Whether we need soft or hard links.
15320 LN_S=$lt_LN_S
15321
15322 # What is the maximum length of a command?
15323 max_cmd_len=$max_cmd_len
15324
15325 # Object file suffix (normally "o").
15326 objext=$ac_objext
15327
15328 # Executable file suffix (normally "").
15329 exeext=$exeext
15330
15331 # whether the shell understands "unset".
15332 lt_unset=$lt_unset
15333
15334 # turn spaces into newlines.
15335 SP2NL=$lt_lt_SP2NL
15336
15337 # turn newlines into spaces.
15338 NL2SP=$lt_lt_NL2SP
15339
15340 # convert \$build file names to \$host format.
15341 to_host_file_cmd=$lt_cv_to_host_file_cmd
15342
15343 # convert \$build files to toolchain format.
15344 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15345
15346 # An object symbol dumper.
15347 OBJDUMP=$lt_OBJDUMP
15348
15349 # Method to check whether dependent libraries are shared objects.
15350 deplibs_check_method=$lt_deplibs_check_method
15351
15352 # Command to use when deplibs_check_method = "file_magic".
15353 file_magic_cmd=$lt_file_magic_cmd
15354
15355 # How to find potential files when deplibs_check_method = "file_magic".
15356 file_magic_glob=$lt_file_magic_glob
15357
15358 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15359 want_nocaseglob=$lt_want_nocaseglob
15360
15361 # DLL creation program.
15362 DLLTOOL=$lt_DLLTOOL
15363
15364 # Command to associate shared and link libraries.
15365 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15366
15367 # The archiver.
15368 AR=$lt_AR
15369
15370 # Flags to create an archive.
15371 AR_FLAGS=$lt_AR_FLAGS
15372
15373 # How to feed a file listing to the archiver.
15374 archiver_list_spec=$lt_archiver_list_spec
15375
15376 # A symbol stripping program.
15377 STRIP=$lt_STRIP
15378
15379 # Commands used to install an old-style archive.
15380 RANLIB=$lt_RANLIB
15381 old_postinstall_cmds=$lt_old_postinstall_cmds
15382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15383
15384 # Whether to use a lock for old archive extraction.
15385 lock_old_archive_extraction=$lock_old_archive_extraction
15386
15387 # A C compiler.
15388 LTCC=$lt_CC
15389
15390 # LTCC compiler flags.
15391 LTCFLAGS=$lt_CFLAGS
15392
15393 # Take the output of nm and produce a listing of raw symbols and C names.
15394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15395
15396 # Transform the output of nm in a proper C declaration.
15397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15398
15399 # Transform the output of nm into a list of symbols to manually relocate.
15400 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15401
15402 # Transform the output of nm in a C name address pair.
15403 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15404
15405 # Transform the output of nm in a C name address pair when lib prefix is needed.
15406 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15407
15408 # The name lister interface.
15409 nm_interface=$lt_lt_cv_nm_interface
15410
15411 # Specify filename containing input files for \$NM.
15412 nm_file_list_spec=$lt_nm_file_list_spec
15413
15414 # The root where to search for dependent libraries,and where our libraries should be installed.
15415 lt_sysroot=$lt_sysroot
15416
15417 # Command to truncate a binary pipe.
15418 lt_truncate_bin=$lt_lt_cv_truncate_bin
15419
15420 # The name of the directory that contains temporary libtool files.
15421 objdir=$objdir
15422
15423 # Used to examine libraries when file_magic_cmd begins with "file".
15424 MAGIC_CMD=$MAGIC_CMD
15425
15426 # Must we lock files when doing compilation?
15427 need_locks=$lt_need_locks
15428
15429 # Manifest tool.
15430 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15431
15432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15433 DSYMUTIL=$lt_DSYMUTIL
15434
15435 # Tool to change global to local symbols on Mac OS X.
15436 NMEDIT=$lt_NMEDIT
15437
15438 # Tool to manipulate fat objects and archives on Mac OS X.
15439 LIPO=$lt_LIPO
15440
15441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15442 OTOOL=$lt_OTOOL
15443
15444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15445 OTOOL64=$lt_OTOOL64
15446
15447 # Old archive suffix (normally "a").
15448 libext=$libext
15449
15450 # Shared library suffix (normally ".so").
15451 shrext_cmds=$lt_shrext_cmds
15452
15453 # The commands to extract the exported symbol list from a shared archive.
15454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15455
15456 # Variables whose values should be saved in libtool wrapper scripts and
15457 # restored at link time.
15458 variables_saved_for_relink=$lt_variables_saved_for_relink
15459
15460 # Do we need the "lib" prefix for modules?
15461 need_lib_prefix=$need_lib_prefix
15462
15463 # Do we need a version for libraries?
15464 need_version=$need_version
15465
15466 # Library versioning type.
15467 version_type=$version_type
15468
15469 # Shared library runtime path variable.
15470 runpath_var=$runpath_var
15471
15472 # Shared library path variable.
15473 shlibpath_var=$shlibpath_var
15474
15475 # Is shlibpath searched before the hard-coded library search path?
15476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15477
15478 # Format of library name prefix.
15479 libname_spec=$lt_libname_spec
15480
15481 # List of archive names. First name is the real one, the rest are links.
15482 # The last name is the one that the linker finds with -lNAME
15483 library_names_spec=$lt_library_names_spec
15484
15485 # The coded name of the library, if different from the real name.
15486 soname_spec=$lt_soname_spec
15487
15488 # Permission mode override for installation of shared libraries.
15489 install_override_mode=$lt_install_override_mode
15490
15491 # Command to use after installation of a shared archive.
15492 postinstall_cmds=$lt_postinstall_cmds
15493
15494 # Command to use after uninstallation of a shared archive.
15495 postuninstall_cmds=$lt_postuninstall_cmds
15496
15497 # Commands used to finish a libtool library installation in a directory.
15498 finish_cmds=$lt_finish_cmds
15499
15500 # As "finish_cmds", except a single script fragment to be evaled but
15501 # not shown.
15502 finish_eval=$lt_finish_eval
15503
15504 # Whether we should hardcode library paths into libraries.
15505 hardcode_into_libs=$hardcode_into_libs
15506
15507 # Compile-time system search path for libraries.
15508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15509
15510 # Detected run-time system search path for libraries.
15511 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15512
15513 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15514 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15515
15516 # Whether dlopen is supported.
15517 dlopen_support=$enable_dlopen
15518
15519 # Whether dlopen of programs is supported.
15520 dlopen_self=$enable_dlopen_self
15521
15522 # Whether dlopen of statically linked programs is supported.
15523 dlopen_self_static=$enable_dlopen_self_static
15524
15525 # Commands to strip libraries.
15526 old_striplib=$lt_old_striplib
15527 striplib=$lt_striplib
15528
15529
15530 # The linker used to build libraries.
15531 LD=$lt_LD
15532
15533 # How to create reloadable object files.
15534 reload_flag=$lt_reload_flag
15535 reload_cmds=$lt_reload_cmds
15536
15537 # Commands used to build an old-style archive.
15538 old_archive_cmds=$lt_old_archive_cmds
15539
15540 # A language specific compiler.
15541 CC=$lt_compiler
15542
15543 # Is the compiler the GNU compiler?
15544 with_gcc=$GCC
15545
15546 # Compiler flag to turn off builtin functions.
15547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15548
15549 # Additional compiler flags for building library objects.
15550 pic_flag=$lt_lt_prog_compiler_pic
15551
15552 # How to pass a linker flag through the compiler.
15553 wl=$lt_lt_prog_compiler_wl
15554
15555 # Compiler flag to prevent dynamic linking.
15556 link_static_flag=$lt_lt_prog_compiler_static
15557
15558 # Does compiler simultaneously support -c and -o options?
15559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15560
15561 # Whether or not to add -lc for building shared libraries.
15562 build_libtool_need_lc=$archive_cmds_need_lc
15563
15564 # Whether or not to disallow shared libs when runtime libs are static.
15565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15566
15567 # Compiler flag to allow reflexive dlopens.
15568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15569
15570 # Compiler flag to generate shared objects directly from archives.
15571 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15572
15573 # Whether the compiler copes with passing no objects directly.
15574 compiler_needs_object=$lt_compiler_needs_object
15575
15576 # Create an old-style archive from a shared archive.
15577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15578
15579 # Create a temporary old-style archive to link instead of a shared archive.
15580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15581
15582 # Commands used to build a shared archive.
15583 archive_cmds=$lt_archive_cmds
15584 archive_expsym_cmds=$lt_archive_expsym_cmds
15585
15586 # Commands used to build a loadable module if different from building
15587 # a shared archive.
15588 module_cmds=$lt_module_cmds
15589 module_expsym_cmds=$lt_module_expsym_cmds
15590
15591 # Whether we are building with GNU ld or not.
15592 with_gnu_ld=$lt_with_gnu_ld
15593
15594 # Flag that allows shared libraries with undefined symbols to be built.
15595 allow_undefined_flag=$lt_allow_undefined_flag
15596
15597 # Flag that enforces no undefined symbols.
15598 no_undefined_flag=$lt_no_undefined_flag
15599
15600 # Flag to hardcode \$libdir into a binary during linking.
15601 # This must work even if \$libdir does not exist
15602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15603
15604 # Whether we need a single "-rpath" flag with a separated argument.
15605 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15606
15607 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15608 # DIR into the resulting binary.
15609 hardcode_direct=$hardcode_direct
15610
15611 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15612 # DIR into the resulting binary and the resulting library dependency is
15613 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15614 # library is relocated.
15615 hardcode_direct_absolute=$hardcode_direct_absolute
15616
15617 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15618 # into the resulting binary.
15619 hardcode_minus_L=$hardcode_minus_L
15620
15621 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15622 # into the resulting binary.
15623 hardcode_shlibpath_var=$hardcode_shlibpath_var
15624
15625 # Set to "yes" if building a shared library automatically hardcodes DIR
15626 # into the library and all subsequent libraries and executables linked
15627 # against it.
15628 hardcode_automatic=$hardcode_automatic
15629
15630 # Set to yes if linker adds runtime paths of dependent libraries
15631 # to runtime path list.
15632 inherit_rpath=$inherit_rpath
15633
15634 # Whether libtool must link a program against all its dependency libraries.
15635 link_all_deplibs=$link_all_deplibs
15636
15637 # Set to "yes" if exported symbols are required.
15638 always_export_symbols=$always_export_symbols
15639
15640 # The commands to list exported symbols.
15641 export_symbols_cmds=$lt_export_symbols_cmds
15642
15643 # Symbols that should not be listed in the preloaded symbols.
15644 exclude_expsyms=$lt_exclude_expsyms
15645
15646 # Symbols that must always be exported.
15647 include_expsyms=$lt_include_expsyms
15648
15649 # Commands necessary for linking programs (against libraries) with templates.
15650 prelink_cmds=$lt_prelink_cmds
15651
15652 # Commands necessary for finishing linking programs.
15653 postlink_cmds=$lt_postlink_cmds
15654
15655 # Specify filename containing input files.
15656 file_list_spec=$lt_file_list_spec
15657
15658 # How to hardcode a shared library path into an executable.
15659 hardcode_action=$hardcode_action
15660
15661 # ### END LIBTOOL CONFIG
15662
15663 _LT_EOF
15664
15665 cat <<'_LT_EOF' >> "$cfgfile"
15666
15667 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15668
15669 # func_munge_path_list VARIABLE PATH
15670 # -----------------------------------
15671 # VARIABLE is name of variable containing _space_ separated list of
15672 # directories to be munged by the contents of PATH, which is string
15673 # having a format:
15674 # "DIR[:DIR]:"
15675 # string "DIR[ DIR]" will be prepended to VARIABLE
15676 # ":DIR[:DIR]"
15677 # string "DIR[ DIR]" will be appended to VARIABLE
15678 # "DIRP[:DIRP]::[DIRA:]DIRA"
15679 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15680 # "DIRA[ DIRA]" will be appended to VARIABLE
15681 # "DIR[:DIR]"
15682 # VARIABLE will be replaced by "DIR[ DIR]"
15683 func_munge_path_list ()
15684 {
15685 case x$2 in
15686 x)
15687 ;;
15688 *:)
15689 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15690 ;;
15691 x:*)
15692 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15693 ;;
15694 *::*)
15695 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15696 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15697 ;;
15698 *)
15699 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15700 ;;
15701 esac
15702 }
15703
15704
15705 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15706 func_cc_basename ()
15707 {
15708 for cc_temp in $*""; do
15709 case $cc_temp in
15710 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15711 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15712 \-*) ;;
15713 *) break;;
15714 esac
15715 done
15716 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15717 }
15718
15719
15720 # ### END FUNCTIONS SHARED WITH CONFIGURE
15721
15722 _LT_EOF
15723
15724 case $host_os in
15725 aix3*)
15726 cat <<\_LT_EOF >> "$cfgfile"
15727 # AIX sometimes has problems with the GCC collect2 program. For some
15728 # reason, if we set the COLLECT_NAMES environment variable, the problems
15729 # vanish in a puff of smoke.
15730 if test set != "${COLLECT_NAMES+set}"; then
15731 COLLECT_NAMES=
15732 export COLLECT_NAMES
15733 fi
15734 _LT_EOF
15735 ;;
15736 esac
15737
15738
15739 ltmain=$ac_aux_dir/ltmain.sh
15740
15741
15742 # We use sed instead of cat because bash on DJGPP gets confused if
15743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15744 # text mode, it properly converts lines to CR/LF. This bash problem
15745 # is reportedly fixed, but why not run on old versions too?
15746 sed '$q' "$ltmain" >> "$cfgfile" \
15747 || (rm -f "$cfgfile"; exit 1)
15748
15749 mv -f "$cfgfile" "$ofile" ||
15750 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15751 chmod +x "$ofile"
15752
15753 ;;
15754
15755 esac
15756 done # for ac_tag
15757
15758
15759 as_fn_exit 0
15760 _ACEOF
15761 ac_clean_files=$ac_clean_files_save
15762
15763 test $ac_write_fail = 0 ||
15764 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15765
15766
15767 # configure is writing to config.log, and then calls config.status.
15768 # config.status does its own redirection, appending to config.log.
15769 # Unfortunately, on DOS this fails, as config.log is still kept open
15770 # by configure, so config.status won't be able to write to it; its
15771 # output is simply discarded. So we exec the FD to /dev/null,
15772 # effectively closing config.log, so it can be properly (re)opened and
15773 # appended to by config.status. When coming back to configure, we
15774 # need to make the FD available again.
15775 if test "$no_create" != yes; then
15776 ac_cs_success=:
15777 ac_config_status_args=
15778 test "$silent" = yes &&
15779 ac_config_status_args="$ac_config_status_args --quiet"
15780 exec 5>/dev/null
15781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15782 exec 5>>config.log
15783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15784 # would make configure fail if this is the last instruction.
15785 $ac_cs_success || as_fn_exit 1
15786 fi
15787 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15789 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15790 fi
15791