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 openbox 3.6.1.
4 #
5 # Report bugs to <http://bugzilla.icculus.org>.
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: http://bugzilla.icculus.org about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script 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='openbox'
592 PACKAGE_TARNAME='openbox'
593 PACKAGE_VERSION='3.6.1'
594 PACKAGE_STRING='openbox 3.6.1'
595 PACKAGE_BUGREPORT='http://bugzilla.icculus.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="openbox/openbox.c"
599 ac_default_prefix=/usr/local
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XAUTH_LIBS
641 XAUTH_CFLAGS
642 XSYNC_LIBS
643 XSYNC_CFLAGS
644 XINERAMA_LIBS
645 XSHAPE_LIBS
646 XSHAPE_CFLAGS
647 XRANDR_LIBS
648 XRANDR_CFLAGS
649 XKB_LIBS
650 XKB_CFLAGS
651 EFENCE_LIBS
652 SM_LIBS
653 SM_CFLAGS
654 X_EXTRA_LIBS
655 X_LIBS
656 X_PRE_LIBS
657 X_CFLAGS
658 XMKMF
659 USE_LIBRSVG_FALSE
660 USE_LIBRSVG_TRUE
661 PKG_CONFIG_LIBRSVG
662 LIBRSVG_LIBS
663 LIBRSVG_CFLAGS
664 USE_IMLIB2_FALSE
665 USE_IMLIB2_TRUE
666 PKG_CONFIG_IMLIB
667 IMLIB2_LIBS
668 IMLIB2_CFLAGS
669 XCURSOR_LIBS
670 XCURSOR_CFLAGS
671 LIBSN_LIBS
672 LIBSN_CFLAGS
673 XML_LIBS
674 XML_CFLAGS
675 PANGO_LIBS
676 PANGO_CFLAGS
677 GLIB_LIBS
678 GLIB_CFLAGS
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 DIRNAME
683 POSUB
684 LTLIBINTL
685 LIBINTL
686 INTLLIBS
687 LTLIBICONV
688 LIBICONV
689 INTL_MACOSX_LIBS
690 MSGMERGE
691 XGETTEXT_015
692 XGETTEXT
693 GMSGFMT_015
694 MSGFMT_015
695 GMSGFMT
696 MSGFMT
697 USE_NLS
698 LIBTOOL_DEPS
699 LT_SYS_LIBRARY_PATH
700 OTOOL64
701 OTOOL
702 LIPO
703 NMEDIT
704 DSYMUTIL
705 MANIFEST_TOOL
706 RANLIB
707 ac_ct_AR
708 AR
709 DLLTOOL
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 EGREP
718 GREP
719 SED
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 LIBTOOL
729 CPP
730 am__fastdepCC_FALSE
731 am__fastdepCC_TRUE
732 CCDEPMODE
733 am__nodep
734 AMDEPBACKSLASH
735 AMDEP_FALSE
736 AMDEP_TRUE
737 am__quote
738 am__include
739 DEPDIR
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
746 CC
747 OBT_CURRENT_MINUS_AGE
748 OBT_AGE
749 OBT_REVISION
750 OBT_CURRENT
751 OBT_RELEASE
752 RR_CURRENT_MINUS_AGE
753 RR_AGE
754 RR_REVISION
755 RR_CURRENT
756 RR_RELEASE
757 OBT_VERSION
758 OBT_BINARY_AGE
759 OBT_INTERFACE_AGE
760 OBT_MICRO_VERSION
761 OBT_MINOR_VERSION
762 OBT_MAJOR_VERSION
763 RR_VERSION
764 RR_BINARY_AGE
765 RR_INTERFACE_AGE
766 RR_MICRO_VERSION
767 RR_MINOR_VERSION
768 RR_MAJOR_VERSION
769 OB_VERSION
770 AM_BACKSLASH
771 AM_DEFAULT_VERBOSITY
772 AM_DEFAULT_V
773 AM_V
774 am__untar
775 am__tar
776 AMTAR
777 am__leading_dot
778 SET_MAKE
779 AWK
780 mkdir_p
781 MKDIR_P
782 INSTALL_STRIP_PROGRAM
783 STRIP
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_silent_rules
839 enable_strict_ansi
840 enable_super_warnings
841 enable_debug
842 enable_gprof
843 enable_gprof_libc
844 enable_dependency_tracking
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 with_aix_soname
850 with_gnu_ld
851 with_sysroot
852 enable_libtool_lock
853 enable_nls
854 enable_rpath
855 with_libiconv_prefix
856 with_libintl_prefix
857 enable_startup_notification
858 enable_xcursor
859 enable_imlib2
860 enable_librsvg
861 with_x
862 enable_session_management
863 enable_xkb
864 enable_xrandr
865 enable_xshape
866 enable_xinerama
867 enable_xsync
868 '
869 ac_precious_vars='build_alias
870 host_alias
871 target_alias
872 CC
873 CFLAGS
874 LDFLAGS
875 LIBS
876 CPPFLAGS
877 CPP
878 LT_SYS_LIBRARY_PATH
879 PKG_CONFIG
880 PKG_CONFIG_PATH
881 PKG_CONFIG_LIBDIR
882 GLIB_CFLAGS
883 GLIB_LIBS
884 PANGO_CFLAGS
885 PANGO_LIBS
886 XML_CFLAGS
887 XML_LIBS
888 LIBSN_CFLAGS
889 LIBSN_LIBS
890 XCURSOR_CFLAGS
891 XCURSOR_LIBS
892 IMLIB2_CFLAGS
893 IMLIB2_LIBS
894 LIBRSVG_CFLAGS
895 LIBRSVG_LIBS
896 XMKMF'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
956 fi
957
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1027
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1247
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1281
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1295
1296 *)
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 ;;
1303
1304 esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1325 do
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1354 fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\).*/{
1394 s//\1/
1395 q
1396 }
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1401 fi
1402 else
1403 ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 \`configure' configures openbox 3.6.1 to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/openbox]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499 X features:
1500 --x-includes=DIR X include files are in DIR
1501 --x-libraries=DIR X library files are in DIR
1502
1503 System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 _ACEOF
1507 fi
1508
1509 if test -n "$ac_init_help"; then
1510 case $ac_init_help in
1511 short | recursive ) echo "Configuration of openbox 3.6.1:";;
1512 esac
1513 cat <<\_ACEOF
1514
1515 Optional Features:
1516 --disable-option-checking ignore unrecognized --enable/--with options
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --enable-silent-rules less verbose build output (undo: `make V=1')
1520 --disable-silent-rules verbose build output (undo: `make V=0')
1521 --enable-strict-ansi Enable strict ANSI compliance build [[default=no]]
1522 --enable-super-warnings Enable extra compiler warnings [[default=no]]
1523 --enable-debug build a debug version [[default=no]]
1524 --enable-gprof Enable gprof profiling output [[default=no]]
1525 --enable-gprof-libc Link against libc with profiling support
1526 [[default=no]]
1527 --disable-dependency-tracking speeds up one-time build
1528 --enable-dependency-tracking do not reject slow dependency extractors
1529 --enable-shared[=PKGS] build shared libraries [default=yes]
1530 --enable-static[=PKGS] build static libraries [default=yes]
1531 --enable-fast-install[=PKGS]
1532 optimize for fast installation [default=yes]
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534 --disable-nls do not use Native Language Support
1535 --disable-rpath do not hardcode runtime library paths
1536 --disable-startup-notification
1537 disable the startup notification library.
1538 [default=enabled]
1539 --disable-xcursor disable use of the X Cursor library.
1540 [default=enabled]
1541 --disable-imlib2 disable use of Imlib2 image library for loading
1542 icons. [default=enabled]
1543 --disable-librsvg disable use of SVG image files for loading icons.
1544 [default=enabled]
1545 --disable-session-management
1546 build without support for session managers
1547 [default=enabled]
1548 --disable-xkb build without support for xkb extension
1549 [default=enabled]
1550 --disable-xrandr build without support for xrandr extension
1551 [default=enabled]
1552 --disable-xshape build without support for xshape extension
1553 [default=enabled]
1554 --disable-xinerama build without support for xinerama [default=enabled]
1555 --disable-xsync build without support for xsync extension
1556 [default=enabled]
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1562 both]
1563 --with-aix-soname=aix|svr4|both
1564 shared library versioning (aka "SONAME") variant to
1565 provide on AIX, [default=aix].
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1568 compiler's sysroot if not specified).
1569 --with-gnu-ld assume the C compiler uses GNU ld default=no
1570 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1571 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1572 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1573 --without-libintl-prefix don't search for libintl in includedir and libdir
1574 --with-x use the X Window System
1575
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CPP C preprocessor
1585 LT_SYS_LIBRARY_PATH
1586 User-defined run-time library search path.
1587 PKG_CONFIG path to pkg-config utility
1588 PKG_CONFIG_PATH
1589 directories to add to pkg-config's search path
1590 PKG_CONFIG_LIBDIR
1591 path overriding pkg-config's built-in search path
1592 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1593 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1594 PANGO_CFLAGS
1595 C compiler flags for PANGO, overriding pkg-config
1596 PANGO_LIBS linker flags for PANGO, overriding pkg-config
1597 XML_CFLAGS C compiler flags for XML, overriding pkg-config
1598 XML_LIBS linker flags for XML, overriding pkg-config
1599 LIBSN_CFLAGS
1600 C compiler flags for LIBSN, overriding pkg-config
1601 LIBSN_LIBS linker flags for LIBSN, overriding pkg-config
1602 XCURSOR_CFLAGS
1603 C compiler flags for XCURSOR, overriding pkg-config
1604 XCURSOR_LIBS
1605 linker flags for XCURSOR, overriding pkg-config
1606 IMLIB2_CFLAGS
1607 C compiler flags for IMLIB2, overriding pkg-config
1608 IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config
1609 LIBRSVG_CFLAGS
1610 C compiler flags for LIBRSVG, overriding pkg-config
1611 LIBRSVG_LIBS
1612 linker flags for LIBRSVG, overriding pkg-config
1613 XMKMF Path to xmkmf, Makefile generator for X Window System
1614
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1617
1618 Report bugs to <http://bugzilla.icculus.org>.
1619 _ACEOF
1620 ac_status=$?
1621 fi
1622
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 continue
1629 ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648 .) # We are building in place.
1649 ac_srcdir=.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1671 else
1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1675 done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680 cat <<\_ACEOF
1681 openbox configure 3.6.1
1682 generated by GNU Autoconf 2.69
1683
1684 Copyright (C) 2012 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688 exit
1689 fi
1690
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1694
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727 fi
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_compile
1732
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_cpp
1769
1770 # ac_fn_c_try_link LINENO
1771 # -----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_c_try_link ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 test -x conftest$ac_exeext
1798 }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_link
1815
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $4
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_header_compile
1846
1847 # ac_fn_c_try_run LINENO
1848 # ----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850 # that executables *can* be run.
1851 ac_fn_c_try_run ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=$ac_status
1882 fi
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1886
1887 } # ac_fn_c_try_run
1888
1889 # ac_fn_c_check_func LINENO FUNC VAR
1890 # ----------------------------------
1891 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1892 ac_fn_c_check_func ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904 #define $2 innocuous_$2
1905
1906 /* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below.
1908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909 <limits.h> exists even on freestanding compilers. */
1910
1911 #ifdef __STDC__
1912 # include <limits.h>
1913 #else
1914 # include <assert.h>
1915 #endif
1916
1917 #undef $2
1918
1919 /* Override any GCC internal prototype to avoid an error.
1920 Use char because int might match the return type of a GCC
1921 builtin and then its argument prototype would still apply. */
1922 #ifdef __cplusplus
1923 extern "C"
1924 #endif
1925 char $2 ();
1926 /* The GNU C library defines this for functions which it implements
1927 to always fail with ENOSYS. Some functions are actually named
1928 something starting with __ and the normal name is an alias. */
1929 #if defined __stub_$2 || defined __stub___$2
1930 choke me
1931 #endif
1932
1933 int
1934 main ()
1935 {
1936 return $2 ();
1937 ;
1938 return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_link "$LINENO"; then :
1942 eval "$3=yes"
1943 else
1944 eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext \
1947 conftest$ac_exeext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_func
1955
1956 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1957 # -------------------------------------------------------
1958 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1959 # the include files in INCLUDES and setting the cache variable VAR
1960 # accordingly.
1961 ac_fn_c_check_header_mongrel ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if eval \${$3+:} false; then :
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \${$3+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969 fi
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 else
1974 # Is the header compilable?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1976 $as_echo_n "checking $2 usability... " >&6; }
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $4
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_header_compiler=yes
1984 else
1985 ac_header_compiler=no
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1989 $as_echo "$ac_header_compiler" >&6; }
1990
1991 # Is the header present?
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1993 $as_echo_n "checking $2 presence... " >&6; }
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_cpp "$LINENO"; then :
1999 ac_header_preproc=yes
2000 else
2001 ac_header_preproc=no
2002 fi
2003 rm -f conftest.err conftest.i conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2005 $as_echo "$ac_header_preproc" >&6; }
2006
2007 # So? What about this header?
2008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2009 yes:no: )
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2011 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ;;
2015 no:yes:* )
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2017 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2019 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2021 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2023 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2025 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 ( $as_echo "## ------------------------------------------ ##
2027 ## Report this to http://bugzilla.icculus.org ##
2028 ## ------------------------------------------ ##"
2029 ) | sed "s/^/$as_me: WARNING: /" >&2
2030 ;;
2031 esac
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 eval "$3=\$ac_header_compiler"
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 fi
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045 } # ac_fn_c_check_header_mongrel
2046 cat >config.log <<_ACEOF
2047 This file contains any messages produced by compilers while
2048 running configure, to aid debugging if configure makes a mistake.
2049
2050 It was created by openbox $as_me 3.6.1, which was
2051 generated by GNU Autoconf 2.69. Invocation command line was
2052
2053 $ $0 $@
2054
2055 _ACEOF
2056 exec 5>>config.log
2057 {
2058 cat <<_ASUNAME
2059 ## --------- ##
2060 ## Platform. ##
2061 ## --------- ##
2062
2063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2068
2069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2071
2072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2075 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2079
2080 _ASUNAME
2081
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 $as_echo "PATH: $as_dir"
2088 done
2089 IFS=$as_save_IFS
2090
2091 } >&5
2092
2093 cat >&5 <<_ACEOF
2094
2095
2096 ## ----------- ##
2097 ## Core tests. ##
2098 ## ----------- ##
2099
2100 _ACEOF
2101
2102
2103 # Keep a trace of the command line.
2104 # Strip out --no-create and --no-recursion so they do not pile up.
2105 # Strip out --silent because we don't want to record it for future runs.
2106 # Also quote any args containing shell meta-characters.
2107 # Make two passes to allow for proper duplicate-argument suppression.
2108 ac_configure_args=
2109 ac_configure_args0=
2110 ac_configure_args1=
2111 ac_must_keep_next=false
2112 for ac_pass in 1 2
2113 do
2114 for ac_arg
2115 do
2116 case $ac_arg in
2117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2119 | -silent | --silent | --silen | --sile | --sil)
2120 continue ;;
2121 *\'*)
2122 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2123 esac
2124 case $ac_pass in
2125 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2126 2)
2127 as_fn_append ac_configure_args1 " '$ac_arg'"
2128 if test $ac_must_keep_next = true; then
2129 ac_must_keep_next=false # Got value, back to normal.
2130 else
2131 case $ac_arg in
2132 *=* | --config-cache | -C | -disable-* | --disable-* \
2133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2135 | -with-* | --with-* | -without-* | --without-* | --x)
2136 case "$ac_configure_args0 " in
2137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138 esac
2139 ;;
2140 -* ) ac_must_keep_next=true ;;
2141 esac
2142 fi
2143 as_fn_append ac_configure_args " '$ac_arg'"
2144 ;;
2145 esac
2146 done
2147 done
2148 { ac_configure_args0=; unset ac_configure_args0;}
2149 { ac_configure_args1=; unset ac_configure_args1;}
2150
2151 # When interrupted or exit'd, cleanup temporary files, and complete
2152 # config.log. We remove comments because anyway the quotes in there
2153 # would cause problems or look ugly.
2154 # WARNING: Use '\'' to represent an apostrophe within the trap.
2155 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2156 trap 'exit_status=$?
2157 # Save into config.log some information that might help in debugging.
2158 {
2159 echo
2160
2161 $as_echo "## ---------------- ##
2162 ## Cache variables. ##
2163 ## ---------------- ##"
2164 echo
2165 # The following way of writing the cache mishandles newlines in values,
2166 (
2167 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in #(
2170 *${as_nl}*)
2171 case $ac_var in #(
2172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174 esac
2175 case $ac_var in #(
2176 _ | IFS | as_nl) ;; #(
2177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178 *) { eval $ac_var=; unset $ac_var;} ;;
2179 esac ;;
2180 esac
2181 done
2182 (set) 2>&1 |
2183 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184 *${as_nl}ac_space=\ *)
2185 sed -n \
2186 "s/'\''/'\''\\\\'\'''\''/g;
2187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188 ;; #(
2189 *)
2190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191 ;;
2192 esac |
2193 sort
2194 )
2195 echo
2196
2197 $as_echo "## ----------------- ##
2198 ## Output variables. ##
2199 ## ----------------- ##"
2200 echo
2201 for ac_var in $ac_subst_vars
2202 do
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2210
2211 if test -n "$ac_subst_files"; then
2212 $as_echo "## ------------------- ##
2213 ## File substitutions. ##
2214 ## ------------------- ##"
2215 echo
2216 for ac_var in $ac_subst_files
2217 do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2225 fi
2226
2227 if test -s confdefs.h; then
2228 $as_echo "## ----------- ##
2229 ## confdefs.h. ##
2230 ## ----------- ##"
2231 echo
2232 cat confdefs.h
2233 echo
2234 fi
2235 test "$ac_signal" != 0 &&
2236 $as_echo "$as_me: caught signal $ac_signal"
2237 $as_echo "$as_me: exit $exit_status"
2238 } >&5
2239 rm -f core *.core core.conftest.* &&
2240 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2241 exit $exit_status
2242 ' 0
2243 for ac_signal in 1 2 13 15; do
2244 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2245 done
2246 ac_signal=0
2247
2248 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2249 rm -f -r conftest* confdefs.h
2250
2251 $as_echo "/* confdefs.h */" > confdefs.h
2252
2253 # Predefined preprocessor variables.
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_NAME "$PACKAGE_NAME"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_STRING "$PACKAGE_STRING"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_URL "$PACKAGE_URL"
2277 _ACEOF
2278
2279
2280 # Let the site file select an alternate cache file if it wants to.
2281 # Prefer an explicitly selected file to automatically selected ones.
2282 ac_site_file1=NONE
2283 ac_site_file2=NONE
2284 if test -n "$CONFIG_SITE"; then
2285 # We do not want a PATH search for config.site.
2286 case $CONFIG_SITE in #((
2287 -*) ac_site_file1=./$CONFIG_SITE;;
2288 */*) ac_site_file1=$CONFIG_SITE;;
2289 *) ac_site_file1=./$CONFIG_SITE;;
2290 esac
2291 elif test "x$prefix" != xNONE; then
2292 ac_site_file1=$prefix/share/config.site
2293 ac_site_file2=$prefix/etc/config.site
2294 else
2295 ac_site_file1=$ac_default_prefix/share/config.site
2296 ac_site_file2=$ac_default_prefix/etc/config.site
2297 fi
2298 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2299 do
2300 test "x$ac_site_file" = xNONE && continue
2301 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2303 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2304 sed 's/^/| /' "$ac_site_file" >&5
2305 . "$ac_site_file" \
2306 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 as_fn_error $? "failed to load site script $ac_site_file
2309 See \`config.log' for more details" "$LINENO" 5; }
2310 fi
2311 done
2312
2313 if test -r "$cache_file"; then
2314 # Some versions of bash will fail to source /dev/null (special files
2315 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2316 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2318 $as_echo "$as_me: loading cache $cache_file" >&6;}
2319 case $cache_file in
2320 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2321 *) . "./$cache_file";;
2322 esac
2323 fi
2324 else
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2326 $as_echo "$as_me: creating cache $cache_file" >&6;}
2327 >$cache_file
2328 fi
2329
2330 # Check that the precious variables saved in the cache have kept the same
2331 # value.
2332 ac_cache_corrupted=false
2333 for ac_var in $ac_precious_vars; do
2334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2335 eval ac_new_set=\$ac_env_${ac_var}_set
2336 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2337 eval ac_new_val=\$ac_env_${ac_var}_value
2338 case $ac_old_set,$ac_new_set in
2339 set,)
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2341 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2342 ac_cache_corrupted=: ;;
2343 ,set)
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2345 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2346 ac_cache_corrupted=: ;;
2347 ,);;
2348 *)
2349 if test "x$ac_old_val" != "x$ac_new_val"; then
2350 # differences in whitespace do not lead to failure.
2351 ac_old_val_w=`echo x $ac_old_val`
2352 ac_new_val_w=`echo x $ac_new_val`
2353 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2355 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2356 ac_cache_corrupted=:
2357 else
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2359 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2360 eval $ac_var=\$ac_old_val
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2363 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2365 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2366 fi;;
2367 esac
2368 # Pass precious variables to config.status.
2369 if test "$ac_new_set" = set; then
2370 case $ac_new_val in
2371 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2372 *) ac_arg=$ac_var=$ac_new_val ;;
2373 esac
2374 case " $ac_configure_args " in
2375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2376 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2377 esac
2378 fi
2379 done
2380 if $ac_cache_corrupted; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2384 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2385 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2386 fi
2387 ## -------------------- ##
2388 ## Main body of script. ##
2389 ## -------------------- ##
2390
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
2397
2398
2399
2400 am__api_version='1.11'
2401
2402 ac_aux_dir=
2403 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2404 if test -f "$ac_dir/install-sh"; then
2405 ac_aux_dir=$ac_dir
2406 ac_install_sh="$ac_aux_dir/install-sh -c"
2407 break
2408 elif test -f "$ac_dir/install.sh"; then
2409 ac_aux_dir=$ac_dir
2410 ac_install_sh="$ac_aux_dir/install.sh -c"
2411 break
2412 elif test -f "$ac_dir/shtool"; then
2413 ac_aux_dir=$ac_dir
2414 ac_install_sh="$ac_aux_dir/shtool install -c"
2415 break
2416 fi
2417 done
2418 if test -z "$ac_aux_dir"; then
2419 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2420 fi
2421
2422 # These three variables are undocumented and unsupported,
2423 # and are intended to be withdrawn in a future Autoconf release.
2424 # They can cause serious problems if a builder's source tree is in a directory
2425 # whose full name contains unusual characters.
2426 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2429
2430
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2437 # AIX /bin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 # Reject install programs that cannot install multiple files.
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2446 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2447 if test -z "$INSTALL"; then
2448 if ${ac_cv_path_install+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 # Account for people who put trailing slashes in PATH elements.
2457 case $as_dir/ in #((
2458 ./ | .// | /[cC]/* | \
2459 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2460 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2461 /usr/ucb/* ) ;;
2462 *)
2463 # OSF1 and SCO ODT 3.0 have their own names for install.
2464 # Don't use installbsd from OSF since it installs stuff as root
2465 # by default.
2466 for ac_prog in ginstall scoinst install; do
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2469 if test $ac_prog = install &&
2470 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471 # AIX install. It has an incompatible calling convention.
2472 :
2473 elif test $ac_prog = install &&
2474 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # program-specific install script used by HP pwplus--don't use.
2476 :
2477 else
2478 rm -rf conftest.one conftest.two conftest.dir
2479 echo one > conftest.one
2480 echo two > conftest.two
2481 mkdir conftest.dir
2482 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2483 test -s conftest.one && test -s conftest.two &&
2484 test -s conftest.dir/conftest.one &&
2485 test -s conftest.dir/conftest.two
2486 then
2487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2488 break 3
2489 fi
2490 fi
2491 fi
2492 done
2493 done
2494 ;;
2495 esac
2496
2497 done
2498 IFS=$as_save_IFS
2499
2500 rm -rf conftest.one conftest.two conftest.dir
2501
2502 fi
2503 if test "${ac_cv_path_install+set}" = set; then
2504 INSTALL=$ac_cv_path_install
2505 else
2506 # As a last resort, use the slow shell script. Don't cache a
2507 # value for INSTALL within a source directory, because that will
2508 # break other packages using the cache if that directory is
2509 # removed, or if the value is a relative name.
2510 INSTALL=$ac_install_sh
2511 fi
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2514 $as_echo "$INSTALL" >&6; }
2515
2516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517 # It thinks the first close brace ends the variable substitution.
2518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519
2520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521
2522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2525 $as_echo_n "checking whether build environment is sane... " >&6; }
2526 # Just in case
2527 sleep 1
2528 echo timestamp > conftest.file
2529 # Reject unsafe characters in $srcdir or the absolute working directory
2530 # name. Accept space and tab only in the latter.
2531 am_lf='
2532 '
2533 case `pwd` in
2534 *[\\\"\#\$\&\'\`$am_lf]*)
2535 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2536 esac
2537 case $srcdir in
2538 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2539 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2540 esac
2541
2542 # Do `set' in a subshell so we don't clobber the current shell's
2543 # arguments. Must try -L first in case configure is actually a
2544 # symlink; some systems play weird games with the mod time of symlinks
2545 # (eg FreeBSD returns the mod time of the symlink's containing
2546 # directory).
2547 if (
2548 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2549 if test "$*" = "X"; then
2550 # -L didn't work.
2551 set X `ls -t "$srcdir/configure" conftest.file`
2552 fi
2553 rm -f conftest.file
2554 if test "$*" != "X $srcdir/configure conftest.file" \
2555 && test "$*" != "X conftest.file $srcdir/configure"; then
2556
2557 # If neither matched, then we have a broken ls. This can happen
2558 # if, for instance, CONFIG_SHELL is bash and it inherits a
2559 # broken ls alias from the environment. This has actually
2560 # happened. Such a system could not be considered "sane".
2561 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2562 alias in your environment" "$LINENO" 5
2563 fi
2564
2565 test "$2" = conftest.file
2566 )
2567 then
2568 # Ok.
2569 :
2570 else
2571 as_fn_error $? "newly created file is older than distributed files!
2572 Check your system clock" "$LINENO" 5
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575 $as_echo "yes" >&6; }
2576 test "$program_prefix" != NONE &&
2577 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2578 # Use a double $ so make ignores it.
2579 test "$program_suffix" != NONE &&
2580 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2581 # Double any \ or $.
2582 # By default was `s,x,x', remove it if useless.
2583 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2584 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2585
2586 # expand $ac_aux_dir to an absolute path
2587 am_aux_dir=`cd $ac_aux_dir && pwd`
2588
2589 if test x"${MISSING+set}" != xset; then
2590 case $am_aux_dir in
2591 *\ * | *\ *)
2592 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2593 *)
2594 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2595 esac
2596 fi
2597 # Use eval to expand $SHELL
2598 if eval "$MISSING --run true"; then
2599 am_missing_run="$MISSING --run "
2600 else
2601 am_missing_run=
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2603 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2604 fi
2605
2606 if test x"${install_sh}" != xset; then
2607 case $am_aux_dir in
2608 *\ * | *\ *)
2609 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2610 *)
2611 install_sh="\${SHELL} $am_aux_dir/install-sh"
2612 esac
2613 fi
2614
2615 # Installed binaries are usually stripped using `strip' when the user
2616 # run `make install-strip'. However `strip' might not be the right
2617 # tool to use in cross-compilation environments, therefore Automake
2618 # will honor the `STRIP' environment variable to overrule this program.
2619 if test "$cross_compiling" != no; then
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2622 set dummy ${ac_tool_prefix}strip; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_STRIP+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$STRIP"; then
2629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 STRIP=$ac_cv_prog_STRIP
2649 if test -n "$STRIP"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2651 $as_echo "$STRIP" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2656
2657
2658 fi
2659 if test -z "$ac_cv_prog_STRIP"; then
2660 ac_ct_STRIP=$STRIP
2661 # Extract the first word of "strip", so it can be a program name with args.
2662 set dummy strip; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$ac_ct_STRIP"; then
2669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_ac_ct_STRIP="strip"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2689 if test -n "$ac_ct_STRIP"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2691 $as_echo "$ac_ct_STRIP" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697 if test "x$ac_ct_STRIP" = x; then
2698 STRIP=":"
2699 else
2700 case $cross_compiling:$ac_tool_warned in
2701 yes:)
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704 ac_tool_warned=yes ;;
2705 esac
2706 STRIP=$ac_ct_STRIP
2707 fi
2708 else
2709 STRIP="$ac_cv_prog_STRIP"
2710 fi
2711
2712 fi
2713 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2716 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2717 if test -z "$MKDIR_P"; then
2718 if ${ac_cv_path_mkdir+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2723 do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_prog in mkdir gmkdir; do
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2729 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2730 'mkdir (GNU coreutils) '* | \
2731 'mkdir (coreutils) '* | \
2732 'mkdir (fileutils) '4.1*)
2733 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2734 break 3;;
2735 esac
2736 done
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742
2743 test -d ./--version && rmdir ./--version
2744 if test "${ac_cv_path_mkdir+set}" = set; then
2745 MKDIR_P="$ac_cv_path_mkdir -p"
2746 else
2747 # As a last resort, use the slow shell script. Don't cache a
2748 # value for MKDIR_P within a source directory, because that will
2749 # break other packages using the cache if that directory is
2750 # removed, or if the value is a relative name.
2751 MKDIR_P="$ac_install_sh -d"
2752 fi
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2755 $as_echo "$MKDIR_P" >&6; }
2756
2757 mkdir_p="$MKDIR_P"
2758 case $mkdir_p in
2759 [\\/$]* | ?:[\\/]*) ;;
2760 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2761 esac
2762
2763 for ac_prog in gawk mawk nawk awk
2764 do
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_AWK+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$AWK"; then
2773 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_prog_AWK="$ac_prog"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 AWK=$ac_cv_prog_AWK
2793 if test -n "$AWK"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795 $as_echo "$AWK" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 test -n "$AWK" && break
2803 done
2804
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807 set x ${MAKE-make}
2808 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 cat >conftest.make <<\_ACEOF
2813 SHELL = /bin/sh
2814 all:
2815 @echo '@@@%%%=$(MAKE)=@@@%%%'
2816 _ACEOF
2817 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819 *@@@%%%=?*=@@@%%%*)
2820 eval ac_cv_prog_make_${ac_make}_set=yes;;
2821 *)
2822 eval ac_cv_prog_make_${ac_make}_set=no;;
2823 esac
2824 rm -f conftest.make
2825 fi
2826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828 $as_echo "yes" >&6; }
2829 SET_MAKE=
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 SET_MAKE="MAKE=${MAKE-make}"
2834 fi
2835
2836 rm -rf .tst 2>/dev/null
2837 mkdir .tst 2>/dev/null
2838 if test -d .tst; then
2839 am__leading_dot=.
2840 else
2841 am__leading_dot=_
2842 fi
2843 rmdir .tst 2>/dev/null
2844
2845 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847 # is not polluted with repeated "-I."
2848 am__isrc=' -I$(srcdir)'
2849 # test to see if srcdir already configured
2850 if test -f $srcdir/config.status; then
2851 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2852 fi
2853 fi
2854
2855 # test whether we have cygpath
2856 if test -z "$CYGPATH_W"; then
2857 if (cygpath --version) >/dev/null 2>/dev/null; then
2858 CYGPATH_W='cygpath -w'
2859 else
2860 CYGPATH_W=echo
2861 fi
2862 fi
2863
2864
2865 # Define the identity of the package.
2866 PACKAGE='openbox'
2867 VERSION='3.6.1'
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE "$PACKAGE"
2872 _ACEOF
2873
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define VERSION "$VERSION"
2877 _ACEOF
2878
2879 # Some tools Automake needs.
2880
2881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2882
2883
2884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2885
2886
2887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2888
2889
2890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2891
2892
2893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2894
2895 # We need awk for the "check" target. The system "awk" is bad on
2896 # some platforms.
2897 # Always define AMTAR for backward compatibility. Yes, it's still used
2898 # in the wild :-( We should find a proper way to deprecate it ...
2899 AMTAR='$${TAR-tar}'
2900
2901 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2902
2903
2904
2905
2906
2907 # Check whether --enable-silent-rules was given.
2908 if test "${enable_silent_rules+set}" = set; then :
2909 enableval=$enable_silent_rules;
2910 fi
2911
2912 case $enable_silent_rules in
2913 yes) AM_DEFAULT_VERBOSITY=0;;
2914 no) AM_DEFAULT_VERBOSITY=1;;
2915 *) AM_DEFAULT_VERBOSITY=0;;
2916 esac
2917 am_make=${MAKE-make}
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2919 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2920 if ${am_cv_make_support_nested_variables+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if $as_echo 'TRUE=$(BAR$(V))
2924 BAR0=false
2925 BAR1=true
2926 V=1
2927 am__doit:
2928 @$(TRUE)
2929 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2930 am_cv_make_support_nested_variables=yes
2931 else
2932 am_cv_make_support_nested_variables=no
2933 fi
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2936 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2937 if test $am_cv_make_support_nested_variables = yes; then
2938 AM_V='$(V)'
2939 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2940 else
2941 AM_V=$AM_DEFAULT_VERBOSITY
2942 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2943 fi
2944 AM_BACKSLASH='\'
2945
2946
2947 OB_VERSION=$PACKAGE_VERSION
2948
2949
2950 RR_MAJOR_VERSION=3
2951 RR_MINOR_VERSION=6
2952 RR_MICRO_VERSION=32
2953 RR_INTERFACE_AGE=0
2954 RR_BINARY_AGE=0
2955 RR_VERSION=$RR_MAJOR_VERSION.$RR_MINOR_VERSION
2956
2957 OBT_MAJOR_VERSION=3
2958 OBT_MINOR_VERSION=6
2959 OBT_MICRO_VERSION=4
2960 OBT_INTERFACE_AGE=2
2961 OBT_BINARY_AGE=2
2962 OBT_VERSION=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977 RR_RELEASE=$RR_MAJOR_VERSION.$RR_MINOR_VERSION
2978 RR_CURRENT=`expr $RR_MICRO_VERSION - $RR_INTERFACE_AGE`
2979 RR_REVISION=$RR_INTERFACE_AGE
2980 RR_AGE=`expr $RR_BINARY_AGE - $RR_INTERFACE_AGE`
2981 RR_CURRENT_MINUS_AGE=`expr $RR_CURRENT - $RR_AGE`
2982
2983 OBT_RELEASE=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION
2984 OBT_CURRENT=`expr $OBT_MICRO_VERSION - $OBT_INTERFACE_AGE`
2985 OBT_REVISION=$OBT_INTERFACE_AGE
2986 OBT_AGE=`expr $OBT_BINARY_AGE - $OBT_INTERFACE_AGE`
2987 OBT_CURRENT_MINUS_AGE=`expr $OBT_CURRENT - $OBT_AGE`
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001 test "$prefix" = "NONE" && prefix=$ac_default_prefix
3002
3003
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
3005 $as_echo_n "checking build type... " >&6; }
3006
3007 # Check whether --enable-strict-ansi was given.
3008 if test "${enable_strict_ansi+set}" = set; then :
3009 enableval=$enable_strict_ansi; STRICT=$enableval
3010 else
3011 STRICT="no"
3012 fi
3013
3014
3015 # Check whether --enable-super-warnings was given.
3016 if test "${enable_super_warnings+set}" = set; then :
3017 enableval=$enable_super_warnings; SUPERWARN=$enableval
3018 else
3019 SUPERWARN="no"
3020 fi
3021
3022
3023 # Check whether --enable-debug was given.
3024 if test "${enable_debug+set}" = set; then :
3025 enableval=$enable_debug; DEBUG=$enableval
3026 else
3027 DEBUG="no"
3028 fi
3029
3030
3031 # Check whether --enable-gprof was given.
3032 if test "${enable_gprof+set}" = set; then :
3033 enableval=$enable_gprof; PROF=$enableval
3034 else
3035 PROF="no"
3036 fi
3037
3038
3039 # Check whether --enable-gprof-libc was given.
3040 if test "${enable_gprof_libc+set}" = set; then :
3041 enableval=$enable_gprof_libc; PROFLC=$enableval
3042 else
3043 PROFLC="no"
3044 fi
3045
3046
3047 if test "$PROFLC" = "yes"; then
3048 PROF="yes" # always enable profiling then
3049 fi
3050
3051 TEST=""
3052 test "${PACKAGE_VERSION%*alpha*}" != "$PACKAGE_VERSION" && TEST="yes"
3053 test "${PACKAGE_VERSION%*beta*}" != "$PACKAGE_VERSION" && TEST="yes"
3054 test "$TEST" = "yes" && DEBUG="yes"
3055
3056 if test "$DEBUG" = "yes"; then
3057 MSG="DEBUG"
3058 else
3059 MSG="RELEASE"
3060 fi
3061 if test "$TEST" = "yes"; then
3062 MSG="$MSG (test release)"
3063 fi
3064 if test "$STRICT" = "yes"; then
3065 MSG="$MSG with strict ANSI compliance"
3066 fi
3067 if test "$SUPERWARN" = "yes"; then
3068 MSG="$MSG with super warnings"
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5
3071 $as_echo "$MSG" >&6; }
3072
3073 test "$DEBUG" = "yes" && \
3074
3075 $as_echo "#define DEBUG 1" >>confdefs.h
3076
3077
3078 DEPDIR="${am__leading_dot}deps"
3079
3080 ac_config_commands="$ac_config_commands depfiles"
3081
3082
3083 am_make=${MAKE-make}
3084 cat > confinc << 'END'
3085 am__doit:
3086 @echo this is the am__doit target
3087 .PHONY: am__doit
3088 END
3089 # If we don't find an include directive, just comment out the code.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3091 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3092 am__include="#"
3093 am__quote=
3094 _am_result=none
3095 # First try GNU make style include.
3096 echo "include confinc" > confmf
3097 # Ignore all kinds of additional output from `make'.
3098 case `$am_make -s -f confmf 2> /dev/null` in #(
3099 *the\ am__doit\ target*)
3100 am__include=include
3101 am__quote=
3102 _am_result=GNU
3103 ;;
3104 esac
3105 # Now try BSD make style include.
3106 if test "$am__include" = "#"; then
3107 echo '.include "confinc"' > confmf
3108 case `$am_make -s -f confmf 2> /dev/null` in #(
3109 *the\ am__doit\ target*)
3110 am__include=.include
3111 am__quote="\""
3112 _am_result=BSD
3113 ;;
3114 esac
3115 fi
3116
3117
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3119 $as_echo "$_am_result" >&6; }
3120 rm -f confinc confmf
3121
3122 # Check whether --enable-dependency-tracking was given.
3123 if test "${enable_dependency_tracking+set}" = set; then :
3124 enableval=$enable_dependency_tracking;
3125 fi
3126
3127 if test "x$enable_dependency_tracking" != xno; then
3128 am_depcomp="$ac_aux_dir/depcomp"
3129 AMDEPBACKSLASH='\'
3130 am__nodep='_no'
3131 fi
3132 if test "x$enable_dependency_tracking" != xno; then
3133 AMDEP_TRUE=
3134 AMDEP_FALSE='#'
3135 else
3136 AMDEP_TRUE='#'
3137 AMDEP_FALSE=
3138 fi
3139
3140
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 if test -n "$ac_tool_prefix"; then
3147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 fi
3185 if test -z "$ac_cv_prog_CC"; then
3186 ac_ct_CC=$CC
3187 # Extract the first word of "gcc", so it can be a program name with args.
3188 set dummy gcc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_CC="gcc"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208 done
3209 done
3210 IFS=$as_save_IFS
3211
3212 fi
3213 fi
3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217 $as_echo "$ac_ct_CC" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223 if test "x$ac_ct_CC" = x; then
3224 CC=""
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227 yes:)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230 ac_tool_warned=yes ;;
3231 esac
3232 CC=$ac_ct_CC
3233 fi
3234 else
3235 CC="$ac_cv_prog_CC"
3236 fi
3237
3238 if test -z "$CC"; then
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3241 set dummy ${ac_tool_prefix}cc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC="${ac_tool_prefix}cc"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 fi
3278 fi
3279 if test -z "$CC"; then
3280 # Extract the first word of "cc", so it can be a program name with args.
3281 set dummy cc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 ac_prog_rejected=no
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3299 ac_prog_rejected=yes
3300 continue
3301 fi
3302 ac_cv_prog_CC="cc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 if test $ac_prog_rejected = yes; then
3311 # We found a bogon in the path, so make sure we never use it.
3312 set dummy $ac_cv_prog_CC
3313 shift
3314 if test $# != 0; then
3315 # We chose a different compiler from the bogus one.
3316 # However, it has the same basename, so the bogon will be chosen
3317 # first if we set CC to just the basename; use the full file name.
3318 shift
3319 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3320 fi
3321 fi
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 $as_echo "$CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 fi
3335 if test -z "$CC"; then
3336 if test -n "$ac_tool_prefix"; then
3337 for ac_prog in cl.exe
3338 do
3339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369 $as_echo "$CC" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375
3376 test -n "$CC" && break
3377 done
3378 fi
3379 if test -z "$CC"; then
3380 ac_ct_CC=$CC
3381 for ac_prog in cl.exe
3382 do
3383 # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_CC="$ac_prog"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404 done
3405 done
3406 IFS=$as_save_IFS
3407
3408 fi
3409 fi
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420 test -n "$ac_ct_CC" && break
3421 done
3422
3423 if test "x$ac_ct_CC" = x; then
3424 CC=""
3425 else
3426 case $cross_compiling:$ac_tool_warned in
3427 yes:)
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3430 ac_tool_warned=yes ;;
3431 esac
3432 CC=$ac_ct_CC
3433 fi
3434 fi
3435
3436 fi
3437
3438
3439 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error $? "no acceptable C compiler found in \$PATH
3442 See \`config.log' for more details" "$LINENO" 5; }
3443
3444 # Provide some information about the compiler.
3445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446 set X $ac_compile
3447 ac_compiler=$2
3448 for ac_option in --version -v -V -qversion; do
3449 { { ac_try="$ac_compiler $ac_option >&5"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3457 ac_status=$?
3458 if test -s conftest.err; then
3459 sed '10a\
3460 ... rest of stderr output deleted ...
3461 10q' conftest.err >conftest.er1
3462 cat conftest.er1 >&5
3463 fi
3464 rm -f conftest.er1 conftest.err
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }
3467 done
3468
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471
3472 int
3473 main ()
3474 {
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 ac_clean_files_save=$ac_clean_files
3481 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3482 # Try to create an executable without -o first, disregard a.out.
3483 # It will help us diagnose broken compilers, and finding out an intuition
3484 # of exeext.
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3486 $as_echo_n "checking whether the C compiler works... " >&6; }
3487 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3488
3489 # The possible output files:
3490 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3491
3492 ac_rmfiles=
3493 for ac_file in $ac_files
3494 do
3495 case $ac_file in
3496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3497 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3498 esac
3499 done
3500 rm -f $ac_rmfiles
3501
3502 if { { ac_try="$ac_link_default"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_link_default") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; then :
3513 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3514 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3515 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3516 # so that the user can short-circuit this test for compilers unknown to
3517 # Autoconf.
3518 for ac_file in $ac_files ''
3519 do
3520 test -f "$ac_file" || continue
3521 case $ac_file in
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3523 ;;
3524 [ab].out )
3525 # We found the default executable, but exeext='' is most
3526 # certainly right.
3527 break;;
3528 *.* )
3529 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3530 then :; else
3531 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 fi
3533 # We set ac_cv_exeext here because the later test for it is not
3534 # safe: cross compilers may not add the suffix if given an `-o'
3535 # argument, so we may need to know it at that point already.
3536 # Even if this section looks crufty: it has the advantage of
3537 # actually working.
3538 break;;
3539 * )
3540 break;;
3541 esac
3542 done
3543 test "$ac_cv_exeext" = no && ac_cv_exeext=
3544
3545 else
3546 ac_file=''
3547 fi
3548 if test -z "$ac_file"; then :
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error 77 "C compiler cannot create executables
3557 See \`config.log' for more details" "$LINENO" 5; }
3558 else
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3560 $as_echo "yes" >&6; }
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3563 $as_echo_n "checking for C compiler default output file name... " >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3565 $as_echo "$ac_file" >&6; }
3566 ac_exeext=$ac_cv_exeext
3567
3568 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3569 ac_clean_files=$ac_clean_files_save
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3571 $as_echo_n "checking for suffix of executables... " >&6; }
3572 if { { ac_try="$ac_link"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_link") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; then :
3583 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3584 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3585 # work properly (i.e., refer to `conftest.exe'), while it won't with
3586 # `rm'.
3587 for ac_file in conftest.exe conftest conftest.*; do
3588 test -f "$ac_file" || continue
3589 case $ac_file in
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3591 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3592 break;;
3593 * ) break;;
3594 esac
3595 done
3596 else
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3600 See \`config.log' for more details" "$LINENO" 5; }
3601 fi
3602 rm -f conftest conftest$ac_cv_exeext
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3604 $as_echo "$ac_cv_exeext" >&6; }
3605
3606 rm -f conftest.$ac_ext
3607 EXEEXT=$ac_cv_exeext
3608 ac_exeext=$EXEEXT
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611 #include <stdio.h>
3612 int
3613 main ()
3614 {
3615 FILE *f = fopen ("conftest.out", "w");
3616 return ferror (f) || fclose (f) != 0;
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 ac_clean_files="$ac_clean_files conftest.out"
3623 # Check that the compiler produces executables we can run. If not, either
3624 # the compiler is broken, or we cross compile.
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3626 $as_echo_n "checking whether we are cross compiling... " >&6; }
3627 if test "$cross_compiling" != yes; then
3628 { { ac_try="$ac_link"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_link") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }
3639 if { ac_try='./conftest$ac_cv_exeext'
3640 { { case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_try") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; }; then
3650 cross_compiling=no
3651 else
3652 if test "$cross_compiling" = maybe; then
3653 cross_compiling=yes
3654 else
3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error $? "cannot run C compiled programs.
3658 If you meant to cross compile, use \`--host'.
3659 See \`config.log' for more details" "$LINENO" 5; }
3660 fi
3661 fi
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3664 $as_echo "$cross_compiling" >&6; }
3665
3666 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3667 ac_clean_files=$ac_clean_files_save
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3669 $as_echo_n "checking for suffix of object files... " >&6; }
3670 if ${ac_cv_objext+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675
3676 int
3677 main ()
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 rm -f conftest.o conftest.obj
3685 if { { ac_try="$ac_compile"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_compile") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 for ac_file in conftest.o conftest.obj conftest.*; do
3697 test -f "$ac_file" || continue;
3698 case $ac_file in
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3701 break;;
3702 esac
3703 done
3704 else
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error $? "cannot compute suffix of object files: cannot compile
3711 See \`config.log' for more details" "$LINENO" 5; }
3712 fi
3713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3716 $as_echo "$ac_cv_objext" >&6; }
3717 OBJEXT=$ac_cv_objext
3718 ac_objext=$OBJEXT
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3720 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3721 if ${ac_cv_c_compiler_gnu+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main ()
3729 {
3730 #ifndef __GNUC__
3731 choke me
3732 #endif
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_compiler_gnu=yes
3740 else
3741 ac_compiler_gnu=no
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745
3746 fi
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3748 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3749 if test $ac_compiler_gnu = yes; then
3750 GCC=yes
3751 else
3752 GCC=
3753 fi
3754 ac_test_CFLAGS=${CFLAGS+set}
3755 ac_save_CFLAGS=$CFLAGS
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3757 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3758 if ${ac_cv_prog_cc_g+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 ac_save_c_werror_flag=$ac_c_werror_flag
3762 ac_c_werror_flag=yes
3763 ac_cv_prog_cc_g=no
3764 CFLAGS="-g"
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_g=yes
3778 else
3779 CFLAGS=""
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792
3793 else
3794 ac_c_werror_flag=$ac_save_c_werror_flag
3795 CFLAGS="-g"
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_g=yes
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_c_werror_flag=$ac_save_c_werror_flag
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3818 $as_echo "$ac_cv_prog_cc_g" >&6; }
3819 if test "$ac_test_CFLAGS" = set; then
3820 CFLAGS=$ac_save_CFLAGS
3821 elif test $ac_cv_prog_cc_g = yes; then
3822 if test "$GCC" = yes; then
3823 CFLAGS="-g -O2"
3824 else
3825 CFLAGS="-g"
3826 fi
3827 else
3828 if test "$GCC" = yes; then
3829 CFLAGS="-O2"
3830 else
3831 CFLAGS=
3832 fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3835 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3836 if ${ac_cv_prog_cc_c89+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_cv_prog_cc_c89=no
3840 ac_save_CC=$CC
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <stdarg.h>
3844 #include <stdio.h>
3845 struct stat;
3846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3847 struct buf { int x; };
3848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3849 static char *e (p, i)
3850 char **p;
3851 int i;
3852 {
3853 return p[i];
3854 }
3855 static char *f (char * (*g) (char **, int), char **p, ...)
3856 {
3857 char *s;
3858 va_list v;
3859 va_start (v,p);
3860 s = g (p, va_arg (v,int));
3861 va_end (v);
3862 return s;
3863 }
3864
3865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3866 function prototypes and stuff, but not '\xHH' hex character constants.
3867 These don't provoke an error unfortunately, instead are silently treated
3868 as 'x'. The following induces an error, until -std is added to get
3869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3870 array size at least. It's necessary to write '\x00'==0 to get something
3871 that's true only with -std. */
3872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873
3874 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3875 inside strings and character constants. */
3876 #define FOO(x) 'x'
3877 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878
3879 int test (int i, double x);
3880 struct s1 {int (*f) (int a);};
3881 struct s2 {int (*f) (double a);};
3882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883 int argc;
3884 char **argv;
3885 int
3886 main ()
3887 {
3888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 do
3896 CC="$ac_save_CC $ac_arg"
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_c89=$ac_arg
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext
3901 test "x$ac_cv_prog_cc_c89" != "xno" && break
3902 done
3903 rm -f conftest.$ac_ext
3904 CC=$ac_save_CC
3905
3906 fi
3907 # AC_CACHE_VAL
3908 case "x$ac_cv_prog_cc_c89" in
3909 x)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911 $as_echo "none needed" >&6; } ;;
3912 xno)
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914 $as_echo "unsupported" >&6; } ;;
3915 *)
3916 CC="$CC $ac_cv_prog_cc_c89"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3918 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3919 esac
3920 if test "x$ac_cv_prog_cc_c89" != xno; then :
3921
3922 fi
3923
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929
3930 depcc="$CC" am_compiler_list=
3931
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3933 $as_echo_n "checking dependency style of $depcc... " >&6; }
3934 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3938 # We make a subdir and do the tests there. Otherwise we can end up
3939 # making bogus files that we don't know about and never remove. For
3940 # instance it was reported that on HP-UX the gcc test will end up
3941 # making a dummy file named `D' -- because `-MD' means `put the output
3942 # in D'.
3943 rm -rf conftest.dir
3944 mkdir conftest.dir
3945 # Copy depcomp to subdir because otherwise we won't find it if we're
3946 # using a relative directory.
3947 cp "$am_depcomp" conftest.dir
3948 cd conftest.dir
3949 # We will build objects and dependencies in a subdirectory because
3950 # it helps to detect inapplicable dependency modes. For instance
3951 # both Tru64's cc and ICC support -MD to output dependencies as a
3952 # side effect of compilation, but ICC will put the dependencies in
3953 # the current directory while Tru64 will put them in the object
3954 # directory.
3955 mkdir sub
3956
3957 am_cv_CC_dependencies_compiler_type=none
3958 if test "$am_compiler_list" = ""; then
3959 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3960 fi
3961 am__universal=false
3962 case " $depcc " in #(
3963 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3964 esac
3965
3966 for depmode in $am_compiler_list; do
3967 # Setup a source with many dependencies, because some compilers
3968 # like to wrap large dependency lists on column 80 (with \), and
3969 # we should not choose a depcomp mode which is confused by this.
3970 #
3971 # We need to recreate these files for each test, as the compiler may
3972 # overwrite some of them when testing with obscure command lines.
3973 # This happens at least with the AIX C compiler.
3974 : > sub/conftest.c
3975 for i in 1 2 3 4 5 6; do
3976 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3977 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3978 # Solaris 8's {/usr,}/bin/sh.
3979 touch sub/conftst$i.h
3980 done
3981 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3982
3983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3984 # mode. It turns out that the SunPro C++ compiler does not properly
3985 # handle `-M -o', and we need to detect this. Also, some Intel
3986 # versions had trouble with output in subdirs
3987 am__obj=sub/conftest.${OBJEXT-o}
3988 am__minus_obj="-o $am__obj"
3989 case $depmode in
3990 gcc)
3991 # This depmode causes a compiler race in universal mode.
3992 test "$am__universal" = false || continue
3993 ;;
3994 nosideeffect)
3995 # after this tag, mechanisms are not by side-effect, so they'll
3996 # only be used when explicitly requested
3997 if test "x$enable_dependency_tracking" = xyes; then
3998 continue
3999 else
4000 break
4001 fi
4002 ;;
4003 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4004 # This compiler won't grok `-c -o', but also, the minuso test has
4005 # not run yet. These depmodes are late enough in the game, and
4006 # so weak that their functioning should not be impacted.
4007 am__obj=conftest.${OBJEXT-o}
4008 am__minus_obj=
4009 ;;
4010 none) break ;;
4011 esac
4012 if depmode=$depmode \
4013 source=sub/conftest.c object=$am__obj \
4014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4016 >/dev/null 2>conftest.err &&
4017 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4018 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4019 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4020 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4021 # icc doesn't choke on unknown options, it will just issue warnings
4022 # or remarks (even with -Werror). So we grep stderr for any message
4023 # that says an option was ignored or not supported.
4024 # When given -MP, icc 7.0 and 7.1 complain thusly:
4025 # icc: Command line warning: ignoring option '-M'; no argument required
4026 # The diagnosis changed in icc 8.0:
4027 # icc: Command line remark: option '-MP' not supported
4028 if (grep 'ignoring option' conftest.err ||
4029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4030 am_cv_CC_dependencies_compiler_type=$depmode
4031 break
4032 fi
4033 fi
4034 done
4035
4036 cd ..
4037 rm -rf conftest.dir
4038 else
4039 am_cv_CC_dependencies_compiler_type=none
4040 fi
4041
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4044 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4045 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4046
4047 if
4048 test "x$enable_dependency_tracking" != xno \
4049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4050 am__fastdepCC_TRUE=
4051 am__fastdepCC_FALSE='#'
4052 else
4053 am__fastdepCC_TRUE='#'
4054 am__fastdepCC_FALSE=
4055 fi
4056
4057
4058 if test "x$CC" != xcc; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4060 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4061 else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4063 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4064 fi
4065 set dummy $CC; ac_cc=`$as_echo "$2" |
4066 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4067 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main ()
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 # Make sure it works both with $CC and with simple cc.
4082 # We do the test twice because some compilers refuse to overwrite an
4083 # existing .o file with -o, though they will create one.
4084 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4085 rm -f conftest2.*
4086 if { { case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; } &&
4096 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; };
4106 then
4107 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4108 if test "x$CC" != xcc; then
4109 # Test first that cc exists at all.
4110 if { ac_try='cc -c conftest.$ac_ext >&5'
4111 { { case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_try") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; }; then
4121 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4122 rm -f conftest2.*
4123 if { { case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; } &&
4133 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 $as_echo "$ac_try_echo"; } >&5
4139 (eval "$ac_try") 2>&5
4140 ac_status=$?
4141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; };
4143 then
4144 # cc works too.
4145 :
4146 else
4147 # cc exists but doesn't like -o.
4148 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4149 fi
4150 fi
4151 fi
4152 else
4153 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4154 fi
4155 rm -f core conftest*
4156
4157 fi
4158 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4160 $as_echo "yes" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164
4165 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4166
4167 fi
4168
4169 # FIXME: we rely on the cache variable name because
4170 # there is no other way.
4171 set dummy $CC
4172 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4173 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4174 if test "$am_t" != yes; then
4175 # Losing compiler, so override with the script.
4176 # FIXME: It is wrong to rewrite CC.
4177 # But if we don't then we get into trouble of one sort or another.
4178 # A longer-term fix would be to have automake use am__CC in this case,
4179 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4180 CC="$am_aux_dir/compile $CC"
4181 fi
4182
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4190 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4191 # On Suns, sometimes $CPP names a directory.
4192 if test -n "$CPP" && test -d "$CPP"; then
4193 CPP=
4194 fi
4195 if test -z "$CPP"; then
4196 if ${ac_cv_prog_CPP+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 # Double quotes because CPP needs to be expanded
4200 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4201 do
4202 ac_preproc_ok=false
4203 for ac_c_preproc_warn_flag in '' yes
4204 do
4205 # Use a header file that comes with gcc, so configuring glibc
4206 # with a fresh cross-compiler works.
4207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4208 # <limits.h> exists even on freestanding compilers.
4209 # On the NeXT, cc -E runs the code through the compiler's parser,
4210 # not just through cpp. "Syntax error" is here to catch this case.
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #ifdef __STDC__
4214 # include <limits.h>
4215 #else
4216 # include <assert.h>
4217 #endif
4218 Syntax error
4219 _ACEOF
4220 if ac_fn_c_try_cpp "$LINENO"; then :
4221
4222 else
4223 # Broken: fails on valid input.
4224 continue
4225 fi
4226 rm -f conftest.err conftest.i conftest.$ac_ext
4227
4228 # OK, works on sane cases. Now check whether nonexistent headers
4229 # can be detected and how.
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <ac_nonexistent.h>
4233 _ACEOF
4234 if ac_fn_c_try_cpp "$LINENO"; then :
4235 # Broken: success on invalid input.
4236 continue
4237 else
4238 # Passes both tests.
4239 ac_preproc_ok=:
4240 break
4241 fi
4242 rm -f conftest.err conftest.i conftest.$ac_ext
4243
4244 done
4245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246 rm -f conftest.i conftest.err conftest.$ac_ext
4247 if $ac_preproc_ok; then :
4248 break
4249 fi
4250
4251 done
4252 ac_cv_prog_CPP=$CPP
4253
4254 fi
4255 CPP=$ac_cv_prog_CPP
4256 else
4257 ac_cv_prog_CPP=$CPP
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4260 $as_echo "$CPP" >&6; }
4261 ac_preproc_ok=false
4262 for ac_c_preproc_warn_flag in '' yes
4263 do
4264 # Use a header file that comes with gcc, so configuring glibc
4265 # with a fresh cross-compiler works.
4266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267 # <limits.h> exists even on freestanding compilers.
4268 # On the NeXT, cc -E runs the code through the compiler's parser,
4269 # not just through cpp. "Syntax error" is here to catch this case.
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #ifdef __STDC__
4273 # include <limits.h>
4274 #else
4275 # include <assert.h>
4276 #endif
4277 Syntax error
4278 _ACEOF
4279 if ac_fn_c_try_cpp "$LINENO"; then :
4280
4281 else
4282 # Broken: fails on valid input.
4283 continue
4284 fi
4285 rm -f conftest.err conftest.i conftest.$ac_ext
4286
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 #include <ac_nonexistent.h>
4292 _ACEOF
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4294 # Broken: success on invalid input.
4295 continue
4296 else
4297 # Passes both tests.
4298 ac_preproc_ok=:
4299 break
4300 fi
4301 rm -f conftest.err conftest.i conftest.$ac_ext
4302
4303 done
4304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 rm -f conftest.i conftest.err conftest.$ac_ext
4306 if $ac_preproc_ok; then :
4307
4308 else
4309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4312 See \`config.log' for more details" "$LINENO" 5; }
4313 fi
4314
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321
4322
4323
4324
4325 FLAGS=""
4326 L=""
4327
4328 if test "$DEBUG" = "yes"; then
4329 FLAGS="-DDEBUG"
4330 else
4331 FLAGS="-DNDEBUG -DG_DISABLE_ASSERT"
4332 fi
4333
4334 # Check what compiler we are using
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU CC" >&5
4336 $as_echo_n "checking for GNU CC... " >&6; }
4337 if test "$GCC" = "yes"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339 $as_echo "yes" >&6; }
4340 if test "$DEBUG" = "yes"; then
4341 FLAGS="$FLAGS -O0 -ggdb -fno-inline -Wwrite-strings"
4342 FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
4343 FLAGS="$FLAGS -Wbad-function-cast -Wpointer-arith"
4344 FLAGS="$FLAGS -Wno-write-strings"
4345 # for Python.h
4346 #FLAGS="$FLAGS -Wno-long-long"
4347 fi
4348 if test "$SUPERWARN" = "yes"; then
4349 # glib can't handle -Wcast-qual
4350 FLAGS="$FLAGS -Wcast-qual -Wextra"
4351 fi
4352 if test "$STRICT" = "yes"; then
4353 FLAGS="$FLAGS -ansi -pedantic -D_XOPEN_SOURCE"
4354 fi
4355 if test "$PROF" = "yes"; then
4356 FLAGS="$FLAGS -pg -fno-inline"
4357 fi
4358 if test "$PROFLC" = "yes"; then
4359 L="$L -lc_p -lm_p"
4360 fi
4361 FLAGS="$FLAGS -fno-strict-aliasing"
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler specific flags" >&5
4364 $as_echo_n "checking for compiler specific flags... " >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLAGS" >&5
4366 $as_echo "$FLAGS" >&6; }
4367 CFLAGS="$CFLAGS $FLAGS"
4368 LIBS="$LIBS $L"
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4372 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4373 if ${ac_cv_c_const+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378
4379 int
4380 main ()
4381 {
4382
4383 #ifndef __cplusplus
4384 /* Ultrix mips cc rejects this sort of thing. */
4385 typedef int charset[2];
4386 const charset cs = { 0, 0 };
4387 /* SunOS 4.1.1 cc rejects this. */
4388 char const *const *pcpcc;
4389 char **ppc;
4390 /* NEC SVR4.0.2 mips cc rejects this. */
4391 struct point {int x, y;};
4392 static struct point const zero = {0,0};
4393 /* AIX XL C 1.02.0.0 rejects this.
4394 It does not let you subtract one const X* pointer from another in
4395 an arm of an if-expression whose if-part is not a constant
4396 expression */
4397 const char *g = "string";
4398 pcpcc = &g + (g ? g-g : 0);
4399 /* HPUX 7.0 cc rejects these. */
4400 ++pcpcc;
4401 ppc = (char**) pcpcc;
4402 pcpcc = (char const *const *) ppc;
4403 { /* SCO 3.2v4 cc rejects this sort of thing. */
4404 char tx;
4405 char *t = &tx;
4406 char const *s = 0 ? (char *) 0 : (char const *) 0;
4407
4408 *t++ = 0;
4409 if (s) return 0;
4410 }
4411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4412 int x[] = {25, 17};
4413 const int *foo = &x[0];
4414 ++foo;
4415 }
4416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4417 typedef const int *iptr;
4418 iptr p = 0;
4419 ++p;
4420 }
4421 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4423 struct s { int j; const int *ap[3]; } bx;
4424 struct s *b = &bx; b->j = 5;
4425 }
4426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4427 const int foo = 10;
4428 if (!foo) return 0;
4429 }
4430 return !cs[0] && !zero.x;
4431 #endif
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_compile "$LINENO"; then :
4438 ac_cv_c_const=yes
4439 else
4440 ac_cv_c_const=no
4441 fi
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4445 $as_echo "$ac_cv_c_const" >&6; }
4446 if test $ac_cv_c_const = no; then
4447
4448 $as_echo "#define const /**/" >>confdefs.h
4449
4450 fi
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4453 $as_echo_n "checking for inline... " >&6; }
4454 if ${ac_cv_c_inline+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 ac_cv_c_inline=no
4458 for ac_kw in inline __inline__ __inline; do
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #ifndef __cplusplus
4462 typedef int foo_t;
4463 static $ac_kw foo_t static_foo () {return 0; }
4464 $ac_kw foo_t foo () {return 0; }
4465 #endif
4466
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_cv_c_inline=$ac_kw
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 test "$ac_cv_c_inline" != no && break
4473 done
4474
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4477 $as_echo "$ac_cv_c_inline" >&6; }
4478
4479 case $ac_cv_c_inline in
4480 inline | yes) ;;
4481 *)
4482 case $ac_cv_c_inline in
4483 no) ac_val=;;
4484 *) ac_val=$ac_cv_c_inline;;
4485 esac
4486 cat >>confdefs.h <<_ACEOF
4487 #ifndef __cplusplus
4488 #define inline $ac_val
4489 #endif
4490 _ACEOF
4491 ;;
4492 esac
4493
4494
4495 case `pwd` in
4496 *\ * | *\ *)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4498 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4499 esac
4500
4501
4502
4503 macro_version='2.4.6'
4504 macro_revision='2.4.6'
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 ltmain=$ac_aux_dir/ltmain.sh
4519
4520 # Make sure we can run config.sub.
4521 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4522 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4523
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4525 $as_echo_n "checking build system type... " >&6; }
4526 if ${ac_cv_build+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 ac_build_alias=$build_alias
4530 test "x$ac_build_alias" = x &&
4531 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4532 test "x$ac_build_alias" = x &&
4533 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4536
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4539 $as_echo "$ac_cv_build" >&6; }
4540 case $ac_cv_build in
4541 *-*-*) ;;
4542 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4543 esac
4544 build=$ac_cv_build
4545 ac_save_IFS=$IFS; IFS='-'
4546 set x $ac_cv_build
4547 shift
4548 build_cpu=$1
4549 build_vendor=$2
4550 shift; shift
4551 # Remember, the first character of IFS is used to create $*,
4552 # except with old shells:
4553 build_os=$*
4554 IFS=$ac_save_IFS
4555 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4556
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4559 $as_echo_n "checking host system type... " >&6; }
4560 if ${ac_cv_host+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if test "x$host_alias" = x; then
4564 ac_cv_host=$ac_cv_build
4565 else
4566 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4568 fi
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4572 $as_echo "$ac_cv_host" >&6; }
4573 case $ac_cv_host in
4574 *-*-*) ;;
4575 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4576 esac
4577 host=$ac_cv_host
4578 ac_save_IFS=$IFS; IFS='-'
4579 set x $ac_cv_host
4580 shift
4581 host_cpu=$1
4582 host_vendor=$2
4583 shift; shift
4584 # Remember, the first character of IFS is used to create $*,
4585 # except with old shells:
4586 host_os=$*
4587 IFS=$ac_save_IFS
4588 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4589
4590
4591 # Backslashify metacharacters that are still active within
4592 # double-quoted strings.
4593 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4594
4595 # Same as above, but do not quote variable references.
4596 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4597
4598 # Sed substitution to delay expansion of an escaped shell variable in a
4599 # double_quote_subst'ed string.
4600 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4601
4602 # Sed substitution to delay expansion of an escaped single quote.
4603 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4604
4605 # Sed substitution to avoid accidental globbing in evaled expressions
4606 no_glob_subst='s/\*/\\\*/g'
4607
4608 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4609 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4610 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4613 $as_echo_n "checking how to print strings... " >&6; }
4614 # Test print first, because it will be a builtin if present.
4615 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4616 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4617 ECHO='print -r --'
4618 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4619 ECHO='printf %s\n'
4620 else
4621 # Use this function as a fallback that always works.
4622 func_fallback_echo ()
4623 {
4624 eval 'cat <<_LTECHO_EOF
4625 $1
4626 _LTECHO_EOF'
4627 }
4628 ECHO='func_fallback_echo'
4629 fi
4630
4631 # func_echo_all arg...
4632 # Invoke $ECHO with all args, space-separated.
4633 func_echo_all ()
4634 {
4635 $ECHO ""
4636 }
4637
4638 case $ECHO in
4639 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4640 $as_echo "printf" >&6; } ;;
4641 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4642 $as_echo "print -r" >&6; } ;;
4643 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4644 $as_echo "cat" >&6; } ;;
4645 esac
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4661 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4662 if ${ac_cv_path_SED+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4666 for ac_i in 1 2 3 4 5 6 7; do
4667 ac_script="$ac_script$as_nl$ac_script"
4668 done
4669 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4670 { ac_script=; unset ac_script;}
4671 if test -z "$SED"; then
4672 ac_path_SED_found=false
4673 # Loop through the user's path and test for each of PROGNAME-LIST
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_prog in sed gsed; do
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4682 as_fn_executable_p "$ac_path_SED" || continue
4683 # Check for GNU ac_path_SED and select it if it is found.
4684 # Check for GNU $ac_path_SED
4685 case `"$ac_path_SED" --version 2>&1` in
4686 *GNU*)
4687 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4688 *)
4689 ac_count=0
4690 $as_echo_n 0123456789 >"conftest.in"
4691 while :
4692 do
4693 cat "conftest.in" "conftest.in" >"conftest.tmp"
4694 mv "conftest.tmp" "conftest.in"
4695 cp "conftest.in" "conftest.nl"
4696 $as_echo '' >> "conftest.nl"
4697 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4699 as_fn_arith $ac_count + 1 && ac_count=$as_val
4700 if test $ac_count -gt ${ac_path_SED_max-0}; then
4701 # Best one so far, save it but keep looking for a better one
4702 ac_cv_path_SED="$ac_path_SED"
4703 ac_path_SED_max=$ac_count
4704 fi
4705 # 10*(2^10) chars as input seems more than enough
4706 test $ac_count -gt 10 && break
4707 done
4708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4709 esac
4710
4711 $ac_path_SED_found && break 3
4712 done
4713 done
4714 done
4715 IFS=$as_save_IFS
4716 if test -z "$ac_cv_path_SED"; then
4717 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4718 fi
4719 else
4720 ac_cv_path_SED=$SED
4721 fi
4722
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4725 $as_echo "$ac_cv_path_SED" >&6; }
4726 SED="$ac_cv_path_SED"
4727 rm -f conftest.sed
4728
4729 test -z "$SED" && SED=sed
4730 Xsed="$SED -e 1s/^X//"
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4743 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4744 if ${ac_cv_path_GREP+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -z "$GREP"; then
4748 ac_path_GREP_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_prog in grep ggrep; do
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4758 as_fn_executable_p "$ac_path_GREP" || continue
4759 # Check for GNU ac_path_GREP and select it if it is found.
4760 # Check for GNU $ac_path_GREP
4761 case `"$ac_path_GREP" --version 2>&1` in
4762 *GNU*)
4763 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4764 *)
4765 ac_count=0
4766 $as_echo_n 0123456789 >"conftest.in"
4767 while :
4768 do
4769 cat "conftest.in" "conftest.in" >"conftest.tmp"
4770 mv "conftest.tmp" "conftest.in"
4771 cp "conftest.in" "conftest.nl"
4772 $as_echo 'GREP' >> "conftest.nl"
4773 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775 as_fn_arith $ac_count + 1 && ac_count=$as_val
4776 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4777 # Best one so far, save it but keep looking for a better one
4778 ac_cv_path_GREP="$ac_path_GREP"
4779 ac_path_GREP_max=$ac_count
4780 fi
4781 # 10*(2^10) chars as input seems more than enough
4782 test $ac_count -gt 10 && break
4783 done
4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 esac
4786
4787 $ac_path_GREP_found && break 3
4788 done
4789 done
4790 done
4791 IFS=$as_save_IFS
4792 if test -z "$ac_cv_path_GREP"; then
4793 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4794 fi
4795 else
4796 ac_cv_path_GREP=$GREP
4797 fi
4798
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4801 $as_echo "$ac_cv_path_GREP" >&6; }
4802 GREP="$ac_cv_path_GREP"
4803
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4806 $as_echo_n "checking for egrep... " >&6; }
4807 if ${ac_cv_path_EGREP+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4811 then ac_cv_path_EGREP="$GREP -E"
4812 else
4813 if test -z "$EGREP"; then
4814 ac_path_EGREP_found=false
4815 # Loop through the user's path and test for each of PROGNAME-LIST
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_prog in egrep; do
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4824 as_fn_executable_p "$ac_path_EGREP" || continue
4825 # Check for GNU ac_path_EGREP and select it if it is found.
4826 # Check for GNU $ac_path_EGREP
4827 case `"$ac_path_EGREP" --version 2>&1` in
4828 *GNU*)
4829 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4830 *)
4831 ac_count=0
4832 $as_echo_n 0123456789 >"conftest.in"
4833 while :
4834 do
4835 cat "conftest.in" "conftest.in" >"conftest.tmp"
4836 mv "conftest.tmp" "conftest.in"
4837 cp "conftest.in" "conftest.nl"
4838 $as_echo 'EGREP' >> "conftest.nl"
4839 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4841 as_fn_arith $ac_count + 1 && ac_count=$as_val
4842 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4843 # Best one so far, save it but keep looking for a better one
4844 ac_cv_path_EGREP="$ac_path_EGREP"
4845 ac_path_EGREP_max=$ac_count
4846 fi
4847 # 10*(2^10) chars as input seems more than enough
4848 test $ac_count -gt 10 && break
4849 done
4850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4851 esac
4852
4853 $ac_path_EGREP_found && break 3
4854 done
4855 done
4856 done
4857 IFS=$as_save_IFS
4858 if test -z "$ac_cv_path_EGREP"; then
4859 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4860 fi
4861 else
4862 ac_cv_path_EGREP=$EGREP
4863 fi
4864
4865 fi
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4868 $as_echo "$ac_cv_path_EGREP" >&6; }
4869 EGREP="$ac_cv_path_EGREP"
4870
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4873 $as_echo_n "checking for fgrep... " >&6; }
4874 if ${ac_cv_path_FGREP+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4878 then ac_cv_path_FGREP="$GREP -F"
4879 else
4880 if test -z "$FGREP"; then
4881 ac_path_FGREP_found=false
4882 # Loop through the user's path and test for each of PROGNAME-LIST
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4885 do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_prog in fgrep; do
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4891 as_fn_executable_p "$ac_path_FGREP" || continue
4892 # Check for GNU ac_path_FGREP and select it if it is found.
4893 # Check for GNU $ac_path_FGREP
4894 case `"$ac_path_FGREP" --version 2>&1` in
4895 *GNU*)
4896 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4897 *)
4898 ac_count=0
4899 $as_echo_n 0123456789 >"conftest.in"
4900 while :
4901 do
4902 cat "conftest.in" "conftest.in" >"conftest.tmp"
4903 mv "conftest.tmp" "conftest.in"
4904 cp "conftest.in" "conftest.nl"
4905 $as_echo 'FGREP' >> "conftest.nl"
4906 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4908 as_fn_arith $ac_count + 1 && ac_count=$as_val
4909 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4910 # Best one so far, save it but keep looking for a better one
4911 ac_cv_path_FGREP="$ac_path_FGREP"
4912 ac_path_FGREP_max=$ac_count
4913 fi
4914 # 10*(2^10) chars as input seems more than enough
4915 test $ac_count -gt 10 && break
4916 done
4917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4918 esac
4919
4920 $ac_path_FGREP_found && break 3
4921 done
4922 done
4923 done
4924 IFS=$as_save_IFS
4925 if test -z "$ac_cv_path_FGREP"; then
4926 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4927 fi
4928 else
4929 ac_cv_path_FGREP=$FGREP
4930 fi
4931
4932 fi
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4935 $as_echo "$ac_cv_path_FGREP" >&6; }
4936 FGREP="$ac_cv_path_FGREP"
4937
4938
4939 test -z "$GREP" && GREP=grep
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959 # Check whether --with-gnu-ld was given.
4960 if test "${with_gnu_ld+set}" = set; then :
4961 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4962 else
4963 with_gnu_ld=no
4964 fi
4965
4966 ac_prog=ld
4967 if test yes = "$GCC"; then
4968 # Check if gcc -print-prog-name=ld gives a path.
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4970 $as_echo_n "checking for ld used by $CC... " >&6; }
4971 case $host in
4972 *-*-mingw*)
4973 # gcc leaves a trailing carriage return, which upsets mingw
4974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4975 *)
4976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4977 esac
4978 case $ac_prog in
4979 # Accept absolute paths.
4980 [\\/]* | ?:[\\/]*)
4981 re_direlt='/[^/][^/]*/\.\./'
4982 # Canonicalize the pathname of ld
4983 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4984 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4985 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4986 done
4987 test -z "$LD" && LD=$ac_prog
4988 ;;
4989 "")
4990 # If it fails, then pretend we aren't using GCC.
4991 ac_prog=ld
4992 ;;
4993 *)
4994 # If it is relative, then search for the first ld in PATH.
4995 with_gnu_ld=unknown
4996 ;;
4997 esac
4998 elif test yes = "$with_gnu_ld"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5000 $as_echo_n "checking for GNU ld... " >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5003 $as_echo_n "checking for non-GNU ld... " >&6; }
5004 fi
5005 if ${lt_cv_path_LD+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -z "$LD"; then
5009 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5010 for ac_dir in $PATH; do
5011 IFS=$lt_save_ifs
5012 test -z "$ac_dir" && ac_dir=.
5013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5014 lt_cv_path_LD=$ac_dir/$ac_prog
5015 # Check to see if the program is GNU ld. I'd rather use --version,
5016 # but apparently some variants of GNU ld only accept -v.
5017 # Break only if it was the GNU/non-GNU ld that we prefer.
5018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5019 *GNU* | *'with BFD'*)
5020 test no != "$with_gnu_ld" && break
5021 ;;
5022 *)
5023 test yes != "$with_gnu_ld" && break
5024 ;;
5025 esac
5026 fi
5027 done
5028 IFS=$lt_save_ifs
5029 else
5030 lt_cv_path_LD=$LD # Let the user override the test with a path.
5031 fi
5032 fi
5033
5034 LD=$lt_cv_path_LD
5035 if test -n "$LD"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5037 $as_echo "$LD" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5044 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5045 if ${lt_cv_prog_gnu_ld+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5049 case `$LD -v 2>&1 </dev/null` in
5050 *GNU* | *'with BFD'*)
5051 lt_cv_prog_gnu_ld=yes
5052 ;;
5053 *)
5054 lt_cv_prog_gnu_ld=no
5055 ;;
5056 esac
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5059 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5060 with_gnu_ld=$lt_cv_prog_gnu_ld
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5071 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5072 if ${lt_cv_path_NM+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if test -n "$NM"; then
5076 # Let the user override the test.
5077 lt_cv_path_NM=$NM
5078 else
5079 lt_nm_to_check=${ac_tool_prefix}nm
5080 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5081 lt_nm_to_check="$lt_nm_to_check nm"
5082 fi
5083 for lt_tmp_nm in $lt_nm_to_check; do
5084 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5085 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5086 IFS=$lt_save_ifs
5087 test -z "$ac_dir" && ac_dir=.
5088 tmp_nm=$ac_dir/$lt_tmp_nm
5089 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5090 # Check to see if the nm accepts a BSD-compat flag.
5091 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5092 # nm: unknown option "B" ignored
5093 # Tru64's nm complains that /dev/null is an invalid object file
5094 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5095 case $build_os in
5096 mingw*) lt_bad_file=conftest.nm/nofile ;;
5097 *) lt_bad_file=/dev/null ;;
5098 esac
5099 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5100 *$lt_bad_file* | *'Invalid file or object type'*)
5101 lt_cv_path_NM="$tmp_nm -B"
5102 break 2
5103 ;;
5104 *)
5105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5106 */dev/null*)
5107 lt_cv_path_NM="$tmp_nm -p"
5108 break 2
5109 ;;
5110 *)
5111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5112 continue # so that we can try to find one that supports BSD flags
5113 ;;
5114 esac
5115 ;;
5116 esac
5117 fi
5118 done
5119 IFS=$lt_save_ifs
5120 done
5121 : ${lt_cv_path_NM=no}
5122 fi
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5125 $as_echo "$lt_cv_path_NM" >&6; }
5126 if test no != "$lt_cv_path_NM"; then
5127 NM=$lt_cv_path_NM
5128 else
5129 # Didn't find any BSD compatible name lister, look for dumpbin.
5130 if test -n "$DUMPBIN"; then :
5131 # Let the user override the test.
5132 else
5133 if test -n "$ac_tool_prefix"; then
5134 for ac_prog in dumpbin "link -dump"
5135 do
5136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_prog_DUMPBIN+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$DUMPBIN"; then
5144 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 DUMPBIN=$ac_cv_prog_DUMPBIN
5164 if test -n "$DUMPBIN"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5166 $as_echo "$DUMPBIN" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172
5173 test -n "$DUMPBIN" && break
5174 done
5175 fi
5176 if test -z "$DUMPBIN"; then
5177 ac_ct_DUMPBIN=$DUMPBIN
5178 for ac_prog in dumpbin "link -dump"
5179 do
5180 # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy $ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$ac_ct_DUMPBIN"; then
5188 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5208 if test -n "$ac_ct_DUMPBIN"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5210 $as_echo "$ac_ct_DUMPBIN" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216
5217 test -n "$ac_ct_DUMPBIN" && break
5218 done
5219
5220 if test "x$ac_ct_DUMPBIN" = x; then
5221 DUMPBIN=":"
5222 else
5223 case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229 DUMPBIN=$ac_ct_DUMPBIN
5230 fi
5231 fi
5232
5233 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5234 *COFF*)
5235 DUMPBIN="$DUMPBIN -symbols -headers"
5236 ;;
5237 *)
5238 DUMPBIN=:
5239 ;;
5240 esac
5241 fi
5242
5243 if test : != "$DUMPBIN"; then
5244 NM=$DUMPBIN
5245 fi
5246 fi
5247 test -z "$NM" && NM=nm
5248
5249
5250
5251
5252
5253
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5255 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5256 if ${lt_cv_nm_interface+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 lt_cv_nm_interface="BSD nm"
5260 echo "int some_variable = 0;" > conftest.$ac_ext
5261 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5262 (eval "$ac_compile" 2>conftest.err)
5263 cat conftest.err >&5
5264 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5265 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5266 cat conftest.err >&5
5267 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5268 cat conftest.out >&5
5269 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5270 lt_cv_nm_interface="MS dumpbin"
5271 fi
5272 rm -f conftest*
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5275 $as_echo "$lt_cv_nm_interface" >&6; }
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5278 $as_echo_n "checking whether ln -s works... " >&6; }
5279 LN_S=$as_ln_s
5280 if test "$LN_S" = "ln -s"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5282 $as_echo "yes" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5285 $as_echo "no, using $LN_S" >&6; }
5286 fi
5287
5288 # find the maximum length of command line arguments
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5290 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5291 if ${lt_cv_sys_max_cmd_len+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 i=0
5295 teststring=ABCD
5296
5297 case $build_os in
5298 msdosdjgpp*)
5299 # On DJGPP, this test can blow up pretty badly due to problems in libc
5300 # (any single argument exceeding 2000 bytes causes a buffer overrun
5301 # during glob expansion). Even if it were fixed, the result of this
5302 # check would be larger than it should be.
5303 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5304 ;;
5305
5306 gnu*)
5307 # Under GNU Hurd, this test is not required because there is
5308 # no limit to the length of command line arguments.
5309 # Libtool will interpret -1 as no limit whatsoever
5310 lt_cv_sys_max_cmd_len=-1;
5311 ;;
5312
5313 cygwin* | mingw* | cegcc*)
5314 # On Win9x/ME, this test blows up -- it succeeds, but takes
5315 # about 5 minutes as the teststring grows exponentially.
5316 # Worse, since 9x/ME are not pre-emptively multitasking,
5317 # you end up with a "frozen" computer, even though with patience
5318 # the test eventually succeeds (with a max line length of 256k).
5319 # Instead, let's just punt: use the minimum linelength reported by
5320 # all of the supported platforms: 8192 (on NT/2K/XP).
5321 lt_cv_sys_max_cmd_len=8192;
5322 ;;
5323
5324 mint*)
5325 # On MiNT this can take a long time and run out of memory.
5326 lt_cv_sys_max_cmd_len=8192;
5327 ;;
5328
5329 amigaos*)
5330 # On AmigaOS with pdksh, this test takes hours, literally.
5331 # So we just punt and use a minimum line length of 8192.
5332 lt_cv_sys_max_cmd_len=8192;
5333 ;;
5334
5335 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5336 # This has been around since 386BSD, at least. Likely further.
5337 if test -x /sbin/sysctl; then
5338 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5339 elif test -x /usr/sbin/sysctl; then
5340 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5341 else
5342 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5343 fi
5344 # And add a safety zone
5345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5347 ;;
5348
5349 interix*)
5350 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5351 lt_cv_sys_max_cmd_len=196608
5352 ;;
5353
5354 os2*)
5355 # The test takes a long time on OS/2.
5356 lt_cv_sys_max_cmd_len=8192
5357 ;;
5358
5359 osf*)
5360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5362 # nice to cause kernel panics so lets avoid the loop below.
5363 # First set a reasonable default.
5364 lt_cv_sys_max_cmd_len=16384
5365 #
5366 if test -x /sbin/sysconfig; then
5367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5368 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5369 esac
5370 fi
5371 ;;
5372 sco3.2v5*)
5373 lt_cv_sys_max_cmd_len=102400
5374 ;;
5375 sysv5* | sco5v6* | sysv4.2uw2*)
5376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5377 if test -n "$kargmax"; then
5378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5379 else
5380 lt_cv_sys_max_cmd_len=32768
5381 fi
5382 ;;
5383 *)
5384 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5385 if test -n "$lt_cv_sys_max_cmd_len" && \
5386 test undefined != "$lt_cv_sys_max_cmd_len"; then
5387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5389 else
5390 # Make teststring a little bigger before we do anything with it.
5391 # a 1K string should be a reasonable start.
5392 for i in 1 2 3 4 5 6 7 8; do
5393 teststring=$teststring$teststring
5394 done
5395 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5396 # If test is not a shell built-in, we'll probably end up computing a
5397 # maximum length that is only half of the actual maximum length, but
5398 # we can't tell.
5399 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5400 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5401 test 17 != "$i" # 1/2 MB should be enough
5402 do
5403 i=`expr $i + 1`
5404 teststring=$teststring$teststring
5405 done
5406 # Only check the string length outside the loop.
5407 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5408 teststring=
5409 # Add a significant safety factor because C++ compilers can tack on
5410 # massive amounts of additional arguments before passing them to the
5411 # linker. It appears as though 1/2 is a usable value.
5412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5413 fi
5414 ;;
5415 esac
5416
5417 fi
5418
5419 if test -n "$lt_cv_sys_max_cmd_len"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5421 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5424 $as_echo "none" >&6; }
5425 fi
5426 max_cmd_len=$lt_cv_sys_max_cmd_len
5427
5428
5429
5430
5431
5432
5433 : ${CP="cp -f"}
5434 : ${MV="mv -f"}
5435 : ${RM="rm -f"}
5436
5437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5438 lt_unset=unset
5439 else
5440 lt_unset=false
5441 fi
5442
5443
5444
5445
5446
5447 # test EBCDIC or ASCII
5448 case `echo X|tr X '\101'` in
5449 A) # ASCII based system
5450 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5451 lt_SP2NL='tr \040 \012'
5452 lt_NL2SP='tr \015\012 \040\040'
5453 ;;
5454 *) # EBCDIC based system
5455 lt_SP2NL='tr \100 \n'
5456 lt_NL2SP='tr \r\n \100\100'
5457 ;;
5458 esac
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5469 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5470 if ${lt_cv_to_host_file_cmd+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 case $host in
5474 *-*-mingw* )
5475 case $build in
5476 *-*-mingw* ) # actually msys
5477 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5478 ;;
5479 *-*-cygwin* )
5480 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5481 ;;
5482 * ) # otherwise, assume *nix
5483 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5484 ;;
5485 esac
5486 ;;
5487 *-*-cygwin* )
5488 case $build in
5489 *-*-mingw* ) # actually msys
5490 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5491 ;;
5492 *-*-cygwin* )
5493 lt_cv_to_host_file_cmd=func_convert_file_noop
5494 ;;
5495 * ) # otherwise, assume *nix
5496 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5497 ;;
5498 esac
5499 ;;
5500 * ) # unhandled hosts (and "normal" native builds)
5501 lt_cv_to_host_file_cmd=func_convert_file_noop
5502 ;;
5503 esac
5504
5505 fi
5506
5507 to_host_file_cmd=$lt_cv_to_host_file_cmd
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5509 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5510
5511
5512
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5516 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5517 if ${lt_cv_to_tool_file_cmd+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 #assume ordinary cross tools, or native build.
5521 lt_cv_to_tool_file_cmd=func_convert_file_noop
5522 case $host in
5523 *-*-mingw* )
5524 case $build in
5525 *-*-mingw* ) # actually msys
5526 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5527 ;;
5528 esac
5529 ;;
5530 esac
5531
5532 fi
5533
5534 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5536 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5537
5538
5539
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5543 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5544 if ${lt_cv_ld_reload_flag+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 lt_cv_ld_reload_flag='-r'
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5550 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5551 reload_flag=$lt_cv_ld_reload_flag
5552 case $reload_flag in
5553 "" | " "*) ;;
5554 *) reload_flag=" $reload_flag" ;;
5555 esac
5556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557 case $host_os in
5558 cygwin* | mingw* | pw32* | cegcc*)
5559 if test yes != "$GCC"; then
5560 reload_cmds=false
5561 fi
5562 ;;
5563 darwin*)
5564 if test yes = "$GCC"; then
5565 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5566 else
5567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5568 fi
5569 ;;
5570 esac
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 if test -n "$ac_tool_prefix"; then
5581 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5582 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_OBJDUMP+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -n "$OBJDUMP"; then
5589 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5601 fi
5602 done
5603 done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 OBJDUMP=$ac_cv_prog_OBJDUMP
5609 if test -n "$OBJDUMP"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5611 $as_echo "$OBJDUMP" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618 fi
5619 if test -z "$ac_cv_prog_OBJDUMP"; then
5620 ac_ct_OBJDUMP=$OBJDUMP
5621 # Extract the first word of "objdump", so it can be a program name with args.
5622 set dummy objdump; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if test -n "$ac_ct_OBJDUMP"; then
5629 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5641 fi
5642 done
5643 done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5649 if test -n "$ac_ct_OBJDUMP"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5651 $as_echo "$ac_ct_OBJDUMP" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657 if test "x$ac_ct_OBJDUMP" = x; then
5658 OBJDUMP="false"
5659 else
5660 case $cross_compiling:$ac_tool_warned in
5661 yes:)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5665 esac
5666 OBJDUMP=$ac_ct_OBJDUMP
5667 fi
5668 else
5669 OBJDUMP="$ac_cv_prog_OBJDUMP"
5670 fi
5671
5672 test -z "$OBJDUMP" && OBJDUMP=objdump
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5683 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5684 if ${lt_cv_deplibs_check_method+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 lt_cv_file_magic_cmd='$MAGIC_CMD'
5688 lt_cv_file_magic_test_file=
5689 lt_cv_deplibs_check_method='unknown'
5690 # Need to set the preceding variable on all platforms that support
5691 # interlibrary dependencies.
5692 # 'none' -- dependencies not supported.
5693 # 'unknown' -- same as none, but documents that we really don't know.
5694 # 'pass_all' -- all dependencies passed with no checks.
5695 # 'test_compile' -- check by making test program.
5696 # 'file_magic [[regex]]' -- check by looking for files in library path
5697 # that responds to the $file_magic_cmd with a given extended regex.
5698 # If you have 'file' or equivalent on your system and you're not sure
5699 # whether 'pass_all' will *always* work, you probably want this one.
5700
5701 case $host_os in
5702 aix[4-9]*)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705
5706 beos*)
5707 lt_cv_deplibs_check_method=pass_all
5708 ;;
5709
5710 bsdi[45]*)
5711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5712 lt_cv_file_magic_cmd='/usr/bin/file -L'
5713 lt_cv_file_magic_test_file=/shlib/libc.so
5714 ;;
5715
5716 cygwin*)
5717 # func_win32_libid is a shell function defined in ltmain.sh
5718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5719 lt_cv_file_magic_cmd='func_win32_libid'
5720 ;;
5721
5722 mingw* | pw32*)
5723 # Base MSYS/MinGW do not provide the 'file' command needed by
5724 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5725 # unless we find 'file', for example because we are cross-compiling.
5726 if ( file / ) >/dev/null 2>&1; then
5727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5728 lt_cv_file_magic_cmd='func_win32_libid'
5729 else
5730 # Keep this pattern in sync with the one in func_win32_libid.
5731 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5732 lt_cv_file_magic_cmd='$OBJDUMP -f'
5733 fi
5734 ;;
5735
5736 cegcc*)
5737 # use the weaker test based on 'objdump'. See mingw*.
5738 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5739 lt_cv_file_magic_cmd='$OBJDUMP -f'
5740 ;;
5741
5742 darwin* | rhapsody*)
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745
5746 freebsd* | dragonfly*)
5747 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5748 case $host_cpu in
5749 i*86 )
5750 # Not sure whether the presence of OpenBSD here was a mistake.
5751 # Let's accept both of them until this is cleared up.
5752 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5753 lt_cv_file_magic_cmd=/usr/bin/file
5754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5755 ;;
5756 esac
5757 else
5758 lt_cv_deplibs_check_method=pass_all
5759 fi
5760 ;;
5761
5762 haiku*)
5763 lt_cv_deplibs_check_method=pass_all
5764 ;;
5765
5766 hpux10.20* | hpux11*)
5767 lt_cv_file_magic_cmd=/usr/bin/file
5768 case $host_cpu in
5769 ia64*)
5770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5771 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5772 ;;
5773 hppa*64*)
5774 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]'
5775 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5776 ;;
5777 *)
5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5779 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5780 ;;
5781 esac
5782 ;;
5783
5784 interix[3-9]*)
5785 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5787 ;;
5788
5789 irix5* | irix6* | nonstopux*)
5790 case $LD in
5791 *-32|*"-32 ") libmagic=32-bit;;
5792 *-n32|*"-n32 ") libmagic=N32;;
5793 *-64|*"-64 ") libmagic=64-bit;;
5794 *) libmagic=never-match;;
5795 esac
5796 lt_cv_deplibs_check_method=pass_all
5797 ;;
5798
5799 # This must be glibc/ELF.
5800 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5801 lt_cv_deplibs_check_method=pass_all
5802 ;;
5803
5804 netbsd*)
5805 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5807 else
5808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5809 fi
5810 ;;
5811
5812 newos6*)
5813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5814 lt_cv_file_magic_cmd=/usr/bin/file
5815 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5816 ;;
5817
5818 *nto* | *qnx*)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821
5822 openbsd* | bitrig*)
5823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5825 else
5826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5827 fi
5828 ;;
5829
5830 osf3* | osf4* | osf5*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
5834 rdos*)
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837
5838 solaris*)
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841
5842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
5845
5846 sysv4 | sysv4.3*)
5847 case $host_vendor in
5848 motorola)
5849 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]'
5850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5851 ;;
5852 ncr)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855 sequent)
5856 lt_cv_file_magic_cmd='/bin/file'
5857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5858 ;;
5859 sni)
5860 lt_cv_file_magic_cmd='/bin/file'
5861 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5862 lt_cv_file_magic_test_file=/lib/libc.so
5863 ;;
5864 siemens)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867 pc)
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870 esac
5871 ;;
5872
5873 tpf*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876 os2*)
5877 lt_cv_deplibs_check_method=pass_all
5878 ;;
5879 esac
5880
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5883 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5884
5885 file_magic_glob=
5886 want_nocaseglob=no
5887 if test "$build" = "$host"; then
5888 case $host_os in
5889 mingw* | pw32*)
5890 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5891 want_nocaseglob=yes
5892 else
5893 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5894 fi
5895 ;;
5896 esac
5897 fi
5898
5899 file_magic_cmd=$lt_cv_file_magic_cmd
5900 deplibs_check_method=$lt_cv_deplibs_check_method
5901 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_DLLTOOL+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$DLLTOOL"; then
5933 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 DLLTOOL=$ac_cv_prog_DLLTOOL
5953 if test -n "$DLLTOOL"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5955 $as_echo "$DLLTOOL" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962 fi
5963 if test -z "$ac_cv_prog_DLLTOOL"; then
5964 ac_ct_DLLTOOL=$DLLTOOL
5965 # Extract the first word of "dlltool", so it can be a program name with args.
5966 set dummy dlltool; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if test -n "$ac_ct_DLLTOOL"; then
5973 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5993 if test -n "$ac_ct_DLLTOOL"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5995 $as_echo "$ac_ct_DLLTOOL" >&6; }
5996 else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001 if test "x$ac_ct_DLLTOOL" = x; then
6002 DLLTOOL="false"
6003 else
6004 case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6009 esac
6010 DLLTOOL=$ac_ct_DLLTOOL
6011 fi
6012 else
6013 DLLTOOL="$ac_cv_prog_DLLTOOL"
6014 fi
6015
6016 test -z "$DLLTOOL" && DLLTOOL=dlltool
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6028 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6029 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 lt_cv_sharedlib_from_linklib_cmd='unknown'
6033
6034 case $host_os in
6035 cygwin* | mingw* | pw32* | cegcc*)
6036 # two different shell functions defined in ltmain.sh;
6037 # decide which one to use based on capabilities of $DLLTOOL
6038 case `$DLLTOOL --help 2>&1` in
6039 *--identify-strict*)
6040 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6041 ;;
6042 *)
6043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6044 ;;
6045 esac
6046 ;;
6047 *)
6048 # fallback: assume linklib IS sharedlib
6049 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6050 ;;
6051 esac
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6055 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6056 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6057 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6058
6059
6060
6061
6062
6063
6064
6065 if test -n "$ac_tool_prefix"; then
6066 for ac_prog in ar
6067 do
6068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_AR+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$AR"; then
6076 ac_cv_prog_AR="$AR" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 AR=$ac_cv_prog_AR
6096 if test -n "$AR"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6098 $as_echo "$AR" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105 test -n "$AR" && break
6106 done
6107 fi
6108 if test -z "$AR"; then
6109 ac_ct_AR=$AR
6110 for ac_prog in ar
6111 do
6112 # Extract the first word of "$ac_prog", so it can be a program name with args.
6113 set dummy $ac_prog; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 if test -n "$ac_ct_AR"; then
6120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_ac_ct_AR="$ac_prog"
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133 done
6134 done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6140 if test -n "$ac_ct_AR"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6142 $as_echo "$ac_ct_AR" >&6; }
6143 else
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147
6148
6149 test -n "$ac_ct_AR" && break
6150 done
6151
6152 if test "x$ac_ct_AR" = x; then
6153 AR="false"
6154 else
6155 case $cross_compiling:$ac_tool_warned in
6156 yes:)
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159 ac_tool_warned=yes ;;
6160 esac
6161 AR=$ac_ct_AR
6162 fi
6163 fi
6164
6165 : ${AR=ar}
6166 : ${AR_FLAGS=cru}
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6179 $as_echo_n "checking for archiver @FILE support... " >&6; }
6180 if ${lt_cv_ar_at_file+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 lt_cv_ar_at_file=no
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186
6187 int
6188 main ()
6189 {
6190
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_compile "$LINENO"; then :
6196 echo conftest.$ac_objext > conftest.lst
6197 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6199 (eval $lt_ar_try) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }
6203 if test 0 -eq "$ac_status"; then
6204 # Ensure the archiver fails upon bogus file names.
6205 rm -f conftest.$ac_objext libconftest.a
6206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6207 (eval $lt_ar_try) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }
6211 if test 0 -ne "$ac_status"; then
6212 lt_cv_ar_at_file=@
6213 fi
6214 fi
6215 rm -f conftest.* libconftest.a
6216
6217 fi
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6222 $as_echo "$lt_cv_ar_at_file" >&6; }
6223
6224 if test no = "$lt_cv_ar_at_file"; then
6225 archiver_list_spec=
6226 else
6227 archiver_list_spec=$lt_cv_ar_at_file
6228 fi
6229
6230
6231
6232
6233
6234
6235
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}strip; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_STRIP+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$STRIP"; then
6245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 STRIP=$ac_cv_prog_STRIP
6265 if test -n "$STRIP"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6267 $as_echo "$STRIP" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_STRIP"; then
6276 ac_ct_STRIP=$STRIP
6277 # Extract the first word of "strip", so it can be a program name with args.
6278 set dummy strip; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$ac_ct_STRIP"; then
6285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_STRIP="strip"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6305 if test -n "$ac_ct_STRIP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6307 $as_echo "$ac_ct_STRIP" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313 if test "x$ac_ct_STRIP" = x; then
6314 STRIP=":"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 STRIP=$ac_ct_STRIP
6323 fi
6324 else
6325 STRIP="$ac_cv_prog_STRIP"
6326 fi
6327
6328 test -z "$STRIP" && STRIP=:
6329
6330
6331
6332
6333
6334
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_RANLIB+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$RANLIB"; then
6344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 RANLIB=$ac_cv_prog_RANLIB
6364 if test -n "$RANLIB"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6366 $as_echo "$RANLIB" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372
6373 fi
6374 if test -z "$ac_cv_prog_RANLIB"; then
6375 ac_ct_RANLIB=$RANLIB
6376 # Extract the first word of "ranlib", so it can be a program name with args.
6377 set dummy ranlib; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$ac_ct_RANLIB"; then
6384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_ac_ct_RANLIB="ranlib"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6404 if test -n "$ac_ct_RANLIB"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6406 $as_echo "$ac_ct_RANLIB" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412 if test "x$ac_ct_RANLIB" = x; then
6413 RANLIB=":"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 RANLIB=$ac_ct_RANLIB
6422 fi
6423 else
6424 RANLIB="$ac_cv_prog_RANLIB"
6425 fi
6426
6427 test -z "$RANLIB" && RANLIB=:
6428
6429
6430
6431
6432
6433
6434 # Determine commands to create old-style static archives.
6435 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6436 old_postinstall_cmds='chmod 644 $oldlib'
6437 old_postuninstall_cmds=
6438
6439 if test -n "$RANLIB"; then
6440 case $host_os in
6441 bitrig* | openbsd*)
6442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6443 ;;
6444 *)
6445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6446 ;;
6447 esac
6448 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6449 fi
6450
6451 case $host_os in
6452 darwin*)
6453 lock_old_archive_extraction=yes ;;
6454 *)
6455 lock_old_archive_extraction=no ;;
6456 esac
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496 # If no C compiler was specified, use CC.
6497 LTCC=${LTCC-"$CC"}
6498
6499 # If no C compiler flags were specified, use CFLAGS.
6500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6501
6502 # Allow CC to be a program name with arguments.
6503 compiler=$CC
6504
6505
6506 # Check for command to grab the raw symbol name followed by C symbol from nm.
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6508 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6509 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512
6513 # These are sane defaults that work on at least a few old systems.
6514 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6515
6516 # Character class describing NM global symbol codes.
6517 symcode='[BCDEGRST]'
6518
6519 # Regexp to match symbols that can be accessed directly from C.
6520 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6521
6522 # Define system-specific variables.
6523 case $host_os in
6524 aix*)
6525 symcode='[BCDT]'
6526 ;;
6527 cygwin* | mingw* | pw32* | cegcc*)
6528 symcode='[ABCDGISTW]'
6529 ;;
6530 hpux*)
6531 if test ia64 = "$host_cpu"; then
6532 symcode='[ABCDEGRST]'
6533 fi
6534 ;;
6535 irix* | nonstopux*)
6536 symcode='[BCDEGRST]'
6537 ;;
6538 osf*)
6539 symcode='[BCDEGQRST]'
6540 ;;
6541 solaris*)
6542 symcode='[BDRT]'
6543 ;;
6544 sco3.2v5*)
6545 symcode='[DT]'
6546 ;;
6547 sysv4.2uw2*)
6548 symcode='[DT]'
6549 ;;
6550 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6551 symcode='[ABDT]'
6552 ;;
6553 sysv4)
6554 symcode='[DFNSTU]'
6555 ;;
6556 esac
6557
6558 # If we're using GNU nm, then use its standard symbol codes.
6559 case `$NM -V 2>&1` in
6560 *GNU* | *'with BFD'*)
6561 symcode='[ABCDGIRSTW]' ;;
6562 esac
6563
6564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565 # Gets list of data symbols to import.
6566 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6567 # Adjust the below global symbol transforms to fixup imported variables.
6568 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6569 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6570 lt_c_name_lib_hook="\
6571 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6572 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6573 else
6574 # Disable hooks by default.
6575 lt_cv_sys_global_symbol_to_import=
6576 lt_cdecl_hook=
6577 lt_c_name_hook=
6578 lt_c_name_lib_hook=
6579 fi
6580
6581 # Transform an extracted symbol line into a proper C declaration.
6582 # Some systems (esp. on ia64) link data and code symbols differently,
6583 # so use this general approach.
6584 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6585 $lt_cdecl_hook\
6586 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6587 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6588
6589 # Transform an extracted symbol line into symbol name and symbol address
6590 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6591 $lt_c_name_hook\
6592 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6593 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6594
6595 # Transform an extracted symbol line into symbol name with lib prefix and
6596 # symbol address.
6597 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6598 $lt_c_name_lib_hook\
6599 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6600 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6601 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6602
6603 # Handle CRLF in mingw tool chain
6604 opt_cr=
6605 case $build_os in
6606 mingw*)
6607 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6608 ;;
6609 esac
6610
6611 # Try without a prefix underscore, then with it.
6612 for ac_symprfx in "" "_"; do
6613
6614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6615 symxfrm="\\1 $ac_symprfx\\2 \\2"
6616
6617 # Write the raw and C identifiers.
6618 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6619 # Fake it for dumpbin and say T for any non-static function,
6620 # D for any global variable and I for any imported variable.
6621 # Also find C++ and __fastcall symbols from MSVC++,
6622 # which start with @ or ?.
6623 lt_cv_sys_global_symbol_pipe="$AWK '"\
6624 " {last_section=section; section=\$ 3};"\
6625 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6626 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6627 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6628 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6629 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6630 " \$ 0!~/External *\|/{next};"\
6631 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6632 " {if(hide[section]) next};"\
6633 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6634 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6635 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6636 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6637 " ' prfx=^$ac_symprfx"
6638 else
6639 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6640 fi
6641 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6642
6643 # Check to see that the pipe works correctly.
6644 pipe_works=no
6645
6646 rm -f conftest*
6647 cat > conftest.$ac_ext <<_LT_EOF
6648 #ifdef __cplusplus
6649 extern "C" {
6650 #endif
6651 char nm_test_var;
6652 void nm_test_func(void);
6653 void nm_test_func(void){}
6654 #ifdef __cplusplus
6655 }
6656 #endif
6657 int main(){nm_test_var='a';nm_test_func();return(0);}
6658 _LT_EOF
6659
6660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6661 (eval $ac_compile) 2>&5
6662 ac_status=$?
6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664 test $ac_status = 0; }; then
6665 # Now try to grab the symbols.
6666 nlist=conftest.nm
6667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6668 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6669 ac_status=$?
6670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671 test $ac_status = 0; } && test -s "$nlist"; then
6672 # Try sorting and uniquifying the output.
6673 if sort "$nlist" | uniq > "$nlist"T; then
6674 mv -f "$nlist"T "$nlist"
6675 else
6676 rm -f "$nlist"T
6677 fi
6678
6679 # Make sure that we snagged all the symbols we need.
6680 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6681 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6682 cat <<_LT_EOF > conftest.$ac_ext
6683 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6684 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6685 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6686 relocations are performed -- see ld's documentation on pseudo-relocs. */
6687 # define LT_DLSYM_CONST
6688 #elif defined __osf__
6689 /* This system does not cope well with relocations in const data. */
6690 # define LT_DLSYM_CONST
6691 #else
6692 # define LT_DLSYM_CONST const
6693 #endif
6694
6695 #ifdef __cplusplus
6696 extern "C" {
6697 #endif
6698
6699 _LT_EOF
6700 # Now generate the symbol file.
6701 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6702
6703 cat <<_LT_EOF >> conftest.$ac_ext
6704
6705 /* The mapping between symbol names and symbols. */
6706 LT_DLSYM_CONST struct {
6707 const char *name;
6708 void *address;
6709 }
6710 lt__PROGRAM__LTX_preloaded_symbols[] =
6711 {
6712 { "@PROGRAM@", (void *) 0 },
6713 _LT_EOF
6714 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6715 cat <<\_LT_EOF >> conftest.$ac_ext
6716 {0, (void *) 0}
6717 };
6718
6719 /* This works around a problem in FreeBSD linker */
6720 #ifdef FREEBSD_WORKAROUND
6721 static const void *lt_preloaded_setup() {
6722 return lt__PROGRAM__LTX_preloaded_symbols;
6723 }
6724 #endif
6725
6726 #ifdef __cplusplus
6727 }
6728 #endif
6729 _LT_EOF
6730 # Now try linking the two files.
6731 mv conftest.$ac_objext conftstm.$ac_objext
6732 lt_globsym_save_LIBS=$LIBS
6733 lt_globsym_save_CFLAGS=$CFLAGS
6734 LIBS=conftstm.$ac_objext
6735 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6737 (eval $ac_link) 2>&5
6738 ac_status=$?
6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6741 pipe_works=yes
6742 fi
6743 LIBS=$lt_globsym_save_LIBS
6744 CFLAGS=$lt_globsym_save_CFLAGS
6745 else
6746 echo "cannot find nm_test_func in $nlist" >&5
6747 fi
6748 else
6749 echo "cannot find nm_test_var in $nlist" >&5
6750 fi
6751 else
6752 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6753 fi
6754 else
6755 echo "$progname: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 fi
6758 rm -rf conftest* conftst*
6759
6760 # Do not use the global_symbol_pipe unless it works.
6761 if test yes = "$pipe_works"; then
6762 break
6763 else
6764 lt_cv_sys_global_symbol_pipe=
6765 fi
6766 done
6767
6768 fi
6769
6770 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6771 lt_cv_sys_global_symbol_to_cdecl=
6772 fi
6773 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6775 $as_echo "failed" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6778 $as_echo "ok" >&6; }
6779 fi
6780
6781 # Response file support.
6782 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6783 nm_file_list_spec='@'
6784 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6785 nm_file_list_spec='@'
6786 fi
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6825 $as_echo_n "checking for sysroot... " >&6; }
6826
6827 # Check whether --with-sysroot was given.
6828 if test "${with_sysroot+set}" = set; then :
6829 withval=$with_sysroot;
6830 else
6831 with_sysroot=no
6832 fi
6833
6834
6835 lt_sysroot=
6836 case $with_sysroot in #(
6837 yes)
6838 if test yes = "$GCC"; then
6839 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6840 fi
6841 ;; #(
6842 /*)
6843 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6844 ;; #(
6845 no|'')
6846 ;; #(
6847 *)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6849 $as_echo "$with_sysroot" >&6; }
6850 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6851 ;;
6852 esac
6853
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6855 $as_echo "${lt_sysroot:-no}" >&6; }
6856
6857
6858
6859
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6862 $as_echo_n "checking for a working dd... " >&6; }
6863 if ${ac_cv_path_lt_DD+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 printf 0123456789abcdef0123456789abcdef >conftest.i
6867 cat conftest.i conftest.i >conftest2.i
6868 : ${lt_DD:=$DD}
6869 if test -z "$lt_DD"; then
6870 ac_path_lt_DD_found=false
6871 # Loop through the user's path and test for each of PROGNAME-LIST
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_prog in dd; do
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6880 as_fn_executable_p "$ac_path_lt_DD" || continue
6881 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6882 cmp -s conftest.i conftest.out \
6883 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6884 fi
6885 $ac_path_lt_DD_found && break 3
6886 done
6887 done
6888 done
6889 IFS=$as_save_IFS
6890 if test -z "$ac_cv_path_lt_DD"; then
6891 :
6892 fi
6893 else
6894 ac_cv_path_lt_DD=$lt_DD
6895 fi
6896
6897 rm -f conftest.i conftest2.i conftest.out
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6900 $as_echo "$ac_cv_path_lt_DD" >&6; }
6901
6902
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6904 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6905 if ${lt_cv_truncate_bin+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 printf 0123456789abcdef0123456789abcdef >conftest.i
6909 cat conftest.i conftest.i >conftest2.i
6910 lt_cv_truncate_bin=
6911 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6912 cmp -s conftest.i conftest.out \
6913 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6914 fi
6915 rm -f conftest.i conftest2.i conftest.out
6916 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6919 $as_echo "$lt_cv_truncate_bin" >&6; }
6920
6921
6922
6923
6924
6925
6926
6927 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6928 func_cc_basename ()
6929 {
6930 for cc_temp in $*""; do
6931 case $cc_temp in
6932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6934 \-*) ;;
6935 *) break;;
6936 esac
6937 done
6938 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6939 }
6940
6941 # Check whether --enable-libtool-lock was given.
6942 if test "${enable_libtool_lock+set}" = set; then :
6943 enableval=$enable_libtool_lock;
6944 fi
6945
6946 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6947
6948 # Some flags need to be propagated to the compiler or linker for good
6949 # libtool support.
6950 case $host in
6951 ia64-*-hpux*)
6952 # Find out what ABI is being produced by ac_compile, and set mode
6953 # options accordingly.
6954 echo 'int i;' > conftest.$ac_ext
6955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956 (eval $ac_compile) 2>&5
6957 ac_status=$?
6958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959 test $ac_status = 0; }; then
6960 case `/usr/bin/file conftest.$ac_objext` in
6961 *ELF-32*)
6962 HPUX_IA64_MODE=32
6963 ;;
6964 *ELF-64*)
6965 HPUX_IA64_MODE=64
6966 ;;
6967 esac
6968 fi
6969 rm -rf conftest*
6970 ;;
6971 *-*-irix6*)
6972 # Find out what ABI is being produced by ac_compile, and set linker
6973 # options accordingly.
6974 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6976 (eval $ac_compile) 2>&5
6977 ac_status=$?
6978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; }; then
6980 if test yes = "$lt_cv_prog_gnu_ld"; then
6981 case `/usr/bin/file conftest.$ac_objext` in
6982 *32-bit*)
6983 LD="${LD-ld} -melf32bsmip"
6984 ;;
6985 *N32*)
6986 LD="${LD-ld} -melf32bmipn32"
6987 ;;
6988 *64-bit*)
6989 LD="${LD-ld} -melf64bmip"
6990 ;;
6991 esac
6992 else
6993 case `/usr/bin/file conftest.$ac_objext` in
6994 *32-bit*)
6995 LD="${LD-ld} -32"
6996 ;;
6997 *N32*)
6998 LD="${LD-ld} -n32"
6999 ;;
7000 *64-bit*)
7001 LD="${LD-ld} -64"
7002 ;;
7003 esac
7004 fi
7005 fi
7006 rm -rf conftest*
7007 ;;
7008
7009 mips64*-*linux*)
7010 # Find out what ABI is being produced by ac_compile, and set linker
7011 # options accordingly.
7012 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7014 (eval $ac_compile) 2>&5
7015 ac_status=$?
7016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7017 test $ac_status = 0; }; then
7018 emul=elf
7019 case `/usr/bin/file conftest.$ac_objext` in
7020 *32-bit*)
7021 emul="${emul}32"
7022 ;;
7023 *64-bit*)
7024 emul="${emul}64"
7025 ;;
7026 esac
7027 case `/usr/bin/file conftest.$ac_objext` in
7028 *MSB*)
7029 emul="${emul}btsmip"
7030 ;;
7031 *LSB*)
7032 emul="${emul}ltsmip"
7033 ;;
7034 esac
7035 case `/usr/bin/file conftest.$ac_objext` in
7036 *N32*)
7037 emul="${emul}n32"
7038 ;;
7039 esac
7040 LD="${LD-ld} -m $emul"
7041 fi
7042 rm -rf conftest*
7043 ;;
7044
7045 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7046 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7047 # Find out what ABI is being produced by ac_compile, and set linker
7048 # options accordingly. Note that the listed cases only cover the
7049 # situations where additional linker options are needed (such as when
7050 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7051 # vice versa); the common cases where no linker options are needed do
7052 # not appear in the list.
7053 echo 'int i;' > conftest.$ac_ext
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055 (eval $ac_compile) 2>&5
7056 ac_status=$?
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; }; then
7059 case `/usr/bin/file conftest.o` in
7060 *32-bit*)
7061 case $host in
7062 x86_64-*kfreebsd*-gnu)
7063 LD="${LD-ld} -m elf_i386_fbsd"
7064 ;;
7065 x86_64-*linux*)
7066 case `/usr/bin/file conftest.o` in
7067 *x86-64*)
7068 LD="${LD-ld} -m elf32_x86_64"
7069 ;;
7070 *)
7071 LD="${LD-ld} -m elf_i386"
7072 ;;
7073 esac
7074 ;;
7075 powerpc64le-*linux*)
7076 LD="${LD-ld} -m elf32lppclinux"
7077 ;;
7078 powerpc64-*linux*)
7079 LD="${LD-ld} -m elf32ppclinux"
7080 ;;
7081 s390x-*linux*)
7082 LD="${LD-ld} -m elf_s390"
7083 ;;
7084 sparc64-*linux*)
7085 LD="${LD-ld} -m elf32_sparc"
7086 ;;
7087 esac
7088 ;;
7089 *64-bit*)
7090 case $host in
7091 x86_64-*kfreebsd*-gnu)
7092 LD="${LD-ld} -m elf_x86_64_fbsd"
7093 ;;
7094 x86_64-*linux*)
7095 LD="${LD-ld} -m elf_x86_64"
7096 ;;
7097 powerpcle-*linux*)
7098 LD="${LD-ld} -m elf64lppc"
7099 ;;
7100 powerpc-*linux*)
7101 LD="${LD-ld} -m elf64ppc"
7102 ;;
7103 s390*-*linux*|s390*-*tpf*)
7104 LD="${LD-ld} -m elf64_s390"
7105 ;;
7106 sparc*-*linux*)
7107 LD="${LD-ld} -m elf64_sparc"
7108 ;;
7109 esac
7110 ;;
7111 esac
7112 fi
7113 rm -rf conftest*
7114 ;;
7115
7116 *-*-sco3.2v5*)
7117 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7118 SAVE_CFLAGS=$CFLAGS
7119 CFLAGS="$CFLAGS -belf"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7121 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7122 if ${lt_cv_cc_needs_belf+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133
7134 int
7135 main ()
7136 {
7137
7138 ;
7139 return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_c_try_link "$LINENO"; then :
7143 lt_cv_cc_needs_belf=yes
7144 else
7145 lt_cv_cc_needs_belf=no
7146 fi
7147 rm -f core conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149 ac_ext=c
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7157 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7158 if test yes != "$lt_cv_cc_needs_belf"; then
7159 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7160 CFLAGS=$SAVE_CFLAGS
7161 fi
7162 ;;
7163 *-*solaris*)
7164 # Find out what ABI is being produced by ac_compile, and set linker
7165 # options accordingly.
7166 echo 'int i;' > conftest.$ac_ext
7167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7168 (eval $ac_compile) 2>&5
7169 ac_status=$?
7170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7171 test $ac_status = 0; }; then
7172 case `/usr/bin/file conftest.o` in
7173 *64-bit*)
7174 case $lt_cv_prog_gnu_ld in
7175 yes*)
7176 case $host in
7177 i?86-*-solaris*|x86_64-*-solaris*)
7178 LD="${LD-ld} -m elf_x86_64"
7179 ;;
7180 sparc*-*-solaris*)
7181 LD="${LD-ld} -m elf64_sparc"
7182 ;;
7183 esac
7184 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7185 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7186 LD=${LD-ld}_sol2
7187 fi
7188 ;;
7189 *)
7190 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7191 LD="${LD-ld} -64"
7192 fi
7193 ;;
7194 esac
7195 ;;
7196 esac
7197 fi
7198 rm -rf conftest*
7199 ;;
7200 esac
7201
7202 need_locks=$enable_libtool_lock
7203
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}mt; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if test -n "$MANIFEST_TOOL"; then
7213 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7233 if test -n "$MANIFEST_TOOL"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7235 $as_echo "$MANIFEST_TOOL" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241
7242 fi
7243 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7244 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7245 # Extract the first word of "mt", so it can be a program name with args.
7246 set dummy mt; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$ac_ct_MANIFEST_TOOL"; then
7253 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7273 if test -n "$ac_ct_MANIFEST_TOOL"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7275 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7282 MANIFEST_TOOL=":"
7283 else
7284 case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7291 fi
7292 else
7293 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7294 fi
7295
7296 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7298 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7299 if ${lt_cv_path_mainfest_tool+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 lt_cv_path_mainfest_tool=no
7303 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7304 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7305 cat conftest.err >&5
7306 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7307 lt_cv_path_mainfest_tool=yes
7308 fi
7309 rm -f conftest*
7310 fi
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7312 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7313 if test yes != "$lt_cv_path_mainfest_tool"; then
7314 MANIFEST_TOOL=:
7315 fi
7316
7317
7318
7319
7320
7321
7322 case $host_os in
7323 rhapsody* | darwin*)
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 if test -n "$DSYMUTIL"; then
7333 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7345 fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7353 if test -n "$DSYMUTIL"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7355 $as_echo "$DSYMUTIL" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362 fi
7363 if test -z "$ac_cv_prog_DSYMUTIL"; then
7364 ac_ct_DSYMUTIL=$DSYMUTIL
7365 # Extract the first word of "dsymutil", so it can be a program name with args.
7366 set dummy dsymutil; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$ac_ct_DSYMUTIL"; then
7373 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7385 fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7393 if test -n "$ac_ct_DSYMUTIL"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7395 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7396 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401 if test "x$ac_ct_DSYMUTIL" = x; then
7402 DSYMUTIL=":"
7403 else
7404 case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410 DSYMUTIL=$ac_ct_DSYMUTIL
7411 fi
7412 else
7413 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7414 fi
7415
7416 if test -n "$ac_tool_prefix"; then
7417 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_NMEDIT+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$NMEDIT"; then
7425 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7437 fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 NMEDIT=$ac_cv_prog_NMEDIT
7445 if test -n "$NMEDIT"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7447 $as_echo "$NMEDIT" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453
7454 fi
7455 if test -z "$ac_cv_prog_NMEDIT"; then
7456 ac_ct_NMEDIT=$NMEDIT
7457 # Extract the first word of "nmedit", so it can be a program name with args.
7458 set dummy nmedit; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 if test -n "$ac_ct_NMEDIT"; then
7465 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7485 if test -n "$ac_ct_NMEDIT"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7487 $as_echo "$ac_ct_NMEDIT" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493 if test "x$ac_ct_NMEDIT" = x; then
7494 NMEDIT=":"
7495 else
7496 case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502 NMEDIT=$ac_ct_NMEDIT
7503 fi
7504 else
7505 NMEDIT="$ac_cv_prog_NMEDIT"
7506 fi
7507
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_LIPO+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$LIPO"; then
7517 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 LIPO=$ac_cv_prog_LIPO
7537 if test -n "$LIPO"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7539 $as_echo "$LIPO" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_LIPO"; then
7548 ac_ct_LIPO=$LIPO
7549 # Extract the first word of "lipo", so it can be a program name with args.
7550 set dummy lipo; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$ac_ct_LIPO"; then
7557 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_ac_ct_LIPO="lipo"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7577 if test -n "$ac_ct_LIPO"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7579 $as_echo "$ac_ct_LIPO" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585 if test "x$ac_ct_LIPO" = x; then
7586 LIPO=":"
7587 else
7588 case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594 LIPO=$ac_ct_LIPO
7595 fi
7596 else
7597 LIPO="$ac_cv_prog_LIPO"
7598 fi
7599
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$OTOOL"; then
7609 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
7629 if test -n "$OTOOL"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7631 $as_echo "$OTOOL" >&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_OTOOL"; then
7640 ac_ct_OTOOL=$OTOOL
7641 # Extract the first word of "otool", so it can be a program name with args.
7642 set dummy otool; 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_OTOOL+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$ac_ct_OTOOL"; then
7649 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7669 if test -n "$ac_ct_OTOOL"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7671 $as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then
7678 OTOOL=":"
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 OTOOL=$ac_ct_OTOOL
7687 fi
7688 else
7689 OTOOL="$ac_cv_prog_OTOOL"
7690 fi
7691
7692 if test -n "$ac_tool_prefix"; then
7693 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7694 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$OTOOL64"; then
7701 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
7721 if test -n "$OTOOL64"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7723 $as_echo "$OTOOL64" >&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_OTOOL64"; then
7732 ac_ct_OTOOL64=$OTOOL64
7733 # Extract the first word of "otool64", so it can be a program name with args.
7734 set dummy otool64; 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_OTOOL64+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$ac_ct_OTOOL64"; then
7741 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7761 if test -n "$ac_ct_OTOOL64"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7763 $as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
7770 OTOOL64=":"
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 OTOOL64=$ac_ct_OTOOL64
7779 fi
7780 else
7781 OTOOL64="$ac_cv_prog_OTOOL64"
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7811 $as_echo_n "checking for -single_module linker flag... " >&6; }
7812 if ${lt_cv_apple_cc_single_mod+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 lt_cv_apple_cc_single_mod=no
7816 if test -z "$LT_MULTI_MODULE"; then
7817 # By default we will add the -single_module flag. You can override
7818 # by either setting the environment variable LT_MULTI_MODULE
7819 # non-empty at configure time, or by adding -multi_module to the
7820 # link flags.
7821 rm -rf libconftest.dylib*
7822 echo "int foo(void){return 1;}" > conftest.c
7823 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7824 -dynamiclib -Wl,-single_module conftest.c" >&5
7825 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7826 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7827 _lt_result=$?
7828 # If there is a non-empty error log, and "single_module"
7829 # appears in it, assume the flag caused a linker warning
7830 if test -s conftest.err && $GREP single_module conftest.err; then
7831 cat conftest.err >&5
7832 # Otherwise, if the output was created with a 0 exit code from
7833 # the compiler, it worked.
7834 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7835 lt_cv_apple_cc_single_mod=yes
7836 else
7837 cat conftest.err >&5
7838 fi
7839 rm -rf libconftest.dylib*
7840 rm -f conftest.*
7841 fi
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7844 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7847 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7848 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 lt_cv_ld_exported_symbols_list=no
7852 save_LDFLAGS=$LDFLAGS
7853 echo "_main" > conftest.sym
7854 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857
7858 int
7859 main ()
7860 {
7861
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_link "$LINENO"; then :
7867 lt_cv_ld_exported_symbols_list=yes
7868 else
7869 lt_cv_ld_exported_symbols_list=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 LDFLAGS=$save_LDFLAGS
7874
7875 fi
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7877 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7880 $as_echo_n "checking for -force_load linker flag... " >&6; }
7881 if ${lt_cv_ld_force_load+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 lt_cv_ld_force_load=no
7885 cat > conftest.c << _LT_EOF
7886 int forced_loaded() { return 2;}
7887 _LT_EOF
7888 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7889 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7890 echo "$AR cru libconftest.a conftest.o" >&5
7891 $AR cru libconftest.a conftest.o 2>&5
7892 echo "$RANLIB libconftest.a" >&5
7893 $RANLIB libconftest.a 2>&5
7894 cat > conftest.c << _LT_EOF
7895 int main() { return 0;}
7896 _LT_EOF
7897 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7898 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7899 _lt_result=$?
7900 if test -s conftest.err && $GREP force_load conftest.err; then
7901 cat conftest.err >&5
7902 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7903 lt_cv_ld_force_load=yes
7904 else
7905 cat conftest.err >&5
7906 fi
7907 rm -f conftest.err libconftest.a conftest conftest.c
7908 rm -rf conftest.dSYM
7909
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7912 $as_echo "$lt_cv_ld_force_load" >&6; }
7913 case $host_os in
7914 rhapsody* | darwin1.[012])
7915 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7916 darwin1.*)
7917 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7918 darwin*) # darwin 5.x on
7919 # if running on 10.5 or later, the deployment target defaults
7920 # to the OS version, if on x86, and 10.4, the deployment
7921 # target defaults to 10.4. Don't you love it?
7922 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7923 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7924 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7925 10.[012][,.]*)
7926 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7927 10.*)
7928 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7929 esac
7930 ;;
7931 esac
7932 if test yes = "$lt_cv_apple_cc_single_mod"; then
7933 _lt_dar_single_mod='$single_module'
7934 fi
7935 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7936 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7937 else
7938 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7939 fi
7940 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7941 _lt_dsymutil='~$DSYMUTIL $lib || :'
7942 else
7943 _lt_dsymutil=
7944 fi
7945 ;;
7946 esac
7947
7948 # func_munge_path_list VARIABLE PATH
7949 # -----------------------------------
7950 # VARIABLE is name of variable containing _space_ separated list of
7951 # directories to be munged by the contents of PATH, which is string
7952 # having a format:
7953 # "DIR[:DIR]:"
7954 # string "DIR[ DIR]" will be prepended to VARIABLE
7955 # ":DIR[:DIR]"
7956 # string "DIR[ DIR]" will be appended to VARIABLE
7957 # "DIRP[:DIRP]::[DIRA:]DIRA"
7958 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7959 # "DIRA[ DIRA]" will be appended to VARIABLE
7960 # "DIR[:DIR]"
7961 # VARIABLE will be replaced by "DIR[ DIR]"
7962 func_munge_path_list ()
7963 {
7964 case x$2 in
7965 x)
7966 ;;
7967 *:)
7968 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7969 ;;
7970 x:*)
7971 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7972 ;;
7973 *::*)
7974 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7975 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7976 ;;
7977 *)
7978 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7979 ;;
7980 esac
7981 }
7982
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7985 $as_echo_n "checking for ANSI C header files... " >&6; }
7986 if ${ac_cv_header_stdc+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 #include <stdlib.h>
7992 #include <stdarg.h>
7993 #include <string.h>
7994 #include <float.h>
7995
7996 int
7997 main ()
7998 {
7999
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005 ac_cv_header_stdc=yes
8006 else
8007 ac_cv_header_stdc=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010
8011 if test $ac_cv_header_stdc = yes; then
8012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 #include <string.h>
8016
8017 _ACEOF
8018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8019 $EGREP "memchr" >/dev/null 2>&1; then :
8020
8021 else
8022 ac_cv_header_stdc=no
8023 fi
8024 rm -f conftest*
8025
8026 fi
8027
8028 if test $ac_cv_header_stdc = yes; then
8029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032 #include <stdlib.h>
8033
8034 _ACEOF
8035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8036 $EGREP "free" >/dev/null 2>&1; then :
8037
8038 else
8039 ac_cv_header_stdc=no
8040 fi
8041 rm -f conftest*
8042
8043 fi
8044
8045 if test $ac_cv_header_stdc = yes; then
8046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8047 if test "$cross_compiling" = yes; then :
8048 :
8049 else
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #include <ctype.h>
8053 #include <stdlib.h>
8054 #if ((' ' & 0x0FF) == 0x020)
8055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8057 #else
8058 # define ISLOWER(c) \
8059 (('a' <= (c) && (c) <= 'i') \
8060 || ('j' <= (c) && (c) <= 'r') \
8061 || ('s' <= (c) && (c) <= 'z'))
8062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8063 #endif
8064
8065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8066 int
8067 main ()
8068 {
8069 int i;
8070 for (i = 0; i < 256; i++)
8071 if (XOR (islower (i), ISLOWER (i))
8072 || toupper (i) != TOUPPER (i))
8073 return 2;
8074 return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_run "$LINENO"; then :
8078
8079 else
8080 ac_cv_header_stdc=no
8081 fi
8082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8083 conftest.$ac_objext conftest.beam conftest.$ac_ext
8084 fi
8085
8086 fi
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8089 $as_echo "$ac_cv_header_stdc" >&6; }
8090 if test $ac_cv_header_stdc = yes; then
8091
8092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8093
8094 fi
8095
8096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8098 inttypes.h stdint.h unistd.h
8099 do :
8100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8101 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8102 "
8103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8104 cat >>confdefs.h <<_ACEOF
8105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8106 _ACEOF
8107
8108 fi
8109
8110 done
8111
8112
8113 for ac_header in dlfcn.h
8114 do :
8115 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8116 "
8117 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8118 cat >>confdefs.h <<_ACEOF
8119 #define HAVE_DLFCN_H 1
8120 _ACEOF
8121
8122 fi
8123
8124 done
8125
8126
8127
8128
8129
8130 # Set options
8131
8132
8133
8134 enable_dlopen=no
8135
8136
8137 enable_win32_dll=no
8138
8139
8140 # Check whether --enable-shared was given.
8141 if test "${enable_shared+set}" = set; then :
8142 enableval=$enable_shared; p=${PACKAGE-default}
8143 case $enableval in
8144 yes) enable_shared=yes ;;
8145 no) enable_shared=no ;;
8146 *)
8147 enable_shared=no
8148 # Look at the argument we got. We use all the common list separators.
8149 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8150 for pkg in $enableval; do
8151 IFS=$lt_save_ifs
8152 if test "X$pkg" = "X$p"; then
8153 enable_shared=yes
8154 fi
8155 done
8156 IFS=$lt_save_ifs
8157 ;;
8158 esac
8159 else
8160 enable_shared=yes
8161 fi
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171 # Check whether --enable-static was given.
8172 if test "${enable_static+set}" = set; then :
8173 enableval=$enable_static; p=${PACKAGE-default}
8174 case $enableval in
8175 yes) enable_static=yes ;;
8176 no) enable_static=no ;;
8177 *)
8178 enable_static=no
8179 # Look at the argument we got. We use all the common list separators.
8180 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8181 for pkg in $enableval; do
8182 IFS=$lt_save_ifs
8183 if test "X$pkg" = "X$p"; then
8184 enable_static=yes
8185 fi
8186 done
8187 IFS=$lt_save_ifs
8188 ;;
8189 esac
8190 else
8191 enable_static=yes
8192 fi
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203 # Check whether --with-pic was given.
8204 if test "${with_pic+set}" = set; then :
8205 withval=$with_pic; lt_p=${PACKAGE-default}
8206 case $withval in
8207 yes|no) pic_mode=$withval ;;
8208 *)
8209 pic_mode=default
8210 # Look at the argument we got. We use all the common list separators.
8211 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8212 for lt_pkg in $withval; do
8213 IFS=$lt_save_ifs
8214 if test "X$lt_pkg" = "X$lt_p"; then
8215 pic_mode=yes
8216 fi
8217 done
8218 IFS=$lt_save_ifs
8219 ;;
8220 esac
8221 else
8222 pic_mode=default
8223 fi
8224
8225
8226
8227
8228
8229
8230
8231
8232 # Check whether --enable-fast-install was given.
8233 if test "${enable_fast_install+set}" = set; then :
8234 enableval=$enable_fast_install; p=${PACKAGE-default}
8235 case $enableval in
8236 yes) enable_fast_install=yes ;;
8237 no) enable_fast_install=no ;;
8238 *)
8239 enable_fast_install=no
8240 # Look at the argument we got. We use all the common list separators.
8241 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8242 for pkg in $enableval; do
8243 IFS=$lt_save_ifs
8244 if test "X$pkg" = "X$p"; then
8245 enable_fast_install=yes
8246 fi
8247 done
8248 IFS=$lt_save_ifs
8249 ;;
8250 esac
8251 else
8252 enable_fast_install=yes
8253 fi
8254
8255
8256
8257
8258
8259
8260
8261
8262 shared_archive_member_spec=
8263 case $host,$enable_shared in
8264 power*-*-aix[5-9]*,yes)
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8266 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8267
8268 # Check whether --with-aix-soname was given.
8269 if test "${with_aix_soname+set}" = set; then :
8270 withval=$with_aix_soname; case $withval in
8271 aix|svr4|both)
8272 ;;
8273 *)
8274 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8275 ;;
8276 esac
8277 lt_cv_with_aix_soname=$with_aix_soname
8278 else
8279 if ${lt_cv_with_aix_soname+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 lt_cv_with_aix_soname=aix
8283 fi
8284
8285 with_aix_soname=$lt_cv_with_aix_soname
8286 fi
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8289 $as_echo "$with_aix_soname" >&6; }
8290 if test aix != "$with_aix_soname"; then
8291 # For the AIX way of multilib, we name the shared archive member
8292 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8293 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8294 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8295 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8296 if test 64 = "${OBJECT_MODE-32}"; then
8297 shared_archive_member_spec=shr_64
8298 else
8299 shared_archive_member_spec=shr
8300 fi
8301 fi
8302 ;;
8303 *)
8304 with_aix_soname=aix
8305 ;;
8306 esac
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317 # This can be used to rebuild libtool when needed
8318 LIBTOOL_DEPS=$ltmain
8319
8320 # Always use our own libtool.
8321 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 test -z "$LN_S" && LN_S="ln -s"
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367 if test -n "${ZSH_VERSION+set}"; then
8368 setopt NO_GLOB_SUBST
8369 fi
8370
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8372 $as_echo_n "checking for objdir... " >&6; }
8373 if ${lt_cv_objdir+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 rm -f .libs 2>/dev/null
8377 mkdir .libs 2>/dev/null
8378 if test -d .libs; then
8379 lt_cv_objdir=.libs
8380 else
8381 # MS-DOS does not allow filenames that begin with a dot.
8382 lt_cv_objdir=_libs
8383 fi
8384 rmdir .libs 2>/dev/null
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8387 $as_echo "$lt_cv_objdir" >&6; }
8388 objdir=$lt_cv_objdir
8389
8390
8391
8392
8393
8394 cat >>confdefs.h <<_ACEOF
8395 #define LT_OBJDIR "$lt_cv_objdir/"
8396 _ACEOF
8397
8398
8399
8400
8401 case $host_os in
8402 aix3*)
8403 # AIX sometimes has problems with the GCC collect2 program. For some
8404 # reason, if we set the COLLECT_NAMES environment variable, the problems
8405 # vanish in a puff of smoke.
8406 if test set != "${COLLECT_NAMES+set}"; then
8407 COLLECT_NAMES=
8408 export COLLECT_NAMES
8409 fi
8410 ;;
8411 esac
8412
8413 # Global variables:
8414 ofile=libtool
8415 can_build_shared=yes
8416
8417 # All known linkers require a '.a' archive for static linking (except MSVC,
8418 # which needs '.lib').
8419 libext=a
8420
8421 with_gnu_ld=$lt_cv_prog_gnu_ld
8422
8423 old_CC=$CC
8424 old_CFLAGS=$CFLAGS
8425
8426 # Set sane defaults for various variables
8427 test -z "$CC" && CC=cc
8428 test -z "$LTCC" && LTCC=$CC
8429 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8430 test -z "$LD" && LD=ld
8431 test -z "$ac_objext" && ac_objext=o
8432
8433 func_cc_basename $compiler
8434 cc_basename=$func_cc_basename_result
8435
8436
8437 # Only perform the check for file, if the check method requires it
8438 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8439 case $deplibs_check_method in
8440 file_magic*)
8441 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8443 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8444 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 case $MAGIC_CMD in
8448 [\\/*] | ?:[\\/]*)
8449 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8450 ;;
8451 *)
8452 lt_save_MAGIC_CMD=$MAGIC_CMD
8453 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8455 for ac_dir in $ac_dummy; do
8456 IFS=$lt_save_ifs
8457 test -z "$ac_dir" && ac_dir=.
8458 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8459 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8460 if test -n "$file_magic_test_file"; then
8461 case $deplibs_check_method in
8462 "file_magic "*)
8463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8464 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8466 $EGREP "$file_magic_regex" > /dev/null; then
8467 :
8468 else
8469 cat <<_LT_EOF 1>&2
8470
8471 *** Warning: the command libtool uses to detect shared libraries,
8472 *** $file_magic_cmd, produces output that libtool cannot recognize.
8473 *** The result is that libtool may fail to recognize shared libraries
8474 *** as such. This will affect the creation of libtool libraries that
8475 *** depend on shared libraries, but programs linked with such libtool
8476 *** libraries will work regardless of this problem. Nevertheless, you
8477 *** may want to report the problem to your system manager and/or to
8478 *** [email protected]
8479
8480 _LT_EOF
8481 fi ;;
8482 esac
8483 fi
8484 break
8485 fi
8486 done
8487 IFS=$lt_save_ifs
8488 MAGIC_CMD=$lt_save_MAGIC_CMD
8489 ;;
8490 esac
8491 fi
8492
8493 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8494 if test -n "$MAGIC_CMD"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8496 $as_echo "$MAGIC_CMD" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8500 fi
8501
8502
8503
8504
8505
8506 if test -z "$lt_cv_path_MAGIC_CMD"; then
8507 if test -n "$ac_tool_prefix"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8509 $as_echo_n "checking for file... " >&6; }
8510 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 case $MAGIC_CMD in
8514 [\\/*] | ?:[\\/]*)
8515 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8516 ;;
8517 *)
8518 lt_save_MAGIC_CMD=$MAGIC_CMD
8519 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8520 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8521 for ac_dir in $ac_dummy; do
8522 IFS=$lt_save_ifs
8523 test -z "$ac_dir" && ac_dir=.
8524 if test -f "$ac_dir/file"; then
8525 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8526 if test -n "$file_magic_test_file"; then
8527 case $deplibs_check_method in
8528 "file_magic "*)
8529 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8532 $EGREP "$file_magic_regex" > /dev/null; then
8533 :
8534 else
8535 cat <<_LT_EOF 1>&2
8536
8537 *** Warning: the command libtool uses to detect shared libraries,
8538 *** $file_magic_cmd, produces output that libtool cannot recognize.
8539 *** The result is that libtool may fail to recognize shared libraries
8540 *** as such. This will affect the creation of libtool libraries that
8541 *** depend on shared libraries, but programs linked with such libtool
8542 *** libraries will work regardless of this problem. Nevertheless, you
8543 *** may want to report the problem to your system manager and/or to
8544 *** [email protected]
8545
8546 _LT_EOF
8547 fi ;;
8548 esac
8549 fi
8550 break
8551 fi
8552 done
8553 IFS=$lt_save_ifs
8554 MAGIC_CMD=$lt_save_MAGIC_CMD
8555 ;;
8556 esac
8557 fi
8558
8559 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8560 if test -n "$MAGIC_CMD"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8562 $as_echo "$MAGIC_CMD" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8566 fi
8567
8568
8569 else
8570 MAGIC_CMD=:
8571 fi
8572 fi
8573
8574 fi
8575 ;;
8576 esac
8577
8578 # Use C for the default configuration in the libtool script
8579
8580 lt_save_CC=$CC
8581 ac_ext=c
8582 ac_cpp='$CPP $CPPFLAGS'
8583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8586
8587
8588 # Source file extension for C test sources.
8589 ac_ext=c
8590
8591 # Object file extension for compiled C test sources.
8592 objext=o
8593 objext=$objext
8594
8595 # Code to be used in simple compile tests
8596 lt_simple_compile_test_code="int some_variable = 0;"
8597
8598 # Code to be used in simple link tests
8599 lt_simple_link_test_code='int main(){return(0);}'
8600
8601
8602
8603
8604
8605
8606
8607 # If no C compiler was specified, use CC.
8608 LTCC=${LTCC-"$CC"}
8609
8610 # If no C compiler flags were specified, use CFLAGS.
8611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8612
8613 # Allow CC to be a program name with arguments.
8614 compiler=$CC
8615
8616 # Save the default compiler, since it gets overwritten when the other
8617 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8618 compiler_DEFAULT=$CC
8619
8620 # save warnings/boilerplate of simple test code
8621 ac_outfile=conftest.$ac_objext
8622 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8623 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8624 _lt_compiler_boilerplate=`cat conftest.err`
8625 $RM conftest*
8626
8627 ac_outfile=conftest.$ac_objext
8628 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8629 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8630 _lt_linker_boilerplate=`cat conftest.err`
8631 $RM -r conftest*
8632
8633
8634 ## CAVEAT EMPTOR:
8635 ## There is no encapsulation within the following macros, do not change
8636 ## the running order or otherwise move them around unless you know exactly
8637 ## what you are doing...
8638 if test -n "$compiler"; then
8639
8640 lt_prog_compiler_no_builtin_flag=
8641
8642 if test yes = "$GCC"; then
8643 case $cc_basename in
8644 nvcc*)
8645 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8646 *)
8647 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8648 esac
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8652 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 lt_cv_prog_compiler_rtti_exceptions=no
8656 ac_outfile=conftest.$ac_objext
8657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8658 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8659 # Insert the option either (1) after the last *FLAGS variable, or
8660 # (2) before a word containing "conftest.", or (3) at the end.
8661 # Note that $ac_compile itself does not contain backslashes and begins
8662 # with a dollar sign (not a hyphen), so the echo should work correctly.
8663 # The option is referenced via a variable to avoid confusing sed.
8664 lt_compile=`echo "$ac_compile" | $SED \
8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667 -e 's:$: $lt_compiler_flag:'`
8668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8669 (eval "$lt_compile" 2>conftest.err)
8670 ac_status=$?
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 if (exit $ac_status) && test -s "$ac_outfile"; then
8674 # The compiler can only warn and ignore the option if not recognized
8675 # So say no if there are warnings other than the usual output.
8676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8679 lt_cv_prog_compiler_rtti_exceptions=yes
8680 fi
8681 fi
8682 $RM conftest*
8683
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8687
8688 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8690 else
8691 :
8692 fi
8693
8694 fi
8695
8696
8697
8698
8699
8700
8701 lt_prog_compiler_wl=
8702 lt_prog_compiler_pic=
8703 lt_prog_compiler_static=
8704
8705
8706 if test yes = "$GCC"; then
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_static='-static'
8709
8710 case $host_os in
8711 aix*)
8712 # All AIX code is PIC.
8713 if test ia64 = "$host_cpu"; then
8714 # AIX 5 now supports IA64 processor
8715 lt_prog_compiler_static='-Bstatic'
8716 fi
8717 lt_prog_compiler_pic='-fPIC'
8718 ;;
8719
8720 amigaos*)
8721 case $host_cpu in
8722 powerpc)
8723 # see comment about AmigaOS4 .so support
8724 lt_prog_compiler_pic='-fPIC'
8725 ;;
8726 m68k)
8727 # FIXME: we need at least 68020 code to build shared libraries, but
8728 # adding the '-m68020' flag to GCC prevents building anything better,
8729 # like '-m68040'.
8730 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8731 ;;
8732 esac
8733 ;;
8734
8735 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8736 # PIC is the default for these OSes.
8737 ;;
8738
8739 mingw* | cygwin* | pw32* | os2* | cegcc*)
8740 # This hack is so that the source file can tell whether it is being
8741 # built for inclusion in a dll (and should export symbols for example).
8742 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8743 # (--disable-auto-import) libraries
8744 lt_prog_compiler_pic='-DDLL_EXPORT'
8745 case $host_os in
8746 os2*)
8747 lt_prog_compiler_static='$wl-static'
8748 ;;
8749 esac
8750 ;;
8751
8752 darwin* | rhapsody*)
8753 # PIC is the default on this platform
8754 # Common symbols not allowed in MH_DYLIB files
8755 lt_prog_compiler_pic='-fno-common'
8756 ;;
8757
8758 haiku*)
8759 # PIC is the default for Haiku.
8760 # The "-static" flag exists, but is broken.
8761 lt_prog_compiler_static=
8762 ;;
8763
8764 hpux*)
8765 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8766 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8767 # sets the default TLS model and affects inlining.
8768 case $host_cpu in
8769 hppa*64*)
8770 # +Z the default
8771 ;;
8772 *)
8773 lt_prog_compiler_pic='-fPIC'
8774 ;;
8775 esac
8776 ;;
8777
8778 interix[3-9]*)
8779 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8780 # Instead, we relocate shared libraries at runtime.
8781 ;;
8782
8783 msdosdjgpp*)
8784 # Just because we use GCC doesn't mean we suddenly get shared libraries
8785 # on systems that don't support them.
8786 lt_prog_compiler_can_build_shared=no
8787 enable_shared=no
8788 ;;
8789
8790 *nto* | *qnx*)
8791 # QNX uses GNU C++, but need to define -shared option too, otherwise
8792 # it will coredump.
8793 lt_prog_compiler_pic='-fPIC -shared'
8794 ;;
8795
8796 sysv4*MP*)
8797 if test -d /usr/nec; then
8798 lt_prog_compiler_pic=-Kconform_pic
8799 fi
8800 ;;
8801
8802 *)
8803 lt_prog_compiler_pic='-fPIC'
8804 ;;
8805 esac
8806
8807 case $cc_basename in
8808 nvcc*) # Cuda Compiler Driver 2.2
8809 lt_prog_compiler_wl='-Xlinker '
8810 if test -n "$lt_prog_compiler_pic"; then
8811 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8812 fi
8813 ;;
8814 esac
8815 else
8816 # PORTME Check for flag to pass linker flags through the system compiler.
8817 case $host_os in
8818 aix*)
8819 lt_prog_compiler_wl='-Wl,'
8820 if test ia64 = "$host_cpu"; then
8821 # AIX 5 now supports IA64 processor
8822 lt_prog_compiler_static='-Bstatic'
8823 else
8824 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8825 fi
8826 ;;
8827
8828 darwin* | rhapsody*)
8829 # PIC is the default on this platform
8830 # Common symbols not allowed in MH_DYLIB files
8831 lt_prog_compiler_pic='-fno-common'
8832 case $cc_basename in
8833 nagfor*)
8834 # NAG Fortran compiler
8835 lt_prog_compiler_wl='-Wl,-Wl,,'
8836 lt_prog_compiler_pic='-PIC'
8837 lt_prog_compiler_static='-Bstatic'
8838 ;;
8839 esac
8840 ;;
8841
8842 mingw* | cygwin* | pw32* | os2* | cegcc*)
8843 # This hack is so that the source file can tell whether it is being
8844 # built for inclusion in a dll (and should export symbols for example).
8845 lt_prog_compiler_pic='-DDLL_EXPORT'
8846 case $host_os in
8847 os2*)
8848 lt_prog_compiler_static='$wl-static'
8849 ;;
8850 esac
8851 ;;
8852
8853 hpux9* | hpux10* | hpux11*)
8854 lt_prog_compiler_wl='-Wl,'
8855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8856 # not for PA HP-UX.
8857 case $host_cpu in
8858 hppa*64*|ia64*)
8859 # +Z the default
8860 ;;
8861 *)
8862 lt_prog_compiler_pic='+Z'
8863 ;;
8864 esac
8865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8866 lt_prog_compiler_static='$wl-a ${wl}archive'
8867 ;;
8868
8869 irix5* | irix6* | nonstopux*)
8870 lt_prog_compiler_wl='-Wl,'
8871 # PIC (with -KPIC) is the default.
8872 lt_prog_compiler_static='-non_shared'
8873 ;;
8874
8875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8876 case $cc_basename in
8877 # old Intel for x86_64, which still supported -KPIC.
8878 ecc*)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-static'
8882 ;;
8883 # icc used to be incompatible with GCC.
8884 # ICC 10 doesn't accept -KPIC any more.
8885 icc* | ifort*)
8886 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='-fPIC'
8888 lt_prog_compiler_static='-static'
8889 ;;
8890 # Lahey Fortran 8.1.
8891 lf95*)
8892 lt_prog_compiler_wl='-Wl,'
8893 lt_prog_compiler_pic='--shared'
8894 lt_prog_compiler_static='--static'
8895 ;;
8896 nagfor*)
8897 # NAG Fortran compiler
8898 lt_prog_compiler_wl='-Wl,-Wl,,'
8899 lt_prog_compiler_pic='-PIC'
8900 lt_prog_compiler_static='-Bstatic'
8901 ;;
8902 tcc*)
8903 # Fabrice Bellard et al's Tiny C Compiler
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-fPIC'
8906 lt_prog_compiler_static='-static'
8907 ;;
8908 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8909 # Portland Group compilers (*not* the Pentium gcc compiler,
8910 # which looks to be a dead project)
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-fpic'
8913 lt_prog_compiler_static='-Bstatic'
8914 ;;
8915 ccc*)
8916 lt_prog_compiler_wl='-Wl,'
8917 # All Alpha code is PIC.
8918 lt_prog_compiler_static='-non_shared'
8919 ;;
8920 xl* | bgxl* | bgf* | mpixl*)
8921 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-qpic'
8924 lt_prog_compiler_static='-qstaticlink'
8925 ;;
8926 *)
8927 case `$CC -V 2>&1 | sed 5q` in
8928 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8929 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8930 lt_prog_compiler_pic='-KPIC'
8931 lt_prog_compiler_static='-Bstatic'
8932 lt_prog_compiler_wl=''
8933 ;;
8934 *Sun\ F* | *Sun*Fortran*)
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 lt_prog_compiler_wl='-Qoption ld '
8938 ;;
8939 *Sun\ C*)
8940 # Sun C 5.9
8941 lt_prog_compiler_pic='-KPIC'
8942 lt_prog_compiler_static='-Bstatic'
8943 lt_prog_compiler_wl='-Wl,'
8944 ;;
8945 *Intel*\ [CF]*Compiler*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-fPIC'
8948 lt_prog_compiler_static='-static'
8949 ;;
8950 *Portland\ Group*)
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_pic='-fpic'
8953 lt_prog_compiler_static='-Bstatic'
8954 ;;
8955 esac
8956 ;;
8957 esac
8958 ;;
8959
8960 newsos6)
8961 lt_prog_compiler_pic='-KPIC'
8962 lt_prog_compiler_static='-Bstatic'
8963 ;;
8964
8965 *nto* | *qnx*)
8966 # QNX uses GNU C++, but need to define -shared option too, otherwise
8967 # it will coredump.
8968 lt_prog_compiler_pic='-fPIC -shared'
8969 ;;
8970
8971 osf3* | osf4* | osf5*)
8972 lt_prog_compiler_wl='-Wl,'
8973 # All OSF/1 code is PIC.
8974 lt_prog_compiler_static='-non_shared'
8975 ;;
8976
8977 rdos*)
8978 lt_prog_compiler_static='-non_shared'
8979 ;;
8980
8981 solaris*)
8982 lt_prog_compiler_pic='-KPIC'
8983 lt_prog_compiler_static='-Bstatic'
8984 case $cc_basename in
8985 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8986 lt_prog_compiler_wl='-Qoption ld ';;
8987 *)
8988 lt_prog_compiler_wl='-Wl,';;
8989 esac
8990 ;;
8991
8992 sunos4*)
8993 lt_prog_compiler_wl='-Qoption ld '
8994 lt_prog_compiler_pic='-PIC'
8995 lt_prog_compiler_static='-Bstatic'
8996 ;;
8997
8998 sysv4 | sysv4.2uw2* | sysv4.3*)
8999 lt_prog_compiler_wl='-Wl,'
9000 lt_prog_compiler_pic='-KPIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 ;;
9003
9004 sysv4*MP*)
9005 if test -d /usr/nec; then
9006 lt_prog_compiler_pic='-Kconform_pic'
9007 lt_prog_compiler_static='-Bstatic'
9008 fi
9009 ;;
9010
9011 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9012 lt_prog_compiler_wl='-Wl,'
9013 lt_prog_compiler_pic='-KPIC'
9014 lt_prog_compiler_static='-Bstatic'
9015 ;;
9016
9017 unicos*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_can_build_shared=no
9020 ;;
9021
9022 uts4*)
9023 lt_prog_compiler_pic='-pic'
9024 lt_prog_compiler_static='-Bstatic'
9025 ;;
9026
9027 *)
9028 lt_prog_compiler_can_build_shared=no
9029 ;;
9030 esac
9031 fi
9032
9033 case $host_os in
9034 # For platforms that do not support PIC, -DPIC is meaningless:
9035 *djgpp*)
9036 lt_prog_compiler_pic=
9037 ;;
9038 *)
9039 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9040 ;;
9041 esac
9042
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9044 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9045 if ${lt_cv_prog_compiler_pic+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9051 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9052 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9053
9054 #
9055 # Check to make sure the PIC flag actually works.
9056 #
9057 if test -n "$lt_prog_compiler_pic"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9059 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9060 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 lt_cv_prog_compiler_pic_works=no
9064 ac_outfile=conftest.$ac_objext
9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9066 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9067 # Insert the option either (1) after the last *FLAGS variable, or
9068 # (2) before a word containing "conftest.", or (3) at the end.
9069 # Note that $ac_compile itself does not contain backslashes and begins
9070 # with a dollar sign (not a hyphen), so the echo should work correctly.
9071 # The option is referenced via a variable to avoid confusing sed.
9072 lt_compile=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>conftest.err)
9078 ac_status=$?
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s "$ac_outfile"; then
9082 # The compiler can only warn and ignore the option if not recognized
9083 # So say no if there are warnings other than the usual output.
9084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_cv_prog_compiler_pic_works=yes
9088 fi
9089 fi
9090 $RM conftest*
9091
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9094 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9095
9096 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9097 case $lt_prog_compiler_pic in
9098 "" | " "*) ;;
9099 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9100 esac
9101 else
9102 lt_prog_compiler_pic=
9103 lt_prog_compiler_can_build_shared=no
9104 fi
9105
9106 fi
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118 #
9119 # Check to make sure the static flag actually works.
9120 #
9121 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9123 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9124 if ${lt_cv_prog_compiler_static_works+:} false; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 lt_cv_prog_compiler_static_works=no
9128 save_LDFLAGS=$LDFLAGS
9129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9132 # The linker can only warn and ignore the option if not recognized
9133 # So say no if there are warnings
9134 if test -s conftest.err; then
9135 # Append any errors to the config.log.
9136 cat conftest.err 1>&5
9137 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9139 if diff conftest.exp conftest.er2 >/dev/null; then
9140 lt_cv_prog_compiler_static_works=yes
9141 fi
9142 else
9143 lt_cv_prog_compiler_static_works=yes
9144 fi
9145 fi
9146 $RM -r conftest*
9147 LDFLAGS=$save_LDFLAGS
9148
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9151 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9152
9153 if test yes = "$lt_cv_prog_compiler_static_works"; then
9154 :
9155 else
9156 lt_prog_compiler_static=
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9167 if ${lt_cv_prog_compiler_c_o+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 lt_cv_prog_compiler_c_o=no
9171 $RM -r conftest 2>/dev/null
9172 mkdir conftest
9173 cd conftest
9174 mkdir out
9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9176
9177 lt_compiler_flag="-o out/conftest2.$ac_objext"
9178 # Insert the option either (1) after the last *FLAGS variable, or
9179 # (2) before a word containing "conftest.", or (3) at the end.
9180 # Note that $ac_compile itself does not contain backslashes and begins
9181 # with a dollar sign (not a hyphen), so the echo should work correctly.
9182 lt_compile=`echo "$ac_compile" | $SED \
9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185 -e 's:$: $lt_compiler_flag:'`
9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9187 (eval "$lt_compile" 2>out/conftest.err)
9188 ac_status=$?
9189 cat out/conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9192 then
9193 # The compiler can only warn and ignore the option if not recognized
9194 # So say no if there are warnings
9195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9198 lt_cv_prog_compiler_c_o=yes
9199 fi
9200 fi
9201 chmod u+w . 2>&5
9202 $RM conftest*
9203 # SGI C++ compiler will create directory out/ii_files/ for
9204 # template instantiation
9205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9206 $RM out/* && rmdir out
9207 cd ..
9208 $RM -r conftest
9209 $RM conftest*
9210
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9214
9215
9216
9217
9218
9219
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9222 if ${lt_cv_prog_compiler_c_o+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 lt_cv_prog_compiler_c_o=no
9226 $RM -r conftest 2>/dev/null
9227 mkdir conftest
9228 cd conftest
9229 mkdir out
9230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9231
9232 lt_compiler_flag="-o out/conftest2.$ac_objext"
9233 # Insert the option either (1) after the last *FLAGS variable, or
9234 # (2) before a word containing "conftest.", or (3) at the end.
9235 # Note that $ac_compile itself does not contain backslashes and begins
9236 # with a dollar sign (not a hyphen), so the echo should work correctly.
9237 lt_compile=`echo "$ac_compile" | $SED \
9238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9240 -e 's:$: $lt_compiler_flag:'`
9241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9242 (eval "$lt_compile" 2>out/conftest.err)
9243 ac_status=$?
9244 cat out/conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9247 then
9248 # The compiler can only warn and ignore the option if not recognized
9249 # So say no if there are warnings
9250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9253 lt_cv_prog_compiler_c_o=yes
9254 fi
9255 fi
9256 chmod u+w . 2>&5
9257 $RM conftest*
9258 # SGI C++ compiler will create directory out/ii_files/ for
9259 # template instantiation
9260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9261 $RM out/* && rmdir out
9262 cd ..
9263 $RM -r conftest
9264 $RM conftest*
9265
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9269
9270
9271
9272
9273 hard_links=nottested
9274 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9275 # do not overwrite the value of need_locks provided by the user
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9277 $as_echo_n "checking if we can lock with hard links... " >&6; }
9278 hard_links=yes
9279 $RM conftest*
9280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9281 touch conftest.a
9282 ln conftest.a conftest.b 2>&5 || hard_links=no
9283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9285 $as_echo "$hard_links" >&6; }
9286 if test no = "$hard_links"; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9288 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9289 need_locks=warn
9290 fi
9291 else
9292 need_locks=no
9293 fi
9294
9295
9296
9297
9298
9299
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9301 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9302
9303 runpath_var=
9304 allow_undefined_flag=
9305 always_export_symbols=no
9306 archive_cmds=
9307 archive_expsym_cmds=
9308 compiler_needs_object=no
9309 enable_shared_with_static_runtimes=no
9310 export_dynamic_flag_spec=
9311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9312 hardcode_automatic=no
9313 hardcode_direct=no
9314 hardcode_direct_absolute=no
9315 hardcode_libdir_flag_spec=
9316 hardcode_libdir_separator=
9317 hardcode_minus_L=no
9318 hardcode_shlibpath_var=unsupported
9319 inherit_rpath=no
9320 link_all_deplibs=unknown
9321 module_cmds=
9322 module_expsym_cmds=
9323 old_archive_from_new_cmds=
9324 old_archive_from_expsyms_cmds=
9325 thread_safe_flag_spec=
9326 whole_archive_flag_spec=
9327 # include_expsyms should be a list of space-separated symbols to be *always*
9328 # included in the symbol list
9329 include_expsyms=
9330 # exclude_expsyms can be an extended regexp of symbols to exclude
9331 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9332 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9333 # as well as any symbol that contains 'd'.
9334 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9335 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9336 # platforms (ab)use it in PIC code, but their linkers get confused if
9337 # the symbol is explicitly referenced. Since portable code cannot
9338 # rely on this symbol name, it's probably fine to never include it in
9339 # preloaded symbol tables.
9340 # Exclude shared library initialization/finalization symbols.
9341 extract_expsyms_cmds=
9342
9343 case $host_os in
9344 cygwin* | mingw* | pw32* | cegcc*)
9345 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9346 # When not using gcc, we currently assume that we are using
9347 # Microsoft Visual C++.
9348 if test yes != "$GCC"; then
9349 with_gnu_ld=no
9350 fi
9351 ;;
9352 interix*)
9353 # we just hope/assume this is gcc and not c89 (= MSVC++)
9354 with_gnu_ld=yes
9355 ;;
9356 openbsd* | bitrig*)
9357 with_gnu_ld=no
9358 ;;
9359 esac
9360
9361 ld_shlibs=yes
9362
9363 # On some targets, GNU ld is compatible enough with the native linker
9364 # that we're better off using the native interface for both.
9365 lt_use_gnu_ld_interface=no
9366 if test yes = "$with_gnu_ld"; then
9367 case $host_os in
9368 aix*)
9369 # The AIX port of GNU ld has always aspired to compatibility
9370 # with the native linker. However, as the warning in the GNU ld
9371 # block says, versions before 2.19.5* couldn't really create working
9372 # shared libraries, regardless of the interface used.
9373 case `$LD -v 2>&1` in
9374 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9375 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9376 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9377 *)
9378 lt_use_gnu_ld_interface=yes
9379 ;;
9380 esac
9381 ;;
9382 *)
9383 lt_use_gnu_ld_interface=yes
9384 ;;
9385 esac
9386 fi
9387
9388 if test yes = "$lt_use_gnu_ld_interface"; then
9389 # If archive_cmds runs LD, not CC, wlarc should be empty
9390 wlarc='$wl'
9391
9392 # Set some defaults for GNU ld with shared library support. These
9393 # are reset later if shared libraries are not supported. Putting them
9394 # here allows them to be overridden if necessary.
9395 runpath_var=LD_RUN_PATH
9396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9397 export_dynamic_flag_spec='$wl--export-dynamic'
9398 # ancient GNU ld didn't support --whole-archive et. al.
9399 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9400 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9401 else
9402 whole_archive_flag_spec=
9403 fi
9404 supports_anon_versioning=no
9405 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9406 *GNU\ gold*) supports_anon_versioning=yes ;;
9407 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9408 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9409 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9410 *\ 2.11.*) ;; # other 2.11 versions
9411 *) supports_anon_versioning=yes ;;
9412 esac
9413
9414 # See if GNU ld supports shared libraries.
9415 case $host_os in
9416 aix[3-9]*)
9417 # On AIX/PPC, the GNU linker is very broken
9418 if test ia64 != "$host_cpu"; then
9419 ld_shlibs=no
9420 cat <<_LT_EOF 1>&2
9421
9422 *** Warning: the GNU linker, at least up to release 2.19, is reported
9423 *** to be unable to reliably create shared libraries on AIX.
9424 *** Therefore, libtool is disabling shared libraries support. If you
9425 *** really care for shared libraries, you may want to install binutils
9426 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9427 *** You will then need to restart the configuration process.
9428
9429 _LT_EOF
9430 fi
9431 ;;
9432
9433 amigaos*)
9434 case $host_cpu in
9435 powerpc)
9436 # see comment about AmigaOS4 .so support
9437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9438 archive_expsym_cmds=''
9439 ;;
9440 m68k)
9441 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)'
9442 hardcode_libdir_flag_spec='-L$libdir'
9443 hardcode_minus_L=yes
9444 ;;
9445 esac
9446 ;;
9447
9448 beos*)
9449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9450 allow_undefined_flag=unsupported
9451 # Joseph Beckenbach <[email protected]> says some releases of gcc
9452 # support --undefined. This deserves some investigation. FIXME
9453 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9454 else
9455 ld_shlibs=no
9456 fi
9457 ;;
9458
9459 cygwin* | mingw* | pw32* | cegcc*)
9460 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9461 # as there is no search path for DLLs.
9462 hardcode_libdir_flag_spec='-L$libdir'
9463 export_dynamic_flag_spec='$wl--export-all-symbols'
9464 allow_undefined_flag=unsupported
9465 always_export_symbols=no
9466 enable_shared_with_static_runtimes=yes
9467 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'
9468 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9469
9470 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472 # If the export-symbols file already is a .def file, use it as
9473 # is; otherwise, prepend EXPORTS...
9474 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9475 cp $export_symbols $output_objdir/$soname.def;
9476 else
9477 echo EXPORTS > $output_objdir/$soname.def;
9478 cat $export_symbols >> $output_objdir/$soname.def;
9479 fi~
9480 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481 else
9482 ld_shlibs=no
9483 fi
9484 ;;
9485
9486 haiku*)
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9488 link_all_deplibs=yes
9489 ;;
9490
9491 os2*)
9492 hardcode_libdir_flag_spec='-L$libdir'
9493 hardcode_minus_L=yes
9494 allow_undefined_flag=unsupported
9495 shrext_cmds=.dll
9496 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9497 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9498 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9499 $ECHO EXPORTS >> $output_objdir/$libname.def~
9500 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9501 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9502 emximp -o $lib $output_objdir/$libname.def'
9503 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9506 $ECHO EXPORTS >> $output_objdir/$libname.def~
9507 prefix_cmds="$SED"~
9508 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9509 prefix_cmds="$prefix_cmds -e 1d";
9510 fi~
9511 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9512 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9514 emximp -o $lib $output_objdir/$libname.def'
9515 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9516 enable_shared_with_static_runtimes=yes
9517 ;;
9518
9519 interix[3-9]*)
9520 hardcode_direct=no
9521 hardcode_shlibpath_var=no
9522 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9523 export_dynamic_flag_spec='$wl-E'
9524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9525 # Instead, shared libraries are loaded at an image base (0x10000000 by
9526 # default) and relocated if they conflict, which is a slow very memory
9527 # consuming and fragmenting process. To avoid this, we pick a random,
9528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9530 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9531 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'
9532 ;;
9533
9534 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9535 tmp_diet=no
9536 if test linux-dietlibc = "$host_os"; then
9537 case $cc_basename in
9538 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9539 esac
9540 fi
9541 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9542 && test no = "$tmp_diet"
9543 then
9544 tmp_addflag=' $pic_flag'
9545 tmp_sharedflag='-shared'
9546 case $cc_basename,$host_cpu in
9547 pgcc*) # Portland Group C compiler
9548 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'
9549 tmp_addflag=' $pic_flag'
9550 ;;
9551 pgf77* | pgf90* | pgf95* | pgfortran*)
9552 # Portland Group f77 and f90 compilers
9553 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'
9554 tmp_addflag=' $pic_flag -Mnomain' ;;
9555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9556 tmp_addflag=' -i_dynamic' ;;
9557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9558 tmp_addflag=' -i_dynamic -nofor_main' ;;
9559 ifc* | ifort*) # Intel Fortran compiler
9560 tmp_addflag=' -nofor_main' ;;
9561 lf95*) # Lahey Fortran 8.1
9562 whole_archive_flag_spec=
9563 tmp_sharedflag='--shared' ;;
9564 nagfor*) # NAGFOR 5.3
9565 tmp_sharedflag='-Wl,-shared' ;;
9566 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9567 tmp_sharedflag='-qmkshrobj'
9568 tmp_addflag= ;;
9569 nvcc*) # Cuda Compiler Driver 2.2
9570 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'
9571 compiler_needs_object=yes
9572 ;;
9573 esac
9574 case `$CC -V 2>&1 | sed 5q` in
9575 *Sun\ C*) # Sun C 5.9
9576 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'
9577 compiler_needs_object=yes
9578 tmp_sharedflag='-G' ;;
9579 *Sun\ F*) # Sun Fortran 8.3
9580 tmp_sharedflag='-G' ;;
9581 esac
9582 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9583
9584 if test yes = "$supports_anon_versioning"; then
9585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9587 echo "local: *; };" >> $output_objdir/$libname.ver~
9588 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9589 fi
9590
9591 case $cc_basename in
9592 tcc*)
9593 export_dynamic_flag_spec='-rdynamic'
9594 ;;
9595 xlf* | bgf* | bgxlf* | mpixlf*)
9596 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9597 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9599 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9600 if test yes = "$supports_anon_versioning"; then
9601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9603 echo "local: *; };" >> $output_objdir/$libname.ver~
9604 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9605 fi
9606 ;;
9607 esac
9608 else
9609 ld_shlibs=no
9610 fi
9611 ;;
9612
9613 netbsd*)
9614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9615 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9616 wlarc=
9617 else
9618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9619 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9620 fi
9621 ;;
9622
9623 solaris*)
9624 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9625 ld_shlibs=no
9626 cat <<_LT_EOF 1>&2
9627
9628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9629 *** create shared libraries on Solaris systems. Therefore, libtool
9630 *** is disabling shared libraries support. We urge you to upgrade GNU
9631 *** binutils to release 2.9.1 or newer. Another option is to modify
9632 *** your PATH or compiler configuration so that the native linker is
9633 *** used, and then restart.
9634
9635 _LT_EOF
9636 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9638 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9639 else
9640 ld_shlibs=no
9641 fi
9642 ;;
9643
9644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9645 case `$LD -v 2>&1` in
9646 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9647 ld_shlibs=no
9648 cat <<_LT_EOF 1>&2
9649
9650 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9651 *** reliably create shared libraries on SCO systems. Therefore, libtool
9652 *** is disabling shared libraries support. We urge you to upgrade GNU
9653 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9654 *** your PATH or compiler configuration so that the native linker is
9655 *** used, and then restart.
9656
9657 _LT_EOF
9658 ;;
9659 *)
9660 # For security reasons, it is highly recommended that you always
9661 # use absolute paths for naming shared libraries, and exclude the
9662 # DT_RUNPATH tag from executables and libraries. But doing so
9663 # requires that you compile everything twice, which is a pain.
9664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9668 else
9669 ld_shlibs=no
9670 fi
9671 ;;
9672 esac
9673 ;;
9674
9675 sunos4*)
9676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9677 wlarc=
9678 hardcode_direct=yes
9679 hardcode_shlibpath_var=no
9680 ;;
9681
9682 *)
9683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9686 else
9687 ld_shlibs=no
9688 fi
9689 ;;
9690 esac
9691
9692 if test no = "$ld_shlibs"; then
9693 runpath_var=
9694 hardcode_libdir_flag_spec=
9695 export_dynamic_flag_spec=
9696 whole_archive_flag_spec=
9697 fi
9698 else
9699 # PORTME fill in a description of your system's linker (not GNU ld)
9700 case $host_os in
9701 aix3*)
9702 allow_undefined_flag=unsupported
9703 always_export_symbols=yes
9704 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'
9705 # Note: this linker hardcodes the directories in LIBPATH if there
9706 # are no directories specified by -L.
9707 hardcode_minus_L=yes
9708 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9709 # Neither direct hardcoding nor static linking is supported with a
9710 # broken collect2.
9711 hardcode_direct=unsupported
9712 fi
9713 ;;
9714
9715 aix[4-9]*)
9716 if test ia64 = "$host_cpu"; then
9717 # On IA64, the linker does run time linking by default, so we don't
9718 # have to do anything special.
9719 aix_use_runtimelinking=no
9720 exp_sym_flag='-Bexport'
9721 no_entry_flag=
9722 else
9723 # If we're using GNU nm, then we don't want the "-C" option.
9724 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9725 # Without the "-l" option, or with the "-B" option, AIX nm treats
9726 # weak defined symbols like other global defined symbols, whereas
9727 # GNU nm marks them as "W".
9728 # While the 'weak' keyword is ignored in the Export File, we need
9729 # it in the Import File for the 'aix-soname' feature, so we have
9730 # to replace the "-B" option with "-P" for AIX nm.
9731 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9732 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'
9733 else
9734 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'
9735 fi
9736 aix_use_runtimelinking=no
9737
9738 # Test if we are trying to use run time linking or normal
9739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9740 # have runtime linking enabled, and use it for executables.
9741 # For shared libraries, we enable/disable runtime linking
9742 # depending on the kind of the shared library created -
9743 # when "with_aix_soname,aix_use_runtimelinking" is:
9744 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9745 # "aix,yes" lib.so shared, rtl:yes, for executables
9746 # lib.a static archive
9747 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9748 # lib.a(lib.so.V) shared, rtl:no, for executables
9749 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9750 # lib.a(lib.so.V) shared, rtl:no
9751 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9752 # lib.a static archive
9753 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9754 for ld_flag in $LDFLAGS; do
9755 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9756 aix_use_runtimelinking=yes
9757 break
9758 fi
9759 done
9760 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9761 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9762 # so we don't have lib.a shared libs to link our executables.
9763 # We have to force runtime linking in this case.
9764 aix_use_runtimelinking=yes
9765 LDFLAGS="$LDFLAGS -Wl,-brtl"
9766 fi
9767 ;;
9768 esac
9769
9770 exp_sym_flag='-bexport'
9771 no_entry_flag='-bnoentry'
9772 fi
9773
9774 # When large executables or shared objects are built, AIX ld can
9775 # have problems creating the table of contents. If linking a library
9776 # or program results in "error TOC overflow" add -mminimal-toc to
9777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9779
9780 archive_cmds=''
9781 hardcode_direct=yes
9782 hardcode_direct_absolute=yes
9783 hardcode_libdir_separator=':'
9784 link_all_deplibs=yes
9785 file_list_spec='$wl-f,'
9786 case $with_aix_soname,$aix_use_runtimelinking in
9787 aix,*) ;; # traditional, no import file
9788 svr4,* | *,yes) # use import file
9789 # The Import File defines what to hardcode.
9790 hardcode_direct=no
9791 hardcode_direct_absolute=no
9792 ;;
9793 esac
9794
9795 if test yes = "$GCC"; then
9796 case $host_os in aix4.[012]|aix4.[012].*)
9797 # We only want to do this on AIX 4.2 and lower, the check
9798 # below for broken collect2 doesn't work under 4.3+
9799 collect2name=`$CC -print-prog-name=collect2`
9800 if test -f "$collect2name" &&
9801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9802 then
9803 # We have reworked collect2
9804 :
9805 else
9806 # We have old collect2
9807 hardcode_direct=unsupported
9808 # It fails to find uninstalled libraries when the uninstalled
9809 # path is not listed in the libpath. Setting hardcode_minus_L
9810 # to unsupported forces relinking
9811 hardcode_minus_L=yes
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 hardcode_libdir_separator=
9814 fi
9815 ;;
9816 esac
9817 shared_flag='-shared'
9818 if test yes = "$aix_use_runtimelinking"; then
9819 shared_flag="$shared_flag "'$wl-G'
9820 fi
9821 # Need to ensure runtime linking is disabled for the traditional
9822 # shared library, or the linker may eventually find shared libraries
9823 # /with/ Import File - we do not want to mix them.
9824 shared_flag_aix='-shared'
9825 shared_flag_svr4='-shared $wl-G'
9826 else
9827 # not using gcc
9828 if test ia64 = "$host_cpu"; then
9829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9830 # chokes on -Wl,-G. The following line is correct:
9831 shared_flag='-G'
9832 else
9833 if test yes = "$aix_use_runtimelinking"; then
9834 shared_flag='$wl-G'
9835 else
9836 shared_flag='$wl-bM:SRE'
9837 fi
9838 shared_flag_aix='$wl-bM:SRE'
9839 shared_flag_svr4='$wl-G'
9840 fi
9841 fi
9842
9843 export_dynamic_flag_spec='$wl-bexpall'
9844 # It seems that -bexpall does not export symbols beginning with
9845 # underscore (_), so it is better to generate a list of symbols to export.
9846 always_export_symbols=yes
9847 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9848 # Warning - without using the other runtime loading flags (-brtl),
9849 # -berok will link without error, but may produce a broken library.
9850 allow_undefined_flag='-berok'
9851 # Determine the default libpath from the value encoded in an
9852 # empty executable.
9853 if test set = "${lt_cv_aix_libpath+set}"; then
9854 aix_libpath=$lt_cv_aix_libpath
9855 else
9856 if ${lt_cv_aix_libpath_+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861
9862 int
9863 main ()
9864 {
9865
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 if ac_fn_c_try_link "$LINENO"; then :
9871
9872 lt_aix_libpath_sed='
9873 /Import File Strings/,/^$/ {
9874 /^0/ {
9875 s/^0 *\([^ ]*\) *$/\1/
9876 p
9877 }
9878 }'
9879 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9880 # Check for a 64-bit object if we didn't find anything.
9881 if test -z "$lt_cv_aix_libpath_"; then
9882 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9883 fi
9884 fi
9885 rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 if test -z "$lt_cv_aix_libpath_"; then
9888 lt_cv_aix_libpath_=/usr/lib:/lib
9889 fi
9890
9891 fi
9892
9893 aix_libpath=$lt_cv_aix_libpath_
9894 fi
9895
9896 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9897 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
9898 else
9899 if test ia64 = "$host_cpu"; then
9900 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9901 allow_undefined_flag="-z nodefs"
9902 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"
9903 else
9904 # Determine the default libpath from the value encoded in an
9905 # empty executable.
9906 if test set = "${lt_cv_aix_libpath+set}"; then
9907 aix_libpath=$lt_cv_aix_libpath
9908 else
9909 if ${lt_cv_aix_libpath_+:} false; then :
9910 $as_echo_n "(cached) " >&6
9911 else
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914
9915 int
9916 main ()
9917 {
9918
9919 ;
9920 return 0;
9921 }
9922 _ACEOF
9923 if ac_fn_c_try_link "$LINENO"; then :
9924
9925 lt_aix_libpath_sed='
9926 /Import File Strings/,/^$/ {
9927 /^0/ {
9928 s/^0 *\([^ ]*\) *$/\1/
9929 p
9930 }
9931 }'
9932 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9933 # Check for a 64-bit object if we didn't find anything.
9934 if test -z "$lt_cv_aix_libpath_"; then
9935 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9936 fi
9937 fi
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 if test -z "$lt_cv_aix_libpath_"; then
9941 lt_cv_aix_libpath_=/usr/lib:/lib
9942 fi
9943
9944 fi
9945
9946 aix_libpath=$lt_cv_aix_libpath_
9947 fi
9948
9949 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9950 # Warning - without using the other run time loading flags,
9951 # -berok will link without error, but may produce a broken library.
9952 no_undefined_flag=' $wl-bernotok'
9953 allow_undefined_flag=' $wl-berok'
9954 if test yes = "$with_gnu_ld"; then
9955 # We only use this code for GNU lds that support --whole-archive.
9956 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9957 else
9958 # Exported symbols can be pulled into shared objects from archives
9959 whole_archive_flag_spec='$convenience'
9960 fi
9961 archive_cmds_need_lc=yes
9962 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9963 # -brtl affects multiple linker settings, -berok does not and is overridden later
9964 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9965 if test svr4 != "$with_aix_soname"; then
9966 # This is similar to how AIX traditionally builds its shared libraries.
9967 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'
9968 fi
9969 if test aix != "$with_aix_soname"; then
9970 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'
9971 else
9972 # used by -dlpreopen to get the symbols
9973 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9974 fi
9975 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9976 fi
9977 fi
9978 ;;
9979
9980 amigaos*)
9981 case $host_cpu in
9982 powerpc)
9983 # see comment about AmigaOS4 .so support
9984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985 archive_expsym_cmds=''
9986 ;;
9987 m68k)
9988 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)'
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_minus_L=yes
9991 ;;
9992 esac
9993 ;;
9994
9995 bsdi[45]*)
9996 export_dynamic_flag_spec=-rdynamic
9997 ;;
9998
9999 cygwin* | mingw* | pw32* | cegcc*)
10000 # When not using gcc, we currently assume that we are using
10001 # Microsoft Visual C++.
10002 # hardcode_libdir_flag_spec is actually meaningless, as there is
10003 # no search path for DLLs.
10004 case $cc_basename in
10005 cl*)
10006 # Native MSVC
10007 hardcode_libdir_flag_spec=' '
10008 allow_undefined_flag=unsupported
10009 always_export_symbols=yes
10010 file_list_spec='@'
10011 # Tell ltmain to make .lib files, not .a files.
10012 libext=lib
10013 # Tell ltmain to make .dll files, not .so files.
10014 shrext_cmds=.dll
10015 # FIXME: Setting linknames here is a bad hack.
10016 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10017 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10018 cp "$export_symbols" "$output_objdir/$soname.def";
10019 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10020 else
10021 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10022 fi~
10023 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10024 linknames='
10025 # The linker will not automatically build a static lib if we build a DLL.
10026 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10027 enable_shared_with_static_runtimes=yes
10028 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10029 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10030 # Don't use ranlib
10031 old_postinstall_cmds='chmod 644 $oldlib'
10032 postlink_cmds='lt_outputfile="@OUTPUT@"~
10033 lt_tool_outputfile="@TOOL_OUTPUT@"~
10034 case $lt_outputfile in
10035 *.exe|*.EXE) ;;
10036 *)
10037 lt_outputfile=$lt_outputfile.exe
10038 lt_tool_outputfile=$lt_tool_outputfile.exe
10039 ;;
10040 esac~
10041 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10042 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10043 $RM "$lt_outputfile.manifest";
10044 fi'
10045 ;;
10046 *)
10047 # Assume MSVC wrapper
10048 hardcode_libdir_flag_spec=' '
10049 allow_undefined_flag=unsupported
10050 # Tell ltmain to make .lib files, not .a files.
10051 libext=lib
10052 # Tell ltmain to make .dll files, not .so files.
10053 shrext_cmds=.dll
10054 # FIXME: Setting linknames here is a bad hack.
10055 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10056 # The linker will automatically build a .lib file if we build a DLL.
10057 old_archive_from_new_cmds='true'
10058 # FIXME: Should let the user specify the lib program.
10059 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10060 enable_shared_with_static_runtimes=yes
10061 ;;
10062 esac
10063 ;;
10064
10065 darwin* | rhapsody*)
10066
10067
10068 archive_cmds_need_lc=no
10069 hardcode_direct=no
10070 hardcode_automatic=yes
10071 hardcode_shlibpath_var=unsupported
10072 if test yes = "$lt_cv_ld_force_load"; then
10073 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\"`'
10074
10075 else
10076 whole_archive_flag_spec=''
10077 fi
10078 link_all_deplibs=yes
10079 allow_undefined_flag=$_lt_dar_allow_undefined
10080 case $cc_basename in
10081 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10082 *) _lt_dar_can_shared=$GCC ;;
10083 esac
10084 if test yes = "$_lt_dar_can_shared"; then
10085 output_verbose_link_cmd=func_echo_all
10086 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10087 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10088 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"
10089 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"
10090
10091 else
10092 ld_shlibs=no
10093 fi
10094
10095 ;;
10096
10097 dgux*)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_shlibpath_var=no
10101 ;;
10102
10103 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10104 # support. Future versions do this automatically, but an explicit c++rt0.o
10105 # does not break anything, and helps significantly (at the cost of a little
10106 # extra space).
10107 freebsd2.2*)
10108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10109 hardcode_libdir_flag_spec='-R$libdir'
10110 hardcode_direct=yes
10111 hardcode_shlibpath_var=no
10112 ;;
10113
10114 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10115 freebsd2.*)
10116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_direct=yes
10118 hardcode_minus_L=yes
10119 hardcode_shlibpath_var=no
10120 ;;
10121
10122 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10123 freebsd* | dragonfly*)
10124 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10125 hardcode_libdir_flag_spec='-R$libdir'
10126 hardcode_direct=yes
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 hpux9*)
10131 if test yes = "$GCC"; then
10132 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'
10133 else
10134 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'
10135 fi
10136 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10137 hardcode_libdir_separator=:
10138 hardcode_direct=yes
10139
10140 # hardcode_minus_L: Not really in the search PATH,
10141 # but as the default location of the library.
10142 hardcode_minus_L=yes
10143 export_dynamic_flag_spec='$wl-E'
10144 ;;
10145
10146 hpux10*)
10147 if test yes,no = "$GCC,$with_gnu_ld"; then
10148 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10149 else
10150 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10151 fi
10152 if test no = "$with_gnu_ld"; then
10153 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10154 hardcode_libdir_separator=:
10155 hardcode_direct=yes
10156 hardcode_direct_absolute=yes
10157 export_dynamic_flag_spec='$wl-E'
10158 # hardcode_minus_L: Not really in the search PATH,
10159 # but as the default location of the library.
10160 hardcode_minus_L=yes
10161 fi
10162 ;;
10163
10164 hpux11*)
10165 if test yes,no = "$GCC,$with_gnu_ld"; then
10166 case $host_cpu in
10167 hppa*64*)
10168 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 ;;
10170 ia64*)
10171 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10172 ;;
10173 *)
10174 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10175 ;;
10176 esac
10177 else
10178 case $host_cpu in
10179 hppa*64*)
10180 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 ;;
10182 ia64*)
10183 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10184 ;;
10185 *)
10186
10187 # Older versions of the 11.00 compiler do not understand -b yet
10188 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10190 $as_echo_n "checking if $CC understands -b... " >&6; }
10191 if ${lt_cv_prog_compiler__b+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 lt_cv_prog_compiler__b=no
10195 save_LDFLAGS=$LDFLAGS
10196 LDFLAGS="$LDFLAGS -b"
10197 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10199 # The linker can only warn and ignore the option if not recognized
10200 # So say no if there are warnings
10201 if test -s conftest.err; then
10202 # Append any errors to the config.log.
10203 cat conftest.err 1>&5
10204 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10206 if diff conftest.exp conftest.er2 >/dev/null; then
10207 lt_cv_prog_compiler__b=yes
10208 fi
10209 else
10210 lt_cv_prog_compiler__b=yes
10211 fi
10212 fi
10213 $RM -r conftest*
10214 LDFLAGS=$save_LDFLAGS
10215
10216 fi
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10218 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10219
10220 if test yes = "$lt_cv_prog_compiler__b"; then
10221 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10222 else
10223 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10224 fi
10225
10226 ;;
10227 esac
10228 fi
10229 if test no = "$with_gnu_ld"; then
10230 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10231 hardcode_libdir_separator=:
10232
10233 case $host_cpu in
10234 hppa*64*|ia64*)
10235 hardcode_direct=no
10236 hardcode_shlibpath_var=no
10237 ;;
10238 *)
10239 hardcode_direct=yes
10240 hardcode_direct_absolute=yes
10241 export_dynamic_flag_spec='$wl-E'
10242
10243 # hardcode_minus_L: Not really in the search PATH,
10244 # but as the default location of the library.
10245 hardcode_minus_L=yes
10246 ;;
10247 esac
10248 fi
10249 ;;
10250
10251 irix5* | irix6* | nonstopux*)
10252 if test yes = "$GCC"; then
10253 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'
10254 # Try to use the -exported_symbol ld option, if it does not
10255 # work, assume that -exports_file does not work either and
10256 # implicitly export all symbols.
10257 # This should be the same for all languages, so no per-tag cache variable.
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10259 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10260 if ${lt_cv_irix_exported_symbol+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 save_LDFLAGS=$LDFLAGS
10264 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 int foo (void) { return 0; }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 lt_cv_irix_exported_symbol=yes
10271 else
10272 lt_cv_irix_exported_symbol=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 LDFLAGS=$save_LDFLAGS
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10279 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10280 if test yes = "$lt_cv_irix_exported_symbol"; then
10281 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'
10282 fi
10283 else
10284 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'
10285 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'
10286 fi
10287 archive_cmds_need_lc='no'
10288 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10289 hardcode_libdir_separator=:
10290 inherit_rpath=yes
10291 link_all_deplibs=yes
10292 ;;
10293
10294 linux*)
10295 case $cc_basename in
10296 tcc*)
10297 # Fabrice Bellard et al's Tiny C Compiler
10298 ld_shlibs=yes
10299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10300 ;;
10301 esac
10302 ;;
10303
10304 netbsd*)
10305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10307 else
10308 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10309 fi
10310 hardcode_libdir_flag_spec='-R$libdir'
10311 hardcode_direct=yes
10312 hardcode_shlibpath_var=no
10313 ;;
10314
10315 newsos6)
10316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10317 hardcode_direct=yes
10318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10319 hardcode_libdir_separator=:
10320 hardcode_shlibpath_var=no
10321 ;;
10322
10323 *nto* | *qnx*)
10324 ;;
10325
10326 openbsd* | bitrig*)
10327 if test -f /usr/libexec/ld.so; then
10328 hardcode_direct=yes
10329 hardcode_shlibpath_var=no
10330 hardcode_direct_absolute=yes
10331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10333 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10334 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10335 export_dynamic_flag_spec='$wl-E'
10336 else
10337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10338 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10339 fi
10340 else
10341 ld_shlibs=no
10342 fi
10343 ;;
10344
10345 os2*)
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_minus_L=yes
10348 allow_undefined_flag=unsupported
10349 shrext_cmds=.dll
10350 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10351 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10352 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10353 $ECHO EXPORTS >> $output_objdir/$libname.def~
10354 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10355 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10356 emximp -o $lib $output_objdir/$libname.def'
10357 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10358 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10359 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10360 $ECHO EXPORTS >> $output_objdir/$libname.def~
10361 prefix_cmds="$SED"~
10362 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10363 prefix_cmds="$prefix_cmds -e 1d";
10364 fi~
10365 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10366 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10367 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10368 emximp -o $lib $output_objdir/$libname.def'
10369 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10370 enable_shared_with_static_runtimes=yes
10371 ;;
10372
10373 osf3*)
10374 if test yes = "$GCC"; then
10375 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10376 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'
10377 else
10378 allow_undefined_flag=' -expect_unresolved \*'
10379 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'
10380 fi
10381 archive_cmds_need_lc='no'
10382 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10383 hardcode_libdir_separator=:
10384 ;;
10385
10386 osf4* | osf5*) # as osf3* with the addition of -msym flag
10387 if test yes = "$GCC"; then
10388 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10389 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'
10390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10391 else
10392 allow_undefined_flag=' -expect_unresolved \*'
10393 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'
10394 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~
10395 $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'
10396
10397 # Both c and cxx compiler support -rpath directly
10398 hardcode_libdir_flag_spec='-rpath $libdir'
10399 fi
10400 archive_cmds_need_lc='no'
10401 hardcode_libdir_separator=:
10402 ;;
10403
10404 solaris*)
10405 no_undefined_flag=' -z defs'
10406 if test yes = "$GCC"; then
10407 wlarc='$wl'
10408 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10410 $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'
10411 else
10412 case `$CC -V 2>&1` in
10413 *"Compilers 5.0"*)
10414 wlarc=''
10415 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10417 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10418 ;;
10419 *)
10420 wlarc='$wl'
10421 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10423 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10424 ;;
10425 esac
10426 fi
10427 hardcode_libdir_flag_spec='-R$libdir'
10428 hardcode_shlibpath_var=no
10429 case $host_os in
10430 solaris2.[0-5] | solaris2.[0-5].*) ;;
10431 *)
10432 # The compiler driver will combine and reorder linker options,
10433 # but understands '-z linker_flag'. GCC discards it without '$wl',
10434 # but is careful enough not to reorder.
10435 # Supported since Solaris 2.6 (maybe 2.5.1?)
10436 if test yes = "$GCC"; then
10437 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10438 else
10439 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10440 fi
10441 ;;
10442 esac
10443 link_all_deplibs=yes
10444 ;;
10445
10446 sunos4*)
10447 if test sequent = "$host_vendor"; then
10448 # Use $CC to link under sequent, because it throws in some extra .o
10449 # files that make .init and .fini sections work.
10450 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10451 else
10452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10453 fi
10454 hardcode_libdir_flag_spec='-L$libdir'
10455 hardcode_direct=yes
10456 hardcode_minus_L=yes
10457 hardcode_shlibpath_var=no
10458 ;;
10459
10460 sysv4)
10461 case $host_vendor in
10462 sni)
10463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464 hardcode_direct=yes # is this really true???
10465 ;;
10466 siemens)
10467 ## LD is ld it makes a PLAMLIB
10468 ## CC just makes a GrossModule.
10469 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10470 reload_cmds='$CC -r -o $output$reload_objs'
10471 hardcode_direct=no
10472 ;;
10473 motorola)
10474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10476 ;;
10477 esac
10478 runpath_var='LD_RUN_PATH'
10479 hardcode_shlibpath_var=no
10480 ;;
10481
10482 sysv4.3*)
10483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484 hardcode_shlibpath_var=no
10485 export_dynamic_flag_spec='-Bexport'
10486 ;;
10487
10488 sysv4*MP*)
10489 if test -d /usr/nec; then
10490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491 hardcode_shlibpath_var=no
10492 runpath_var=LD_RUN_PATH
10493 hardcode_runpath_var=yes
10494 ld_shlibs=yes
10495 fi
10496 ;;
10497
10498 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10499 no_undefined_flag='$wl-z,text'
10500 archive_cmds_need_lc=no
10501 hardcode_shlibpath_var=no
10502 runpath_var='LD_RUN_PATH'
10503
10504 if test yes = "$GCC"; then
10505 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10506 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 else
10508 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10509 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510 fi
10511 ;;
10512
10513 sysv5* | sco3.2v5* | sco5v6*)
10514 # Note: We CANNOT use -z defs as we might desire, because we do not
10515 # link with -lc, and that would cause any symbols used from libc to
10516 # always be unresolved, which means just about no library would
10517 # ever link correctly. If we're not using GNU ld we use -z text
10518 # though, which does catch some bad symbols but isn't as heavy-handed
10519 # as -z defs.
10520 no_undefined_flag='$wl-z,text'
10521 allow_undefined_flag='$wl-z,nodefs'
10522 archive_cmds_need_lc=no
10523 hardcode_shlibpath_var=no
10524 hardcode_libdir_flag_spec='$wl-R,$libdir'
10525 hardcode_libdir_separator=':'
10526 link_all_deplibs=yes
10527 export_dynamic_flag_spec='$wl-Bexport'
10528 runpath_var='LD_RUN_PATH'
10529
10530 if test yes = "$GCC"; then
10531 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10533 else
10534 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10536 fi
10537 ;;
10538
10539 uts4*)
10540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541 hardcode_libdir_flag_spec='-L$libdir'
10542 hardcode_shlibpath_var=no
10543 ;;
10544
10545 *)
10546 ld_shlibs=no
10547 ;;
10548 esac
10549
10550 if test sni = "$host_vendor"; then
10551 case $host in
10552 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10553 export_dynamic_flag_spec='$wl-Blargedynsym'
10554 ;;
10555 esac
10556 fi
10557 fi
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10560 $as_echo "$ld_shlibs" >&6; }
10561 test no = "$ld_shlibs" && can_build_shared=no
10562
10563 with_gnu_ld=$with_gnu_ld
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579 #
10580 # Do we need to explicitly link libc?
10581 #
10582 case "x$archive_cmds_need_lc" in
10583 x|xyes)
10584 # Assume -lc should be added
10585 archive_cmds_need_lc=yes
10586
10587 if test yes,yes = "$GCC,$enable_shared"; then
10588 case $archive_cmds in
10589 *'~'*)
10590 # FIXME: we may have to deal with multi-command sequences.
10591 ;;
10592 '$CC '*)
10593 # Test whether the compiler implicitly links with -lc since on some
10594 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10595 # to ld, don't add -lc before -lgcc.
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10597 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10598 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 $RM conftest*
10602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10603
10604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10605 (eval $ac_compile) 2>&5
10606 ac_status=$?
10607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10608 test $ac_status = 0; } 2>conftest.err; then
10609 soname=conftest
10610 lib=conftest
10611 libobjs=conftest.$ac_objext
10612 deplibs=
10613 wl=$lt_prog_compiler_wl
10614 pic_flag=$lt_prog_compiler_pic
10615 compiler_flags=-v
10616 linker_flags=-v
10617 verstring=
10618 output_objdir=.
10619 libname=conftest
10620 lt_save_allow_undefined_flag=$allow_undefined_flag
10621 allow_undefined_flag=
10622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10623 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10624 ac_status=$?
10625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10626 test $ac_status = 0; }
10627 then
10628 lt_cv_archive_cmds_need_lc=no
10629 else
10630 lt_cv_archive_cmds_need_lc=yes
10631 fi
10632 allow_undefined_flag=$lt_save_allow_undefined_flag
10633 else
10634 cat conftest.err 1>&5
10635 fi
10636 $RM conftest*
10637
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10640 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10641 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10642 ;;
10643 esac
10644 fi
10645 ;;
10646 esac
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10800 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10801
10802 if test yes = "$GCC"; then
10803 case $host_os in
10804 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10805 *) lt_awk_arg='/^libraries:/' ;;
10806 esac
10807 case $host_os in
10808 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10809 *) lt_sed_strip_eq='s|=/|/|g' ;;
10810 esac
10811 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10812 case $lt_search_path_spec in
10813 *\;*)
10814 # if the path contains ";" then we assume it to be the separator
10815 # otherwise default to the standard path separator (i.e. ":") - it is
10816 # assumed that no part of a normal pathname contains ";" but that should
10817 # okay in the real world where ";" in dirpaths is itself problematic.
10818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10819 ;;
10820 *)
10821 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10822 ;;
10823 esac
10824 # Ok, now we have the path, separated by spaces, we can step through it
10825 # and add multilib dir if necessary...
10826 lt_tmp_lt_search_path_spec=
10827 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10828 # ...but if some path component already ends with the multilib dir we assume
10829 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10830 case "$lt_multi_os_dir; $lt_search_path_spec " in
10831 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10832 lt_multi_os_dir=
10833 ;;
10834 esac
10835 for lt_sys_path in $lt_search_path_spec; do
10836 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10837 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10838 elif test -n "$lt_multi_os_dir"; then
10839 test -d "$lt_sys_path" && \
10840 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10841 fi
10842 done
10843 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10844 BEGIN {RS = " "; FS = "/|\n";} {
10845 lt_foo = "";
10846 lt_count = 0;
10847 for (lt_i = NF; lt_i > 0; lt_i--) {
10848 if ($lt_i != "" && $lt_i != ".") {
10849 if ($lt_i == "..") {
10850 lt_count++;
10851 } else {
10852 if (lt_count == 0) {
10853 lt_foo = "/" $lt_i lt_foo;
10854 } else {
10855 lt_count--;
10856 }
10857 }
10858 }
10859 }
10860 if (lt_foo != "") { lt_freq[lt_foo]++; }
10861 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10862 }'`
10863 # AWK program above erroneously prepends '/' to C:/dos/paths
10864 # for these hosts.
10865 case $host_os in
10866 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10867 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10868 esac
10869 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10870 else
10871 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10872 fi
10873 library_names_spec=
10874 libname_spec='lib$name'
10875 soname_spec=
10876 shrext_cmds=.so
10877 postinstall_cmds=
10878 postuninstall_cmds=
10879 finish_cmds=
10880 finish_eval=
10881 shlibpath_var=
10882 shlibpath_overrides_runpath=unknown
10883 version_type=none
10884 dynamic_linker="$host_os ld.so"
10885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10886 need_lib_prefix=unknown
10887 hardcode_into_libs=no
10888
10889 # when you set need_version to no, make sure it does not cause -set_version
10890 # flags to be left without arguments
10891 need_version=unknown
10892
10893
10894
10895 case $host_os in
10896 aix3*)
10897 version_type=linux # correct to gnu/linux during the next big refactor
10898 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10899 shlibpath_var=LIBPATH
10900
10901 # AIX 3 has no versioning support, so we append a major version to the name.
10902 soname_spec='$libname$release$shared_ext$major'
10903 ;;
10904
10905 aix[4-9]*)
10906 version_type=linux # correct to gnu/linux during the next big refactor
10907 need_lib_prefix=no
10908 need_version=no
10909 hardcode_into_libs=yes
10910 if test ia64 = "$host_cpu"; then
10911 # AIX 5 supports IA64
10912 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 else
10915 # With GCC up to 2.95.x, collect2 would create an import file
10916 # for dependence libraries. The import file would start with
10917 # the line '#! .'. This would cause the generated library to
10918 # depend on '.', always an invalid library. This was fixed in
10919 # development snapshots of GCC prior to 3.0.
10920 case $host_os in
10921 aix4 | aix4.[01] | aix4.[01].*)
10922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10923 echo ' yes '
10924 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10925 :
10926 else
10927 can_build_shared=no
10928 fi
10929 ;;
10930 esac
10931 # Using Import Files as archive members, it is possible to support
10932 # filename-based versioning of shared library archives on AIX. While
10933 # this would work for both with and without runtime linking, it will
10934 # prevent static linking of such archives. So we do filename-based
10935 # shared library versioning with .so extension only, which is used
10936 # when both runtime linking and shared linking is enabled.
10937 # Unfortunately, runtime linking may impact performance, so we do
10938 # not want this to be the default eventually. Also, we use the
10939 # versioned .so libs for executables only if there is the -brtl
10940 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10941 # To allow for filename-based versioning support, we need to create
10942 # libNAME.so.V as an archive file, containing:
10943 # *) an Import File, referring to the versioned filename of the
10944 # archive as well as the shared archive member, telling the
10945 # bitwidth (32 or 64) of that shared object, and providing the
10946 # list of exported symbols of that shared object, eventually
10947 # decorated with the 'weak' keyword
10948 # *) the shared object with the F_LOADONLY flag set, to really avoid
10949 # it being seen by the linker.
10950 # At run time we better use the real file rather than another symlink,
10951 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10952
10953 case $with_aix_soname,$aix_use_runtimelinking in
10954 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10955 # soname into executable. Probably we can add versioning support to
10956 # collect2, so additional links can be useful in future.
10957 aix,yes) # traditional libtool
10958 dynamic_linker='AIX unversionable lib.so'
10959 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10960 # instead of lib<name>.a to let people know that these are not
10961 # typical AIX shared libraries.
10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963 ;;
10964 aix,no) # traditional AIX only
10965 dynamic_linker='AIX lib.a(lib.so.V)'
10966 # We preserve .a as extension for shared libraries through AIX4.2
10967 # and later when we are not doing run time linking.
10968 library_names_spec='$libname$release.a $libname.a'
10969 soname_spec='$libname$release$shared_ext$major'
10970 ;;
10971 svr4,*) # full svr4 only
10972 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10973 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10974 # We do not specify a path in Import Files, so LIBPATH fires.
10975 shlibpath_overrides_runpath=yes
10976 ;;
10977 *,yes) # both, prefer svr4
10978 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10979 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10980 # unpreferred sharedlib libNAME.a needs extra handling
10981 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"'
10982 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"'
10983 # We do not specify a path in Import Files, so LIBPATH fires.
10984 shlibpath_overrides_runpath=yes
10985 ;;
10986 *,no) # both, prefer aix
10987 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10988 library_names_spec='$libname$release.a $libname.a'
10989 soname_spec='$libname$release$shared_ext$major'
10990 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10991 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)'
10992 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"'
10993 ;;
10994 esac
10995 shlibpath_var=LIBPATH
10996 fi
10997 ;;
10998
10999 amigaos*)
11000 case $host_cpu in
11001 powerpc)
11002 # Since July 2007 AmigaOS4 officially supports .so libraries.
11003 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11005 ;;
11006 m68k)
11007 library_names_spec='$libname.ixlibrary $libname.a'
11008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11009 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'
11010 ;;
11011 esac
11012 ;;
11013
11014 beos*)
11015 library_names_spec='$libname$shared_ext'
11016 dynamic_linker="$host_os ld.so"
11017 shlibpath_var=LIBRARY_PATH
11018 ;;
11019
11020 bsdi[45]*)
11021 version_type=linux # correct to gnu/linux during the next big refactor
11022 need_version=no
11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11024 soname_spec='$libname$release$shared_ext$major'
11025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11029 # the default ld.so.conf also contains /usr/contrib/lib and
11030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11031 # libtool to hard-code these into programs
11032 ;;
11033
11034 cygwin* | mingw* | pw32* | cegcc*)
11035 version_type=windows
11036 shrext_cmds=.dll
11037 need_version=no
11038 need_lib_prefix=no
11039
11040 case $GCC,$cc_basename in
11041 yes,*)
11042 # gcc
11043 library_names_spec='$libname.dll.a'
11044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11045 postinstall_cmds='base_file=`basename \$file`~
11046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11047 dldir=$destdir/`dirname \$dlpath`~
11048 test -d \$dldir || mkdir -p \$dldir~
11049 $install_prog $dir/$dlname \$dldir/$dlname~
11050 chmod a+x \$dldir/$dlname~
11051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11053 fi'
11054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11055 dlpath=$dir/\$dldll~
11056 $RM \$dlpath'
11057 shlibpath_overrides_runpath=yes
11058
11059 case $host_os in
11060 cygwin*)
11061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11062 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11063
11064 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11065 ;;
11066 mingw* | cegcc*)
11067 # MinGW DLLs use traditional 'lib' prefix
11068 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11069 ;;
11070 pw32*)
11071 # pw32 DLLs use 'pw' prefix rather than 'lib'
11072 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11073 ;;
11074 esac
11075 dynamic_linker='Win32 ld.exe'
11076 ;;
11077
11078 *,cl*)
11079 # Native MSVC
11080 libname_spec='$name'
11081 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11082 library_names_spec='$libname.dll.lib'
11083
11084 case $build_os in
11085 mingw*)
11086 sys_lib_search_path_spec=
11087 lt_save_ifs=$IFS
11088 IFS=';'
11089 for lt_path in $LIB
11090 do
11091 IFS=$lt_save_ifs
11092 # Let DOS variable expansion print the short 8.3 style file name.
11093 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11094 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11095 done
11096 IFS=$lt_save_ifs
11097 # Convert to MSYS style.
11098 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11099 ;;
11100 cygwin*)
11101 # Convert to unix form, then to dos form, then back to unix form
11102 # but this time dos style (no spaces!) so that the unix form looks
11103 # like /cygdrive/c/PROGRA~1:/cygdr...
11104 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11105 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11106 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11107 ;;
11108 *)
11109 sys_lib_search_path_spec=$LIB
11110 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11111 # It is most probably a Windows format PATH.
11112 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11113 else
11114 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11115 fi
11116 # FIXME: find the short name or the path components, as spaces are
11117 # common. (e.g. "Program Files" -> "PROGRA~1")
11118 ;;
11119 esac
11120
11121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11122 postinstall_cmds='base_file=`basename \$file`~
11123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11124 dldir=$destdir/`dirname \$dlpath`~
11125 test -d \$dldir || mkdir -p \$dldir~
11126 $install_prog $dir/$dlname \$dldir/$dlname'
11127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11128 dlpath=$dir/\$dldll~
11129 $RM \$dlpath'
11130 shlibpath_overrides_runpath=yes
11131 dynamic_linker='Win32 link.exe'
11132 ;;
11133
11134 *)
11135 # Assume MSVC wrapper
11136 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11137 dynamic_linker='Win32 ld.exe'
11138 ;;
11139 esac
11140 # FIXME: first we should search . and the directory the executable is in
11141 shlibpath_var=PATH
11142 ;;
11143
11144 darwin* | rhapsody*)
11145 dynamic_linker="$host_os dyld"
11146 version_type=darwin
11147 need_lib_prefix=no
11148 need_version=no
11149 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11150 soname_spec='$libname$release$major$shared_ext'
11151 shlibpath_overrides_runpath=yes
11152 shlibpath_var=DYLD_LIBRARY_PATH
11153 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11154
11155 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11156 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11157 ;;
11158
11159 dgux*)
11160 version_type=linux # correct to gnu/linux during the next big refactor
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11164 soname_spec='$libname$release$shared_ext$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 ;;
11167
11168 freebsd* | dragonfly*)
11169 # DragonFly does not have aout. When/if they implement a new
11170 # versioning mechanism, adjust this.
11171 if test -x /usr/bin/objformat; then
11172 objformat=`/usr/bin/objformat`
11173 else
11174 case $host_os in
11175 freebsd[23].*) objformat=aout ;;
11176 *) objformat=elf ;;
11177 esac
11178 fi
11179 # Handle Gentoo/FreeBSD as it was Linux
11180 case $host_vendor in
11181 gentoo)
11182 version_type=linux ;;
11183 *)
11184 version_type=freebsd-$objformat ;;
11185 esac
11186
11187 case $version_type in
11188 freebsd-elf*)
11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11190 soname_spec='$libname$release$shared_ext$major'
11191 need_version=no
11192 need_lib_prefix=no
11193 ;;
11194 freebsd-*)
11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11196 need_version=yes
11197 ;;
11198 linux)
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 need_lib_prefix=no
11202 need_version=no
11203 ;;
11204 esac
11205 shlibpath_var=LD_LIBRARY_PATH
11206 case $host_os in
11207 freebsd2.*)
11208 shlibpath_overrides_runpath=yes
11209 ;;
11210 freebsd3.[01]* | freebsdelf3.[01]*)
11211 shlibpath_overrides_runpath=yes
11212 hardcode_into_libs=yes
11213 ;;
11214 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11215 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11216 shlibpath_overrides_runpath=no
11217 hardcode_into_libs=yes
11218 ;;
11219 *) # from 4.6 on, and DragonFly
11220 shlibpath_overrides_runpath=yes
11221 hardcode_into_libs=yes
11222 ;;
11223 esac
11224 ;;
11225
11226 haiku*)
11227 version_type=linux # correct to gnu/linux during the next big refactor
11228 need_lib_prefix=no
11229 need_version=no
11230 dynamic_linker="$host_os runtime_loader"
11231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11232 soname_spec='$libname$release$shared_ext$major'
11233 shlibpath_var=LIBRARY_PATH
11234 shlibpath_overrides_runpath=no
11235 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11236 hardcode_into_libs=yes
11237 ;;
11238
11239 hpux9* | hpux10* | hpux11*)
11240 # Give a soname corresponding to the major version so that dld.sl refuses to
11241 # link against other versions.
11242 version_type=sunos
11243 need_lib_prefix=no
11244 need_version=no
11245 case $host_cpu in
11246 ia64*)
11247 shrext_cmds='.so'
11248 hardcode_into_libs=yes
11249 dynamic_linker="$host_os dld.so"
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11253 soname_spec='$libname$release$shared_ext$major'
11254 if test 32 = "$HPUX_IA64_MODE"; then
11255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11256 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11257 else
11258 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11259 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11260 fi
11261 ;;
11262 hppa*64*)
11263 shrext_cmds='.sl'
11264 hardcode_into_libs=yes
11265 dynamic_linker="$host_os dld.sl"
11266 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11269 soname_spec='$libname$release$shared_ext$major'
11270 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11272 ;;
11273 *)
11274 shrext_cmds='.sl'
11275 dynamic_linker="$host_os dld.sl"
11276 shlibpath_var=SHLIB_PATH
11277 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11279 soname_spec='$libname$release$shared_ext$major'
11280 ;;
11281 esac
11282 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11283 postinstall_cmds='chmod 555 $lib'
11284 # or fails outright, so override atomically:
11285 install_override_mode=555
11286 ;;
11287
11288 interix[3-9]*)
11289 version_type=linux # correct to gnu/linux during the next big refactor
11290 need_lib_prefix=no
11291 need_version=no
11292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11293 soname_spec='$libname$release$shared_ext$major'
11294 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=no
11297 hardcode_into_libs=yes
11298 ;;
11299
11300 irix5* | irix6* | nonstopux*)
11301 case $host_os in
11302 nonstopux*) version_type=nonstopux ;;
11303 *)
11304 if test yes = "$lt_cv_prog_gnu_ld"; then
11305 version_type=linux # correct to gnu/linux during the next big refactor
11306 else
11307 version_type=irix
11308 fi ;;
11309 esac
11310 need_lib_prefix=no
11311 need_version=no
11312 soname_spec='$libname$release$shared_ext$major'
11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11314 case $host_os in
11315 irix5* | nonstopux*)
11316 libsuff= shlibsuff=
11317 ;;
11318 *)
11319 case $LD in # libtool.m4 will add one of these switches to LD
11320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11321 libsuff= shlibsuff= libmagic=32-bit;;
11322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11323 libsuff=32 shlibsuff=N32 libmagic=N32;;
11324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11326 *) libsuff= shlibsuff= libmagic=never-match;;
11327 esac
11328 ;;
11329 esac
11330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11331 shlibpath_overrides_runpath=no
11332 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11333 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11334 hardcode_into_libs=yes
11335 ;;
11336
11337 # No shared lib support for Linux oldld, aout, or coff.
11338 linux*oldld* | linux*aout* | linux*coff*)
11339 dynamic_linker=no
11340 ;;
11341
11342 linux*android*)
11343 version_type=none # Android doesn't support versioned libraries.
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='$libname$release$shared_ext'
11347 soname_spec='$libname$release$shared_ext'
11348 finish_cmds=
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351
11352 # This implies no fast_install, which is unacceptable.
11353 # Some rework will be needed to allow for fast_install
11354 # before this can be enabled.
11355 hardcode_into_libs=yes
11356
11357 dynamic_linker='Android linker'
11358 # Don't embed -rpath directories since the linker doesn't support them.
11359 hardcode_libdir_flag_spec='-L$libdir'
11360 ;;
11361
11362 # This must be glibc/ELF.
11363 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11364 version_type=linux # correct to gnu/linux during the next big refactor
11365 need_lib_prefix=no
11366 need_version=no
11367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11368 soname_spec='$libname$release$shared_ext$major'
11369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath=no
11372
11373 # Some binutils ld are patched to set DT_RUNPATH
11374 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 lt_cv_shlibpath_overrides_runpath=no
11378 save_LDFLAGS=$LDFLAGS
11379 save_libdir=$libdir
11380 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11381 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384
11385 int
11386 main ()
11387 {
11388
11389 ;
11390 return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11395 lt_cv_shlibpath_overrides_runpath=yes
11396 fi
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LDFLAGS=$save_LDFLAGS
11401 libdir=$save_libdir
11402
11403 fi
11404
11405 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11406
11407 # This implies no fast_install, which is unacceptable.
11408 # Some rework will be needed to allow for fast_install
11409 # before this can be enabled.
11410 hardcode_into_libs=yes
11411
11412 # Ideally, we could use ldconfig to report *all* directores which are
11413 # searched for libraries, however this is still not possible. Aside from not
11414 # being certain /sbin/ldconfig is available, command
11415 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11416 # even though it is searched at run-time. Try to do the best guess by
11417 # appending ld.so.conf contents (and includes) to the search path.
11418 if test -f /etc/ld.so.conf; then
11419 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' ' '`
11420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11421 fi
11422
11423 # We used to test for /lib/ld.so.1 and disable shared libraries on
11424 # powerpc, because MkLinux only supported shared libraries with the
11425 # GNU dynamic linker. Since this was broken with cross compilers,
11426 # most powerpc-linux boxes support dynamic linking these days and
11427 # people can always --disable-shared, the test was removed, and we
11428 # assume the GNU/Linux dynamic linker is in use.
11429 dynamic_linker='GNU/Linux ld.so'
11430 ;;
11431
11432 netbsd*)
11433 version_type=sunos
11434 need_lib_prefix=no
11435 need_version=no
11436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11439 dynamic_linker='NetBSD (a.out) ld.so'
11440 else
11441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442 soname_spec='$libname$release$shared_ext$major'
11443 dynamic_linker='NetBSD ld.elf_so'
11444 fi
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 hardcode_into_libs=yes
11448 ;;
11449
11450 newsos6)
11451 version_type=linux # correct to gnu/linux during the next big refactor
11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 ;;
11456
11457 *nto* | *qnx*)
11458 version_type=qnx
11459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11462 soname_spec='$libname$release$shared_ext$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11466 dynamic_linker='ldqnx.so'
11467 ;;
11468
11469 openbsd* | bitrig*)
11470 version_type=sunos
11471 sys_lib_dlsearch_path_spec=/usr/lib
11472 need_lib_prefix=no
11473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11474 need_version=no
11475 else
11476 need_version=yes
11477 fi
11478 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=yes
11482 ;;
11483
11484 os2*)
11485 libname_spec='$name'
11486 version_type=windows
11487 shrext_cmds=.dll
11488 need_version=no
11489 need_lib_prefix=no
11490 # OS/2 can only load a DLL with a base name of 8 characters or less.
11491 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11492 v=$($ECHO $release$versuffix | tr -d .-);
11493 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11494 $ECHO $n$v`$shared_ext'
11495 library_names_spec='${libname}_dll.$libext'
11496 dynamic_linker='OS/2 ld.exe'
11497 shlibpath_var=BEGINLIBPATH
11498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11500 postinstall_cmds='base_file=`basename \$file`~
11501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11502 dldir=$destdir/`dirname \$dlpath`~
11503 test -d \$dldir || mkdir -p \$dldir~
11504 $install_prog $dir/$dlname \$dldir/$dlname~
11505 chmod a+x \$dldir/$dlname~
11506 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11507 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11508 fi'
11509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11510 dlpath=$dir/\$dldll~
11511 $RM \$dlpath'
11512 ;;
11513
11514 osf3* | osf4* | osf5*)
11515 version_type=osf
11516 need_lib_prefix=no
11517 need_version=no
11518 soname_spec='$libname$release$shared_ext$major'
11519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11523 ;;
11524
11525 rdos*)
11526 dynamic_linker=no
11527 ;;
11528
11529 solaris*)
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 soname_spec='$libname$release$shared_ext$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11537 hardcode_into_libs=yes
11538 # ldd complains unless libraries are executable
11539 postinstall_cmds='chmod +x $lib'
11540 ;;
11541
11542 sunos4*)
11543 version_type=sunos
11544 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=yes
11548 if test yes = "$with_gnu_ld"; then
11549 need_lib_prefix=no
11550 fi
11551 need_version=yes
11552 ;;
11553
11554 sysv4 | sysv4.3*)
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557 soname_spec='$libname$release$shared_ext$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 case $host_vendor in
11560 sni)
11561 shlibpath_overrides_runpath=no
11562 need_lib_prefix=no
11563 runpath_var=LD_RUN_PATH
11564 ;;
11565 siemens)
11566 need_lib_prefix=no
11567 ;;
11568 motorola)
11569 need_lib_prefix=no
11570 need_version=no
11571 shlibpath_overrides_runpath=no
11572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11573 ;;
11574 esac
11575 ;;
11576
11577 sysv4*MP*)
11578 if test -d /usr/nec; then
11579 version_type=linux # correct to gnu/linux during the next big refactor
11580 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11581 soname_spec='$libname$shared_ext.$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 fi
11584 ;;
11585
11586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11587 version_type=sco
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11591 soname_spec='$libname$release$shared_ext$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11594 hardcode_into_libs=yes
11595 if test yes = "$with_gnu_ld"; then
11596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11597 else
11598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11599 case $host_os in
11600 sco3.2v5*)
11601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11602 ;;
11603 esac
11604 fi
11605 sys_lib_dlsearch_path_spec='/usr/lib'
11606 ;;
11607
11608 tpf*)
11609 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11610 version_type=linux # correct to gnu/linux during the next big refactor
11611 need_lib_prefix=no
11612 need_version=no
11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=no
11616 hardcode_into_libs=yes
11617 ;;
11618
11619 uts4*)
11620 version_type=linux # correct to gnu/linux during the next big refactor
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 ;;
11625
11626 *)
11627 dynamic_linker=no
11628 ;;
11629 esac
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11631 $as_echo "$dynamic_linker" >&6; }
11632 test no = "$dynamic_linker" && can_build_shared=no
11633
11634 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11635 if test yes = "$GCC"; then
11636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11637 fi
11638
11639 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11640 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11641 fi
11642
11643 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11644 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11645 fi
11646
11647 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11648 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11649
11650 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11651 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11652
11653 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11654 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11753 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11754 hardcode_action=
11755 if test -n "$hardcode_libdir_flag_spec" ||
11756 test -n "$runpath_var" ||
11757 test yes = "$hardcode_automatic"; then
11758
11759 # We can hardcode non-existent directories.
11760 if test no != "$hardcode_direct" &&
11761 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11762 # have to relink, otherwise we might link with an installed library
11763 # when we should be linking with a yet-to-be-installed one
11764 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11765 test no != "$hardcode_minus_L"; then
11766 # Linking always hardcodes the temporary library directory.
11767 hardcode_action=relink
11768 else
11769 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11770 hardcode_action=immediate
11771 fi
11772 else
11773 # We cannot hardcode anything, or else we can only hardcode existing
11774 # directories.
11775 hardcode_action=unsupported
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11778 $as_echo "$hardcode_action" >&6; }
11779
11780 if test relink = "$hardcode_action" ||
11781 test yes = "$inherit_rpath"; then
11782 # Fast installation is not supported
11783 enable_fast_install=no
11784 elif test yes = "$shlibpath_overrides_runpath" ||
11785 test no = "$enable_shared"; then
11786 # Fast installation is not necessary
11787 enable_fast_install=needless
11788 fi
11789
11790
11791
11792
11793
11794
11795 if test yes != "$enable_dlopen"; then
11796 enable_dlopen=unknown
11797 enable_dlopen_self=unknown
11798 enable_dlopen_self_static=unknown
11799 else
11800 lt_cv_dlopen=no
11801 lt_cv_dlopen_libs=
11802
11803 case $host_os in
11804 beos*)
11805 lt_cv_dlopen=load_add_on
11806 lt_cv_dlopen_libs=
11807 lt_cv_dlopen_self=yes
11808 ;;
11809
11810 mingw* | pw32* | cegcc*)
11811 lt_cv_dlopen=LoadLibrary
11812 lt_cv_dlopen_libs=
11813 ;;
11814
11815 cygwin*)
11816 lt_cv_dlopen=dlopen
11817 lt_cv_dlopen_libs=
11818 ;;
11819
11820 darwin*)
11821 # if libdl is installed we need to link against it
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11823 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11824 if ${ac_cv_lib_dl_dlopen+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 ac_check_lib_save_LIBS=$LIBS
11828 LIBS="-ldl $LIBS"
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831
11832 /* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char dlopen ();
11839 int
11840 main ()
11841 {
11842 return dlopen ();
11843 ;
11844 return 0;
11845 }
11846 _ACEOF
11847 if ac_fn_c_try_link "$LINENO"; then :
11848 ac_cv_lib_dl_dlopen=yes
11849 else
11850 ac_cv_lib_dl_dlopen=no
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11857 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11858 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11859 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11860 else
11861
11862 lt_cv_dlopen=dyld
11863 lt_cv_dlopen_libs=
11864 lt_cv_dlopen_self=yes
11865
11866 fi
11867
11868 ;;
11869
11870 tpf*)
11871 # Don't try to run any link tests for TPF. We know it's impossible
11872 # because TPF is a cross-compiler, and we know how we open DSOs.
11873 lt_cv_dlopen=dlopen
11874 lt_cv_dlopen_libs=
11875 lt_cv_dlopen_self=no
11876 ;;
11877
11878 *)
11879 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11880 if test "x$ac_cv_func_shl_load" = xyes; then :
11881 lt_cv_dlopen=shl_load
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11884 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11885 if ${ac_cv_lib_dld_shl_load+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 ac_check_lib_save_LIBS=$LIBS
11889 LIBS="-ldld $LIBS"
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char shl_load ();
11900 int
11901 main ()
11902 {
11903 return shl_load ();
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 ac_cv_lib_dld_shl_load=yes
11910 else
11911 ac_cv_lib_dld_shl_load=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LIBS=$ac_check_lib_save_LIBS
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11918 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11919 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11920 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11921 else
11922 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11923 if test "x$ac_cv_func_dlopen" = xyes; then :
11924 lt_cv_dlopen=dlopen
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11928 if ${ac_cv_lib_dl_dlopen+:} false; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-ldl $LIBS"
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char dlopen ();
11943 int
11944 main ()
11945 {
11946 return dlopen ();
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11952 ac_cv_lib_dl_dlopen=yes
11953 else
11954 ac_cv_lib_dl_dlopen=no
11955 fi
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11963 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11964 else
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11966 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11967 if ${ac_cv_lib_svld_dlopen+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 ac_check_lib_save_LIBS=$LIBS
11971 LIBS="-lsvld $LIBS"
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 char dlopen ();
11982 int
11983 main ()
11984 {
11985 return dlopen ();
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 if ac_fn_c_try_link "$LINENO"; then :
11991 ac_cv_lib_svld_dlopen=yes
11992 else
11993 ac_cv_lib_svld_dlopen=no
11994 fi
11995 rm -f core conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11997 LIBS=$ac_check_lib_save_LIBS
11998 fi
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12000 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12001 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12002 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12003 else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12005 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12006 if ${ac_cv_lib_dld_dld_link+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-ldld $LIBS"
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013
12014 /* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12017 #ifdef __cplusplus
12018 extern "C"
12019 #endif
12020 char dld_link ();
12021 int
12022 main ()
12023 {
12024 return dld_link ();
12025 ;
12026 return 0;
12027 }
12028 _ACEOF
12029 if ac_fn_c_try_link "$LINENO"; then :
12030 ac_cv_lib_dld_dld_link=yes
12031 else
12032 ac_cv_lib_dld_dld_link=no
12033 fi
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS=$ac_check_lib_save_LIBS
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12039 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12040 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12041 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12042 fi
12043
12044
12045 fi
12046
12047
12048 fi
12049
12050
12051 fi
12052
12053
12054 fi
12055
12056
12057 fi
12058
12059 ;;
12060 esac
12061
12062 if test no = "$lt_cv_dlopen"; then
12063 enable_dlopen=no
12064 else
12065 enable_dlopen=yes
12066 fi
12067
12068 case $lt_cv_dlopen in
12069 dlopen)
12070 save_CPPFLAGS=$CPPFLAGS
12071 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12072
12073 save_LDFLAGS=$LDFLAGS
12074 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12075
12076 save_LIBS=$LIBS
12077 LIBS="$lt_cv_dlopen_libs $LIBS"
12078
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12080 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12081 if ${lt_cv_dlopen_self+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 if test yes = "$cross_compiling"; then :
12085 lt_cv_dlopen_self=cross
12086 else
12087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12088 lt_status=$lt_dlunknown
12089 cat > conftest.$ac_ext <<_LT_EOF
12090 #line $LINENO "configure"
12091 #include "confdefs.h"
12092
12093 #if HAVE_DLFCN_H
12094 #include <dlfcn.h>
12095 #endif
12096
12097 #include <stdio.h>
12098
12099 #ifdef RTLD_GLOBAL
12100 # define LT_DLGLOBAL RTLD_GLOBAL
12101 #else
12102 # ifdef DL_GLOBAL
12103 # define LT_DLGLOBAL DL_GLOBAL
12104 # else
12105 # define LT_DLGLOBAL 0
12106 # endif
12107 #endif
12108
12109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12110 find out it does not work in some platform. */
12111 #ifndef LT_DLLAZY_OR_NOW
12112 # ifdef RTLD_LAZY
12113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12114 # else
12115 # ifdef DL_LAZY
12116 # define LT_DLLAZY_OR_NOW DL_LAZY
12117 # else
12118 # ifdef RTLD_NOW
12119 # define LT_DLLAZY_OR_NOW RTLD_NOW
12120 # else
12121 # ifdef DL_NOW
12122 # define LT_DLLAZY_OR_NOW DL_NOW
12123 # else
12124 # define LT_DLLAZY_OR_NOW 0
12125 # endif
12126 # endif
12127 # endif
12128 # endif
12129 #endif
12130
12131 /* When -fvisibility=hidden is used, assume the code has been annotated
12132 correspondingly for the symbols needed. */
12133 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12134 int fnord () __attribute__((visibility("default")));
12135 #endif
12136
12137 int fnord () { return 42; }
12138 int main ()
12139 {
12140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12141 int status = $lt_dlunknown;
12142
12143 if (self)
12144 {
12145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12146 else
12147 {
12148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12149 else puts (dlerror ());
12150 }
12151 /* dlclose (self); */
12152 }
12153 else
12154 puts (dlerror ());
12155
12156 return status;
12157 }
12158 _LT_EOF
12159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12160 (eval $ac_link) 2>&5
12161 ac_status=$?
12162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12163 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12164 (./conftest; exit; ) >&5 2>/dev/null
12165 lt_status=$?
12166 case x$lt_status in
12167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12169 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12170 esac
12171 else :
12172 # compilation failed
12173 lt_cv_dlopen_self=no
12174 fi
12175 fi
12176 rm -fr conftest*
12177
12178
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12181 $as_echo "$lt_cv_dlopen_self" >&6; }
12182
12183 if test yes = "$lt_cv_dlopen_self"; then
12184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12186 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12187 if ${lt_cv_dlopen_self_static+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test yes = "$cross_compiling"; then :
12191 lt_cv_dlopen_self_static=cross
12192 else
12193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12194 lt_status=$lt_dlunknown
12195 cat > conftest.$ac_ext <<_LT_EOF
12196 #line $LINENO "configure"
12197 #include "confdefs.h"
12198
12199 #if HAVE_DLFCN_H
12200 #include <dlfcn.h>
12201 #endif
12202
12203 #include <stdio.h>
12204
12205 #ifdef RTLD_GLOBAL
12206 # define LT_DLGLOBAL RTLD_GLOBAL
12207 #else
12208 # ifdef DL_GLOBAL
12209 # define LT_DLGLOBAL DL_GLOBAL
12210 # else
12211 # define LT_DLGLOBAL 0
12212 # endif
12213 #endif
12214
12215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12216 find out it does not work in some platform. */
12217 #ifndef LT_DLLAZY_OR_NOW
12218 # ifdef RTLD_LAZY
12219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12220 # else
12221 # ifdef DL_LAZY
12222 # define LT_DLLAZY_OR_NOW DL_LAZY
12223 # else
12224 # ifdef RTLD_NOW
12225 # define LT_DLLAZY_OR_NOW RTLD_NOW
12226 # else
12227 # ifdef DL_NOW
12228 # define LT_DLLAZY_OR_NOW DL_NOW
12229 # else
12230 # define LT_DLLAZY_OR_NOW 0
12231 # endif
12232 # endif
12233 # endif
12234 # endif
12235 #endif
12236
12237 /* When -fvisibility=hidden is used, assume the code has been annotated
12238 correspondingly for the symbols needed. */
12239 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12240 int fnord () __attribute__((visibility("default")));
12241 #endif
12242
12243 int fnord () { return 42; }
12244 int main ()
12245 {
12246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12247 int status = $lt_dlunknown;
12248
12249 if (self)
12250 {
12251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12252 else
12253 {
12254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12255 else puts (dlerror ());
12256 }
12257 /* dlclose (self); */
12258 }
12259 else
12260 puts (dlerror ());
12261
12262 return status;
12263 }
12264 _LT_EOF
12265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12266 (eval $ac_link) 2>&5
12267 ac_status=$?
12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12269 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12270 (./conftest; exit; ) >&5 2>/dev/null
12271 lt_status=$?
12272 case x$lt_status in
12273 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12274 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12275 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12276 esac
12277 else :
12278 # compilation failed
12279 lt_cv_dlopen_self_static=no
12280 fi
12281 fi
12282 rm -fr conftest*
12283
12284
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12287 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12288 fi
12289
12290 CPPFLAGS=$save_CPPFLAGS
12291 LDFLAGS=$save_LDFLAGS
12292 LIBS=$save_LIBS
12293 ;;
12294 esac
12295
12296 case $lt_cv_dlopen_self in
12297 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12298 *) enable_dlopen_self=unknown ;;
12299 esac
12300
12301 case $lt_cv_dlopen_self_static in
12302 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12303 *) enable_dlopen_self_static=unknown ;;
12304 esac
12305 fi
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 striplib=
12324 old_striplib=
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12326 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12327 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331 $as_echo "yes" >&6; }
12332 else
12333 # FIXME - insert some real tests, host_os isn't really good enough
12334 case $host_os in
12335 darwin*)
12336 if test -n "$STRIP"; then
12337 striplib="$STRIP -x"
12338 old_striplib="$STRIP -S"
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12340 $as_echo "yes" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345 ;;
12346 *)
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 ;;
12350 esac
12351 fi
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364 # Report what library types will actually be built
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12366 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12368 $as_echo "$can_build_shared" >&6; }
12369
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12371 $as_echo_n "checking whether to build shared libraries... " >&6; }
12372 test no = "$can_build_shared" && enable_shared=no
12373
12374 # On AIX, shared libraries and static libraries use the same namespace, and
12375 # are all built from PIC.
12376 case $host_os in
12377 aix3*)
12378 test yes = "$enable_shared" && enable_static=no
12379 if test -n "$RANLIB"; then
12380 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12381 postinstall_cmds='$RANLIB $lib'
12382 fi
12383 ;;
12384
12385 aix[4-9]*)
12386 if test ia64 != "$host_cpu"; then
12387 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12388 yes,aix,yes) ;; # shared object as lib.so file only
12389 yes,svr4,*) ;; # shared object as lib.so archive member only
12390 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12391 esac
12392 fi
12393 ;;
12394 esac
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12396 $as_echo "$enable_shared" >&6; }
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12399 $as_echo_n "checking whether to build static libraries... " >&6; }
12400 # Make sure either enable_shared or enable_static is yes.
12401 test yes = "$enable_shared" || enable_static=yes
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12403 $as_echo "$enable_static" >&6; }
12404
12405
12406
12407
12408 fi
12409 ac_ext=c
12410 ac_cpp='$CPP $CPPFLAGS'
12411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12414
12415 CC=$lt_save_CC
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431 ac_config_commands="$ac_config_commands libtool"
12432
12433
12434
12435
12436 # Only expand once:
12437
12438
12439
12440 LIBTOOL="$LIBTOOL --silent"
12441
12442
12443
12444
12445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12447 $as_echo_n "checking whether NLS is requested... " >&6; }
12448 # Check whether --enable-nls was given.
12449 if test "${enable_nls+set}" = set; then :
12450 enableval=$enable_nls; USE_NLS=$enableval
12451 else
12452 USE_NLS=yes
12453 fi
12454
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12456 $as_echo "$USE_NLS" >&6; }
12457
12458
12459
12460
12461
12462
12463 # Prepare PATH_SEPARATOR.
12464 # The user is always right.
12465 if test "${PATH_SEPARATOR+set}" != set; then
12466 echo "#! /bin/sh" >conf$$.sh
12467 echo "exit 0" >>conf$$.sh
12468 chmod +x conf$$.sh
12469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12470 PATH_SEPARATOR=';'
12471 else
12472 PATH_SEPARATOR=:
12473 fi
12474 rm -f conf$$.sh
12475 fi
12476
12477 # Find out how to test for executable files. Don't use a zero-byte file,
12478 # as systems may use methods other than mode bits to determine executability.
12479 cat >conf$$.file <<_ASEOF
12480 #! /bin/sh
12481 exit 0
12482 _ASEOF
12483 chmod +x conf$$.file
12484 if test -x conf$$.file >/dev/null 2>&1; then
12485 ac_executable_p="test -x"
12486 else
12487 ac_executable_p="test -f"
12488 fi
12489 rm -f conf$$.file
12490
12491 # Extract the first word of "msgfmt", so it can be a program name with args.
12492 set dummy msgfmt; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_MSGFMT+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 case "$MSGFMT" in
12499 [\\/]* | ?:[\\/]*)
12500 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12501 ;;
12502 *)
12503 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12504 for ac_dir in $PATH; do
12505 IFS="$ac_save_IFS"
12506 test -z "$ac_dir" && ac_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12509 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12510 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12511 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12512 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12513 break 2
12514 fi
12515 fi
12516 done
12517 done
12518 IFS="$ac_save_IFS"
12519 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12520 ;;
12521 esac
12522 fi
12523 MSGFMT="$ac_cv_path_MSGFMT"
12524 if test "$MSGFMT" != ":"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12526 $as_echo "$MSGFMT" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12530 fi
12531
12532 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12533 set dummy gmsgfmt; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if ${ac_cv_path_GMSGFMT+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 case $GMSGFMT in
12540 [\\/]* | ?:[\\/]*)
12541 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12542 ;;
12543 *)
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $PATH
12546 do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12551 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555 done
12556 done
12557 IFS=$as_save_IFS
12558
12559 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12560 ;;
12561 esac
12562 fi
12563 GMSGFMT=$ac_cv_path_GMSGFMT
12564 if test -n "$GMSGFMT"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12566 $as_echo "$GMSGFMT" >&6; }
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12570 fi
12571
12572
12573
12574 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12575 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12576 *) MSGFMT_015=$MSGFMT ;;
12577 esac
12578
12579 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12580 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12581 *) GMSGFMT_015=$GMSGFMT ;;
12582 esac
12583
12584
12585
12586 # Prepare PATH_SEPARATOR.
12587 # The user is always right.
12588 if test "${PATH_SEPARATOR+set}" != set; then
12589 echo "#! /bin/sh" >conf$$.sh
12590 echo "exit 0" >>conf$$.sh
12591 chmod +x conf$$.sh
12592 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12593 PATH_SEPARATOR=';'
12594 else
12595 PATH_SEPARATOR=:
12596 fi
12597 rm -f conf$$.sh
12598 fi
12599
12600 # Find out how to test for executable files. Don't use a zero-byte file,
12601 # as systems may use methods other than mode bits to determine executability.
12602 cat >conf$$.file <<_ASEOF
12603 #! /bin/sh
12604 exit 0
12605 _ASEOF
12606 chmod +x conf$$.file
12607 if test -x conf$$.file >/dev/null 2>&1; then
12608 ac_executable_p="test -x"
12609 else
12610 ac_executable_p="test -f"
12611 fi
12612 rm -f conf$$.file
12613
12614 # Extract the first word of "xgettext", so it can be a program name with args.
12615 set dummy xgettext; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_path_XGETTEXT+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 case "$XGETTEXT" in
12622 [\\/]* | ?:[\\/]*)
12623 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12624 ;;
12625 *)
12626 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12627 for ac_dir in $PATH; do
12628 IFS="$ac_save_IFS"
12629 test -z "$ac_dir" && ac_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12632 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12633 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12634 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12635 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12636 break 2
12637 fi
12638 fi
12639 done
12640 done
12641 IFS="$ac_save_IFS"
12642 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12643 ;;
12644 esac
12645 fi
12646 XGETTEXT="$ac_cv_path_XGETTEXT"
12647 if test "$XGETTEXT" != ":"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12649 $as_echo "$XGETTEXT" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654
12655 rm -f messages.po
12656
12657 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12658 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12659 *) XGETTEXT_015=$XGETTEXT ;;
12660 esac
12661
12662
12663
12664 # Prepare PATH_SEPARATOR.
12665 # The user is always right.
12666 if test "${PATH_SEPARATOR+set}" != set; then
12667 echo "#! /bin/sh" >conf$$.sh
12668 echo "exit 0" >>conf$$.sh
12669 chmod +x conf$$.sh
12670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12671 PATH_SEPARATOR=';'
12672 else
12673 PATH_SEPARATOR=:
12674 fi
12675 rm -f conf$$.sh
12676 fi
12677
12678 # Find out how to test for executable files. Don't use a zero-byte file,
12679 # as systems may use methods other than mode bits to determine executability.
12680 cat >conf$$.file <<_ASEOF
12681 #! /bin/sh
12682 exit 0
12683 _ASEOF
12684 chmod +x conf$$.file
12685 if test -x conf$$.file >/dev/null 2>&1; then
12686 ac_executable_p="test -x"
12687 else
12688 ac_executable_p="test -f"
12689 fi
12690 rm -f conf$$.file
12691
12692 # Extract the first word of "msgmerge", so it can be a program name with args.
12693 set dummy msgmerge; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if ${ac_cv_path_MSGMERGE+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 case "$MSGMERGE" in
12700 [\\/]* | ?:[\\/]*)
12701 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12702 ;;
12703 *)
12704 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12705 for ac_dir in $PATH; do
12706 IFS="$ac_save_IFS"
12707 test -z "$ac_dir" && ac_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12710 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12711 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12712 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12713 break 2
12714 fi
12715 fi
12716 done
12717 done
12718 IFS="$ac_save_IFS"
12719 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12720 ;;
12721 esac
12722 fi
12723 MSGMERGE="$ac_cv_path_MSGMERGE"
12724 if test "$MSGMERGE" != ":"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12726 $as_echo "$MSGMERGE" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731
12732
12733 test -n "$localedir" || localedir='${datadir}/locale'
12734
12735
12736 ac_config_commands="$ac_config_commands po-directories"
12737
12738
12739
12740 if test "X$prefix" = "XNONE"; then
12741 acl_final_prefix="$ac_default_prefix"
12742 else
12743 acl_final_prefix="$prefix"
12744 fi
12745 if test "X$exec_prefix" = "XNONE"; then
12746 acl_final_exec_prefix='${prefix}'
12747 else
12748 acl_final_exec_prefix="$exec_prefix"
12749 fi
12750 acl_save_prefix="$prefix"
12751 prefix="$acl_final_prefix"
12752 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12753 prefix="$acl_save_prefix"
12754
12755
12756 # Check whether --with-gnu-ld was given.
12757 if test "${with_gnu_ld+set}" = set; then :
12758 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12759 else
12760 with_gnu_ld=no
12761 fi
12762
12763 # Prepare PATH_SEPARATOR.
12764 # The user is always right.
12765 if test "${PATH_SEPARATOR+set}" != set; then
12766 echo "#! /bin/sh" >conf$$.sh
12767 echo "exit 0" >>conf$$.sh
12768 chmod +x conf$$.sh
12769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12770 PATH_SEPARATOR=';'
12771 else
12772 PATH_SEPARATOR=:
12773 fi
12774 rm -f conf$$.sh
12775 fi
12776 ac_prog=ld
12777 if test "$GCC" = yes; then
12778 # Check if gcc -print-prog-name=ld gives a path.
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12780 $as_echo_n "checking for ld used by GCC... " >&6; }
12781 case $host in
12782 *-*-mingw*)
12783 # gcc leaves a trailing carriage return which upsets mingw
12784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12785 *)
12786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12787 esac
12788 case $ac_prog in
12789 # Accept absolute paths.
12790 [\\/]* | [A-Za-z]:[\\/]*)
12791 re_direlt='/[^/][^/]*/\.\./'
12792 # Canonicalize the path of ld
12793 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12795 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12796 done
12797 test -z "$LD" && LD="$ac_prog"
12798 ;;
12799 "")
12800 # If it fails, then pretend we aren't using GCC.
12801 ac_prog=ld
12802 ;;
12803 *)
12804 # If it is relative, then search for the first ld in PATH.
12805 with_gnu_ld=unknown
12806 ;;
12807 esac
12808 elif test "$with_gnu_ld" = yes; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12810 $as_echo_n "checking for GNU ld... " >&6; }
12811 else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12813 $as_echo_n "checking for non-GNU ld... " >&6; }
12814 fi
12815 if ${acl_cv_path_LD+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 if test -z "$LD"; then
12819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12820 for ac_dir in $PATH; do
12821 test -z "$ac_dir" && ac_dir=.
12822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12823 acl_cv_path_LD="$ac_dir/$ac_prog"
12824 # Check to see if the program is GNU ld. I'd rather use --version,
12825 # but apparently some GNU ld's only accept -v.
12826 # Break only if it was the GNU/non-GNU ld that we prefer.
12827 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12828 *GNU* | *'with BFD'*)
12829 test "$with_gnu_ld" != no && break ;;
12830 *)
12831 test "$with_gnu_ld" != yes && break ;;
12832 esac
12833 fi
12834 done
12835 IFS="$ac_save_ifs"
12836 else
12837 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12838 fi
12839 fi
12840
12841 LD="$acl_cv_path_LD"
12842 if test -n "$LD"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12844 $as_echo "$LD" >&6; }
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 fi
12849 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12851 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12852 if ${acl_cv_prog_gnu_ld+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12856 case `$LD -v 2>&1 </dev/null` in
12857 *GNU* | *'with BFD'*)
12858 acl_cv_prog_gnu_ld=yes ;;
12859 *)
12860 acl_cv_prog_gnu_ld=no ;;
12861 esac
12862 fi
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12864 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12865 with_gnu_ld=$acl_cv_prog_gnu_ld
12866
12867
12868
12869
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12871 $as_echo_n "checking for shared library run path origin... " >&6; }
12872 if ${acl_cv_rpath+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875
12876 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12877 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12878 . ./conftest.sh
12879 rm -f ./conftest.sh
12880 acl_cv_rpath=done
12881
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12884 $as_echo "$acl_cv_rpath" >&6; }
12885 wl="$acl_cv_wl"
12886 libext="$acl_cv_libext"
12887 shlibext="$acl_cv_shlibext"
12888 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12889 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12890 hardcode_direct="$acl_cv_hardcode_direct"
12891 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12892 # Check whether --enable-rpath was given.
12893 if test "${enable_rpath+set}" = set; then :
12894 enableval=$enable_rpath; :
12895 else
12896 enable_rpath=yes
12897 fi
12898
12899
12900
12901 acl_libdirstem=lib
12902 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12903 if test -n "$searchpath"; then
12904 acl_save_IFS="${IFS= }"; IFS=":"
12905 for searchdir in $searchpath; do
12906 if test -d "$searchdir"; then
12907 case "$searchdir" in
12908 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12909 *) searchdir=`cd "$searchdir" && pwd`
12910 case "$searchdir" in
12911 */lib64 ) acl_libdirstem=lib64 ;;
12912 esac ;;
12913 esac
12914 fi
12915 done
12916 IFS="$acl_save_IFS"
12917 fi
12918
12919
12920
12921
12922
12923
12924
12925
12926 use_additional=yes
12927
12928 acl_save_prefix="$prefix"
12929 prefix="$acl_final_prefix"
12930 acl_save_exec_prefix="$exec_prefix"
12931 exec_prefix="$acl_final_exec_prefix"
12932
12933 eval additional_includedir=\"$includedir\"
12934 eval additional_libdir=\"$libdir\"
12935
12936 exec_prefix="$acl_save_exec_prefix"
12937 prefix="$acl_save_prefix"
12938
12939
12940 # Check whether --with-libiconv-prefix was given.
12941 if test "${with_libiconv_prefix+set}" = set; then :
12942 withval=$with_libiconv_prefix;
12943 if test "X$withval" = "Xno"; then
12944 use_additional=no
12945 else
12946 if test "X$withval" = "X"; then
12947
12948 acl_save_prefix="$prefix"
12949 prefix="$acl_final_prefix"
12950 acl_save_exec_prefix="$exec_prefix"
12951 exec_prefix="$acl_final_exec_prefix"
12952
12953 eval additional_includedir=\"$includedir\"
12954 eval additional_libdir=\"$libdir\"
12955
12956 exec_prefix="$acl_save_exec_prefix"
12957 prefix="$acl_save_prefix"
12958
12959 else
12960 additional_includedir="$withval/include"
12961 additional_libdir="$withval/$acl_libdirstem"
12962 fi
12963 fi
12964
12965 fi
12966
12967 LIBICONV=
12968 LTLIBICONV=
12969 INCICONV=
12970 rpathdirs=
12971 ltrpathdirs=
12972 names_already_handled=
12973 names_next_round='iconv '
12974 while test -n "$names_next_round"; do
12975 names_this_round="$names_next_round"
12976 names_next_round=
12977 for name in $names_this_round; do
12978 already_handled=
12979 for n in $names_already_handled; do
12980 if test "$n" = "$name"; then
12981 already_handled=yes
12982 break
12983 fi
12984 done
12985 if test -z "$already_handled"; then
12986 names_already_handled="$names_already_handled $name"
12987 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12988 eval value=\"\$HAVE_LIB$uppername\"
12989 if test -n "$value"; then
12990 if test "$value" = yes; then
12991 eval value=\"\$LIB$uppername\"
12992 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12993 eval value=\"\$LTLIB$uppername\"
12994 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12995 else
12996 :
12997 fi
12998 else
12999 found_dir=
13000 found_la=
13001 found_so=
13002 found_a=
13003 if test $use_additional = yes; then
13004 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13005 found_dir="$additional_libdir"
13006 found_so="$additional_libdir/lib$name.$shlibext"
13007 if test -f "$additional_libdir/lib$name.la"; then
13008 found_la="$additional_libdir/lib$name.la"
13009 fi
13010 else
13011 if test -f "$additional_libdir/lib$name.$libext"; then
13012 found_dir="$additional_libdir"
13013 found_a="$additional_libdir/lib$name.$libext"
13014 if test -f "$additional_libdir/lib$name.la"; then
13015 found_la="$additional_libdir/lib$name.la"
13016 fi
13017 fi
13018 fi
13019 fi
13020 if test "X$found_dir" = "X"; then
13021 for x in $LDFLAGS $LTLIBICONV; do
13022
13023 acl_save_prefix="$prefix"
13024 prefix="$acl_final_prefix"
13025 acl_save_exec_prefix="$exec_prefix"
13026 exec_prefix="$acl_final_exec_prefix"
13027 eval x=\"$x\"
13028 exec_prefix="$acl_save_exec_prefix"
13029 prefix="$acl_save_prefix"
13030
13031 case "$x" in
13032 -L*)
13033 dir=`echo "X$x" | sed -e 's/^X-L//'`
13034 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13035 found_dir="$dir"
13036 found_so="$dir/lib$name.$shlibext"
13037 if test -f "$dir/lib$name.la"; then
13038 found_la="$dir/lib$name.la"
13039 fi
13040 else
13041 if test -f "$dir/lib$name.$libext"; then
13042 found_dir="$dir"
13043 found_a="$dir/lib$name.$libext"
13044 if test -f "$dir/lib$name.la"; then
13045 found_la="$dir/lib$name.la"
13046 fi
13047 fi
13048 fi
13049 ;;
13050 esac
13051 if test "X$found_dir" != "X"; then
13052 break
13053 fi
13054 done
13055 fi
13056 if test "X$found_dir" != "X"; then
13057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13058 if test "X$found_so" != "X"; then
13059 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13061 else
13062 haveit=
13063 for x in $ltrpathdirs; do
13064 if test "X$x" = "X$found_dir"; then
13065 haveit=yes
13066 break
13067 fi
13068 done
13069 if test -z "$haveit"; then
13070 ltrpathdirs="$ltrpathdirs $found_dir"
13071 fi
13072 if test "$hardcode_direct" = yes; then
13073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13074 else
13075 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13076 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13077 haveit=
13078 for x in $rpathdirs; do
13079 if test "X$x" = "X$found_dir"; then
13080 haveit=yes
13081 break
13082 fi
13083 done
13084 if test -z "$haveit"; then
13085 rpathdirs="$rpathdirs $found_dir"
13086 fi
13087 else
13088 haveit=
13089 for x in $LDFLAGS $LIBICONV; do
13090
13091 acl_save_prefix="$prefix"
13092 prefix="$acl_final_prefix"
13093 acl_save_exec_prefix="$exec_prefix"
13094 exec_prefix="$acl_final_exec_prefix"
13095 eval x=\"$x\"
13096 exec_prefix="$acl_save_exec_prefix"
13097 prefix="$acl_save_prefix"
13098
13099 if test "X$x" = "X-L$found_dir"; then
13100 haveit=yes
13101 break
13102 fi
13103 done
13104 if test -z "$haveit"; then
13105 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13106 fi
13107 if test "$hardcode_minus_L" != no; then
13108 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13109 else
13110 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13111 fi
13112 fi
13113 fi
13114 fi
13115 else
13116 if test "X$found_a" != "X"; then
13117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13118 else
13119 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13120 fi
13121 fi
13122 additional_includedir=
13123 case "$found_dir" in
13124 */$acl_libdirstem | */$acl_libdirstem/)
13125 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13126 additional_includedir="$basedir/include"
13127 ;;
13128 esac
13129 if test "X$additional_includedir" != "X"; then
13130 if test "X$additional_includedir" != "X/usr/include"; then
13131 haveit=
13132 if test "X$additional_includedir" = "X/usr/local/include"; then
13133 if test -n "$GCC"; then
13134 case $host_os in
13135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13136 esac
13137 fi
13138 fi
13139 if test -z "$haveit"; then
13140 for x in $CPPFLAGS $INCICONV; do
13141
13142 acl_save_prefix="$prefix"
13143 prefix="$acl_final_prefix"
13144 acl_save_exec_prefix="$exec_prefix"
13145 exec_prefix="$acl_final_exec_prefix"
13146 eval x=\"$x\"
13147 exec_prefix="$acl_save_exec_prefix"
13148 prefix="$acl_save_prefix"
13149
13150 if test "X$x" = "X-I$additional_includedir"; then
13151 haveit=yes
13152 break
13153 fi
13154 done
13155 if test -z "$haveit"; then
13156 if test -d "$additional_includedir"; then
13157 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13158 fi
13159 fi
13160 fi
13161 fi
13162 fi
13163 if test -n "$found_la"; then
13164 save_libdir="$libdir"
13165 case "$found_la" in
13166 */* | *\\*) . "$found_la" ;;
13167 *) . "./$found_la" ;;
13168 esac
13169 libdir="$save_libdir"
13170 for dep in $dependency_libs; do
13171 case "$dep" in
13172 -L*)
13173 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13174 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13175 haveit=
13176 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13177 if test -n "$GCC"; then
13178 case $host_os in
13179 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13180 esac
13181 fi
13182 fi
13183 if test -z "$haveit"; then
13184 haveit=
13185 for x in $LDFLAGS $LIBICONV; do
13186
13187 acl_save_prefix="$prefix"
13188 prefix="$acl_final_prefix"
13189 acl_save_exec_prefix="$exec_prefix"
13190 exec_prefix="$acl_final_exec_prefix"
13191 eval x=\"$x\"
13192 exec_prefix="$acl_save_exec_prefix"
13193 prefix="$acl_save_prefix"
13194
13195 if test "X$x" = "X-L$additional_libdir"; then
13196 haveit=yes
13197 break
13198 fi
13199 done
13200 if test -z "$haveit"; then
13201 if test -d "$additional_libdir"; then
13202 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13203 fi
13204 fi
13205 haveit=
13206 for x in $LDFLAGS $LTLIBICONV; do
13207
13208 acl_save_prefix="$prefix"
13209 prefix="$acl_final_prefix"
13210 acl_save_exec_prefix="$exec_prefix"
13211 exec_prefix="$acl_final_exec_prefix"
13212 eval x=\"$x\"
13213 exec_prefix="$acl_save_exec_prefix"
13214 prefix="$acl_save_prefix"
13215
13216 if test "X$x" = "X-L$additional_libdir"; then
13217 haveit=yes
13218 break
13219 fi
13220 done
13221 if test -z "$haveit"; then
13222 if test -d "$additional_libdir"; then
13223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13224 fi
13225 fi
13226 fi
13227 fi
13228 ;;
13229 -R*)
13230 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13231 if test "$enable_rpath" != no; then
13232 haveit=
13233 for x in $rpathdirs; do
13234 if test "X$x" = "X$dir"; then
13235 haveit=yes
13236 break
13237 fi
13238 done
13239 if test -z "$haveit"; then
13240 rpathdirs="$rpathdirs $dir"
13241 fi
13242 haveit=
13243 for x in $ltrpathdirs; do
13244 if test "X$x" = "X$dir"; then
13245 haveit=yes
13246 break
13247 fi
13248 done
13249 if test -z "$haveit"; then
13250 ltrpathdirs="$ltrpathdirs $dir"
13251 fi
13252 fi
13253 ;;
13254 -l*)
13255 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13256 ;;
13257 *.la)
13258 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13259 ;;
13260 *)
13261 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13262 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13263 ;;
13264 esac
13265 done
13266 fi
13267 else
13268 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13269 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13270 fi
13271 fi
13272 fi
13273 done
13274 done
13275 if test "X$rpathdirs" != "X"; then
13276 if test -n "$hardcode_libdir_separator"; then
13277 alldirs=
13278 for found_dir in $rpathdirs; do
13279 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13280 done
13281 acl_save_libdir="$libdir"
13282 libdir="$alldirs"
13283 eval flag=\"$hardcode_libdir_flag_spec\"
13284 libdir="$acl_save_libdir"
13285 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13286 else
13287 for found_dir in $rpathdirs; do
13288 acl_save_libdir="$libdir"
13289 libdir="$found_dir"
13290 eval flag=\"$hardcode_libdir_flag_spec\"
13291 libdir="$acl_save_libdir"
13292 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13293 done
13294 fi
13295 fi
13296 if test "X$ltrpathdirs" != "X"; then
13297 for found_dir in $ltrpathdirs; do
13298 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13299 done
13300 fi
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13320 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13321 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 gt_save_LIBS="$LIBS"
13325 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328 #include <CoreFoundation/CFPreferences.h>
13329 int
13330 main ()
13331 {
13332 CFPreferencesCopyAppValue(NULL, NULL)
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 gt_cv_func_CFPreferencesCopyAppValue=yes
13339 else
13340 gt_cv_func_CFPreferencesCopyAppValue=no
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LIBS="$gt_save_LIBS"
13345 fi
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13347 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13348 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13349
13350 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13351
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13354 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13355 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 gt_save_LIBS="$LIBS"
13359 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #include <CoreFoundation/CFLocale.h>
13363 int
13364 main ()
13365 {
13366 CFLocaleCopyCurrent();
13367 ;
13368 return 0;
13369 }
13370 _ACEOF
13371 if ac_fn_c_try_link "$LINENO"; then :
13372 gt_cv_func_CFLocaleCopyCurrent=yes
13373 else
13374 gt_cv_func_CFLocaleCopyCurrent=no
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13378 LIBS="$gt_save_LIBS"
13379 fi
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13381 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13382 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13383
13384 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13385
13386 fi
13387 INTL_MACOSX_LIBS=
13388 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13389 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13390 fi
13391
13392
13393
13394
13395
13396
13397 LIBINTL=
13398 LTLIBINTL=
13399 POSUB=
13400
13401 if test "$USE_NLS" = "yes"; then
13402 gt_use_preinstalled_gnugettext=no
13403
13404
13405
13406
13407
13408
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13410 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13411 if ${gt_cv_func_gnugettext1_libc+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13416 #include <libintl.h>
13417 extern int _nl_msg_cat_cntr;
13418 extern int *_nl_domain_bindings;
13419 int
13420 main ()
13421 {
13422 bindtextdomain ("", "");
13423 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13424 ;
13425 return 0;
13426 }
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 gt_cv_func_gnugettext1_libc=yes
13430 else
13431 gt_cv_func_gnugettext1_libc=no
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
13437 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
13438
13439 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13440
13441
13442
13443
13444
13445 am_save_CPPFLAGS="$CPPFLAGS"
13446
13447 for element in $INCICONV; do
13448 haveit=
13449 for x in $CPPFLAGS; do
13450
13451 acl_save_prefix="$prefix"
13452 prefix="$acl_final_prefix"
13453 acl_save_exec_prefix="$exec_prefix"
13454 exec_prefix="$acl_final_exec_prefix"
13455 eval x=\"$x\"
13456 exec_prefix="$acl_save_exec_prefix"
13457 prefix="$acl_save_prefix"
13458
13459 if test "X$x" = "X$element"; then
13460 haveit=yes
13461 break
13462 fi
13463 done
13464 if test -z "$haveit"; then
13465 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13466 fi
13467 done
13468
13469
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13471 $as_echo_n "checking for iconv... " >&6; }
13472 if ${am_cv_func_iconv+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475
13476 am_cv_func_iconv="no, consider installing GNU libiconv"
13477 am_cv_lib_iconv=no
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 #include <stdlib.h>
13481 #include <iconv.h>
13482 int
13483 main ()
13484 {
13485 iconv_t cd = iconv_open("","");
13486 iconv(cd,NULL,NULL,NULL,NULL);
13487 iconv_close(cd);
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 if ac_fn_c_try_link "$LINENO"; then :
13493 am_cv_func_iconv=yes
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13497 if test "$am_cv_func_iconv" != yes; then
13498 am_save_LIBS="$LIBS"
13499 LIBS="$LIBS $LIBICONV"
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <stdlib.h>
13503 #include <iconv.h>
13504 int
13505 main ()
13506 {
13507 iconv_t cd = iconv_open("","");
13508 iconv(cd,NULL,NULL,NULL,NULL);
13509 iconv_close(cd);
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13515 am_cv_lib_iconv=yes
13516 am_cv_func_iconv=yes
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS="$am_save_LIBS"
13521 fi
13522
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13525 $as_echo "$am_cv_func_iconv" >&6; }
13526 if test "$am_cv_func_iconv" = yes; then
13527
13528 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13529
13530 fi
13531 if test "$am_cv_lib_iconv" = yes; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13533 $as_echo_n "checking how to link with libiconv... " >&6; }
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13535 $as_echo "$LIBICONV" >&6; }
13536 else
13537 CPPFLAGS="$am_save_CPPFLAGS"
13538 LIBICONV=
13539 LTLIBICONV=
13540 fi
13541
13542
13543
13544
13545
13546
13547
13548 use_additional=yes
13549
13550 acl_save_prefix="$prefix"
13551 prefix="$acl_final_prefix"
13552 acl_save_exec_prefix="$exec_prefix"
13553 exec_prefix="$acl_final_exec_prefix"
13554
13555 eval additional_includedir=\"$includedir\"
13556 eval additional_libdir=\"$libdir\"
13557
13558 exec_prefix="$acl_save_exec_prefix"
13559 prefix="$acl_save_prefix"
13560
13561
13562 # Check whether --with-libintl-prefix was given.
13563 if test "${with_libintl_prefix+set}" = set; then :
13564 withval=$with_libintl_prefix;
13565 if test "X$withval" = "Xno"; then
13566 use_additional=no
13567 else
13568 if test "X$withval" = "X"; then
13569
13570 acl_save_prefix="$prefix"
13571 prefix="$acl_final_prefix"
13572 acl_save_exec_prefix="$exec_prefix"
13573 exec_prefix="$acl_final_exec_prefix"
13574
13575 eval additional_includedir=\"$includedir\"
13576 eval additional_libdir=\"$libdir\"
13577
13578 exec_prefix="$acl_save_exec_prefix"
13579 prefix="$acl_save_prefix"
13580
13581 else
13582 additional_includedir="$withval/include"
13583 additional_libdir="$withval/$acl_libdirstem"
13584 fi
13585 fi
13586
13587 fi
13588
13589 LIBINTL=
13590 LTLIBINTL=
13591 INCINTL=
13592 rpathdirs=
13593 ltrpathdirs=
13594 names_already_handled=
13595 names_next_round='intl '
13596 while test -n "$names_next_round"; do
13597 names_this_round="$names_next_round"
13598 names_next_round=
13599 for name in $names_this_round; do
13600 already_handled=
13601 for n in $names_already_handled; do
13602 if test "$n" = "$name"; then
13603 already_handled=yes
13604 break
13605 fi
13606 done
13607 if test -z "$already_handled"; then
13608 names_already_handled="$names_already_handled $name"
13609 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13610 eval value=\"\$HAVE_LIB$uppername\"
13611 if test -n "$value"; then
13612 if test "$value" = yes; then
13613 eval value=\"\$LIB$uppername\"
13614 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13615 eval value=\"\$LTLIB$uppername\"
13616 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13617 else
13618 :
13619 fi
13620 else
13621 found_dir=
13622 found_la=
13623 found_so=
13624 found_a=
13625 if test $use_additional = yes; then
13626 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13627 found_dir="$additional_libdir"
13628 found_so="$additional_libdir/lib$name.$shlibext"
13629 if test -f "$additional_libdir/lib$name.la"; then
13630 found_la="$additional_libdir/lib$name.la"
13631 fi
13632 else
13633 if test -f "$additional_libdir/lib$name.$libext"; then
13634 found_dir="$additional_libdir"
13635 found_a="$additional_libdir/lib$name.$libext"
13636 if test -f "$additional_libdir/lib$name.la"; then
13637 found_la="$additional_libdir/lib$name.la"
13638 fi
13639 fi
13640 fi
13641 fi
13642 if test "X$found_dir" = "X"; then
13643 for x in $LDFLAGS $LTLIBINTL; do
13644
13645 acl_save_prefix="$prefix"
13646 prefix="$acl_final_prefix"
13647 acl_save_exec_prefix="$exec_prefix"
13648 exec_prefix="$acl_final_exec_prefix"
13649 eval x=\"$x\"
13650 exec_prefix="$acl_save_exec_prefix"
13651 prefix="$acl_save_prefix"
13652
13653 case "$x" in
13654 -L*)
13655 dir=`echo "X$x" | sed -e 's/^X-L//'`
13656 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13657 found_dir="$dir"
13658 found_so="$dir/lib$name.$shlibext"
13659 if test -f "$dir/lib$name.la"; then
13660 found_la="$dir/lib$name.la"
13661 fi
13662 else
13663 if test -f "$dir/lib$name.$libext"; then
13664 found_dir="$dir"
13665 found_a="$dir/lib$name.$libext"
13666 if test -f "$dir/lib$name.la"; then
13667 found_la="$dir/lib$name.la"
13668 fi
13669 fi
13670 fi
13671 ;;
13672 esac
13673 if test "X$found_dir" != "X"; then
13674 break
13675 fi
13676 done
13677 fi
13678 if test "X$found_dir" != "X"; then
13679 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13680 if test "X$found_so" != "X"; then
13681 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13683 else
13684 haveit=
13685 for x in $ltrpathdirs; do
13686 if test "X$x" = "X$found_dir"; then
13687 haveit=yes
13688 break
13689 fi
13690 done
13691 if test -z "$haveit"; then
13692 ltrpathdirs="$ltrpathdirs $found_dir"
13693 fi
13694 if test "$hardcode_direct" = yes; then
13695 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13696 else
13697 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13698 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13699 haveit=
13700 for x in $rpathdirs; do
13701 if test "X$x" = "X$found_dir"; then
13702 haveit=yes
13703 break
13704 fi
13705 done
13706 if test -z "$haveit"; then
13707 rpathdirs="$rpathdirs $found_dir"
13708 fi
13709 else
13710 haveit=
13711 for x in $LDFLAGS $LIBINTL; do
13712
13713 acl_save_prefix="$prefix"
13714 prefix="$acl_final_prefix"
13715 acl_save_exec_prefix="$exec_prefix"
13716 exec_prefix="$acl_final_exec_prefix"
13717 eval x=\"$x\"
13718 exec_prefix="$acl_save_exec_prefix"
13719 prefix="$acl_save_prefix"
13720
13721 if test "X$x" = "X-L$found_dir"; then
13722 haveit=yes
13723 break
13724 fi
13725 done
13726 if test -z "$haveit"; then
13727 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13728 fi
13729 if test "$hardcode_minus_L" != no; then
13730 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13731 else
13732 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13733 fi
13734 fi
13735 fi
13736 fi
13737 else
13738 if test "X$found_a" != "X"; then
13739 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13740 else
13741 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13742 fi
13743 fi
13744 additional_includedir=
13745 case "$found_dir" in
13746 */$acl_libdirstem | */$acl_libdirstem/)
13747 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13748 additional_includedir="$basedir/include"
13749 ;;
13750 esac
13751 if test "X$additional_includedir" != "X"; then
13752 if test "X$additional_includedir" != "X/usr/include"; then
13753 haveit=
13754 if test "X$additional_includedir" = "X/usr/local/include"; then
13755 if test -n "$GCC"; then
13756 case $host_os in
13757 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13758 esac
13759 fi
13760 fi
13761 if test -z "$haveit"; then
13762 for x in $CPPFLAGS $INCINTL; do
13763
13764 acl_save_prefix="$prefix"
13765 prefix="$acl_final_prefix"
13766 acl_save_exec_prefix="$exec_prefix"
13767 exec_prefix="$acl_final_exec_prefix"
13768 eval x=\"$x\"
13769 exec_prefix="$acl_save_exec_prefix"
13770 prefix="$acl_save_prefix"
13771
13772 if test "X$x" = "X-I$additional_includedir"; then
13773 haveit=yes
13774 break
13775 fi
13776 done
13777 if test -z "$haveit"; then
13778 if test -d "$additional_includedir"; then
13779 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13780 fi
13781 fi
13782 fi
13783 fi
13784 fi
13785 if test -n "$found_la"; then
13786 save_libdir="$libdir"
13787 case "$found_la" in
13788 */* | *\\*) . "$found_la" ;;
13789 *) . "./$found_la" ;;
13790 esac
13791 libdir="$save_libdir"
13792 for dep in $dependency_libs; do
13793 case "$dep" in
13794 -L*)
13795 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13796 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13797 haveit=
13798 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13799 if test -n "$GCC"; then
13800 case $host_os in
13801 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13802 esac
13803 fi
13804 fi
13805 if test -z "$haveit"; then
13806 haveit=
13807 for x in $LDFLAGS $LIBINTL; do
13808
13809 acl_save_prefix="$prefix"
13810 prefix="$acl_final_prefix"
13811 acl_save_exec_prefix="$exec_prefix"
13812 exec_prefix="$acl_final_exec_prefix"
13813 eval x=\"$x\"
13814 exec_prefix="$acl_save_exec_prefix"
13815 prefix="$acl_save_prefix"
13816
13817 if test "X$x" = "X-L$additional_libdir"; then
13818 haveit=yes
13819 break
13820 fi
13821 done
13822 if test -z "$haveit"; then
13823 if test -d "$additional_libdir"; then
13824 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13825 fi
13826 fi
13827 haveit=
13828 for x in $LDFLAGS $LTLIBINTL; do
13829
13830 acl_save_prefix="$prefix"
13831 prefix="$acl_final_prefix"
13832 acl_save_exec_prefix="$exec_prefix"
13833 exec_prefix="$acl_final_exec_prefix"
13834 eval x=\"$x\"
13835 exec_prefix="$acl_save_exec_prefix"
13836 prefix="$acl_save_prefix"
13837
13838 if test "X$x" = "X-L$additional_libdir"; then
13839 haveit=yes
13840 break
13841 fi
13842 done
13843 if test -z "$haveit"; then
13844 if test -d "$additional_libdir"; then
13845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13846 fi
13847 fi
13848 fi
13849 fi
13850 ;;
13851 -R*)
13852 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13853 if test "$enable_rpath" != no; then
13854 haveit=
13855 for x in $rpathdirs; do
13856 if test "X$x" = "X$dir"; then
13857 haveit=yes
13858 break
13859 fi
13860 done
13861 if test -z "$haveit"; then
13862 rpathdirs="$rpathdirs $dir"
13863 fi
13864 haveit=
13865 for x in $ltrpathdirs; do
13866 if test "X$x" = "X$dir"; then
13867 haveit=yes
13868 break
13869 fi
13870 done
13871 if test -z "$haveit"; then
13872 ltrpathdirs="$ltrpathdirs $dir"
13873 fi
13874 fi
13875 ;;
13876 -l*)
13877 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13878 ;;
13879 *.la)
13880 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13881 ;;
13882 *)
13883 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13884 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13885 ;;
13886 esac
13887 done
13888 fi
13889 else
13890 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13892 fi
13893 fi
13894 fi
13895 done
13896 done
13897 if test "X$rpathdirs" != "X"; then
13898 if test -n "$hardcode_libdir_separator"; then
13899 alldirs=
13900 for found_dir in $rpathdirs; do
13901 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13902 done
13903 acl_save_libdir="$libdir"
13904 libdir="$alldirs"
13905 eval flag=\"$hardcode_libdir_flag_spec\"
13906 libdir="$acl_save_libdir"
13907 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13908 else
13909 for found_dir in $rpathdirs; do
13910 acl_save_libdir="$libdir"
13911 libdir="$found_dir"
13912 eval flag=\"$hardcode_libdir_flag_spec\"
13913 libdir="$acl_save_libdir"
13914 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13915 done
13916 fi
13917 fi
13918 if test "X$ltrpathdirs" != "X"; then
13919 for found_dir in $ltrpathdirs; do
13920 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13921 done
13922 fi
13923
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13925 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13926 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 gt_save_CPPFLAGS="$CPPFLAGS"
13930 CPPFLAGS="$CPPFLAGS $INCINTL"
13931 gt_save_LIBS="$LIBS"
13932 LIBS="$LIBS $LIBINTL"
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935 #include <libintl.h>
13936 extern int _nl_msg_cat_cntr;
13937 extern
13938 #ifdef __cplusplus
13939 "C"
13940 #endif
13941 const char *_nl_expand_alias (const char *);
13942 int
13943 main ()
13944 {
13945 bindtextdomain ("", "");
13946 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"; then :
13952 gt_cv_func_gnugettext1_libintl=yes
13953 else
13954 gt_cv_func_gnugettext1_libintl=no
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13959 LIBS="$LIBS $LIBICONV"
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962 #include <libintl.h>
13963 extern int _nl_msg_cat_cntr;
13964 extern
13965 #ifdef __cplusplus
13966 "C"
13967 #endif
13968 const char *_nl_expand_alias (const char *);
13969 int
13970 main ()
13971 {
13972 bindtextdomain ("", "");
13973 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13974 ;
13975 return 0;
13976 }
13977 _ACEOF
13978 if ac_fn_c_try_link "$LINENO"; then :
13979 LIBINTL="$LIBINTL $LIBICONV"
13980 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13981 gt_cv_func_gnugettext1_libintl=yes
13982
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13986 fi
13987 CPPFLAGS="$gt_save_CPPFLAGS"
13988 LIBS="$gt_save_LIBS"
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
13991 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
13992 fi
13993
13994 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13995 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13996 && test "$PACKAGE" != gettext-runtime \
13997 && test "$PACKAGE" != gettext-tools; }; then
13998 gt_use_preinstalled_gnugettext=yes
13999 else
14000 LIBINTL=
14001 LTLIBINTL=
14002 INCINTL=
14003 fi
14004
14005
14006
14007 if test -n "$INTL_MACOSX_LIBS"; then
14008 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14009 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14010 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14011 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14012 fi
14013 fi
14014
14015 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14016 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14017
14018 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14019
14020 else
14021 USE_NLS=no
14022 fi
14023 fi
14024
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14026 $as_echo_n "checking whether to use NLS... " >&6; }
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14028 $as_echo "$USE_NLS" >&6; }
14029 if test "$USE_NLS" = "yes"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14031 $as_echo_n "checking where the gettext function comes from... " >&6; }
14032 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14033 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14034 gt_source="external libintl"
14035 else
14036 gt_source="libc"
14037 fi
14038 else
14039 gt_source="included intl directory"
14040 fi
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14042 $as_echo "$gt_source" >&6; }
14043 fi
14044
14045 if test "$USE_NLS" = "yes"; then
14046
14047 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14048 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14050 $as_echo_n "checking how to link with libintl... " >&6; }
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14052 $as_echo "$LIBINTL" >&6; }
14053
14054 for element in $INCINTL; do
14055 haveit=
14056 for x in $CPPFLAGS; do
14057
14058 acl_save_prefix="$prefix"
14059 prefix="$acl_final_prefix"
14060 acl_save_exec_prefix="$exec_prefix"
14061 exec_prefix="$acl_final_exec_prefix"
14062 eval x=\"$x\"
14063 exec_prefix="$acl_save_exec_prefix"
14064 prefix="$acl_save_prefix"
14065
14066 if test "X$x" = "X$element"; then
14067 haveit=yes
14068 break
14069 fi
14070 done
14071 if test -z "$haveit"; then
14072 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14073 fi
14074 done
14075
14076 fi
14077
14078
14079 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14080
14081
14082 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14083
14084 fi
14085
14086 POSUB=po
14087 fi
14088
14089
14090
14091 INTLLIBS="$LIBINTL"
14092
14093
14094
14095
14096
14097
14098
14099 for ac_header in ctype.h dirent.h errno.h fcntl.h grp.h locale.h pwd.h
14100 do :
14101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14102 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14104 cat >>confdefs.h <<_ACEOF
14105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14106 _ACEOF
14107
14108 fi
14109
14110 done
14111
14112 for ac_header in signal.h string.h stdio.h stdlib.h unistd.h sys/stat.h
14113 do :
14114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14115 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14117 cat >>confdefs.h <<_ACEOF
14118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14119 _ACEOF
14120
14121 fi
14122
14123 done
14124
14125 for ac_header in sys/select.h sys/socket.h sys/time.h sys/types.h sys/wait.h
14126 do :
14127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14130 cat >>confdefs.h <<_ACEOF
14131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14132 _ACEOF
14133
14134 fi
14135
14136 done
14137
14138
14139 # Extract the first word of "sed", so it can be a program name with args.
14140 set dummy sed; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142 $as_echo_n "checking for $ac_word... " >&6; }
14143 if ${ac_cv_path_SED+:} false; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 case $SED in
14147 [\\/]* | ?:[\\/]*)
14148 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14149 ;;
14150 *)
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14153 do
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14158 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14161 fi
14162 done
14163 done
14164 IFS=$as_save_IFS
14165
14166 test -z "$ac_cv_path_SED" && ac_cv_path_SED="no"
14167 ;;
14168 esac
14169 fi
14170 SED=$ac_cv_path_SED
14171 if test -n "$SED"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14173 $as_echo "$SED" >&6; }
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14177 fi
14178
14179
14180 if test "$SED" = "no"; then
14181 as_fn_error $? "The program \"sed\" is not available. This program is required to build Openbox." "$LINENO" 5
14182 fi
14183
14184 # Extract the first word of "dirname", so it can be a program name with args.
14185 set dummy dirname; ac_word=$2
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187 $as_echo_n "checking for $ac_word... " >&6; }
14188 if ${ac_cv_path_DIRNAME+:} false; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 case $DIRNAME in
14192 [\\/]* | ?:[\\/]*)
14193 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
14194 ;;
14195 *)
14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197 for as_dir in $PATH
14198 do
14199 IFS=$as_save_IFS
14200 test -z "$as_dir" && as_dir=.
14201 for ac_exec_ext in '' $ac_executable_extensions; do
14202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14203 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
14204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14205 break 2
14206 fi
14207 done
14208 done
14209 IFS=$as_save_IFS
14210
14211 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME="no"
14212 ;;
14213 esac
14214 fi
14215 DIRNAME=$ac_cv_path_DIRNAME
14216 if test -n "$DIRNAME"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
14218 $as_echo "$DIRNAME" >&6; }
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14222 fi
14223
14224
14225 if test "$DIRNAME" = "no"; then
14226 as_fn_error $? "The program \"dirname\" is not available. This program is required to build Openbox." "$LINENO" 5
14227 fi
14228
14229
14230
14231
14232
14233
14234
14235
14236 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14237 if test -n "$ac_tool_prefix"; then
14238 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14239 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241 $as_echo_n "checking for $ac_word... " >&6; }
14242 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 case $PKG_CONFIG in
14246 [\\/]* | ?:[\\/]*)
14247 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14248 ;;
14249 *)
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14252 do
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14260 fi
14261 done
14262 done
14263 IFS=$as_save_IFS
14264
14265 ;;
14266 esac
14267 fi
14268 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14269 if test -n "$PKG_CONFIG"; then
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14271 $as_echo "$PKG_CONFIG" >&6; }
14272 else
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274 $as_echo "no" >&6; }
14275 fi
14276
14277
14278 fi
14279 if test -z "$ac_cv_path_PKG_CONFIG"; then
14280 ac_pt_PKG_CONFIG=$PKG_CONFIG
14281 # Extract the first word of "pkg-config", so it can be a program name with args.
14282 set dummy pkg-config; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 case $ac_pt_PKG_CONFIG in
14289 [\\/]* | ?:[\\/]*)
14290 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14291 ;;
14292 *)
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14303 fi
14304 done
14305 done
14306 IFS=$as_save_IFS
14307
14308 ;;
14309 esac
14310 fi
14311 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14312 if test -n "$ac_pt_PKG_CONFIG"; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14314 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14315 else
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317 $as_echo "no" >&6; }
14318 fi
14319
14320 if test "x$ac_pt_PKG_CONFIG" = x; then
14321 PKG_CONFIG=""
14322 else
14323 case $cross_compiling:$ac_tool_warned in
14324 yes:)
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14327 ac_tool_warned=yes ;;
14328 esac
14329 PKG_CONFIG=$ac_pt_PKG_CONFIG
14330 fi
14331 else
14332 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14333 fi
14334
14335 fi
14336 if test -n "$PKG_CONFIG"; then
14337 _pkg_min_version=0.9.0
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14339 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14340 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14342 $as_echo "yes" >&6; }
14343 else
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345 $as_echo "no" >&6; }
14346 PKG_CONFIG=""
14347 fi
14348 fi
14349
14350 pkg_failed=no
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
14352 $as_echo_n "checking for GLIB... " >&6; }
14353
14354 if test -n "$GLIB_CFLAGS"; then
14355 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
14356 elif test -n "$PKG_CONFIG"; then
14357 if test -n "$PKG_CONFIG" && \
14358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14.0\""; } >&5
14359 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14.0") 2>&5
14360 ac_status=$?
14361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14362 test $ac_status = 0; }; then
14363 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.14.0" 2>/dev/null`
14364 test "x$?" != "x0" && pkg_failed=yes
14365 else
14366 pkg_failed=yes
14367 fi
14368 else
14369 pkg_failed=untried
14370 fi
14371 if test -n "$GLIB_LIBS"; then
14372 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
14373 elif test -n "$PKG_CONFIG"; then
14374 if test -n "$PKG_CONFIG" && \
14375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14.0\""; } >&5
14376 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14.0") 2>&5
14377 ac_status=$?
14378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379 test $ac_status = 0; }; then
14380 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.14.0" 2>/dev/null`
14381 test "x$?" != "x0" && pkg_failed=yes
14382 else
14383 pkg_failed=yes
14384 fi
14385 else
14386 pkg_failed=untried
14387 fi
14388
14389
14390
14391 if test $pkg_failed = yes; then
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 $as_echo "no" >&6; }
14394
14395 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14396 _pkg_short_errors_supported=yes
14397 else
14398 _pkg_short_errors_supported=no
14399 fi
14400 if test $_pkg_short_errors_supported = yes; then
14401 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.14.0" 2>&1`
14402 else
14403 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.14.0" 2>&1`
14404 fi
14405 # Put the nasty error message in config.log where it belongs
14406 echo "$GLIB_PKG_ERRORS" >&5
14407
14408 as_fn_error $? "Package requirements (glib-2.0 >= 2.14.0) were not met:
14409
14410 $GLIB_PKG_ERRORS
14411
14412 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14413 installed software in a non-standard prefix.
14414
14415 Alternatively, you may set the environment variables GLIB_CFLAGS
14416 and GLIB_LIBS to avoid the need to call pkg-config.
14417 See the pkg-config man page for more details." "$LINENO" 5
14418 elif test $pkg_failed = untried; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 $as_echo "no" >&6; }
14421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14423 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14424 is in your PATH or set the PKG_CONFIG environment variable to the full
14425 path to pkg-config.
14426
14427 Alternatively, you may set the environment variables GLIB_CFLAGS
14428 and GLIB_LIBS to avoid the need to call pkg-config.
14429 See the pkg-config man page for more details.
14430
14431 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14432 See \`config.log' for more details" "$LINENO" 5; }
14433 else
14434 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
14435 GLIB_LIBS=$pkg_cv_GLIB_LIBS
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14437 $as_echo "yes" >&6; }
14438
14439 fi
14440
14441
14442
14443
14444 pkg_failed=no
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
14446 $as_echo_n "checking for PANGO... " >&6; }
14447
14448 if test -n "$PANGO_CFLAGS"; then
14449 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
14450 elif test -n "$PKG_CONFIG"; then
14451 if test -n "$PKG_CONFIG" && \
14452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.8.0 pangoxft >= 1.8.0\""; } >&5
14453 ($PKG_CONFIG --exists --print-errors "pango >= 1.8.0 pangoxft >= 1.8.0") 2>&5
14454 ac_status=$?
14455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14456 test $ac_status = 0; }; then
14457 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.8.0 pangoxft >= 1.8.0" 2>/dev/null`
14458 test "x$?" != "x0" && pkg_failed=yes
14459 else
14460 pkg_failed=yes
14461 fi
14462 else
14463 pkg_failed=untried
14464 fi
14465 if test -n "$PANGO_LIBS"; then
14466 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
14467 elif test -n "$PKG_CONFIG"; then
14468 if test -n "$PKG_CONFIG" && \
14469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.8.0 pangoxft >= 1.8.0\""; } >&5
14470 ($PKG_CONFIG --exists --print-errors "pango >= 1.8.0 pangoxft >= 1.8.0") 2>&5
14471 ac_status=$?
14472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14473 test $ac_status = 0; }; then
14474 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.8.0 pangoxft >= 1.8.0" 2>/dev/null`
14475 test "x$?" != "x0" && pkg_failed=yes
14476 else
14477 pkg_failed=yes
14478 fi
14479 else
14480 pkg_failed=untried
14481 fi
14482
14483
14484
14485 if test $pkg_failed = yes; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 $as_echo "no" >&6; }
14488
14489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14490 _pkg_short_errors_supported=yes
14491 else
14492 _pkg_short_errors_supported=no
14493 fi
14494 if test $_pkg_short_errors_supported = yes; then
14495 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.8.0 pangoxft >= 1.8.0" 2>&1`
14496 else
14497 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.8.0 pangoxft >= 1.8.0" 2>&1`
14498 fi
14499 # Put the nasty error message in config.log where it belongs
14500 echo "$PANGO_PKG_ERRORS" >&5
14501
14502 as_fn_error $? "Package requirements (pango >= 1.8.0 pangoxft >= 1.8.0) were not met:
14503
14504 $PANGO_PKG_ERRORS
14505
14506 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14507 installed software in a non-standard prefix.
14508
14509 Alternatively, you may set the environment variables PANGO_CFLAGS
14510 and PANGO_LIBS to avoid the need to call pkg-config.
14511 See the pkg-config man page for more details." "$LINENO" 5
14512 elif test $pkg_failed = untried; then
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14517 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14518 is in your PATH or set the PKG_CONFIG environment variable to the full
14519 path to pkg-config.
14520
14521 Alternatively, you may set the environment variables PANGO_CFLAGS
14522 and PANGO_LIBS to avoid the need to call pkg-config.
14523 See the pkg-config man page for more details.
14524
14525 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14526 See \`config.log' for more details" "$LINENO" 5; }
14527 else
14528 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
14529 PANGO_LIBS=$pkg_cv_PANGO_LIBS
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14531 $as_echo "yes" >&6; }
14532
14533 fi
14534
14535
14536
14537
14538 pkg_failed=no
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
14540 $as_echo_n "checking for XML... " >&6; }
14541
14542 if test -n "$XML_CFLAGS"; then
14543 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
14544 elif test -n "$PKG_CONFIG"; then
14545 if test -n "$PKG_CONFIG" && \
14546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
14547 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
14548 ac_status=$?
14549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14550 test $ac_status = 0; }; then
14551 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
14552 test "x$?" != "x0" && pkg_failed=yes
14553 else
14554 pkg_failed=yes
14555 fi
14556 else
14557 pkg_failed=untried
14558 fi
14559 if test -n "$XML_LIBS"; then
14560 pkg_cv_XML_LIBS="$XML_LIBS"
14561 elif test -n "$PKG_CONFIG"; then
14562 if test -n "$PKG_CONFIG" && \
14563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
14564 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
14565 ac_status=$?
14566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14567 test $ac_status = 0; }; then
14568 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
14569 test "x$?" != "x0" && pkg_failed=yes
14570 else
14571 pkg_failed=yes
14572 fi
14573 else
14574 pkg_failed=untried
14575 fi
14576
14577
14578
14579 if test $pkg_failed = yes; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14582
14583 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14584 _pkg_short_errors_supported=yes
14585 else
14586 _pkg_short_errors_supported=no
14587 fi
14588 if test $_pkg_short_errors_supported = yes; then
14589 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
14590 else
14591 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
14592 fi
14593 # Put the nasty error message in config.log where it belongs
14594 echo "$XML_PKG_ERRORS" >&5
14595
14596 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
14597
14598 $XML_PKG_ERRORS
14599
14600 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14601 installed software in a non-standard prefix.
14602
14603 Alternatively, you may set the environment variables XML_CFLAGS
14604 and XML_LIBS to avoid the need to call pkg-config.
14605 See the pkg-config man page for more details." "$LINENO" 5
14606 elif test $pkg_failed = untried; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608 $as_echo "no" >&6; }
14609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14611 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14612 is in your PATH or set the PKG_CONFIG environment variable to the full
14613 path to pkg-config.
14614
14615 Alternatively, you may set the environment variables XML_CFLAGS
14616 and XML_LIBS to avoid the need to call pkg-config.
14617 See the pkg-config man page for more details.
14618
14619 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14620 See \`config.log' for more details" "$LINENO" 5; }
14621 else
14622 XML_CFLAGS=$pkg_cv_XML_CFLAGS
14623 XML_LIBS=$pkg_cv_XML_LIBS
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14625 $as_echo "yes" >&6; }
14626
14627 fi
14628
14629
14630
14631 # Check whether --enable-startup-notification was given.
14632 if test "${enable_startup_notification+set}" = set; then :
14633 enableval=$enable_startup_notification; enable_sn=$enableval
14634 else
14635 enable_sn=yes
14636
14637 fi
14638
14639
14640 if test "$enable_sn" = yes; then
14641
14642 pkg_failed=no
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSN" >&5
14644 $as_echo_n "checking for LIBSN... " >&6; }
14645
14646 if test -n "$LIBSN_CFLAGS"; then
14647 pkg_cv_LIBSN_CFLAGS="$LIBSN_CFLAGS"
14648 elif test -n "$PKG_CONFIG"; then
14649 if test -n "$PKG_CONFIG" && \
14650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.8\""; } >&5
14651 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.8") 2>&5
14652 ac_status=$?
14653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654 test $ac_status = 0; }; then
14655 pkg_cv_LIBSN_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= 0.8" 2>/dev/null`
14656 test "x$?" != "x0" && pkg_failed=yes
14657 else
14658 pkg_failed=yes
14659 fi
14660 else
14661 pkg_failed=untried
14662 fi
14663 if test -n "$LIBSN_LIBS"; then
14664 pkg_cv_LIBSN_LIBS="$LIBSN_LIBS"
14665 elif test -n "$PKG_CONFIG"; then
14666 if test -n "$PKG_CONFIG" && \
14667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.8\""; } >&5
14668 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.8") 2>&5
14669 ac_status=$?
14670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14671 test $ac_status = 0; }; then
14672 pkg_cv_LIBSN_LIBS=`$PKG_CONFIG --libs "libstartup-notification-1.0 >= 0.8" 2>/dev/null`
14673 test "x$?" != "x0" && pkg_failed=yes
14674 else
14675 pkg_failed=yes
14676 fi
14677 else
14678 pkg_failed=untried
14679 fi
14680
14681
14682
14683 if test $pkg_failed = yes; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685 $as_echo "no" >&6; }
14686
14687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14688 _pkg_short_errors_supported=yes
14689 else
14690 _pkg_short_errors_supported=no
14691 fi
14692 if test $_pkg_short_errors_supported = yes; then
14693 LIBSN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libstartup-notification-1.0 >= 0.8" 2>&1`
14694 else
14695 LIBSN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libstartup-notification-1.0 >= 0.8" 2>&1`
14696 fi
14697 # Put the nasty error message in config.log where it belongs
14698 echo "$LIBSN_PKG_ERRORS" >&5
14699
14700
14701 sn_found=no
14702
14703
14704 elif test $pkg_failed = untried; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14707
14708 sn_found=no
14709
14710
14711 else
14712 LIBSN_CFLAGS=$pkg_cv_LIBSN_CFLAGS
14713 LIBSN_LIBS=$pkg_cv_LIBSN_LIBS
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14715 $as_echo "yes" >&6; }
14716
14717
14718 $as_echo "#define USE_LIBSN 1" >>confdefs.h
14719
14720
14721
14722 sn_found=yes
14723
14724 fi
14725 else
14726 sn_found=no
14727 fi
14728
14729 # Check whether --enable-xcursor was given.
14730 if test "${enable_xcursor+set}" = set; then :
14731 enableval=$enable_xcursor; enable_xcursor=$enableval
14732 else
14733 enable_xcursor=yes
14734
14735 fi
14736
14737
14738 if test "$enable_xcursor" = yes; then
14739
14740 pkg_failed=no
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5
14742 $as_echo_n "checking for XCURSOR... " >&6; }
14743
14744 if test -n "$XCURSOR_CFLAGS"; then
14745 pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS"
14746 elif test -n "$PKG_CONFIG"; then
14747 if test -n "$PKG_CONFIG" && \
14748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5
14749 ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5
14750 ac_status=$?
14751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14752 test $ac_status = 0; }; then
14753 pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xcursor" 2>/dev/null`
14754 test "x$?" != "x0" && pkg_failed=yes
14755 else
14756 pkg_failed=yes
14757 fi
14758 else
14759 pkg_failed=untried
14760 fi
14761 if test -n "$XCURSOR_LIBS"; then
14762 pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS"
14763 elif test -n "$PKG_CONFIG"; then
14764 if test -n "$PKG_CONFIG" && \
14765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5
14766 ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5
14767 ac_status=$?
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }; then
14770 pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xcursor" 2>/dev/null`
14771 test "x$?" != "x0" && pkg_failed=yes
14772 else
14773 pkg_failed=yes
14774 fi
14775 else
14776 pkg_failed=untried
14777 fi
14778
14779
14780
14781 if test $pkg_failed = yes; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783 $as_echo "no" >&6; }
14784
14785 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14786 _pkg_short_errors_supported=yes
14787 else
14788 _pkg_short_errors_supported=no
14789 fi
14790 if test $_pkg_short_errors_supported = yes; then
14791 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcursor" 2>&1`
14792 else
14793 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcursor" 2>&1`
14794 fi
14795 # Put the nasty error message in config.log where it belongs
14796 echo "$XCURSOR_PKG_ERRORS" >&5
14797
14798
14799 xcursor_found=no
14800
14801
14802 elif test $pkg_failed = untried; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804 $as_echo "no" >&6; }
14805
14806 xcursor_found=no
14807
14808
14809 else
14810 XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS
14811 XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14813 $as_echo "yes" >&6; }
14814
14815
14816 $as_echo "#define USE_XCURSOR 1" >>confdefs.h
14817
14818
14819
14820 xcursor_found=yes
14821
14822 fi
14823 else
14824 xcursor_found=no
14825 fi
14826
14827 # Check whether --enable-imlib2 was given.
14828 if test "${enable_imlib2+set}" = set; then :
14829 enableval=$enable_imlib2; enable_imlib2=$enableval
14830 else
14831 enable_imlib2=yes
14832
14833 fi
14834
14835
14836 if test "$enable_imlib2" = yes; then
14837
14838 pkg_failed=no
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMLIB2" >&5
14840 $as_echo_n "checking for IMLIB2... " >&6; }
14841
14842 if test -n "$IMLIB2_CFLAGS"; then
14843 pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS"
14844 elif test -n "$PKG_CONFIG"; then
14845 if test -n "$PKG_CONFIG" && \
14846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
14847 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
14848 ac_status=$?
14849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14850 test $ac_status = 0; }; then
14851 pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
14852 test "x$?" != "x0" && pkg_failed=yes
14853 else
14854 pkg_failed=yes
14855 fi
14856 else
14857 pkg_failed=untried
14858 fi
14859 if test -n "$IMLIB2_LIBS"; then
14860 pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS"
14861 elif test -n "$PKG_CONFIG"; then
14862 if test -n "$PKG_CONFIG" && \
14863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
14864 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
14865 ac_status=$?
14866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 test $ac_status = 0; }; then
14868 pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
14869 test "x$?" != "x0" && pkg_failed=yes
14870 else
14871 pkg_failed=yes
14872 fi
14873 else
14874 pkg_failed=untried
14875 fi
14876
14877
14878
14879 if test $pkg_failed = yes; then
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14882
14883 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14884 _pkg_short_errors_supported=yes
14885 else
14886 _pkg_short_errors_supported=no
14887 fi
14888 if test $_pkg_short_errors_supported = yes; then
14889 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "imlib2" 2>&1`
14890 else
14891 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "imlib2" 2>&1`
14892 fi
14893 # Put the nasty error message in config.log where it belongs
14894 echo "$IMLIB2_PKG_ERRORS" >&5
14895
14896
14897 imlib2_found=no
14898
14899
14900 elif test $pkg_failed = untried; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14903
14904 imlib2_found=no
14905
14906
14907 else
14908 IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS
14909 IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14911 $as_echo "yes" >&6; }
14912
14913
14914 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
14915
14916
14917
14918 # export it for the pkg-config file
14919 PKG_CONFIG_IMLIB=imlib2
14920
14921 imlib2_found=yes
14922
14923 fi
14924 else
14925 imlib2_found=no
14926 fi
14927
14928 if test $imlib2_found = yes; then
14929 USE_IMLIB2_TRUE=
14930 USE_IMLIB2_FALSE='#'
14931 else
14932 USE_IMLIB2_TRUE='#'
14933 USE_IMLIB2_FALSE=
14934 fi
14935
14936
14937 # Check whether --enable-librsvg was given.
14938 if test "${enable_librsvg+set}" = set; then :
14939 enableval=$enable_librsvg; enable_librsvg=$enableval
14940 else
14941 enable_librsvg=yes
14942
14943 fi
14944
14945
14946 if test "$enable_librsvg" = yes; then
14947
14948 pkg_failed=no
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
14950 $as_echo_n "checking for LIBRSVG... " >&6; }
14951
14952 if test -n "$LIBRSVG_CFLAGS"; then
14953 pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
14954 elif test -n "$PKG_CONFIG"; then
14955 if test -n "$PKG_CONFIG" && \
14956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\""; } >&5
14957 ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5
14958 ac_status=$?
14959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14960 test $ac_status = 0; }; then
14961 pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0" 2>/dev/null`
14962 test "x$?" != "x0" && pkg_failed=yes
14963 else
14964 pkg_failed=yes
14965 fi
14966 else
14967 pkg_failed=untried
14968 fi
14969 if test -n "$LIBRSVG_LIBS"; then
14970 pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
14971 elif test -n "$PKG_CONFIG"; then
14972 if test -n "$PKG_CONFIG" && \
14973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\""; } >&5
14974 ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5
14975 ac_status=$?
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; }; then
14978 pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0" 2>/dev/null`
14979 test "x$?" != "x0" && pkg_failed=yes
14980 else
14981 pkg_failed=yes
14982 fi
14983 else
14984 pkg_failed=untried
14985 fi
14986
14987
14988
14989 if test $pkg_failed = yes; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991 $as_echo "no" >&6; }
14992
14993 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14994 _pkg_short_errors_supported=yes
14995 else
14996 _pkg_short_errors_supported=no
14997 fi
14998 if test $_pkg_short_errors_supported = yes; then
14999 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0" 2>&1`
15000 else
15001 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0" 2>&1`
15002 fi
15003 # Put the nasty error message in config.log where it belongs
15004 echo "$LIBRSVG_PKG_ERRORS" >&5
15005
15006
15007 librsvg_found=no
15008
15009
15010 elif test $pkg_failed = untried; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 $as_echo "no" >&6; }
15013
15014 librsvg_found=no
15015
15016
15017 else
15018 LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
15019 LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15021 $as_echo "yes" >&6; }
15022
15023
15024 $as_echo "#define USE_LIBRSVG 1" >>confdefs.h
15025
15026
15027
15028 # export it for the pkg-config file
15029 PKG_CONFIG_LIBRSVG=librsvg-2.0
15030
15031 librsvg_found=yes
15032
15033 fi
15034 else
15035 librsvg_found=no
15036 fi
15037
15038 if test $librsvg_found = yes; then
15039 USE_LIBRSVG_TRUE=
15040 USE_LIBRSVG_FALSE='#'
15041 else
15042 USE_LIBRSVG_TRUE='#'
15043 USE_LIBRSVG_FALSE=
15044 fi
15045
15046
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15048 $as_echo_n "checking for X... " >&6; }
15049
15050
15051 # Check whether --with-x was given.
15052 if test "${with_x+set}" = set; then :
15053 withval=$with_x;
15054 fi
15055
15056 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15057 if test "x$with_x" = xno; then
15058 # The user explicitly disabled X.
15059 have_x=disabled
15060 else
15061 case $x_includes,$x_libraries in #(
15062 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
15063 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 # One or both of the vars are not set, and there is no cached value.
15067 ac_x_includes=no ac_x_libraries=no
15068 rm -f -r conftest.dir
15069 if mkdir conftest.dir; then
15070 cd conftest.dir
15071 cat >Imakefile <<'_ACEOF'
15072 incroot:
15073 @echo incroot='${INCROOT}'
15074 usrlibdir:
15075 @echo usrlibdir='${USRLIBDIR}'
15076 libdir:
15077 @echo libdir='${LIBDIR}'
15078 _ACEOF
15079 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15080 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15081 for ac_var in incroot usrlibdir libdir; do
15082 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15083 done
15084 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15085 for ac_extension in a so sl dylib la dll; do
15086 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15087 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15088 ac_im_usrlibdir=$ac_im_libdir; break
15089 fi
15090 done
15091 # Screen out bogus values from the imake configuration. They are
15092 # bogus both because they are the default anyway, and because
15093 # using them would break gcc on systems where it needs fixed includes.
15094 case $ac_im_incroot in
15095 /usr/include) ac_x_includes= ;;
15096 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15097 esac
15098 case $ac_im_usrlibdir in
15099 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15100 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15101 esac
15102 fi
15103 cd ..
15104 rm -f -r conftest.dir
15105 fi
15106
15107 # Standard set of common directories for X headers.
15108 # Check X11 before X11Rn because it is often a symlink to the current release.
15109 ac_x_header_dirs='
15110 /usr/X11/include
15111 /usr/X11R7/include
15112 /usr/X11R6/include
15113 /usr/X11R5/include
15114 /usr/X11R4/include
15115
15116 /usr/include/X11
15117 /usr/include/X11R7
15118 /usr/include/X11R6
15119 /usr/include/X11R5
15120 /usr/include/X11R4
15121
15122 /usr/local/X11/include
15123 /usr/local/X11R7/include
15124 /usr/local/X11R6/include
15125 /usr/local/X11R5/include
15126 /usr/local/X11R4/include
15127
15128 /usr/local/include/X11
15129 /usr/local/include/X11R7
15130 /usr/local/include/X11R6
15131 /usr/local/include/X11R5
15132 /usr/local/include/X11R4
15133
15134 /usr/X386/include
15135 /usr/x386/include
15136 /usr/XFree86/include/X11
15137
15138 /usr/include
15139 /usr/local/include
15140 /usr/unsupported/include
15141 /usr/athena/include
15142 /usr/local/x11r5/include
15143 /usr/lpp/Xamples/include
15144
15145 /usr/openwin/include
15146 /usr/openwin/share/include'
15147
15148 if test "$ac_x_includes" = no; then
15149 # Guess where to find include files, by looking for Xlib.h.
15150 # First, try using that file with no special directory specified.
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 #include <X11/Xlib.h>
15154 _ACEOF
15155 if ac_fn_c_try_cpp "$LINENO"; then :
15156 # We can compile using X headers with no special include directory.
15157 ac_x_includes=
15158 else
15159 for ac_dir in $ac_x_header_dirs; do
15160 if test -r "$ac_dir/X11/Xlib.h"; then
15161 ac_x_includes=$ac_dir
15162 break
15163 fi
15164 done
15165 fi
15166 rm -f conftest.err conftest.i conftest.$ac_ext
15167 fi # $ac_x_includes = no
15168
15169 if test "$ac_x_libraries" = no; then
15170 # Check for the libraries.
15171 # See if we find them without any special options.
15172 # Don't add to $LIBS permanently.
15173 ac_save_LIBS=$LIBS
15174 LIBS="-lX11 $LIBS"
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #include <X11/Xlib.h>
15178 int
15179 main ()
15180 {
15181 XrmInitialize ()
15182 ;
15183 return 0;
15184 }
15185 _ACEOF
15186 if ac_fn_c_try_link "$LINENO"; then :
15187 LIBS=$ac_save_LIBS
15188 # We can link X programs with no special library path.
15189 ac_x_libraries=
15190 else
15191 LIBS=$ac_save_LIBS
15192 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15193 do
15194 # Don't even attempt the hair of trying to link an X program!
15195 for ac_extension in a so sl dylib la dll; do
15196 if test -r "$ac_dir/libX11.$ac_extension"; then
15197 ac_x_libraries=$ac_dir
15198 break 2
15199 fi
15200 done
15201 done
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 fi # $ac_x_libraries = no
15206
15207 case $ac_x_includes,$ac_x_libraries in #(
15208 no,* | *,no | *\'*)
15209 # Didn't find X, or a directory has "'" in its name.
15210 ac_cv_have_x="have_x=no";; #(
15211 *)
15212 # Record where we found X for the cache.
15213 ac_cv_have_x="have_x=yes\
15214 ac_x_includes='$ac_x_includes'\
15215 ac_x_libraries='$ac_x_libraries'"
15216 esac
15217 fi
15218 ;; #(
15219 *) have_x=yes;;
15220 esac
15221 eval "$ac_cv_have_x"
15222 fi # $with_x != no
15223
15224 if test "$have_x" != yes; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15226 $as_echo "$have_x" >&6; }
15227 no_x=yes
15228 else
15229 # If each of the values was on the command line, it overrides each guess.
15230 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15231 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15232 # Update the cache value to reflect the command line values.
15233 ac_cv_have_x="have_x=yes\
15234 ac_x_includes='$x_includes'\
15235 ac_x_libraries='$x_libraries'"
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15237 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15238 fi
15239
15240
15241 if test "$no_x" = yes; then
15242 # Not all programs may use this symbol, but it does not hurt to define it.
15243
15244 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
15245
15246 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
15247 else
15248 if test -n "$x_includes"; then
15249 X_CFLAGS="$X_CFLAGS -I$x_includes"
15250 fi
15251
15252 # It would also be nice to do this for all -L options, not just this one.
15253 if test -n "$x_libraries"; then
15254 X_LIBS="$X_LIBS -L$x_libraries"
15255 # For Solaris; some versions of Sun CC require a space after -R and
15256 # others require no space. Words are not sufficient . . . .
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
15258 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
15259 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
15260 ac_xsave_c_werror_flag=$ac_c_werror_flag
15261 ac_c_werror_flag=yes
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264
15265 int
15266 main ()
15267 {
15268
15269 ;
15270 return 0;
15271 }
15272 _ACEOF
15273 if ac_fn_c_try_link "$LINENO"; then :
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 $as_echo "no" >&6; }
15276 X_LIBS="$X_LIBS -R$x_libraries"
15277 else
15278 LIBS="$ac_xsave_LIBS -R $x_libraries"
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281
15282 int
15283 main ()
15284 {
15285
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 if ac_fn_c_try_link "$LINENO"; then :
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15292 $as_echo "yes" >&6; }
15293 X_LIBS="$X_LIBS -R $x_libraries"
15294 else
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
15296 $as_echo "neither works" >&6; }
15297 fi
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15300 fi
15301 rm -f core conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
15303 ac_c_werror_flag=$ac_xsave_c_werror_flag
15304 LIBS=$ac_xsave_LIBS
15305 fi
15306
15307 # Check for system-dependent libraries X programs must link with.
15308 # Do this before checking for the system-independent R6 libraries
15309 # (-lICE), since we may need -lsocket or whatever for X linking.
15310
15311 if test "$ISC" = yes; then
15312 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
15313 else
15314 # Martyn Johnson says this is needed for Ultrix, if the X
15315 # libraries were built with DECnet support. And Karl Berry says
15316 # the Alpha needs dnet_stub (dnet does not exist).
15317 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15320
15321 /* Override any GCC internal prototype to avoid an error.
15322 Use char because int might match the return type of a GCC
15323 builtin and then its argument prototype would still apply. */
15324 #ifdef __cplusplus
15325 extern "C"
15326 #endif
15327 char XOpenDisplay ();
15328 int
15329 main ()
15330 {
15331 return XOpenDisplay ();
15332 ;
15333 return 0;
15334 }
15335 _ACEOF
15336 if ac_fn_c_try_link "$LINENO"; then :
15337
15338 else
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
15340 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
15341 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
15342 $as_echo_n "(cached) " >&6
15343 else
15344 ac_check_lib_save_LIBS=$LIBS
15345 LIBS="-ldnet $LIBS"
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15352 #ifdef __cplusplus
15353 extern "C"
15354 #endif
15355 char dnet_ntoa ();
15356 int
15357 main ()
15358 {
15359 return dnet_ntoa ();
15360 ;
15361 return 0;
15362 }
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"; then :
15365 ac_cv_lib_dnet_dnet_ntoa=yes
15366 else
15367 ac_cv_lib_dnet_dnet_ntoa=no
15368 fi
15369 rm -f core conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
15371 LIBS=$ac_check_lib_save_LIBS
15372 fi
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
15374 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
15375 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
15376 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
15377 fi
15378
15379 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
15381 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
15382 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-ldnet_stub $LIBS"
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char dnet_ntoa ();
15397 int
15398 main ()
15399 {
15400 return dnet_ntoa ();
15401 ;
15402 return 0;
15403 }
15404 _ACEOF
15405 if ac_fn_c_try_link "$LINENO"; then :
15406 ac_cv_lib_dnet_stub_dnet_ntoa=yes
15407 else
15408 ac_cv_lib_dnet_stub_dnet_ntoa=no
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_check_lib_save_LIBS
15413 fi
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
15415 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
15416 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
15417 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15418 fi
15419
15420 fi
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS="$ac_xsave_LIBS"
15425
15426 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
15427 # to get the SysV transport functions.
15428 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
15429 # needs -lnsl.
15430 # The nsl library prevents programs from opening the X display
15431 # on Irix 5.2, according to T.E. Dickey.
15432 # The functions gethostbyname, getservbyname, and inet_addr are
15433 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
15434 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15435 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15436
15437 fi
15438
15439 if test $ac_cv_func_gethostbyname = no; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15441 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15442 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15443 $as_echo_n "(cached) " >&6
15444 else
15445 ac_check_lib_save_LIBS=$LIBS
15446 LIBS="-lnsl $LIBS"
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 char gethostbyname ();
15457 int
15458 main ()
15459 {
15460 return gethostbyname ();
15461 ;
15462 return 0;
15463 }
15464 _ACEOF
15465 if ac_fn_c_try_link "$LINENO"; then :
15466 ac_cv_lib_nsl_gethostbyname=yes
15467 else
15468 ac_cv_lib_nsl_gethostbyname=no
15469 fi
15470 rm -f core conftest.err conftest.$ac_objext \
15471 conftest$ac_exeext conftest.$ac_ext
15472 LIBS=$ac_check_lib_save_LIBS
15473 fi
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15475 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15476 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15478 fi
15479
15480 if test $ac_cv_lib_nsl_gethostbyname = no; then
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
15482 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
15483 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
15484 $as_echo_n "(cached) " >&6
15485 else
15486 ac_check_lib_save_LIBS=$LIBS
15487 LIBS="-lbsd $LIBS"
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490
15491 /* Override any GCC internal prototype to avoid an error.
15492 Use char because int might match the return type of a GCC
15493 builtin and then its argument prototype would still apply. */
15494 #ifdef __cplusplus
15495 extern "C"
15496 #endif
15497 char gethostbyname ();
15498 int
15499 main ()
15500 {
15501 return gethostbyname ();
15502 ;
15503 return 0;
15504 }
15505 _ACEOF
15506 if ac_fn_c_try_link "$LINENO"; then :
15507 ac_cv_lib_bsd_gethostbyname=yes
15508 else
15509 ac_cv_lib_bsd_gethostbyname=no
15510 fi
15511 rm -f core conftest.err conftest.$ac_objext \
15512 conftest$ac_exeext conftest.$ac_ext
15513 LIBS=$ac_check_lib_save_LIBS
15514 fi
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
15516 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
15517 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
15518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
15519 fi
15520
15521 fi
15522 fi
15523
15524 # [email protected] says without -lsocket,
15525 # socket/setsockopt and other routines are undefined under SCO ODT
15526 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15527 # on later versions), says Simon Leinen: it contains gethostby*
15528 # variants that don't use the name server (or something). -lsocket
15529 # must be given before -lnsl if both are needed. We assume that
15530 # if connect needs -lnsl, so does gethostbyname.
15531 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15532 if test "x$ac_cv_func_connect" = xyes; then :
15533
15534 fi
15535
15536 if test $ac_cv_func_connect = no; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15538 $as_echo_n "checking for connect in -lsocket... " >&6; }
15539 if ${ac_cv_lib_socket_connect+:} false; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 ac_check_lib_save_LIBS=$LIBS
15543 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15546
15547 /* Override any GCC internal prototype to avoid an error.
15548 Use char because int might match the return type of a GCC
15549 builtin and then its argument prototype would still apply. */
15550 #ifdef __cplusplus
15551 extern "C"
15552 #endif
15553 char connect ();
15554 int
15555 main ()
15556 {
15557 return connect ();
15558 ;
15559 return 0;
15560 }
15561 _ACEOF
15562 if ac_fn_c_try_link "$LINENO"; then :
15563 ac_cv_lib_socket_connect=yes
15564 else
15565 ac_cv_lib_socket_connect=no
15566 fi
15567 rm -f core conftest.err conftest.$ac_objext \
15568 conftest$ac_exeext conftest.$ac_ext
15569 LIBS=$ac_check_lib_save_LIBS
15570 fi
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15572 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15573 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15574 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15575 fi
15576
15577 fi
15578
15579 # Guillermo Gomez says -lposix is necessary on A/UX.
15580 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
15581 if test "x$ac_cv_func_remove" = xyes; then :
15582
15583 fi
15584
15585 if test $ac_cv_func_remove = no; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
15587 $as_echo_n "checking for remove in -lposix... " >&6; }
15588 if ${ac_cv_lib_posix_remove+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 ac_check_lib_save_LIBS=$LIBS
15592 LIBS="-lposix $LIBS"
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595
15596 /* Override any GCC internal prototype to avoid an error.
15597 Use char because int might match the return type of a GCC
15598 builtin and then its argument prototype would still apply. */
15599 #ifdef __cplusplus
15600 extern "C"
15601 #endif
15602 char remove ();
15603 int
15604 main ()
15605 {
15606 return remove ();
15607 ;
15608 return 0;
15609 }
15610 _ACEOF
15611 if ac_fn_c_try_link "$LINENO"; then :
15612 ac_cv_lib_posix_remove=yes
15613 else
15614 ac_cv_lib_posix_remove=no
15615 fi
15616 rm -f core conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15618 LIBS=$ac_check_lib_save_LIBS
15619 fi
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
15621 $as_echo "$ac_cv_lib_posix_remove" >&6; }
15622 if test "x$ac_cv_lib_posix_remove" = xyes; then :
15623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15624 fi
15625
15626 fi
15627
15628 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15629 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
15630 if test "x$ac_cv_func_shmat" = xyes; then :
15631
15632 fi
15633
15634 if test $ac_cv_func_shmat = no; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
15636 $as_echo_n "checking for shmat in -lipc... " >&6; }
15637 if ${ac_cv_lib_ipc_shmat+:} false; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 ac_check_lib_save_LIBS=$LIBS
15641 LIBS="-lipc $LIBS"
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644
15645 /* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15648 #ifdef __cplusplus
15649 extern "C"
15650 #endif
15651 char shmat ();
15652 int
15653 main ()
15654 {
15655 return shmat ();
15656 ;
15657 return 0;
15658 }
15659 _ACEOF
15660 if ac_fn_c_try_link "$LINENO"; then :
15661 ac_cv_lib_ipc_shmat=yes
15662 else
15663 ac_cv_lib_ipc_shmat=no
15664 fi
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15667 LIBS=$ac_check_lib_save_LIBS
15668 fi
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
15670 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
15671 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
15672 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15673 fi
15674
15675 fi
15676 fi
15677
15678 # Check for libraries that X11R6 Xt/Xaw programs need.
15679 ac_save_LDFLAGS=$LDFLAGS
15680 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15681 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15682 # check for ICE first), but we must link in the order -lSM -lICE or
15683 # we get undefined symbols. So assume we have SM if we have ICE.
15684 # These have to be linked with before -lX11, unlike the other
15685 # libraries we check for below, so use a different variable.
15686 # John Interrante, Karl Berry
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
15688 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
15689 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
15690 $as_echo_n "(cached) " >&6
15691 else
15692 ac_check_lib_save_LIBS=$LIBS
15693 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696
15697 /* Override any GCC internal prototype to avoid an error.
15698 Use char because int might match the return type of a GCC
15699 builtin and then its argument prototype would still apply. */
15700 #ifdef __cplusplus
15701 extern "C"
15702 #endif
15703 char IceConnectionNumber ();
15704 int
15705 main ()
15706 {
15707 return IceConnectionNumber ();
15708 ;
15709 return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_link "$LINENO"; then :
15713 ac_cv_lib_ICE_IceConnectionNumber=yes
15714 else
15715 ac_cv_lib_ICE_IceConnectionNumber=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext \
15718 conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_check_lib_save_LIBS
15720 fi
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15722 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15723 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
15724 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15725 fi
15726
15727 LDFLAGS=$ac_save_LDFLAGS
15728
15729 fi
15730
15731 test "$no_x" = "yes" && \
15732 as_fn_error $? "The X Window System could not be found." "$LINENO" 5
15733
15734 # Store these
15735 OLDLIBS=$LIBS
15736 OLDCPPFLAGS=$CPPFLAGS
15737
15738 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15739 X_LIBS="$X_PRE_LIBS $X_LIBS -lX11"
15740 LIBS="$LIBS $X_LIBS"
15741
15742 # Check for required functions in -lX11
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
15744 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
15745 if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 ac_check_lib_save_LIBS=$LIBS
15749 LIBS="-lX11 $LIBS"
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752
15753 /* Override any GCC internal prototype to avoid an error.
15754 Use char because int might match the return type of a GCC
15755 builtin and then its argument prototype would still apply. */
15756 #ifdef __cplusplus
15757 extern "C"
15758 #endif
15759 char XOpenDisplay ();
15760 int
15761 main ()
15762 {
15763 return XOpenDisplay ();
15764 ;
15765 return 0;
15766 }
15767 _ACEOF
15768 if ac_fn_c_try_link "$LINENO"; then :
15769 ac_cv_lib_X11_XOpenDisplay=yes
15770 else
15771 ac_cv_lib_X11_XOpenDisplay=no
15772 fi
15773 rm -f core conftest.err conftest.$ac_objext \
15774 conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15776 fi
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
15778 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
15779 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
15780 cat >>confdefs.h <<_ACEOF
15781 #define HAVE_LIBX11 1
15782 _ACEOF
15783
15784 LIBS="-lX11 $LIBS"
15785
15786 else
15787 as_fn_error $? "Could not find XOpenDisplay in -lX11." "$LINENO" 5
15788
15789 fi
15790
15791
15792 # Restore the old values. Use X_CFLAGS and X_LIBS in
15793 # the Makefiles
15794 LIBS=$OLDLIBS
15795 CPPFLAGS=$OLDCPPFLAGS
15796
15797
15798
15799
15800 # Check whether --enable-session-management was given.
15801 if test "${enable_session_management+set}" = set; then :
15802 enableval=$enable_session_management; SM=$enableval
15803 else
15804 SM="yes"
15805 fi
15806
15807
15808 if test "$SM" = "yes"; then
15809 # Store these
15810 OLDLIBS=$LIBS
15811 OLDCPPFLAGS=$CPPFLAGS
15812
15813 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15814 LIBS="$LIBS $X_LIBS"
15815
15816 SM="no"
15817
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcSaveYourselfDone in -lSM" >&5
15819 $as_echo_n "checking for SmcSaveYourselfDone in -lSM... " >&6; }
15820 if ${ac_cv_lib_SM_SmcSaveYourselfDone+:} false; then :
15821 $as_echo_n "(cached) " >&6
15822 else
15823 ac_check_lib_save_LIBS=$LIBS
15824 LIBS="-lSM $LIBS"
15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h. */
15827
15828 /* Override any GCC internal prototype to avoid an error.
15829 Use char because int might match the return type of a GCC
15830 builtin and then its argument prototype would still apply. */
15831 #ifdef __cplusplus
15832 extern "C"
15833 #endif
15834 char SmcSaveYourselfDone ();
15835 int
15836 main ()
15837 {
15838 return SmcSaveYourselfDone ();
15839 ;
15840 return 0;
15841 }
15842 _ACEOF
15843 if ac_fn_c_try_link "$LINENO"; then :
15844 ac_cv_lib_SM_SmcSaveYourselfDone=yes
15845 else
15846 ac_cv_lib_SM_SmcSaveYourselfDone=no
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15850 LIBS=$ac_check_lib_save_LIBS
15851 fi
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcSaveYourselfDone" >&5
15853 $as_echo "$ac_cv_lib_SM_SmcSaveYourselfDone" >&6; }
15854 if test "x$ac_cv_lib_SM_SmcSaveYourselfDone" = xyes; then :
15855
15856 for ac_header in X11/SM/SMlib.h
15857 do :
15858 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
15859 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
15860 cat >>confdefs.h <<_ACEOF
15861 #define HAVE_X11_SM_SMLIB_H 1
15862 _ACEOF
15863
15864 SM_CFLAGS="$X_CFLAGS"
15865 SM_LIBS="-lSM -lICE"
15866
15867 $as_echo "#define USE_SM 1" >>confdefs.h
15868
15869
15870
15871 SM="yes"
15872
15873 fi
15874
15875 done
15876
15877
15878 fi
15879
15880
15881 LIBS=$OLDLIBS
15882 CPPFLAGS=$OLDCPPFLAGS
15883 fi
15884
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for session management support" >&5
15886 $as_echo_n "checking for session management support... " >&6; }
15887 if test "$SM" = "yes"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15889 $as_echo "yes" >&6; }
15890 else
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15892 $as_echo "no" >&6; }
15893 fi
15894
15895
15896 #EFENCE_LIBS=-lefence
15897 EFENCE_LIBS=""
15898
15899
15900
15901
15902
15903 # Check whether --enable-xkb was given.
15904 if test "${enable_xkb+set}" = set; then :
15905 enableval=$enable_xkb; USE=$enableval
15906 else
15907 USE="yes"
15908 fi
15909
15910
15911 if test "$USE" = "yes"; then
15912 # Store these
15913 OLDLIBS=$LIBS
15914 OLDCPPFLAGS=$CPPFLAGS
15915
15916 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15917 LIBS="$LIBS $X_LIBS"
15918
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbBell in -lX11" >&5
15920 $as_echo_n "checking for XkbBell in -lX11... " >&6; }
15921 if ${ac_cv_lib_X11_XkbBell+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923 else
15924 ac_check_lib_save_LIBS=$LIBS
15925 LIBS="-lX11 $LIBS"
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928
15929 /* Override any GCC internal prototype to avoid an error.
15930 Use char because int might match the return type of a GCC
15931 builtin and then its argument prototype would still apply. */
15932 #ifdef __cplusplus
15933 extern "C"
15934 #endif
15935 char XkbBell ();
15936 int
15937 main ()
15938 {
15939 return XkbBell ();
15940 ;
15941 return 0;
15942 }
15943 _ACEOF
15944 if ac_fn_c_try_link "$LINENO"; then :
15945 ac_cv_lib_X11_XkbBell=yes
15946 else
15947 ac_cv_lib_X11_XkbBell=no
15948 fi
15949 rm -f core conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15951 LIBS=$ac_check_lib_save_LIBS
15952 fi
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbBell" >&5
15954 $as_echo "$ac_cv_lib_X11_XkbBell" >&6; }
15955 if test "x$ac_cv_lib_X11_XkbBell" = xyes; then :
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/XKBlib.h" >&5
15957 $as_echo_n "checking for X11/XKBlib.h... " >&6; }
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960
15961 #include <X11/Xlib.h>
15962 #include <X11/Xutil.h>
15963 #include <X11/XKBlib.h>
15964
15965 int
15966 main ()
15967 {
15968
15969 Display *d;
15970 Window w;
15971 XkbBell(d, w, 0, 0);
15972
15973 ;
15974 return 0;
15975 }
15976 _ACEOF
15977 if ac_fn_c_try_link "$LINENO"; then :
15978
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15980 $as_echo "yes" >&6; }
15981 XKB="yes"
15982
15983 $as_echo "#define XKB 1" >>confdefs.h
15984
15985
15986 XKB_CFLAGS=""
15987 XKB_LIBS=""
15988
15989
15990
15991 else
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994 $as_echo "no" >&6; }
15995 XKB="no"
15996
15997 fi
15998 rm -f core conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16000
16001 fi
16002
16003
16004 LIBS=$OLDLIBS
16005 CPPFLAGS=$OLDCPPFLAGS
16006 fi
16007
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Xkb extension" >&5
16009 $as_echo_n "checking for the Xkb extension... " >&6; }
16010 if test "$XKB" = "yes"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16012 $as_echo "yes" >&6; }
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 fi
16017
16018
16019
16020
16021 # Check whether --enable-xrandr was given.
16022 if test "${enable_xrandr+set}" = set; then :
16023 enableval=$enable_xrandr; USE=$enableval
16024 else
16025 USE="yes"
16026 fi
16027
16028
16029 if test "$USE" = "yes"; then
16030 # Store these
16031 OLDLIBS=$LIBS
16032 OLDCPPFLAGS=$CPPFLAGS
16033
16034 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16035 LIBS="$LIBS $X_LIBS -lXext -lXrender -lXrandr"
16036
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRSelectInput in -lXrandr" >&5
16038 $as_echo_n "checking for XRRSelectInput in -lXrandr... " >&6; }
16039 if ${ac_cv_lib_Xrandr_XRRSelectInput+:} false; then :
16040 $as_echo_n "(cached) " >&6
16041 else
16042 ac_check_lib_save_LIBS=$LIBS
16043 LIBS="-lXrandr $LIBS"
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046
16047 /* Override any GCC internal prototype to avoid an error.
16048 Use char because int might match the return type of a GCC
16049 builtin and then its argument prototype would still apply. */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 char XRRSelectInput ();
16054 int
16055 main ()
16056 {
16057 return XRRSelectInput ();
16058 ;
16059 return 0;
16060 }
16061 _ACEOF
16062 if ac_fn_c_try_link "$LINENO"; then :
16063 ac_cv_lib_Xrandr_XRRSelectInput=yes
16064 else
16065 ac_cv_lib_Xrandr_XRRSelectInput=no
16066 fi
16067 rm -f core conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
16069 LIBS=$ac_check_lib_save_LIBS
16070 fi
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRSelectInput" >&5
16072 $as_echo "$ac_cv_lib_Xrandr_XRRSelectInput" >&6; }
16073 if test "x$ac_cv_lib_Xrandr_XRRSelectInput" = xyes; then :
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xrandr.h" >&5
16075 $as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078
16079 #include <X11/Xlib.h>
16080 #include <X11/extensions/Xrandr.h>
16081
16082 int
16083 main ()
16084 {
16085
16086 Display *d;
16087 Drawable r;
16088 int i;
16089 XRRQueryExtension(d, &i, &i);
16090 XRRGetScreenInfo(d, r);
16091
16092 ;
16093 return 0;
16094 }
16095 _ACEOF
16096 if ac_fn_c_try_link "$LINENO"; then :
16097
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16099 $as_echo "yes" >&6; }
16100 XRANDR="yes"
16101
16102 $as_echo "#define XRANDR 1" >>confdefs.h
16103
16104
16105 XRANDR_CFLAGS=""
16106 XRANDR_LIBS="-lXext -lXrender -lXrandr"
16107
16108
16109
16110 else
16111
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16114 XRANDR="no"
16115
16116 fi
16117 rm -f core conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16119
16120 fi
16121
16122
16123 LIBS=$OLDLIBS
16124 CPPFLAGS=$OLDCPPFLAGS
16125 fi
16126
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the XRandR extension" >&5
16128 $as_echo_n "checking for the XRandR extension... " >&6; }
16129 if test "$XRANDR" = "yes"; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16131 $as_echo "yes" >&6; }
16132 else
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16134 $as_echo "no" >&6; }
16135 fi
16136
16137
16138
16139
16140 # Check whether --enable-xshape was given.
16141 if test "${enable_xshape+set}" = set; then :
16142 enableval=$enable_xshape; USE=$enableval
16143 else
16144 USE="yes"
16145 fi
16146
16147
16148 if test "$USE" = "yes"; then
16149 # Store these
16150 OLDLIBS=$LIBS
16151 OLDCPPFLAGS=$CPPFLAGS
16152
16153 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16154 LIBS="$LIBS $X_LIBS"
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineShape in -lXext" >&5
16157 $as_echo_n "checking for XShapeCombineShape in -lXext... " >&6; }
16158 if ${ac_cv_lib_Xext_XShapeCombineShape+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161 ac_check_lib_save_LIBS=$LIBS
16162 LIBS="-lXext $LIBS"
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165
16166 /* Override any GCC internal prototype to avoid an error.
16167 Use char because int might match the return type of a GCC
16168 builtin and then its argument prototype would still apply. */
16169 #ifdef __cplusplus
16170 extern "C"
16171 #endif
16172 char XShapeCombineShape ();
16173 int
16174 main ()
16175 {
16176 return XShapeCombineShape ();
16177 ;
16178 return 0;
16179 }
16180 _ACEOF
16181 if ac_fn_c_try_link "$LINENO"; then :
16182 ac_cv_lib_Xext_XShapeCombineShape=yes
16183 else
16184 ac_cv_lib_Xext_XShapeCombineShape=no
16185 fi
16186 rm -f core conftest.err conftest.$ac_objext \
16187 conftest$ac_exeext conftest.$ac_ext
16188 LIBS=$ac_check_lib_save_LIBS
16189 fi
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
16191 $as_echo "$ac_cv_lib_Xext_XShapeCombineShape" >&6; }
16192 if test "x$ac_cv_lib_Xext_XShapeCombineShape" = xyes; then :
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/shape.h" >&5
16194 $as_echo_n "checking for X11/extensions/shape.h... " >&6; }
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197
16198 #include <X11/Xlib.h>
16199 #include <X11/Xutil.h>
16200 #include <X11/extensions/shape.h>
16201
16202 int
16203 main ()
16204 {
16205
16206 long foo = ShapeSet;
16207
16208 ;
16209 return 0;
16210 }
16211 _ACEOF
16212 if ac_fn_c_try_link "$LINENO"; then :
16213
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16216 SHAPE="yes"
16217
16218 $as_echo "#define SHAPE 1" >>confdefs.h
16219
16220
16221 XSHAPE_CFLAGS=""
16222 XSHAPE_LIBS="-lXext"
16223
16224
16225
16226 else
16227
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16230 SHAPE="no"
16231
16232 fi
16233 rm -f core conftest.err conftest.$ac_objext \
16234 conftest$ac_exeext conftest.$ac_ext
16235
16236 fi
16237
16238
16239 LIBS=$OLDLIBS
16240 CPPFLAGS=$OLDCPPFLAGS
16241 fi
16242
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Shape extension" >&5
16244 $as_echo_n "checking for the Shape extension... " >&6; }
16245 if test "$SHAPE" = "yes"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16247 $as_echo "yes" >&6; }
16248 else
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16251 fi
16252
16253
16254
16255
16256 # Check whether --enable-xinerama was given.
16257 if test "${enable_xinerama+set}" = set; then :
16258 enableval=$enable_xinerama; USE=$enableval
16259 else
16260 USE="yes"
16261 fi
16262
16263
16264 if test "$USE" = "yes"; then
16265 # Store these
16266 OLDLIBS=$LIBS
16267 OLDCPPFLAGS=$CPPFLAGS
16268
16269 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16270 LIBS="$LIBS $X_LIBS -lXext"
16271
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
16273 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
16274 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 ac_check_lib_save_LIBS=$LIBS
16278 LIBS="-lXinerama $LIBS"
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281
16282 /* Override any GCC internal prototype to avoid an error.
16283 Use char because int might match the return type of a GCC
16284 builtin and then its argument prototype would still apply. */
16285 #ifdef __cplusplus
16286 extern "C"
16287 #endif
16288 char XineramaQueryExtension ();
16289 int
16290 main ()
16291 {
16292 return XineramaQueryExtension ();
16293 ;
16294 return 0;
16295 }
16296 _ACEOF
16297 if ac_fn_c_try_link "$LINENO"; then :
16298 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
16299 else
16300 ac_cv_lib_Xinerama_XineramaQueryExtension=no
16301 fi
16302 rm -f core conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16304 LIBS=$ac_check_lib_save_LIBS
16305 fi
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
16307 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
16308 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
16309
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xinerama.h" >&5
16311 $as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16314
16315 #include <X11/Xlib.h>
16316 #include <X11/extensions/Xinerama.h>
16317
16318 int
16319 main ()
16320 {
16321
16322 XineramaScreenInfo foo;
16323
16324 ;
16325 return 0;
16326 }
16327 _ACEOF
16328 if ac_fn_c_try_link "$LINENO"; then :
16329
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331 $as_echo "yes" >&6; }
16332 XINERAMA="yes"
16333
16334 $as_echo "#define XINERAMA 1" >>confdefs.h
16335
16336 XINERAMA_LIBS="-lXext -lXinerama"
16337
16338
16339 else
16340
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342 $as_echo "no" >&6; }
16343 XINERAMA="no"
16344
16345 fi
16346 rm -f core conftest.err conftest.$ac_objext \
16347 conftest$ac_exeext conftest.$ac_ext
16348
16349 fi
16350
16351
16352 LIBS=$OLDLIBS
16353 CPPFLAGS=$OLDCPPFLAGS
16354 fi
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Xinerama extension" >&5
16357 $as_echo_n "checking for the Xinerama extension... " >&6; }
16358 if test "$XINERAMA" = "yes"; then
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16360 $as_echo "yes" >&6; }
16361 else
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16363 $as_echo "no" >&6; }
16364 fi
16365
16366
16367
16368
16369 # Check whether --enable-xsync was given.
16370 if test "${enable_xsync+set}" = set; then :
16371 enableval=$enable_xsync; USE=$enableval
16372 else
16373 USE="yes"
16374 fi
16375
16376
16377 if test "$USE" = "yes"; then
16378 # Store these
16379 OLDLIBS=$LIBS
16380 OLDCPPFLAGS=$CPPFLAGS
16381
16382 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16383 LIBS="$LIBS $X_LIBS"
16384
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSyncInitialize in -lXext" >&5
16386 $as_echo_n "checking for XSyncInitialize in -lXext... " >&6; }
16387 if ${ac_cv_lib_Xext_XSyncInitialize+:} false; then :
16388 $as_echo_n "(cached) " >&6
16389 else
16390 ac_check_lib_save_LIBS=$LIBS
16391 LIBS="-lXext $LIBS"
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16394
16395 /* Override any GCC internal prototype to avoid an error.
16396 Use char because int might match the return type of a GCC
16397 builtin and then its argument prototype would still apply. */
16398 #ifdef __cplusplus
16399 extern "C"
16400 #endif
16401 char XSyncInitialize ();
16402 int
16403 main ()
16404 {
16405 return XSyncInitialize ();
16406 ;
16407 return 0;
16408 }
16409 _ACEOF
16410 if ac_fn_c_try_link "$LINENO"; then :
16411 ac_cv_lib_Xext_XSyncInitialize=yes
16412 else
16413 ac_cv_lib_Xext_XSyncInitialize=no
16414 fi
16415 rm -f core conftest.err conftest.$ac_objext \
16416 conftest$ac_exeext conftest.$ac_ext
16417 LIBS=$ac_check_lib_save_LIBS
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XSyncInitialize" >&5
16420 $as_echo "$ac_cv_lib_Xext_XSyncInitialize" >&6; }
16421 if test "x$ac_cv_lib_Xext_XSyncInitialize" = xyes; then :
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/sync.h" >&5
16423 $as_echo_n "checking for X11/extensions/sync.h... " >&6; }
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16426
16427 #include <X11/Xlib.h>
16428 #include <X11/Xutil.h>
16429 #include <X11/extensions/sync.h>
16430
16431 int
16432 main ()
16433 {
16434
16435 XSyncValueType foo;
16436
16437 ;
16438 return 0;
16439 }
16440 _ACEOF
16441 if ac_fn_c_try_link "$LINENO"; then :
16442
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16444 $as_echo "yes" >&6; }
16445 SYNC="yes"
16446
16447 $as_echo "#define SYNC 1" >>confdefs.h
16448
16449
16450 XSYNC_CFLAGS=""
16451 XSYNC_LIBS="-lXext"
16452
16453
16454
16455 else
16456
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16458 $as_echo "no" >&6; }
16459 SYNC="no"
16460
16461 fi
16462 rm -f core conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16464
16465 fi
16466
16467
16468 LIBS=$OLDLIBS
16469 CPPFLAGS=$OLDCPPFLAGS
16470 fi
16471
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Sync extension" >&5
16473 $as_echo_n "checking for the Sync extension... " >&6; }
16474 if test "$SYNC" = "yes"; then
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16476 $as_echo "yes" >&6; }
16477 else
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16479 $as_echo "no" >&6; }
16480 fi
16481
16482
16483
16484
16485 # Store these
16486 OLDLIBS=$LIBS
16487 OLDCPPFLAGS=$CPPFLAGS
16488
16489 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16490 LIBS="$LIBS $X_LIBS"
16491
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauReadAuth in -lXau" >&5
16493 $as_echo_n "checking for XauReadAuth in -lXau... " >&6; }
16494 if ${ac_cv_lib_Xau_XauReadAuth+:} false; then :
16495 $as_echo_n "(cached) " >&6
16496 else
16497 ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lXau $LIBS"
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char XauReadAuth ();
16509 int
16510 main ()
16511 {
16512 return XauReadAuth ();
16513 ;
16514 return 0;
16515 }
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518 ac_cv_lib_Xau_XauReadAuth=yes
16519 else
16520 ac_cv_lib_Xau_XauReadAuth=no
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16525 fi
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauReadAuth" >&5
16527 $as_echo "$ac_cv_lib_Xau_XauReadAuth" >&6; }
16528 if test "x$ac_cv_lib_Xau_XauReadAuth" = xyes; then :
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xauth.h" >&5
16530 $as_echo_n "checking for X11/Xauth.h... " >&6; }
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533
16534 #include <X11/Xlib.h>
16535 #include <X11/Xutil.h>
16536 #include <X11/Xauth.h>
16537
16538 int
16539 main ()
16540 {
16541
16542
16543 ;
16544 return 0;
16545 }
16546 _ACEOF
16547 if ac_fn_c_try_link "$LINENO"; then :
16548
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16550 $as_echo "yes" >&6; }
16551 AUTH="yes"
16552
16553 $as_echo "#define AUTH 1" >>confdefs.h
16554
16555
16556 XAUTH_CFLAGS=""
16557 XAUTH_LIBS="-lXau"
16558
16559
16560
16561 else
16562
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16565 AUTH="no"
16566
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570
16571 fi
16572
16573
16574 LIBS=$OLDLIBS
16575 CPPFLAGS=$OLDCPPFLAGS
16576
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Xauth extension" >&5
16578 $as_echo_n "checking for the Xauth extension... " >&6; }
16579 if test "$AUTH" = "yes"; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16581 $as_echo "yes" >&6; }
16582 else
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584 $as_echo "no" >&6; }
16585 fi
16586
16587
16588 ac_config_files="$ac_config_files Makefile m4/Makefile po/Makefile.in obrender/obrender-3.5.pc obt/obt-3.5.pc obrender/version.h obt/version.h version.h"
16589
16590 ac_config_commands="$ac_config_commands doc"
16591
16592 ac_config_commands="$ac_config_commands data"
16593
16594 ac_config_commands="$ac_config_commands data/xsession"
16595
16596 cat >confcache <<\_ACEOF
16597 # This file is a shell script that caches the results of configure
16598 # tests run on this system so they can be shared between configure
16599 # scripts and configure runs, see configure's option --config-cache.
16600 # It is not useful on other systems. If it contains results you don't
16601 # want to keep, you may remove or edit it.
16602 #
16603 # config.status only pays attention to the cache file if you give it
16604 # the --recheck option to rerun configure.
16605 #
16606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16608 # following values.
16609
16610 _ACEOF
16611
16612 # The following way of writing the cache mishandles newlines in values,
16613 # but we know of no workaround that is simple, portable, and efficient.
16614 # So, we kill variables containing newlines.
16615 # Ultrix sh set writes to stderr and can't be redirected directly,
16616 # and sets the high bit in the cache file unless we assign to the vars.
16617 (
16618 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16619 eval ac_val=\$$ac_var
16620 case $ac_val in #(
16621 *${as_nl}*)
16622 case $ac_var in #(
16623 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16624 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16625 esac
16626 case $ac_var in #(
16627 _ | IFS | as_nl) ;; #(
16628 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16629 *) { eval $ac_var=; unset $ac_var;} ;;
16630 esac ;;
16631 esac
16632 done
16633
16634 (set) 2>&1 |
16635 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16636 *${as_nl}ac_space=\ *)
16637 # `set' does not quote correctly, so add quotes: double-quote
16638 # substitution turns \\\\ into \\, and sed turns \\ into \.
16639 sed -n \
16640 "s/'/'\\\\''/g;
16641 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16642 ;; #(
16643 *)
16644 # `set' quotes correctly as required by POSIX, so do not add quotes.
16645 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16646 ;;
16647 esac |
16648 sort
16649 ) |
16650 sed '
16651 /^ac_cv_env_/b end
16652 t clear
16653 :clear
16654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16655 t end
16656 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16657 :end' >>confcache
16658 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16659 if test -w "$cache_file"; then
16660 if test "x$cache_file" != "x/dev/null"; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16662 $as_echo "$as_me: updating cache $cache_file" >&6;}
16663 if test ! -f "$cache_file" || test -h "$cache_file"; then
16664 cat confcache >"$cache_file"
16665 else
16666 case $cache_file in #(
16667 */* | ?:*)
16668 mv -f confcache "$cache_file"$$ &&
16669 mv -f "$cache_file"$$ "$cache_file" ;; #(
16670 *)
16671 mv -f confcache "$cache_file" ;;
16672 esac
16673 fi
16674 fi
16675 else
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16677 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16678 fi
16679 fi
16680 rm -f confcache
16681
16682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16683 # Let make expand exec_prefix.
16684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16685
16686 # Transform confdefs.h into DEFS.
16687 # Protect against shell expansion while executing Makefile rules.
16688 # Protect against Makefile macro expansion.
16689 #
16690 # If the first sed substitution is executed (which looks for macros that
16691 # take arguments), then branch to the quote section. Otherwise,
16692 # look for a macro that doesn't take arguments.
16693 ac_script='
16694 :mline
16695 /\\$/{
16696 N
16697 s,\\\n,,
16698 b mline
16699 }
16700 t clear
16701 :clear
16702 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16703 t quote
16704 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16705 t quote
16706 b any
16707 :quote
16708 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16709 s/\[/\\&/g
16710 s/\]/\\&/g
16711 s/\$/$$/g
16712 H
16713 :any
16714 ${
16715 g
16716 s/^\n//
16717 s/\n/ /g
16718 p
16719 }
16720 '
16721 DEFS=`sed -n "$ac_script" confdefs.h`
16722
16723
16724 ac_libobjs=
16725 ac_ltlibobjs=
16726 U=
16727 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16728 # 1. Remove the extension, and $U if already installed.
16729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16732 # will be set to the directory where LIBOBJS objects are built.
16733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16735 done
16736 LIBOBJS=$ac_libobjs
16737
16738 LTLIBOBJS=$ac_ltlibobjs
16739
16740
16741 if test -n "$EXEEXT"; then
16742 am__EXEEXT_TRUE=
16743 am__EXEEXT_FALSE='#'
16744 else
16745 am__EXEEXT_TRUE='#'
16746 am__EXEEXT_FALSE=
16747 fi
16748
16749 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16750 as_fn_error $? "conditional \"AMDEP\" was never defined.
16751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16752 fi
16753 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16754 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16756 fi
16757 if test -z "${USE_IMLIB2_TRUE}" && test -z "${USE_IMLIB2_FALSE}"; then
16758 as_fn_error $? "conditional \"USE_IMLIB2\" was never defined.
16759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16760 fi
16761 if test -z "${USE_LIBRSVG_TRUE}" && test -z "${USE_LIBRSVG_FALSE}"; then
16762 as_fn_error $? "conditional \"USE_LIBRSVG\" was never defined.
16763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16764 fi
16765
16766 : "${CONFIG_STATUS=./config.status}"
16767 ac_write_fail=0
16768 ac_clean_files_save=$ac_clean_files
16769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16771 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16772 as_write_fail=0
16773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16774 #! $SHELL
16775 # Generated by $as_me.
16776 # Run this file to recreate the current configuration.
16777 # Compiler output produced by configure, useful for debugging
16778 # configure, is in config.log if it exists.
16779
16780 debug=false
16781 ac_cs_recheck=false
16782 ac_cs_silent=false
16783
16784 SHELL=\${CONFIG_SHELL-$SHELL}
16785 export SHELL
16786 _ASEOF
16787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16788 ## -------------------- ##
16789 ## M4sh Initialization. ##
16790 ## -------------------- ##
16791
16792 # Be more Bourne compatible
16793 DUALCASE=1; export DUALCASE # for MKS sh
16794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16795 emulate sh
16796 NULLCMD=:
16797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16798 # is contrary to our usage. Disable this feature.
16799 alias -g '${1+"$@"}'='"$@"'
16800 setopt NO_GLOB_SUBST
16801 else
16802 case `(set -o) 2>/dev/null` in #(
16803 *posix*) :
16804 set -o posix ;; #(
16805 *) :
16806 ;;
16807 esac
16808 fi
16809
16810
16811 as_nl='
16812 '
16813 export as_nl
16814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16818 # Prefer a ksh shell builtin over an external printf program on Solaris,
16819 # but without wasting forks for bash or zsh.
16820 if test -z "$BASH_VERSION$ZSH_VERSION" \
16821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16822 as_echo='print -r --'
16823 as_echo_n='print -rn --'
16824 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16825 as_echo='printf %s\n'
16826 as_echo_n='printf %s'
16827 else
16828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16830 as_echo_n='/usr/ucb/echo -n'
16831 else
16832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16833 as_echo_n_body='eval
16834 arg=$1;
16835 case $arg in #(
16836 *"$as_nl"*)
16837 expr "X$arg" : "X\\(.*\\)$as_nl";
16838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16839 esac;
16840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16841 '
16842 export as_echo_n_body
16843 as_echo_n='sh -c $as_echo_n_body as_echo'
16844 fi
16845 export as_echo_body
16846 as_echo='sh -c $as_echo_body as_echo'
16847 fi
16848
16849 # The user is always right.
16850 if test "${PATH_SEPARATOR+set}" != set; then
16851 PATH_SEPARATOR=:
16852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16854 PATH_SEPARATOR=';'
16855 }
16856 fi
16857
16858
16859 # IFS
16860 # We need space, tab and new line, in precisely that order. Quoting is
16861 # there to prevent editors from complaining about space-tab.
16862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16863 # splitting by setting IFS to empty value.)
16864 IFS=" "" $as_nl"
16865
16866 # Find who we are. Look in the path if we contain no directory separator.
16867 as_myself=
16868 case $0 in #((
16869 *[\\/]* ) as_myself=$0 ;;
16870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16872 do
16873 IFS=$as_save_IFS
16874 test -z "$as_dir" && as_dir=.
16875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16876 done
16877 IFS=$as_save_IFS
16878
16879 ;;
16880 esac
16881 # We did not find ourselves, most probably we were run as `sh COMMAND'
16882 # in which case we are not to be found in the path.
16883 if test "x$as_myself" = x; then
16884 as_myself=$0
16885 fi
16886 if test ! -f "$as_myself"; then
16887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16888 exit 1
16889 fi
16890
16891 # Unset variables that we do not need and which cause bugs (e.g. in
16892 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16893 # suppresses any "Segmentation fault" message there. '((' could
16894 # trigger a bug in pdksh 5.2.14.
16895 for as_var in BASH_ENV ENV MAIL MAILPATH
16896 do eval test x\${$as_var+set} = xset \
16897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16898 done
16899 PS1='$ '
16900 PS2='> '
16901 PS4='+ '
16902
16903 # NLS nuisances.
16904 LC_ALL=C
16905 export LC_ALL
16906 LANGUAGE=C
16907 export LANGUAGE
16908
16909 # CDPATH.
16910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16911
16912
16913 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16914 # ----------------------------------------
16915 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16916 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16917 # script with STATUS, using 1 if that was 0.
16918 as_fn_error ()
16919 {
16920 as_status=$1; test $as_status -eq 0 && as_status=1
16921 if test "$4"; then
16922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16924 fi
16925 $as_echo "$as_me: error: $2" >&2
16926 as_fn_exit $as_status
16927 } # as_fn_error
16928
16929
16930 # as_fn_set_status STATUS
16931 # -----------------------
16932 # Set $? to STATUS, without forking.
16933 as_fn_set_status ()
16934 {
16935 return $1
16936 } # as_fn_set_status
16937
16938 # as_fn_exit STATUS
16939 # -----------------
16940 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16941 as_fn_exit ()
16942 {
16943 set +e
16944 as_fn_set_status $1
16945 exit $1
16946 } # as_fn_exit
16947
16948 # as_fn_unset VAR
16949 # ---------------
16950 # Portably unset VAR.
16951 as_fn_unset ()
16952 {
16953 { eval $1=; unset $1;}
16954 }
16955 as_unset=as_fn_unset
16956 # as_fn_append VAR VALUE
16957 # ----------------------
16958 # Append the text in VALUE to the end of the definition contained in VAR. Take
16959 # advantage of any shell optimizations that allow amortized linear growth over
16960 # repeated appends, instead of the typical quadratic growth present in naive
16961 # implementations.
16962 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16963 eval 'as_fn_append ()
16964 {
16965 eval $1+=\$2
16966 }'
16967 else
16968 as_fn_append ()
16969 {
16970 eval $1=\$$1\$2
16971 }
16972 fi # as_fn_append
16973
16974 # as_fn_arith ARG...
16975 # ------------------
16976 # Perform arithmetic evaluation on the ARGs, and store the result in the
16977 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16978 # must be portable across $(()) and expr.
16979 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16980 eval 'as_fn_arith ()
16981 {
16982 as_val=$(( $* ))
16983 }'
16984 else
16985 as_fn_arith ()
16986 {
16987 as_val=`expr "$@" || test $? -eq 1`
16988 }
16989 fi # as_fn_arith
16990
16991
16992 if expr a : '\(a\)' >/dev/null 2>&1 &&
16993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16994 as_expr=expr
16995 else
16996 as_expr=false
16997 fi
16998
16999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17000 as_basename=basename
17001 else
17002 as_basename=false
17003 fi
17004
17005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17006 as_dirname=dirname
17007 else
17008 as_dirname=false
17009 fi
17010
17011 as_me=`$as_basename -- "$0" ||
17012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17013 X"$0" : 'X\(//\)$' \| \
17014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17015 $as_echo X/"$0" |
17016 sed '/^.*\/\([^/][^/]*\)\/*$/{
17017 s//\1/
17018 q
17019 }
17020 /^X\/\(\/\/\)$/{
17021 s//\1/
17022 q
17023 }
17024 /^X\/\(\/\).*/{
17025 s//\1/
17026 q
17027 }
17028 s/.*/./; q'`
17029
17030 # Avoid depending upon Character Ranges.
17031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17034 as_cr_digits='0123456789'
17035 as_cr_alnum=$as_cr_Letters$as_cr_digits
17036
17037 ECHO_C= ECHO_N= ECHO_T=
17038 case `echo -n x` in #(((((
17039 -n*)
17040 case `echo 'xy\c'` in
17041 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17042 xy) ECHO_C='\c';;
17043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17044 ECHO_T=' ';;
17045 esac;;
17046 *)
17047 ECHO_N='-n';;
17048 esac
17049
17050 rm -f conf$$ conf$$.exe conf$$.file
17051 if test -d conf$$.dir; then
17052 rm -f conf$$.dir/conf$$.file
17053 else
17054 rm -f conf$$.dir
17055 mkdir conf$$.dir 2>/dev/null
17056 fi
17057 if (echo >conf$$.file) 2>/dev/null; then
17058 if ln -s conf$$.file conf$$ 2>/dev/null; then
17059 as_ln_s='ln -s'
17060 # ... but there are two gotchas:
17061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17063 # In both cases, we have to default to `cp -pR'.
17064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17065 as_ln_s='cp -pR'
17066 elif ln conf$$.file conf$$ 2>/dev/null; then
17067 as_ln_s=ln
17068 else
17069 as_ln_s='cp -pR'
17070 fi
17071 else
17072 as_ln_s='cp -pR'
17073 fi
17074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17075 rmdir conf$$.dir 2>/dev/null
17076
17077
17078 # as_fn_mkdir_p
17079 # -------------
17080 # Create "$as_dir" as a directory, including parents if necessary.
17081 as_fn_mkdir_p ()
17082 {
17083
17084 case $as_dir in #(
17085 -*) as_dir=./$as_dir;;
17086 esac
17087 test -d "$as_dir" || eval $as_mkdir_p || {
17088 as_dirs=
17089 while :; do
17090 case $as_dir in #(
17091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17092 *) as_qdir=$as_dir;;
17093 esac
17094 as_dirs="'$as_qdir' $as_dirs"
17095 as_dir=`$as_dirname -- "$as_dir" ||
17096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17097 X"$as_dir" : 'X\(//\)[^/]' \| \
17098 X"$as_dir" : 'X\(//\)$' \| \
17099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17100 $as_echo X"$as_dir" |
17101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17102 s//\1/
17103 q
17104 }
17105 /^X\(\/\/\)[^/].*/{
17106 s//\1/
17107 q
17108 }
17109 /^X\(\/\/\)$/{
17110 s//\1/
17111 q
17112 }
17113 /^X\(\/\).*/{
17114 s//\1/
17115 q
17116 }
17117 s/.*/./; q'`
17118 test -d "$as_dir" && break
17119 done
17120 test -z "$as_dirs" || eval "mkdir $as_dirs"
17121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17122
17123
17124 } # as_fn_mkdir_p
17125 if mkdir -p . 2>/dev/null; then
17126 as_mkdir_p='mkdir -p "$as_dir"'
17127 else
17128 test -d ./-p && rmdir ./-p
17129 as_mkdir_p=false
17130 fi
17131
17132
17133 # as_fn_executable_p FILE
17134 # -----------------------
17135 # Test if FILE is an executable regular file.
17136 as_fn_executable_p ()
17137 {
17138 test -f "$1" && test -x "$1"
17139 } # as_fn_executable_p
17140 as_test_x='test -x'
17141 as_executable_p=as_fn_executable_p
17142
17143 # Sed expression to map a string onto a valid CPP name.
17144 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17145
17146 # Sed expression to map a string onto a valid variable name.
17147 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17148
17149
17150 exec 6>&1
17151 ## ----------------------------------- ##
17152 ## Main body of $CONFIG_STATUS script. ##
17153 ## ----------------------------------- ##
17154 _ASEOF
17155 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17156
17157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17158 # Save the log message, to keep $0 and so on meaningful, and to
17159 # report actual input values of CONFIG_FILES etc. instead of their
17160 # values after options handling.
17161 ac_log="
17162 This file was extended by openbox $as_me 3.6.1, which was
17163 generated by GNU Autoconf 2.69. Invocation command line was
17164
17165 CONFIG_FILES = $CONFIG_FILES
17166 CONFIG_HEADERS = $CONFIG_HEADERS
17167 CONFIG_LINKS = $CONFIG_LINKS
17168 CONFIG_COMMANDS = $CONFIG_COMMANDS
17169 $ $0 $@
17170
17171 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17172 "
17173
17174 _ACEOF
17175
17176 case $ac_config_files in *"
17177 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17178 esac
17179
17180
17181
17182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17183 # Files that config.status was made for.
17184 config_files="$ac_config_files"
17185 config_commands="$ac_config_commands"
17186
17187 _ACEOF
17188
17189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17190 ac_cs_usage="\
17191 \`$as_me' instantiates files and other configuration actions
17192 from templates according to the current configuration. Unless the files
17193 and actions are specified as TAGs, all are instantiated by default.
17194
17195 Usage: $0 [OPTION]... [TAG]...
17196
17197 -h, --help print this help, then exit
17198 -V, --version print version number and configuration settings, then exit
17199 --config print configuration, then exit
17200 -q, --quiet, --silent
17201 do not print progress messages
17202 -d, --debug don't remove temporary files
17203 --recheck update $as_me by reconfiguring in the same conditions
17204 --file=FILE[:TEMPLATE]
17205 instantiate the configuration file FILE
17206
17207 Configuration files:
17208 $config_files
17209
17210 Configuration commands:
17211 $config_commands
17212
17213 Report bugs to <http://bugzilla.icculus.org>."
17214
17215 _ACEOF
17216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17217 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17218 ac_cs_version="\\
17219 openbox config.status 3.6.1
17220 configured by $0, generated by GNU Autoconf 2.69,
17221 with options \\"\$ac_cs_config\\"
17222
17223 Copyright (C) 2012 Free Software Foundation, Inc.
17224 This config.status script is free software; the Free Software Foundation
17225 gives unlimited permission to copy, distribute and modify it."
17226
17227 ac_pwd='$ac_pwd'
17228 srcdir='$srcdir'
17229 INSTALL='$INSTALL'
17230 MKDIR_P='$MKDIR_P'
17231 AWK='$AWK'
17232 test -n "\$AWK" || AWK=awk
17233 _ACEOF
17234
17235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17236 # The default lists apply if the user does not specify any file.
17237 ac_need_defaults=:
17238 while test $# != 0
17239 do
17240 case $1 in
17241 --*=?*)
17242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17244 ac_shift=:
17245 ;;
17246 --*=)
17247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17248 ac_optarg=
17249 ac_shift=:
17250 ;;
17251 *)
17252 ac_option=$1
17253 ac_optarg=$2
17254 ac_shift=shift
17255 ;;
17256 esac
17257
17258 case $ac_option in
17259 # Handling of the options.
17260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17261 ac_cs_recheck=: ;;
17262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17263 $as_echo "$ac_cs_version"; exit ;;
17264 --config | --confi | --conf | --con | --co | --c )
17265 $as_echo "$ac_cs_config"; exit ;;
17266 --debug | --debu | --deb | --de | --d | -d )
17267 debug=: ;;
17268 --file | --fil | --fi | --f )
17269 $ac_shift
17270 case $ac_optarg in
17271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17272 '') as_fn_error $? "missing file argument" ;;
17273 esac
17274 as_fn_append CONFIG_FILES " '$ac_optarg'"
17275 ac_need_defaults=false;;
17276 --he | --h | --help | --hel | -h )
17277 $as_echo "$ac_cs_usage"; exit ;;
17278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17280 ac_cs_silent=: ;;
17281
17282 # This is an error.
17283 -*) as_fn_error $? "unrecognized option: \`$1'
17284 Try \`$0 --help' for more information." ;;
17285
17286 *) as_fn_append ac_config_targets " $1"
17287 ac_need_defaults=false ;;
17288
17289 esac
17290 shift
17291 done
17292
17293 ac_configure_extra_args=
17294
17295 if $ac_cs_silent; then
17296 exec 6>/dev/null
17297 ac_configure_extra_args="$ac_configure_extra_args --silent"
17298 fi
17299
17300 _ACEOF
17301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17302 if \$ac_cs_recheck; then
17303 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17304 shift
17305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17306 CONFIG_SHELL='$SHELL'
17307 export CONFIG_SHELL
17308 exec "\$@"
17309 fi
17310
17311 _ACEOF
17312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17313 exec 5>>config.log
17314 {
17315 echo
17316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17317 ## Running $as_me. ##
17318 _ASBOX
17319 $as_echo "$ac_log"
17320 } >&5
17321
17322 _ACEOF
17323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17324 #
17325 # INIT-COMMANDS
17326 #
17327 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17328
17329
17330 # The HP-UX ksh and POSIX shell print the target directory to stdout
17331 # if CDPATH is set.
17332 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17333
17334 sed_quote_subst='$sed_quote_subst'
17335 double_quote_subst='$double_quote_subst'
17336 delay_variable_subst='$delay_variable_subst'
17337 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17338 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17339 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17340 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17341 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17342 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17343 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17344 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17345 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17346 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17347 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17348 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17349 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17350 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17351 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17352 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17353 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17354 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17355 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17356 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17357 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17358 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17359 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17360 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17361 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17362 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17363 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17364 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17365 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17366 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17367 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17368 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17369 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17370 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17371 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17372 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17373 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17374 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17375 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17376 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17377 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17378 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17379 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17380 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17381 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17382 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17383 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17384 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17385 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17386 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17387 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17388 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17389 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17390 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17391 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17392 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17393 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17394 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17395 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"`'
17396 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17397 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17398 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17399 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17400 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17401 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17402 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17403 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17404 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17405 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17406 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17407 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17408 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17409 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17410 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17411 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17412 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17413 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17414 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17415 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17416 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17417 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17418 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17419 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17420 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17421 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17422 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17423 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17424 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17425 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17426 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17427 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17428 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17429 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17430 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17431 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17432 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17433 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17434 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17435 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17436 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17437 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17438 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17439 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17440 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17441 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17442 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17443 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17444 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17445 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17446 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17447 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17448 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17449 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17450 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17451 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17452 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17453 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17454 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17455 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17456 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17457 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17458 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17459 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17460 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17461 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17462 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17463 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17464 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17465 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17466 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17467 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17468 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17469 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17470 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17471 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17472
17473 LTCC='$LTCC'
17474 LTCFLAGS='$LTCFLAGS'
17475 compiler='$compiler_DEFAULT'
17476
17477 # A function that is used when there is no print builtin or printf.
17478 func_fallback_echo ()
17479 {
17480 eval 'cat <<_LTECHO_EOF
17481 \$1
17482 _LTECHO_EOF'
17483 }
17484
17485 # Quote evaled strings.
17486 for var in SHELL \
17487 ECHO \
17488 PATH_SEPARATOR \
17489 SED \
17490 GREP \
17491 EGREP \
17492 FGREP \
17493 LD \
17494 NM \
17495 LN_S \
17496 lt_SP2NL \
17497 lt_NL2SP \
17498 reload_flag \
17499 OBJDUMP \
17500 deplibs_check_method \
17501 file_magic_cmd \
17502 file_magic_glob \
17503 want_nocaseglob \
17504 DLLTOOL \
17505 sharedlib_from_linklib_cmd \
17506 AR \
17507 AR_FLAGS \
17508 archiver_list_spec \
17509 STRIP \
17510 RANLIB \
17511 CC \
17512 CFLAGS \
17513 compiler \
17514 lt_cv_sys_global_symbol_pipe \
17515 lt_cv_sys_global_symbol_to_cdecl \
17516 lt_cv_sys_global_symbol_to_import \
17517 lt_cv_sys_global_symbol_to_c_name_address \
17518 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17519 lt_cv_nm_interface \
17520 nm_file_list_spec \
17521 lt_cv_truncate_bin \
17522 lt_prog_compiler_no_builtin_flag \
17523 lt_prog_compiler_pic \
17524 lt_prog_compiler_wl \
17525 lt_prog_compiler_static \
17526 lt_cv_prog_compiler_c_o \
17527 need_locks \
17528 MANIFEST_TOOL \
17529 DSYMUTIL \
17530 NMEDIT \
17531 LIPO \
17532 OTOOL \
17533 OTOOL64 \
17534 shrext_cmds \
17535 export_dynamic_flag_spec \
17536 whole_archive_flag_spec \
17537 compiler_needs_object \
17538 with_gnu_ld \
17539 allow_undefined_flag \
17540 no_undefined_flag \
17541 hardcode_libdir_flag_spec \
17542 hardcode_libdir_separator \
17543 exclude_expsyms \
17544 include_expsyms \
17545 file_list_spec \
17546 variables_saved_for_relink \
17547 libname_spec \
17548 library_names_spec \
17549 soname_spec \
17550 install_override_mode \
17551 finish_eval \
17552 old_striplib \
17553 striplib; do
17554 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17555 *[\\\\\\\`\\"\\\$]*)
17556 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17557 ;;
17558 *)
17559 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17560 ;;
17561 esac
17562 done
17563
17564 # Double-quote double-evaled strings.
17565 for var in reload_cmds \
17566 old_postinstall_cmds \
17567 old_postuninstall_cmds \
17568 old_archive_cmds \
17569 extract_expsyms_cmds \
17570 old_archive_from_new_cmds \
17571 old_archive_from_expsyms_cmds \
17572 archive_cmds \
17573 archive_expsym_cmds \
17574 module_cmds \
17575 module_expsym_cmds \
17576 export_symbols_cmds \
17577 prelink_cmds \
17578 postlink_cmds \
17579 postinstall_cmds \
17580 postuninstall_cmds \
17581 finish_cmds \
17582 sys_lib_search_path_spec \
17583 configure_time_dlsearch_path \
17584 configure_time_lt_sys_library_path; do
17585 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17586 *[\\\\\\\`\\"\\\$]*)
17587 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17588 ;;
17589 *)
17590 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17591 ;;
17592 esac
17593 done
17594
17595 ac_aux_dir='$ac_aux_dir'
17596
17597 # See if we are running on zsh, and set the options that allow our
17598 # commands through without removal of \ escapes INIT.
17599 if test -n "\${ZSH_VERSION+set}"; then
17600 setopt NO_GLOB_SUBST
17601 fi
17602
17603
17604 PACKAGE='$PACKAGE'
17605 VERSION='$VERSION'
17606 RM='$RM'
17607 ofile='$ofile'
17608
17609
17610
17611 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17612 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17613 # from automake < 1.5.
17614 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17615 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17616 LINGUAS="${LINGUAS-%UNSET%}"
17617
17618
17619 _ACEOF
17620
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622
17623 # Handling of arguments.
17624 for ac_config_target in $ac_config_targets
17625 do
17626 case $ac_config_target in
17627 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17628 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17629 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17630 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17631 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17632 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17633 "obrender/obrender-3.5.pc") CONFIG_FILES="$CONFIG_FILES obrender/obrender-3.5.pc" ;;
17634 "obt/obt-3.5.pc") CONFIG_FILES="$CONFIG_FILES obt/obt-3.5.pc" ;;
17635 "obrender/version.h") CONFIG_FILES="$CONFIG_FILES obrender/version.h" ;;
17636 "obt/version.h") CONFIG_FILES="$CONFIG_FILES obt/version.h" ;;
17637 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
17638 "doc") CONFIG_COMMANDS="$CONFIG_COMMANDS doc" ;;
17639 "data") CONFIG_COMMANDS="$CONFIG_COMMANDS data" ;;
17640 "data/xsession") CONFIG_COMMANDS="$CONFIG_COMMANDS data/xsession" ;;
17641
17642 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17643 esac
17644 done
17645
17646
17647 # If the user did not use the arguments to specify the items to instantiate,
17648 # then the envvar interface is used. Set only those that are not.
17649 # We use the long form for the default assignment because of an extremely
17650 # bizarre bug on SunOS 4.1.3.
17651 if $ac_need_defaults; then
17652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17654 fi
17655
17656 # Have a temporary directory for convenience. Make it in the build tree
17657 # simply because there is no reason against having it here, and in addition,
17658 # creating and moving files from /tmp can sometimes cause problems.
17659 # Hook for its removal unless debugging.
17660 # Note that there is a small window in which the directory will not be cleaned:
17661 # after its creation but before its name has been assigned to `$tmp'.
17662 $debug ||
17663 {
17664 tmp= ac_tmp=
17665 trap 'exit_status=$?
17666 : "${ac_tmp:=$tmp}"
17667 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17668 ' 0
17669 trap 'as_fn_exit 1' 1 2 13 15
17670 }
17671 # Create a (secure) tmp directory for tmp files.
17672
17673 {
17674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17675 test -d "$tmp"
17676 } ||
17677 {
17678 tmp=./conf$$-$RANDOM
17679 (umask 077 && mkdir "$tmp")
17680 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17681 ac_tmp=$tmp
17682
17683 # Set up the scripts for CONFIG_FILES section.
17684 # No need to generate them if there are no CONFIG_FILES.
17685 # This happens for instance with `./config.status config.h'.
17686 if test -n "$CONFIG_FILES"; then
17687
17688
17689 ac_cr=`echo X | tr X '\015'`
17690 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17691 # But we know of no other shell where ac_cr would be empty at this
17692 # point, so we can use a bashism as a fallback.
17693 if test "x$ac_cr" = x; then
17694 eval ac_cr=\$\'\\r\'
17695 fi
17696 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17697 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17698 ac_cs_awk_cr='\\r'
17699 else
17700 ac_cs_awk_cr=$ac_cr
17701 fi
17702
17703 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17704 _ACEOF
17705
17706
17707 {
17708 echo "cat >conf$$subs.awk <<_ACEOF" &&
17709 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17710 echo "_ACEOF"
17711 } >conf$$subs.sh ||
17712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17713 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17714 ac_delim='%!_!# '
17715 for ac_last_try in false false false false false :; do
17716 . ./conf$$subs.sh ||
17717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17718
17719 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17720 if test $ac_delim_n = $ac_delim_num; then
17721 break
17722 elif $ac_last_try; then
17723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17724 else
17725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17726 fi
17727 done
17728 rm -f conf$$subs.sh
17729
17730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17731 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17732 _ACEOF
17733 sed -n '
17734 h
17735 s/^/S["/; s/!.*/"]=/
17736 p
17737 g
17738 s/^[^!]*!//
17739 :repl
17740 t repl
17741 s/'"$ac_delim"'$//
17742 t delim
17743 :nl
17744 h
17745 s/\(.\{148\}\)..*/\1/
17746 t more1
17747 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17748 p
17749 n
17750 b repl
17751 :more1
17752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17753 p
17754 g
17755 s/.\{148\}//
17756 t nl
17757 :delim
17758 h
17759 s/\(.\{148\}\)..*/\1/
17760 t more2
17761 s/["\\]/\\&/g; s/^/"/; s/$/"/
17762 p
17763 b
17764 :more2
17765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17766 p
17767 g
17768 s/.\{148\}//
17769 t delim
17770 ' <conf$$subs.awk | sed '
17771 /^[^""]/{
17772 N
17773 s/\n//
17774 }
17775 ' >>$CONFIG_STATUS || ac_write_fail=1
17776 rm -f conf$$subs.awk
17777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17778 _ACAWK
17779 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17780 for (key in S) S_is_set[key] = 1
17781 FS = ""
17782
17783 }
17784 {
17785 line = $ 0
17786 nfields = split(line, field, "@")
17787 substed = 0
17788 len = length(field[1])
17789 for (i = 2; i < nfields; i++) {
17790 key = field[i]
17791 keylen = length(key)
17792 if (S_is_set[key]) {
17793 value = S[key]
17794 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17795 len += length(value) + length(field[++i])
17796 substed = 1
17797 } else
17798 len += 1 + keylen
17799 }
17800
17801 print line
17802 }
17803
17804 _ACAWK
17805 _ACEOF
17806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17807 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17808 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17809 else
17810 cat
17811 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17812 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17813 _ACEOF
17814
17815 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17816 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17817 # trailing colons and then remove the whole line if VPATH becomes empty
17818 # (actually we leave an empty line to preserve line numbers).
17819 if test "x$srcdir" = x.; then
17820 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17821 h
17822 s///
17823 s/^/:/
17824 s/[ ]*$/:/
17825 s/:\$(srcdir):/:/g
17826 s/:\${srcdir}:/:/g
17827 s/:@srcdir@:/:/g
17828 s/^:*//
17829 s/:*$//
17830 x
17831 s/\(=[ ]*\).*/\1/
17832 G
17833 s/\n//
17834 s/^[^=]*=[ ]*$//
17835 }'
17836 fi
17837
17838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17839 fi # test -n "$CONFIG_FILES"
17840
17841
17842 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17843 shift
17844 for ac_tag
17845 do
17846 case $ac_tag in
17847 :[FHLC]) ac_mode=$ac_tag; continue;;
17848 esac
17849 case $ac_mode$ac_tag in
17850 :[FHL]*:*);;
17851 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17852 :[FH]-) ac_tag=-:-;;
17853 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17854 esac
17855 ac_save_IFS=$IFS
17856 IFS=:
17857 set x $ac_tag
17858 IFS=$ac_save_IFS
17859 shift
17860 ac_file=$1
17861 shift
17862
17863 case $ac_mode in
17864 :L) ac_source=$1;;
17865 :[FH])
17866 ac_file_inputs=
17867 for ac_f
17868 do
17869 case $ac_f in
17870 -) ac_f="$ac_tmp/stdin";;
17871 *) # Look for the file first in the build tree, then in the source tree
17872 # (if the path is not absolute). The absolute path cannot be DOS-style,
17873 # because $ac_f cannot contain `:'.
17874 test -f "$ac_f" ||
17875 case $ac_f in
17876 [\\/$]*) false;;
17877 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17878 esac ||
17879 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17880 esac
17881 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17882 as_fn_append ac_file_inputs " '$ac_f'"
17883 done
17884
17885 # Let's still pretend it is `configure' which instantiates (i.e., don't
17886 # use $as_me), people would be surprised to read:
17887 # /* config.h. Generated by config.status. */
17888 configure_input='Generated from '`
17889 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17890 `' by configure.'
17891 if test x"$ac_file" != x-; then
17892 configure_input="$ac_file. $configure_input"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17894 $as_echo "$as_me: creating $ac_file" >&6;}
17895 fi
17896 # Neutralize special characters interpreted by sed in replacement strings.
17897 case $configure_input in #(
17898 *\&* | *\|* | *\\* )
17899 ac_sed_conf_input=`$as_echo "$configure_input" |
17900 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17901 *) ac_sed_conf_input=$configure_input;;
17902 esac
17903
17904 case $ac_tag in
17905 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17906 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17907 esac
17908 ;;
17909 esac
17910
17911 ac_dir=`$as_dirname -- "$ac_file" ||
17912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17913 X"$ac_file" : 'X\(//\)[^/]' \| \
17914 X"$ac_file" : 'X\(//\)$' \| \
17915 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17916 $as_echo X"$ac_file" |
17917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17918 s//\1/
17919 q
17920 }
17921 /^X\(\/\/\)[^/].*/{
17922 s//\1/
17923 q
17924 }
17925 /^X\(\/\/\)$/{
17926 s//\1/
17927 q
17928 }
17929 /^X\(\/\).*/{
17930 s//\1/
17931 q
17932 }
17933 s/.*/./; q'`
17934 as_dir="$ac_dir"; as_fn_mkdir_p
17935 ac_builddir=.
17936
17937 case "$ac_dir" in
17938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17939 *)
17940 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17941 # A ".." for each directory in $ac_dir_suffix.
17942 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17943 case $ac_top_builddir_sub in
17944 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17945 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17946 esac ;;
17947 esac
17948 ac_abs_top_builddir=$ac_pwd
17949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17950 # for backward compatibility:
17951 ac_top_builddir=$ac_top_build_prefix
17952
17953 case $srcdir in
17954 .) # We are building in place.
17955 ac_srcdir=.
17956 ac_top_srcdir=$ac_top_builddir_sub
17957 ac_abs_top_srcdir=$ac_pwd ;;
17958 [\\/]* | ?:[\\/]* ) # Absolute name.
17959 ac_srcdir=$srcdir$ac_dir_suffix;
17960 ac_top_srcdir=$srcdir
17961 ac_abs_top_srcdir=$srcdir ;;
17962 *) # Relative name.
17963 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17964 ac_top_srcdir=$ac_top_build_prefix$srcdir
17965 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17966 esac
17967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17968
17969
17970 case $ac_mode in
17971 :F)
17972 #
17973 # CONFIG_FILE
17974 #
17975
17976 case $INSTALL in
17977 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17978 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17979 esac
17980 ac_MKDIR_P=$MKDIR_P
17981 case $MKDIR_P in
17982 [\\/$]* | ?:[\\/]* ) ;;
17983 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17984 esac
17985 _ACEOF
17986
17987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17988 # If the template does not know about datarootdir, expand it.
17989 # FIXME: This hack should be removed a few years after 2.60.
17990 ac_datarootdir_hack=; ac_datarootdir_seen=
17991 ac_sed_dataroot='
17992 /datarootdir/ {
17993 p
17994 q
17995 }
17996 /@datadir@/p
17997 /@docdir@/p
17998 /@infodir@/p
17999 /@localedir@/p
18000 /@mandir@/p'
18001 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18002 *datarootdir*) ac_datarootdir_seen=yes;;
18003 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18005 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18006 _ACEOF
18007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18008 ac_datarootdir_hack='
18009 s&@datadir@&$datadir&g
18010 s&@docdir@&$docdir&g
18011 s&@infodir@&$infodir&g
18012 s&@localedir@&$localedir&g
18013 s&@mandir@&$mandir&g
18014 s&\\\${datarootdir}&$datarootdir&g' ;;
18015 esac
18016 _ACEOF
18017
18018 # Neutralize VPATH when `$srcdir' = `.'.
18019 # Shell code in configure.ac might set extrasub.
18020 # FIXME: do we really want to maintain this feature?
18021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18022 ac_sed_extra="$ac_vpsub
18023 $extrasub
18024 _ACEOF
18025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18026 :t
18027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18028 s|@configure_input@|$ac_sed_conf_input|;t t
18029 s&@top_builddir@&$ac_top_builddir_sub&;t t
18030 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18031 s&@srcdir@&$ac_srcdir&;t t
18032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18033 s&@top_srcdir@&$ac_top_srcdir&;t t
18034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18035 s&@builddir@&$ac_builddir&;t t
18036 s&@abs_builddir@&$ac_abs_builddir&;t t
18037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18038 s&@INSTALL@&$ac_INSTALL&;t t
18039 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18040 $ac_datarootdir_hack
18041 "
18042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18043 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18044
18045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18046 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18047 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18048 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18050 which seems to be undefined. Please make sure it is defined" >&5
18051 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18052 which seems to be undefined. Please make sure it is defined" >&2;}
18053
18054 rm -f "$ac_tmp/stdin"
18055 case $ac_file in
18056 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18057 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18058 esac \
18059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18060 ;;
18061
18062
18063 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18064 $as_echo "$as_me: executing $ac_file commands" >&6;}
18065 ;;
18066 esac
18067
18068
18069 case $ac_file$ac_mode in
18070 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18071 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18072 # are listed without --file. Let's play safe and only enable the eval
18073 # if we detect the quoting.
18074 case $CONFIG_FILES in
18075 *\'*) eval set x "$CONFIG_FILES" ;;
18076 *) set x $CONFIG_FILES ;;
18077 esac
18078 shift
18079 for mf
18080 do
18081 # Strip MF so we end up with the name of the file.
18082 mf=`echo "$mf" | sed -e 's/:.*$//'`
18083 # Check whether this is an Automake generated Makefile or not.
18084 # We used to match only the files named `Makefile.in', but
18085 # some people rename them; so instead we look at the file content.
18086 # Grep'ing the first line is not enough: some people post-process
18087 # each Makefile.in and add a new line on top of each file to say so.
18088 # Grep'ing the whole file is not good either: AIX grep has a line
18089 # limit of 2048, but all sed's we know have understand at least 4000.
18090 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18091 dirpart=`$as_dirname -- "$mf" ||
18092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18093 X"$mf" : 'X\(//\)[^/]' \| \
18094 X"$mf" : 'X\(//\)$' \| \
18095 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18096 $as_echo X"$mf" |
18097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18098 s//\1/
18099 q
18100 }
18101 /^X\(\/\/\)[^/].*/{
18102 s//\1/
18103 q
18104 }
18105 /^X\(\/\/\)$/{
18106 s//\1/
18107 q
18108 }
18109 /^X\(\/\).*/{
18110 s//\1/
18111 q
18112 }
18113 s/.*/./; q'`
18114 else
18115 continue
18116 fi
18117 # Extract the definition of DEPDIR, am__include, and am__quote
18118 # from the Makefile without running `make'.
18119 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18120 test -z "$DEPDIR" && continue
18121 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18122 test -z "am__include" && continue
18123 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18124 # When using ansi2knr, U may be empty or an underscore; expand it
18125 U=`sed -n 's/^U = //p' < "$mf"`
18126 # Find all dependency output files, they are included files with
18127 # $(DEPDIR) in their names. We invoke sed twice because it is the
18128 # simplest approach to changing $(DEPDIR) to its actual value in the
18129 # expansion.
18130 for file in `sed -n "
18131 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18132 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18133 # Make sure the directory exists.
18134 test -f "$dirpart/$file" && continue
18135 fdir=`$as_dirname -- "$file" ||
18136 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18137 X"$file" : 'X\(//\)[^/]' \| \
18138 X"$file" : 'X\(//\)$' \| \
18139 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18140 $as_echo X"$file" |
18141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18142 s//\1/
18143 q
18144 }
18145 /^X\(\/\/\)[^/].*/{
18146 s//\1/
18147 q
18148 }
18149 /^X\(\/\/\)$/{
18150 s//\1/
18151 q
18152 }
18153 /^X\(\/\).*/{
18154 s//\1/
18155 q
18156 }
18157 s/.*/./; q'`
18158 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18159 # echo "creating $dirpart/$file"
18160 echo '# dummy' > "$dirpart/$file"
18161 done
18162 done
18163 }
18164 ;;
18165 "libtool":C)
18166
18167 # See if we are running on zsh, and set the options that allow our
18168 # commands through without removal of \ escapes.
18169 if test -n "${ZSH_VERSION+set}"; then
18170 setopt NO_GLOB_SUBST
18171 fi
18172
18173 cfgfile=${ofile}T
18174 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18175 $RM "$cfgfile"
18176
18177 cat <<_LT_EOF >> "$cfgfile"
18178 #! $SHELL
18179 # Generated automatically by $as_me ($PACKAGE) $VERSION
18180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18181 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18182
18183 # Provide generalized library-building support services.
18184 # Written by Gordon Matzigkeit, 1996
18185
18186 # Copyright (C) 2014 Free Software Foundation, Inc.
18187 # This is free software; see the source for copying conditions. There is NO
18188 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18189
18190 # GNU Libtool is free software; you can redistribute it and/or modify
18191 # it under the terms of the GNU General Public License as published by
18192 # the Free Software Foundation; either version 2 of of the License, or
18193 # (at your option) any later version.
18194 #
18195 # As a special exception to the GNU General Public License, if you
18196 # distribute this file as part of a program or library that is built
18197 # using GNU Libtool, you may include this file under the same
18198 # distribution terms that you use for the rest of that program.
18199 #
18200 # GNU Libtool is distributed in the hope that it will be useful, but
18201 # WITHOUT ANY WARRANTY; without even the implied warranty of
18202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18203 # GNU General Public License for more details.
18204 #
18205 # You should have received a copy of the GNU General Public License
18206 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18207
18208
18209 # The names of the tagged configurations supported by this script.
18210 available_tags=''
18211
18212 # Configured defaults for sys_lib_dlsearch_path munging.
18213 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18214
18215 # ### BEGIN LIBTOOL CONFIG
18216
18217 # Which release of libtool.m4 was used?
18218 macro_version=$macro_version
18219 macro_revision=$macro_revision
18220
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18223
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18226
18227 # What type of objects to build.
18228 pic_mode=$pic_mode
18229
18230 # Whether or not to optimize for fast installation.
18231 fast_install=$enable_fast_install
18232
18233 # Shared archive member basename,for filename based shared library versioning on AIX.
18234 shared_archive_member_spec=$shared_archive_member_spec
18235
18236 # Shell to use when invoking shell scripts.
18237 SHELL=$lt_SHELL
18238
18239 # An echo program that protects backslashes.
18240 ECHO=$lt_ECHO
18241
18242 # The PATH separator for the build system.
18243 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18244
18245 # The host system.
18246 host_alias=$host_alias
18247 host=$host
18248 host_os=$host_os
18249
18250 # The build system.
18251 build_alias=$build_alias
18252 build=$build
18253 build_os=$build_os
18254
18255 # A sed program that does not truncate output.
18256 SED=$lt_SED
18257
18258 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18259 Xsed="\$SED -e 1s/^X//"
18260
18261 # A grep program that handles long lines.
18262 GREP=$lt_GREP
18263
18264 # An ERE matcher.
18265 EGREP=$lt_EGREP
18266
18267 # A literal string matcher.
18268 FGREP=$lt_FGREP
18269
18270 # A BSD- or MS-compatible name lister.
18271 NM=$lt_NM
18272
18273 # Whether we need soft or hard links.
18274 LN_S=$lt_LN_S
18275
18276 # What is the maximum length of a command?
18277 max_cmd_len=$max_cmd_len
18278
18279 # Object file suffix (normally "o").
18280 objext=$ac_objext
18281
18282 # Executable file suffix (normally "").
18283 exeext=$exeext
18284
18285 # whether the shell understands "unset".
18286 lt_unset=$lt_unset
18287
18288 # turn spaces into newlines.
18289 SP2NL=$lt_lt_SP2NL
18290
18291 # turn newlines into spaces.
18292 NL2SP=$lt_lt_NL2SP
18293
18294 # convert \$build file names to \$host format.
18295 to_host_file_cmd=$lt_cv_to_host_file_cmd
18296
18297 # convert \$build files to toolchain format.
18298 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18299
18300 # An object symbol dumper.
18301 OBJDUMP=$lt_OBJDUMP
18302
18303 # Method to check whether dependent libraries are shared objects.
18304 deplibs_check_method=$lt_deplibs_check_method
18305
18306 # Command to use when deplibs_check_method = "file_magic".
18307 file_magic_cmd=$lt_file_magic_cmd
18308
18309 # How to find potential files when deplibs_check_method = "file_magic".
18310 file_magic_glob=$lt_file_magic_glob
18311
18312 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18313 want_nocaseglob=$lt_want_nocaseglob
18314
18315 # DLL creation program.
18316 DLLTOOL=$lt_DLLTOOL
18317
18318 # Command to associate shared and link libraries.
18319 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18320
18321 # The archiver.
18322 AR=$lt_AR
18323
18324 # Flags to create an archive.
18325 AR_FLAGS=$lt_AR_FLAGS
18326
18327 # How to feed a file listing to the archiver.
18328 archiver_list_spec=$lt_archiver_list_spec
18329
18330 # A symbol stripping program.
18331 STRIP=$lt_STRIP
18332
18333 # Commands used to install an old-style archive.
18334 RANLIB=$lt_RANLIB
18335 old_postinstall_cmds=$lt_old_postinstall_cmds
18336 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18337
18338 # Whether to use a lock for old archive extraction.
18339 lock_old_archive_extraction=$lock_old_archive_extraction
18340
18341 # A C compiler.
18342 LTCC=$lt_CC
18343
18344 # LTCC compiler flags.
18345 LTCFLAGS=$lt_CFLAGS
18346
18347 # Take the output of nm and produce a listing of raw symbols and C names.
18348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18349
18350 # Transform the output of nm in a proper C declaration.
18351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18352
18353 # Transform the output of nm into a list of symbols to manually relocate.
18354 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18355
18356 # Transform the output of nm in a C name address pair.
18357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18358
18359 # Transform the output of nm in a C name address pair when lib prefix is needed.
18360 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18361
18362 # The name lister interface.
18363 nm_interface=$lt_lt_cv_nm_interface
18364
18365 # Specify filename containing input files for \$NM.
18366 nm_file_list_spec=$lt_nm_file_list_spec
18367
18368 # The root where to search for dependent libraries,and where our libraries should be installed.
18369 lt_sysroot=$lt_sysroot
18370
18371 # Command to truncate a binary pipe.
18372 lt_truncate_bin=$lt_lt_cv_truncate_bin
18373
18374 # The name of the directory that contains temporary libtool files.
18375 objdir=$objdir
18376
18377 # Used to examine libraries when file_magic_cmd begins with "file".
18378 MAGIC_CMD=$MAGIC_CMD
18379
18380 # Must we lock files when doing compilation?
18381 need_locks=$lt_need_locks
18382
18383 # Manifest tool.
18384 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18385
18386 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18387 DSYMUTIL=$lt_DSYMUTIL
18388
18389 # Tool to change global to local symbols on Mac OS X.
18390 NMEDIT=$lt_NMEDIT
18391
18392 # Tool to manipulate fat objects and archives on Mac OS X.
18393 LIPO=$lt_LIPO
18394
18395 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18396 OTOOL=$lt_OTOOL
18397
18398 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18399 OTOOL64=$lt_OTOOL64
18400
18401 # Old archive suffix (normally "a").
18402 libext=$libext
18403
18404 # Shared library suffix (normally ".so").
18405 shrext_cmds=$lt_shrext_cmds
18406
18407 # The commands to extract the exported symbol list from a shared archive.
18408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18409
18410 # Variables whose values should be saved in libtool wrapper scripts and
18411 # restored at link time.
18412 variables_saved_for_relink=$lt_variables_saved_for_relink
18413
18414 # Do we need the "lib" prefix for modules?
18415 need_lib_prefix=$need_lib_prefix
18416
18417 # Do we need a version for libraries?
18418 need_version=$need_version
18419
18420 # Library versioning type.
18421 version_type=$version_type
18422
18423 # Shared library runtime path variable.
18424 runpath_var=$runpath_var
18425
18426 # Shared library path variable.
18427 shlibpath_var=$shlibpath_var
18428
18429 # Is shlibpath searched before the hard-coded library search path?
18430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18431
18432 # Format of library name prefix.
18433 libname_spec=$lt_libname_spec
18434
18435 # List of archive names. First name is the real one, the rest are links.
18436 # The last name is the one that the linker finds with -lNAME
18437 library_names_spec=$lt_library_names_spec
18438
18439 # The coded name of the library, if different from the real name.
18440 soname_spec=$lt_soname_spec
18441
18442 # Permission mode override for installation of shared libraries.
18443 install_override_mode=$lt_install_override_mode
18444
18445 # Command to use after installation of a shared archive.
18446 postinstall_cmds=$lt_postinstall_cmds
18447
18448 # Command to use after uninstallation of a shared archive.
18449 postuninstall_cmds=$lt_postuninstall_cmds
18450
18451 # Commands used to finish a libtool library installation in a directory.
18452 finish_cmds=$lt_finish_cmds
18453
18454 # As "finish_cmds", except a single script fragment to be evaled but
18455 # not shown.
18456 finish_eval=$lt_finish_eval
18457
18458 # Whether we should hardcode library paths into libraries.
18459 hardcode_into_libs=$hardcode_into_libs
18460
18461 # Compile-time system search path for libraries.
18462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18463
18464 # Detected run-time system search path for libraries.
18465 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18466
18467 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18468 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18469
18470 # Whether dlopen is supported.
18471 dlopen_support=$enable_dlopen
18472
18473 # Whether dlopen of programs is supported.
18474 dlopen_self=$enable_dlopen_self
18475
18476 # Whether dlopen of statically linked programs is supported.
18477 dlopen_self_static=$enable_dlopen_self_static
18478
18479 # Commands to strip libraries.
18480 old_striplib=$lt_old_striplib
18481 striplib=$lt_striplib
18482
18483
18484 # The linker used to build libraries.
18485 LD=$lt_LD
18486
18487 # How to create reloadable object files.
18488 reload_flag=$lt_reload_flag
18489 reload_cmds=$lt_reload_cmds
18490
18491 # Commands used to build an old-style archive.
18492 old_archive_cmds=$lt_old_archive_cmds
18493
18494 # A language specific compiler.
18495 CC=$lt_compiler
18496
18497 # Is the compiler the GNU compiler?
18498 with_gcc=$GCC
18499
18500 # Compiler flag to turn off builtin functions.
18501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18502
18503 # Additional compiler flags for building library objects.
18504 pic_flag=$lt_lt_prog_compiler_pic
18505
18506 # How to pass a linker flag through the compiler.
18507 wl=$lt_lt_prog_compiler_wl
18508
18509 # Compiler flag to prevent dynamic linking.
18510 link_static_flag=$lt_lt_prog_compiler_static
18511
18512 # Does compiler simultaneously support -c and -o options?
18513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18514
18515 # Whether or not to add -lc for building shared libraries.
18516 build_libtool_need_lc=$archive_cmds_need_lc
18517
18518 # Whether or not to disallow shared libs when runtime libs are static.
18519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18520
18521 # Compiler flag to allow reflexive dlopens.
18522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18523
18524 # Compiler flag to generate shared objects directly from archives.
18525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18526
18527 # Whether the compiler copes with passing no objects directly.
18528 compiler_needs_object=$lt_compiler_needs_object
18529
18530 # Create an old-style archive from a shared archive.
18531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18532
18533 # Create a temporary old-style archive to link instead of a shared archive.
18534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18535
18536 # Commands used to build a shared archive.
18537 archive_cmds=$lt_archive_cmds
18538 archive_expsym_cmds=$lt_archive_expsym_cmds
18539
18540 # Commands used to build a loadable module if different from building
18541 # a shared archive.
18542 module_cmds=$lt_module_cmds
18543 module_expsym_cmds=$lt_module_expsym_cmds
18544
18545 # Whether we are building with GNU ld or not.
18546 with_gnu_ld=$lt_with_gnu_ld
18547
18548 # Flag that allows shared libraries with undefined symbols to be built.
18549 allow_undefined_flag=$lt_allow_undefined_flag
18550
18551 # Flag that enforces no undefined symbols.
18552 no_undefined_flag=$lt_no_undefined_flag
18553
18554 # Flag to hardcode \$libdir into a binary during linking.
18555 # This must work even if \$libdir does not exist
18556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18557
18558 # Whether we need a single "-rpath" flag with a separated argument.
18559 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18560
18561 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18562 # DIR into the resulting binary.
18563 hardcode_direct=$hardcode_direct
18564
18565 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18566 # DIR into the resulting binary and the resulting library dependency is
18567 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18568 # library is relocated.
18569 hardcode_direct_absolute=$hardcode_direct_absolute
18570
18571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18572 # into the resulting binary.
18573 hardcode_minus_L=$hardcode_minus_L
18574
18575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18576 # into the resulting binary.
18577 hardcode_shlibpath_var=$hardcode_shlibpath_var
18578
18579 # Set to "yes" if building a shared library automatically hardcodes DIR
18580 # into the library and all subsequent libraries and executables linked
18581 # against it.
18582 hardcode_automatic=$hardcode_automatic
18583
18584 # Set to yes if linker adds runtime paths of dependent libraries
18585 # to runtime path list.
18586 inherit_rpath=$inherit_rpath
18587
18588 # Whether libtool must link a program against all its dependency libraries.
18589 link_all_deplibs=$link_all_deplibs
18590
18591 # Set to "yes" if exported symbols are required.
18592 always_export_symbols=$always_export_symbols
18593
18594 # The commands to list exported symbols.
18595 export_symbols_cmds=$lt_export_symbols_cmds
18596
18597 # Symbols that should not be listed in the preloaded symbols.
18598 exclude_expsyms=$lt_exclude_expsyms
18599
18600 # Symbols that must always be exported.
18601 include_expsyms=$lt_include_expsyms
18602
18603 # Commands necessary for linking programs (against libraries) with templates.
18604 prelink_cmds=$lt_prelink_cmds
18605
18606 # Commands necessary for finishing linking programs.
18607 postlink_cmds=$lt_postlink_cmds
18608
18609 # Specify filename containing input files.
18610 file_list_spec=$lt_file_list_spec
18611
18612 # How to hardcode a shared library path into an executable.
18613 hardcode_action=$hardcode_action
18614
18615 # ### END LIBTOOL CONFIG
18616
18617 _LT_EOF
18618
18619 cat <<'_LT_EOF' >> "$cfgfile"
18620
18621 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18622
18623 # func_munge_path_list VARIABLE PATH
18624 # -----------------------------------
18625 # VARIABLE is name of variable containing _space_ separated list of
18626 # directories to be munged by the contents of PATH, which is string
18627 # having a format:
18628 # "DIR[:DIR]:"
18629 # string "DIR[ DIR]" will be prepended to VARIABLE
18630 # ":DIR[:DIR]"
18631 # string "DIR[ DIR]" will be appended to VARIABLE
18632 # "DIRP[:DIRP]::[DIRA:]DIRA"
18633 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18634 # "DIRA[ DIRA]" will be appended to VARIABLE
18635 # "DIR[:DIR]"
18636 # VARIABLE will be replaced by "DIR[ DIR]"
18637 func_munge_path_list ()
18638 {
18639 case x$2 in
18640 x)
18641 ;;
18642 *:)
18643 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18644 ;;
18645 x:*)
18646 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18647 ;;
18648 *::*)
18649 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18650 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18651 ;;
18652 *)
18653 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18654 ;;
18655 esac
18656 }
18657
18658
18659 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18660 func_cc_basename ()
18661 {
18662 for cc_temp in $*""; do
18663 case $cc_temp in
18664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18666 \-*) ;;
18667 *) break;;
18668 esac
18669 done
18670 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18671 }
18672
18673
18674 # ### END FUNCTIONS SHARED WITH CONFIGURE
18675
18676 _LT_EOF
18677
18678 case $host_os in
18679 aix3*)
18680 cat <<\_LT_EOF >> "$cfgfile"
18681 # AIX sometimes has problems with the GCC collect2 program. For some
18682 # reason, if we set the COLLECT_NAMES environment variable, the problems
18683 # vanish in a puff of smoke.
18684 if test set != "${COLLECT_NAMES+set}"; then
18685 COLLECT_NAMES=
18686 export COLLECT_NAMES
18687 fi
18688 _LT_EOF
18689 ;;
18690 esac
18691
18692
18693 ltmain=$ac_aux_dir/ltmain.sh
18694
18695
18696 # We use sed instead of cat because bash on DJGPP gets confused if
18697 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18698 # text mode, it properly converts lines to CR/LF. This bash problem
18699 # is reportedly fixed, but why not run on old versions too?
18700 sed '$q' "$ltmain" >> "$cfgfile" \
18701 || (rm -f "$cfgfile"; exit 1)
18702
18703 mv -f "$cfgfile" "$ofile" ||
18704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18705 chmod +x "$ofile"
18706
18707 ;;
18708 "po-directories":C)
18709 for ac_file in $CONFIG_FILES; do
18710 # Support "outfile[:infile[:infile...]]"
18711 case "$ac_file" in
18712 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18713 esac
18714 # PO directories have a Makefile.in generated from Makefile.in.in.
18715 case "$ac_file" in */Makefile.in)
18716 # Adjust a relative srcdir.
18717 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18718 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18719 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18720 # In autoconf-2.13 it is called $ac_given_srcdir.
18721 # In autoconf-2.50 it is called $srcdir.
18722 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18723 case "$ac_given_srcdir" in
18724 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18725 /*) top_srcdir="$ac_given_srcdir" ;;
18726 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18727 esac
18728 # Treat a directory as a PO directory if and only if it has a
18729 # POTFILES.in file. This allows packages to have multiple PO
18730 # directories under different names or in different locations.
18731 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18732 rm -f "$ac_dir/POTFILES"
18733 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18734 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18735 POMAKEFILEDEPS="POTFILES.in"
18736 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18737 # on $ac_dir but don't depend on user-specified configuration
18738 # parameters.
18739 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18740 # The LINGUAS file contains the set of available languages.
18741 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18742 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18743 fi
18744 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18745 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18746 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18747 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18748 else
18749 # The set of available languages was given in configure.in.
18750 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18751 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18752 fi
18753 # Compute POFILES
18754 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18755 # Compute UPDATEPOFILES
18756 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18757 # Compute DUMMYPOFILES
18758 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18759 # Compute GMOFILES
18760 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18761 case "$ac_given_srcdir" in
18762 .) srcdirpre= ;;
18763 *) srcdirpre='$(srcdir)/' ;;
18764 esac
18765 POFILES=
18766 UPDATEPOFILES=
18767 DUMMYPOFILES=
18768 GMOFILES=
18769 for lang in $ALL_LINGUAS; do
18770 POFILES="$POFILES $srcdirpre$lang.po"
18771 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18772 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18773 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18774 done
18775 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18776 # environment variable.
18777 INST_LINGUAS=
18778 if test -n "$ALL_LINGUAS"; then
18779 for presentlang in $ALL_LINGUAS; do
18780 useit=no
18781 if test "%UNSET%" != "$LINGUAS"; then
18782 desiredlanguages="$LINGUAS"
18783 else
18784 desiredlanguages="$ALL_LINGUAS"
18785 fi
18786 for desiredlang in $desiredlanguages; do
18787 # Use the presentlang catalog if desiredlang is
18788 # a. equal to presentlang, or
18789 # b. a variant of presentlang (because in this case,
18790 # presentlang can be used as a fallback for messages
18791 # which are not translated in the desiredlang catalog).
18792 case "$desiredlang" in
18793 "$presentlang"*) useit=yes;;
18794 esac
18795 done
18796 if test $useit = yes; then
18797 INST_LINGUAS="$INST_LINGUAS $presentlang"
18798 fi
18799 done
18800 fi
18801 CATALOGS=
18802 if test -n "$INST_LINGUAS"; then
18803 for lang in $INST_LINGUAS; do
18804 CATALOGS="$CATALOGS $lang.gmo"
18805 done
18806 fi
18807 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18808 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18809 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18810 if test -f "$f"; then
18811 case "$f" in
18812 *.orig | *.bak | *~) ;;
18813 *) cat "$f" >> "$ac_dir/Makefile" ;;
18814 esac
18815 fi
18816 done
18817 fi
18818 ;;
18819 esac
18820 done ;;
18821 "doc":C) test -d doc || mkdir doc ;;
18822 "data":C) test -d data || mkdir data ;;
18823 "data/xsession":C) test -d data/xsession || mkdir data/xsession ;;
18824
18825 esac
18826 done # for ac_tag
18827
18828
18829 as_fn_exit 0
18830 _ACEOF
18831 ac_clean_files=$ac_clean_files_save
18832
18833 test $ac_write_fail = 0 ||
18834 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18835
18836
18837 # configure is writing to config.log, and then calls config.status.
18838 # config.status does its own redirection, appending to config.log.
18839 # Unfortunately, on DOS this fails, as config.log is still kept open
18840 # by configure, so config.status won't be able to write to it; its
18841 # output is simply discarded. So we exec the FD to /dev/null,
18842 # effectively closing config.log, so it can be properly (re)opened and
18843 # appended to by config.status. When coming back to configure, we
18844 # need to make the FD available again.
18845 if test "$no_create" != yes; then
18846 ac_cs_success=:
18847 ac_config_status_args=
18848 test "$silent" = yes &&
18849 ac_config_status_args="$ac_config_status_args --quiet"
18850 exec 5>/dev/null
18851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18852 exec 5>>config.log
18853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18854 # would make configure fail if this is the last instruction.
18855 $ac_cs_success || as_fn_exit 1
18856 fi
18857 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18859 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18860 fi
18861
18862
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18864 $as_echo "" >&6; }
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compiling with these options:
18866 Startup Notification... $sn_found
18867 X Cursor Library... $xcursor_found
18868 Session Management... $SM
18869 Imlib2 Library... $imlib2_found
18870 SVG Support (librsvg)... $librsvg_found
18871 " >&5
18872 $as_echo "Compiling with these options:
18873 Startup Notification... $sn_found
18874 X Cursor Library... $xcursor_found
18875 Session Management... $SM
18876 Imlib2 Library... $imlib2_found
18877 SVG Support (librsvg)... $librsvg_found
18878 " >&6; }
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configure complete, now type \"make\"" >&5
18880 $as_echo "configure complete, now type \"make\"" >&6; }