Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libxdg-basedir 1.2.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and
250 $0: [email protected] about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libxdg-basedir'
572 PACKAGE_TARNAME='libxdg-basedir'
573 PACKAGE_VERSION='1.2.0'
574 PACKAGE_STRING='libxdg-basedir 1.2.0'
575 PACKAGE_BUGREPORT='[email protected]'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 # include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 # include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LDFLAGS_NOUNDEFINED
618 LIBOBJS
619 DOXYGEN_PAPER_SIZE
620 DX_COND_latex_FALSE
621 DX_COND_latex_TRUE
622 DX_COND_pdf_FALSE
623 DX_COND_pdf_TRUE
624 DX_PDFLATEX
625 DX_FLAG_pdf
626 DX_COND_ps_FALSE
627 DX_COND_ps_TRUE
628 DX_EGREP
629 DX_DVIPS
630 DX_MAKEINDEX
631 DX_LATEX
632 DX_FLAG_ps
633 DX_COND_html_FALSE
634 DX_COND_html_TRUE
635 DX_FLAG_html
636 DX_COND_chi_FALSE
637 DX_COND_chi_TRUE
638 DX_FLAG_chi
639 DX_COND_chm_FALSE
640 DX_COND_chm_TRUE
641 DX_HHC
642 DX_FLAG_chm
643 DX_COND_xml_FALSE
644 DX_COND_xml_TRUE
645 DX_FLAG_xml
646 DX_COND_rtf_FALSE
647 DX_COND_rtf_TRUE
648 DX_FLAG_rtf
649 DX_COND_man_FALSE
650 DX_COND_man_TRUE
651 DX_FLAG_man
652 DX_COND_dot_FALSE
653 DX_COND_dot_TRUE
654 DX_DOT
655 DX_FLAG_dot
656 DX_COND_doc_FALSE
657 DX_COND_doc_TRUE
658 DX_PERL
659 DX_DOXYGEN
660 DX_FLAG_doc
661 DX_ENV
662 DX_DOCDIR
663 DX_CONFIG
664 DX_PROJECT
665 CPP
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 am__untar
712 am__tar
713 AMTAR
714 am__leading_dot
715 SET_MAKE
716 AWK
717 mkdir_p
718 MKDIR_P
719 INSTALL_STRIP_PROGRAM
720 STRIP
721 install_sh
722 MAKEINFO
723 AUTOHEADER
724 AUTOMAKE
725 AUTOCONF
726 ACLOCAL
727 VERSION
728 PACKAGE
729 CYGPATH_W
730 am__isrc
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_dependency_tracking
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 enable_doxygen_doc
784 enable_doxygen_dot
785 enable_doxygen_man
786 enable_doxygen_rtf
787 enable_doxygen_xml
788 enable_doxygen_chm
789 enable_doxygen_chi
790 enable_doxygen_html
791 enable_doxygen_ps
792 enable_doxygen_pdf
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP
803 DOXYGEN_PAPER_SIZE'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 ;;
1210
1211 esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1232 do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260 If a cross compiler is detected then cross compile mode will be used" >&2
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1263 fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\).*/{
1303 s//\1/
1304 q
1305 }
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1310 fi
1311 else
1312 ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures libxdg-basedir 1.2.0 to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1371
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/libxdg-basedir]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of libxdg-basedir 1.2.0:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --disable-dependency-tracking speeds up one-time build
1425 --enable-dependency-tracking do not reject slow dependency extractors
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431 --disable-doxygen-doc don't generate any doxygen documentation
1432 --disable-doxygen-dot don't generate graphics for doxygen documentation
1433 --enable-doxygen-man generate doxygen manual pages
1434 --enable-doxygen-rtf generate doxygen RTF documentation
1435 --enable-doxygen-xml generate doxygen XML documentation
1436 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1437 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1438 file
1439 --disable-doxygen-html don't generate doxygen plain HTML documentation
1440 --enable-doxygen-ps generate doxygen PostScript documentation
1441 --enable-doxygen-pdf generate doxygen PDF documentation
1442
1443 Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-pic try to use only PIC/non-PIC objects [default=use
1447 both]
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1449 --with-sysroot=DIR Search for dependent libraries within DIR
1450 (or the compiler's sysroot if not specified).
1451
1452 Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1460 CPP C preprocessor
1461 DOXYGEN_PAPER_SIZE
1462 a4wide (default), a4, letter, legal or executive
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <[email protected]>.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 libxdg-basedir configure 1.2.0
1531 generated by GNU Autoconf 2.68
1532
1533 Copyright (C) 2010 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537 exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 $as_test_x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=$ac_status
1731 fi
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804
1805 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1808 # the include files in INCLUDES and setting the cache variable VAR
1809 # accordingly.
1810 ac_fn_c_check_header_mongrel ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if eval \${$3+:} false; then :
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 fi
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 else
1823 # Is the header compilable?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1825 $as_echo_n "checking $2 usability... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_header_compiler=yes
1833 else
1834 ac_header_compiler=no
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1838 $as_echo "$ac_header_compiler" >&6; }
1839
1840 # Is the header present?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1842 $as_echo_n "checking $2 presence... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_cpp "$LINENO"; then :
1848 ac_header_preproc=yes
1849 else
1850 ac_header_preproc=no
1851 fi
1852 rm -f conftest.err conftest.i conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1854 $as_echo "$ac_header_preproc" >&6; }
1855
1856 # So? What about this header?
1857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 yes:no: )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1860 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ;;
1864 no:yes:* )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1866 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1868 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1870 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1872 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 ( $as_echo "## ------------------------------------ ##
1876 ## Report this to [email protected] ##
1877 ## ------------------------------------ ##"
1878 ) | sed "s/^/$as_me: WARNING: /" >&2
1879 ;;
1880 esac
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 eval "$3=\$ac_header_compiler"
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 fi
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_header_mongrel
1895
1896 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1897 # -------------------------------------------
1898 # Tests whether TYPE exists after having included INCLUDES, setting cache
1899 # variable VAR accordingly.
1900 ac_fn_c_check_type ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 eval "$3=no"
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 int
1913 main ()
1914 {
1915 if (sizeof ($2))
1916 return 0;
1917 ;
1918 return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 int
1926 main ()
1927 {
1928 if (sizeof (($2)))
1929 return 0;
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935
1936 else
1937 eval "$3=yes"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_type
1949 cat >config.log <<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1952
1953 It was created by libxdg-basedir $as_me 1.2.0, which was
1954 generated by GNU Autoconf 2.68. Invocation command line was
1955
1956 $ $0 $@
1957
1958 _ACEOF
1959 exec 5>>config.log
1960 {
1961 cat <<_ASUNAME
1962 ## --------- ##
1963 ## Platform. ##
1964 ## --------- ##
1965
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974
1975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982
1983 _ASUNAME
1984
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 $as_echo "PATH: $as_dir"
1991 done
1992 IFS=$as_save_IFS
1993
1994 } >&5
1995
1996 cat >&5 <<_ACEOF
1997
1998
1999 ## ----------- ##
2000 ## Core tests. ##
2001 ## ----------- ##
2002
2003 _ACEOF
2004
2005
2006 # Keep a trace of the command line.
2007 # Strip out --no-create and --no-recursion so they do not pile up.
2008 # Strip out --silent because we don't want to record it for future runs.
2009 # Also quote any args containing shell meta-characters.
2010 # Make two passes to allow for proper duplicate-argument suppression.
2011 ac_configure_args=
2012 ac_configure_args0=
2013 ac_configure_args1=
2014 ac_must_keep_next=false
2015 for ac_pass in 1 2
2016 do
2017 for ac_arg
2018 do
2019 case $ac_arg in
2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022 | -silent | --silent | --silen | --sile | --sil)
2023 continue ;;
2024 *\'*)
2025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 esac
2027 case $ac_pass in
2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029 2)
2030 as_fn_append ac_configure_args1 " '$ac_arg'"
2031 if test $ac_must_keep_next = true; then
2032 ac_must_keep_next=false # Got value, back to normal.
2033 else
2034 case $ac_arg in
2035 *=* | --config-cache | -C | -disable-* | --disable-* \
2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038 | -with-* | --with-* | -without-* | --without-* | --x)
2039 case "$ac_configure_args0 " in
2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041 esac
2042 ;;
2043 -* ) ac_must_keep_next=true ;;
2044 esac
2045 fi
2046 as_fn_append ac_configure_args " '$ac_arg'"
2047 ;;
2048 esac
2049 done
2050 done
2051 { ac_configure_args0=; unset ac_configure_args0;}
2052 { ac_configure_args1=; unset ac_configure_args1;}
2053
2054 # When interrupted or exit'd, cleanup temporary files, and complete
2055 # config.log. We remove comments because anyway the quotes in there
2056 # would cause problems or look ugly.
2057 # WARNING: Use '\'' to represent an apostrophe within the trap.
2058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059 trap 'exit_status=$?
2060 # Save into config.log some information that might help in debugging.
2061 {
2062 echo
2063
2064 $as_echo "## ---------------- ##
2065 ## Cache variables. ##
2066 ## ---------------- ##"
2067 echo
2068 # The following way of writing the cache mishandles newlines in values,
2069 (
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in #(
2073 *${as_nl}*)
2074 case $ac_var in #(
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077 esac
2078 case $ac_var in #(
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2082 esac ;;
2083 esac
2084 done
2085 (set) 2>&1 |
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
2088 sed -n \
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091 ;; #(
2092 *)
2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094 ;;
2095 esac |
2096 sort
2097 )
2098 echo
2099
2100 $as_echo "## ----------------- ##
2101 ## Output variables. ##
2102 ## ----------------- ##"
2103 echo
2104 for ac_var in $ac_subst_vars
2105 do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
2111 done | sort
2112 echo
2113
2114 if test -n "$ac_subst_files"; then
2115 $as_echo "## ------------------- ##
2116 ## File substitutions. ##
2117 ## ------------------- ##"
2118 echo
2119 for ac_var in $ac_subst_files
2120 do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
2126 done | sort
2127 echo
2128 fi
2129
2130 if test -s confdefs.h; then
2131 $as_echo "## ----------- ##
2132 ## confdefs.h. ##
2133 ## ----------- ##"
2134 echo
2135 cat confdefs.h
2136 echo
2137 fi
2138 test "$ac_signal" != 0 &&
2139 $as_echo "$as_me: caught signal $ac_signal"
2140 $as_echo "$as_me: exit $exit_status"
2141 } >&5
2142 rm -f core *.core core.conftest.* &&
2143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2144 exit $exit_status
2145 ' 0
2146 for ac_signal in 1 2 13 15; do
2147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2148 done
2149 ac_signal=0
2150
2151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2152 rm -f -r conftest* confdefs.h
2153
2154 $as_echo "/* confdefs.h */" > confdefs.h
2155
2156 # Predefined preprocessor variables.
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_NAME "$PACKAGE_NAME"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_STRING "$PACKAGE_STRING"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_URL "$PACKAGE_URL"
2180 _ACEOF
2181
2182
2183 # Let the site file select an alternate cache file if it wants to.
2184 # Prefer an explicitly selected file to automatically selected ones.
2185 ac_site_file1=NONE
2186 ac_site_file2=NONE
2187 if test -n "$CONFIG_SITE"; then
2188 # We do not want a PATH search for config.site.
2189 case $CONFIG_SITE in #((
2190 -*) ac_site_file1=./$CONFIG_SITE;;
2191 */*) ac_site_file1=$CONFIG_SITE;;
2192 *) ac_site_file1=./$CONFIG_SITE;;
2193 esac
2194 elif test "x$prefix" != xNONE; then
2195 ac_site_file1=$prefix/share/config.site
2196 ac_site_file2=$prefix/etc/config.site
2197 else
2198 ac_site_file1=$ac_default_prefix/share/config.site
2199 ac_site_file2=$ac_default_prefix/etc/config.site
2200 fi
2201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202 do
2203 test "x$ac_site_file" = xNONE && continue
2204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207 sed 's/^/| /' "$ac_site_file" >&5
2208 . "$ac_site_file" \
2209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error $? "failed to load site script $ac_site_file
2212 See \`config.log' for more details" "$LINENO" 5; }
2213 fi
2214 done
2215
2216 if test -r "$cache_file"; then
2217 # Some versions of bash will fail to source /dev/null (special files
2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221 $as_echo "$as_me: loading cache $cache_file" >&6;}
2222 case $cache_file in
2223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224 *) . "./$cache_file";;
2225 esac
2226 fi
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229 $as_echo "$as_me: creating cache $cache_file" >&6;}
2230 >$cache_file
2231 fi
2232
2233 # Check that the precious variables saved in the cache have kept the same
2234 # value.
2235 ac_cache_corrupted=false
2236 for ac_var in $ac_precious_vars; do
2237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238 eval ac_new_set=\$ac_env_${ac_var}_set
2239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240 eval ac_new_val=\$ac_env_${ac_var}_value
2241 case $ac_old_set,$ac_new_set in
2242 set,)
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2246 ,set)
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2250 ,);;
2251 *)
2252 if test "x$ac_old_val" != "x$ac_new_val"; then
2253 # differences in whitespace do not lead to failure.
2254 ac_old_val_w=`echo x $ac_old_val`
2255 ac_new_val_w=`echo x $ac_new_val`
2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259 ac_cache_corrupted=:
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263 eval $ac_var=\$ac_old_val
2264 fi
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2269 fi;;
2270 esac
2271 # Pass precious variables to config.status.
2272 if test "$ac_new_set" = set; then
2273 case $ac_new_val in
2274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 *) ac_arg=$ac_var=$ac_new_val ;;
2276 esac
2277 case " $ac_configure_args " in
2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280 esac
2281 fi
2282 done
2283 if $ac_cache_corrupted; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2289 fi
2290 ## -------------------- ##
2291 ## Main body of script. ##
2292 ## -------------------- ##
2293
2294 ac_ext=c
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301 am__api_version='1.11'
2302
2303 ac_aux_dir=
2304 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2305 if test -f "$ac_dir/install-sh"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/install-sh -c"
2308 break
2309 elif test -f "$ac_dir/install.sh"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/install.sh -c"
2312 break
2313 elif test -f "$ac_dir/shtool"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/shtool install -c"
2316 break
2317 fi
2318 done
2319 if test -z "$ac_aux_dir"; then
2320 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2321 fi
2322
2323 # These three variables are undocumented and unsupported,
2324 # and are intended to be withdrawn in a future Autoconf release.
2325 # They can cause serious problems if a builder's source tree is in a directory
2326 # whose full name contains unusual characters.
2327 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2328 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2329 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2330
2331
2332 # Find a good install program. We prefer a C program (faster),
2333 # so one script is as good as another. But avoid the broken or
2334 # incompatible versions:
2335 # SysV /etc/install, /usr/sbin/install
2336 # SunOS /usr/etc/install
2337 # IRIX /sbin/install
2338 # AIX /bin/install
2339 # AmigaOS /C/install, which installs bootblocks on floppy discs
2340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2343 # OS/2's system install, which has a completely different semantic
2344 # ./install, which can be erroneously created by make from ./install.sh.
2345 # Reject install programs that cannot install multiple files.
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2347 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2348 if test -z "$INSTALL"; then
2349 if ${ac_cv_path_install+:} false; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 # Account for people who put trailing slashes in PATH elements.
2358 case $as_dir/ in #((
2359 ./ | .// | /[cC]/* | \
2360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2361 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2362 /usr/ucb/* ) ;;
2363 *)
2364 # OSF1 and SCO ODT 3.0 have their own names for install.
2365 # Don't use installbsd from OSF since it installs stuff as root
2366 # by default.
2367 for ac_prog in ginstall scoinst install; do
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2370 if test $ac_prog = install &&
2371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # AIX install. It has an incompatible calling convention.
2373 :
2374 elif test $ac_prog = install &&
2375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376 # program-specific install script used by HP pwplus--don't use.
2377 :
2378 else
2379 rm -rf conftest.one conftest.two conftest.dir
2380 echo one > conftest.one
2381 echo two > conftest.two
2382 mkdir conftest.dir
2383 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2384 test -s conftest.one && test -s conftest.two &&
2385 test -s conftest.dir/conftest.one &&
2386 test -s conftest.dir/conftest.two
2387 then
2388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2389 break 3
2390 fi
2391 fi
2392 fi
2393 done
2394 done
2395 ;;
2396 esac
2397
2398 done
2399 IFS=$as_save_IFS
2400
2401 rm -rf conftest.one conftest.two conftest.dir
2402
2403 fi
2404 if test "${ac_cv_path_install+set}" = set; then
2405 INSTALL=$ac_cv_path_install
2406 else
2407 # As a last resort, use the slow shell script. Don't cache a
2408 # value for INSTALL within a source directory, because that will
2409 # break other packages using the cache if that directory is
2410 # removed, or if the value is a relative name.
2411 INSTALL=$ac_install_sh
2412 fi
2413 fi
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2415 $as_echo "$INSTALL" >&6; }
2416
2417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2418 # It thinks the first close brace ends the variable substitution.
2419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2420
2421 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2422
2423 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2424
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2426 $as_echo_n "checking whether build environment is sane... " >&6; }
2427 # Just in case
2428 sleep 1
2429 echo timestamp > conftest.file
2430 # Reject unsafe characters in $srcdir or the absolute working directory
2431 # name. Accept space and tab only in the latter.
2432 am_lf='
2433 '
2434 case `pwd` in
2435 *[\\\"\#\$\&\'\`$am_lf]*)
2436 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2437 esac
2438 case $srcdir in
2439 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2440 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2441 esac
2442
2443 # Do `set' in a subshell so we don't clobber the current shell's
2444 # arguments. Must try -L first in case configure is actually a
2445 # symlink; some systems play weird games with the mod time of symlinks
2446 # (eg FreeBSD returns the mod time of the symlink's containing
2447 # directory).
2448 if (
2449 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2450 if test "$*" = "X"; then
2451 # -L didn't work.
2452 set X `ls -t "$srcdir/configure" conftest.file`
2453 fi
2454 rm -f conftest.file
2455 if test "$*" != "X $srcdir/configure conftest.file" \
2456 && test "$*" != "X conftest.file $srcdir/configure"; then
2457
2458 # If neither matched, then we have a broken ls. This can happen
2459 # if, for instance, CONFIG_SHELL is bash and it inherits a
2460 # broken ls alias from the environment. This has actually
2461 # happened. Such a system could not be considered "sane".
2462 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2463 alias in your environment" "$LINENO" 5
2464 fi
2465
2466 test "$2" = conftest.file
2467 )
2468 then
2469 # Ok.
2470 :
2471 else
2472 as_fn_error $? "newly created file is older than distributed files!
2473 Check your system clock" "$LINENO" 5
2474 fi
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2476 $as_echo "yes" >&6; }
2477 test "$program_prefix" != NONE &&
2478 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2479 # Use a double $ so make ignores it.
2480 test "$program_suffix" != NONE &&
2481 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2482 # Double any \ or $.
2483 # By default was `s,x,x', remove it if useless.
2484 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2485 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2486
2487 # expand $ac_aux_dir to an absolute path
2488 am_aux_dir=`cd $ac_aux_dir && pwd`
2489
2490 if test x"${MISSING+set}" != xset; then
2491 case $am_aux_dir in
2492 *\ * | *\ *)
2493 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2494 *)
2495 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2496 esac
2497 fi
2498 # Use eval to expand $SHELL
2499 if eval "$MISSING --run true"; then
2500 am_missing_run="$MISSING --run "
2501 else
2502 am_missing_run=
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2504 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2505 fi
2506
2507 if test x"${install_sh}" != xset; then
2508 case $am_aux_dir in
2509 *\ * | *\ *)
2510 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2511 *)
2512 install_sh="\${SHELL} $am_aux_dir/install-sh"
2513 esac
2514 fi
2515
2516 # Installed binaries are usually stripped using `strip' when the user
2517 # run `make install-strip'. However `strip' might not be the right
2518 # tool to use in cross-compilation environments, therefore Automake
2519 # will honor the `STRIP' environment variable to overrule this program.
2520 if test "$cross_compiling" != no; then
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}strip; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_STRIP+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$STRIP"; then
2530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 STRIP=$ac_cv_prog_STRIP
2550 if test -n "$STRIP"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2552 $as_echo "$STRIP" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558
2559 fi
2560 if test -z "$ac_cv_prog_STRIP"; then
2561 ac_ct_STRIP=$STRIP
2562 # Extract the first word of "strip", so it can be a program name with args.
2563 set dummy strip; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$ac_ct_STRIP"; then
2570 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_STRIP="strip"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2590 if test -n "$ac_ct_STRIP"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2592 $as_echo "$ac_ct_STRIP" >&6; }
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598 if test "x$ac_ct_STRIP" = x; then
2599 STRIP=":"
2600 else
2601 case $cross_compiling:$ac_tool_warned in
2602 yes:)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2605 ac_tool_warned=yes ;;
2606 esac
2607 STRIP=$ac_ct_STRIP
2608 fi
2609 else
2610 STRIP="$ac_cv_prog_STRIP"
2611 fi
2612
2613 fi
2614 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2615
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2617 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2618 if test -z "$MKDIR_P"; then
2619 if ${ac_cv_path_mkdir+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2624 do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_prog in mkdir gmkdir; do
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2630 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2631 'mkdir (GNU coreutils) '* | \
2632 'mkdir (coreutils) '* | \
2633 'mkdir (fileutils) '4.1*)
2634 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2635 break 3;;
2636 esac
2637 done
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643
2644 test -d ./--version && rmdir ./--version
2645 if test "${ac_cv_path_mkdir+set}" = set; then
2646 MKDIR_P="$ac_cv_path_mkdir -p"
2647 else
2648 # As a last resort, use the slow shell script. Don't cache a
2649 # value for MKDIR_P within a source directory, because that will
2650 # break other packages using the cache if that directory is
2651 # removed, or if the value is a relative name.
2652 MKDIR_P="$ac_install_sh -d"
2653 fi
2654 fi
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2656 $as_echo "$MKDIR_P" >&6; }
2657
2658 mkdir_p="$MKDIR_P"
2659 case $mkdir_p in
2660 [\\/$]* | ?:[\\/]*) ;;
2661 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2662 esac
2663
2664 for ac_prog in gawk mawk nawk awk
2665 do
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if ${ac_cv_prog_AWK+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test -n "$AWK"; then
2674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 ac_cv_prog_AWK="$ac_prog"
2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687 done
2688 done
2689 IFS=$as_save_IFS
2690
2691 fi
2692 fi
2693 AWK=$ac_cv_prog_AWK
2694 if test -n "$AWK"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2696 $as_echo "$AWK" >&6; }
2697 else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2700 fi
2701
2702
2703 test -n "$AWK" && break
2704 done
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2707 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2708 set x ${MAKE-make}
2709 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2710 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 cat >conftest.make <<\_ACEOF
2714 SHELL = /bin/sh
2715 all:
2716 @echo '@@@%%%=$(MAKE)=@@@%%%'
2717 _ACEOF
2718 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2719 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2720 *@@@%%%=?*=@@@%%%*)
2721 eval ac_cv_prog_make_${ac_make}_set=yes;;
2722 *)
2723 eval ac_cv_prog_make_${ac_make}_set=no;;
2724 esac
2725 rm -f conftest.make
2726 fi
2727 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729 $as_echo "yes" >&6; }
2730 SET_MAKE=
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 SET_MAKE="MAKE=${MAKE-make}"
2735 fi
2736
2737 rm -rf .tst 2>/dev/null
2738 mkdir .tst 2>/dev/null
2739 if test -d .tst; then
2740 am__leading_dot=.
2741 else
2742 am__leading_dot=_
2743 fi
2744 rmdir .tst 2>/dev/null
2745
2746 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2747 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2748 # is not polluted with repeated "-I."
2749 am__isrc=' -I$(srcdir)'
2750 # test to see if srcdir already configured
2751 if test -f $srcdir/config.status; then
2752 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2753 fi
2754 fi
2755
2756 # test whether we have cygpath
2757 if test -z "$CYGPATH_W"; then
2758 if (cygpath --version) >/dev/null 2>/dev/null; then
2759 CYGPATH_W='cygpath -w'
2760 else
2761 CYGPATH_W=echo
2762 fi
2763 fi
2764
2765
2766 # Define the identity of the package.
2767 PACKAGE='libxdg-basedir'
2768 VERSION='1.2.0'
2769
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE "$PACKAGE"
2773 _ACEOF
2774
2775
2776 cat >>confdefs.h <<_ACEOF
2777 #define VERSION "$VERSION"
2778 _ACEOF
2779
2780 # Some tools Automake needs.
2781
2782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2783
2784
2785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2786
2787
2788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2789
2790
2791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2792
2793
2794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2795
2796 # We need awk for the "check" target. The system "awk" is bad on
2797 # some platforms.
2798 # Always define AMTAR for backward compatibility.
2799
2800 AMTAR=${AMTAR-"${am_missing_run}tar"}
2801
2802 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2803
2804
2805
2806
2807
2808 # Checks for programs.
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852 fi
2853 if test -z "$ac_cv_prog_CC"; then
2854 ac_ct_CC=$CC
2855 # Extract the first word of "gcc", so it can be a program name with args.
2856 set dummy gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_ac_ct_CC="gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891 if test "x$ac_ct_CC" = x; then
2892 CC=""
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2899 esac
2900 CC=$ac_ct_CC
2901 fi
2902 else
2903 CC="$ac_cv_prog_CC"
2904 fi
2905
2906 if test -z "$CC"; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}cc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_CC="${ac_tool_prefix}cc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 fi
2946 fi
2947 if test -z "$CC"; then
2948 # Extract the first word of "cc", so it can be a program name with args.
2949 set dummy cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 ac_prog_rejected=no
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2967 ac_prog_rejected=yes
2968 continue
2969 fi
2970 ac_cv_prog_CC="cc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 if test $ac_prog_rejected = yes; then
2979 # We found a bogon in the path, so make sure we never use it.
2980 set dummy $ac_cv_prog_CC
2981 shift
2982 if test $# != 0; then
2983 # We chose a different compiler from the bogus one.
2984 # However, it has the same basename, so the bogon will be chosen
2985 # first if we set CC to just the basename; use the full file name.
2986 shift
2987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2988 fi
2989 fi
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 if test -z "$CC"; then
3004 if test -n "$ac_tool_prefix"; then
3005 for ac_prog in cl.exe
3006 do
3007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_CC+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044 test -n "$CC" && break
3045 done
3046 fi
3047 if test -z "$CC"; then
3048 ac_ct_CC=$CC
3049 for ac_prog in cl.exe
3050 do
3051 # Extract the first word of "$ac_prog", so it can be a program name with args.
3052 set dummy $ac_prog; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$ac_ct_CC"; then
3059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_ac_ct_CC="$ac_prog"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3081 $as_echo "$ac_ct_CC" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 test -n "$ac_ct_CC" && break
3089 done
3090
3091 if test "x$ac_ct_CC" = x; then
3092 CC=""
3093 else
3094 case $cross_compiling:$ac_tool_warned in
3095 yes:)
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098 ac_tool_warned=yes ;;
3099 esac
3100 CC=$ac_ct_CC
3101 fi
3102 fi
3103
3104 fi
3105
3106
3107 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details" "$LINENO" 5; }
3111
3112 # Provide some information about the compiler.
3113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3114 set X $ac_compile
3115 ac_compiler=$2
3116 for ac_option in --version -v -V -qversion; do
3117 { { ac_try="$ac_compiler $ac_option >&5"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3125 ac_status=$?
3126 if test -s conftest.err; then
3127 sed '10a\
3128 ... rest of stderr output deleted ...
3129 10q' conftest.err >conftest.er1
3130 cat conftest.er1 >&5
3131 fi
3132 rm -f conftest.er1 conftest.err
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 done
3136
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3139
3140 int
3141 main ()
3142 {
3143
3144 ;
3145 return 0;
3146 }
3147 _ACEOF
3148 ac_clean_files_save=$ac_clean_files
3149 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3150 # Try to create an executable without -o first, disregard a.out.
3151 # It will help us diagnose broken compilers, and finding out an intuition
3152 # of exeext.
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3154 $as_echo_n "checking whether the C compiler works... " >&6; }
3155 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3156
3157 # The possible output files:
3158 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3159
3160 ac_rmfiles=
3161 for ac_file in $ac_files
3162 do
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3166 esac
3167 done
3168 rm -f $ac_rmfiles
3169
3170 if { { ac_try="$ac_link_default"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_link_default") 2>&5
3178 ac_status=$?
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
3181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3184 # so that the user can short-circuit this test for compilers unknown to
3185 # Autoconf.
3186 for ac_file in $ac_files ''
3187 do
3188 test -f "$ac_file" || continue
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3191 ;;
3192 [ab].out )
3193 # We found the default executable, but exeext='' is most
3194 # certainly right.
3195 break;;
3196 *.* )
3197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3198 then :; else
3199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 fi
3201 # We set ac_cv_exeext here because the later test for it is not
3202 # safe: cross compilers may not add the suffix if given an `-o'
3203 # argument, so we may need to know it at that point already.
3204 # Even if this section looks crufty: it has the advantage of
3205 # actually working.
3206 break;;
3207 * )
3208 break;;
3209 esac
3210 done
3211 test "$ac_cv_exeext" = no && ac_cv_exeext=
3212
3213 else
3214 ac_file=''
3215 fi
3216 if test -z "$ac_file"; then :
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 $as_echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error 77 "C compiler cannot create executables
3225 See \`config.log' for more details" "$LINENO" 5; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3229 fi
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3231 $as_echo_n "checking for C compiler default output file name... " >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3233 $as_echo "$ac_file" >&6; }
3234 ac_exeext=$ac_cv_exeext
3235
3236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3237 ac_clean_files=$ac_clean_files_save
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3239 $as_echo_n "checking for suffix of executables... " >&6; }
3240 if { { ac_try="$ac_link"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3253 # work properly (i.e., refer to `conftest.exe'), while it won't with
3254 # `rm'.
3255 for ac_file in conftest.exe conftest conftest.*; do
3256 test -f "$ac_file" || continue
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 break;;
3261 * ) break;;
3262 esac
3263 done
3264 else
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3268 See \`config.log' for more details" "$LINENO" 5; }
3269 fi
3270 rm -f conftest conftest$ac_cv_exeext
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3272 $as_echo "$ac_cv_exeext" >&6; }
3273
3274 rm -f conftest.$ac_ext
3275 EXEEXT=$ac_cv_exeext
3276 ac_exeext=$EXEEXT
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279 #include <stdio.h>
3280 int
3281 main ()
3282 {
3283 FILE *f = fopen ("conftest.out", "w");
3284 return ferror (f) || fclose (f) != 0;
3285
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 ac_clean_files="$ac_clean_files conftest.out"
3291 # Check that the compiler produces executables we can run. If not, either
3292 # the compiler is broken, or we cross compile.
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3294 $as_echo_n "checking whether we are cross compiling... " >&6; }
3295 if test "$cross_compiling" != yes; then
3296 { { ac_try="$ac_link"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_link") 2>&5
3304 ac_status=$?
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }
3307 if { ac_try='./conftest$ac_cv_exeext'
3308 { { case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_try") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; }; then
3318 cross_compiling=no
3319 else
3320 if test "$cross_compiling" = maybe; then
3321 cross_compiling=yes
3322 else
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error $? "cannot run C compiled programs.
3326 If you meant to cross compile, use \`--host'.
3327 See \`config.log' for more details" "$LINENO" 5; }
3328 fi
3329 fi
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3332 $as_echo "$cross_compiling" >&6; }
3333
3334 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3335 ac_clean_files=$ac_clean_files_save
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3337 $as_echo_n "checking for suffix of object files... " >&6; }
3338 if ${ac_cv_objext+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.o conftest.obj
3353 if { { ac_try="$ac_compile"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_compile") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; then :
3364 for ac_file in conftest.o conftest.obj conftest.*; do
3365 test -f "$ac_file" || continue;
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3368 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3369 break;;
3370 esac
3371 done
3372 else
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot compute suffix of object files: cannot compile
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 fi
3381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3384 $as_echo "$ac_cv_objext" >&6; }
3385 OBJEXT=$ac_cv_objext
3386 ac_objext=$OBJEXT
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3388 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3389 if ${ac_cv_c_compiler_gnu+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398 #ifndef __GNUC__
3399 choke me
3400 #endif
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407 ac_compiler_gnu=yes
3408 else
3409 ac_compiler_gnu=no
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3417 if test $ac_compiler_gnu = yes; then
3418 GCC=yes
3419 else
3420 GCC=
3421 fi
3422 ac_test_CFLAGS=${CFLAGS+set}
3423 ac_save_CFLAGS=$CFLAGS
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3426 if ${ac_cv_prog_cc_g+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 ac_save_c_werror_flag=$ac_c_werror_flag
3430 ac_c_werror_flag=yes
3431 ac_cv_prog_cc_g=no
3432 CFLAGS="-g"
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_g=yes
3446 else
3447 CFLAGS=""
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450
3451 int
3452 main ()
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460
3461 else
3462 ac_c_werror_flag=$ac_save_c_werror_flag
3463 CFLAGS="-g"
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_prog_cc_g=yes
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_c_werror_flag=$ac_save_c_werror_flag
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3486 $as_echo "$ac_cv_prog_cc_g" >&6; }
3487 if test "$ac_test_CFLAGS" = set; then
3488 CFLAGS=$ac_save_CFLAGS
3489 elif test $ac_cv_prog_cc_g = yes; then
3490 if test "$GCC" = yes; then
3491 CFLAGS="-g -O2"
3492 else
3493 CFLAGS="-g"
3494 fi
3495 else
3496 if test "$GCC" = yes; then
3497 CFLAGS="-O2"
3498 else
3499 CFLAGS=
3500 fi
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3503 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3504 if ${ac_cv_prog_cc_c89+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_cv_prog_cc_c89=no
3508 ac_save_CC=$CC
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #include <stdarg.h>
3512 #include <stdio.h>
3513 #include <sys/types.h>
3514 #include <sys/stat.h>
3515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3516 struct buf { int x; };
3517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3518 static char *e (p, i)
3519 char **p;
3520 int i;
3521 {
3522 return p[i];
3523 }
3524 static char *f (char * (*g) (char **, int), char **p, ...)
3525 {
3526 char *s;
3527 va_list v;
3528 va_start (v,p);
3529 s = g (p, va_arg (v,int));
3530 va_end (v);
3531 return s;
3532 }
3533
3534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3535 function prototypes and stuff, but not '\xHH' hex character constants.
3536 These don't provoke an error unfortunately, instead are silently treated
3537 as 'x'. The following induces an error, until -std is added to get
3538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3539 array size at least. It's necessary to write '\x00'==0 to get something
3540 that's true only with -std. */
3541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3542
3543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3544 inside strings and character constants. */
3545 #define FOO(x) 'x'
3546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3547
3548 int test (int i, double x);
3549 struct s1 {int (*f) (int a);};
3550 struct s2 {int (*f) (double a);};
3551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3552 int argc;
3553 char **argv;
3554 int
3555 main ()
3556 {
3557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3564 do
3565 CC="$ac_save_CC $ac_arg"
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567 ac_cv_prog_cc_c89=$ac_arg
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext
3570 test "x$ac_cv_prog_cc_c89" != "xno" && break
3571 done
3572 rm -f conftest.$ac_ext
3573 CC=$ac_save_CC
3574
3575 fi
3576 # AC_CACHE_VAL
3577 case "x$ac_cv_prog_cc_c89" in
3578 x)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3580 $as_echo "none needed" >&6; } ;;
3581 xno)
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3583 $as_echo "unsupported" >&6; } ;;
3584 *)
3585 CC="$CC $ac_cv_prog_cc_c89"
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3587 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3588 esac
3589 if test "x$ac_cv_prog_cc_c89" != xno; then :
3590
3591 fi
3592
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 DEPDIR="${am__leading_dot}deps"
3599
3600 ac_config_commands="$ac_config_commands depfiles"
3601
3602
3603 am_make=${MAKE-make}
3604 cat > confinc << 'END'
3605 am__doit:
3606 @echo this is the am__doit target
3607 .PHONY: am__doit
3608 END
3609 # If we don't find an include directive, just comment out the code.
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3611 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3612 am__include="#"
3613 am__quote=
3614 _am_result=none
3615 # First try GNU make style include.
3616 echo "include confinc" > confmf
3617 # Ignore all kinds of additional output from `make'.
3618 case `$am_make -s -f confmf 2> /dev/null` in #(
3619 *the\ am__doit\ target*)
3620 am__include=include
3621 am__quote=
3622 _am_result=GNU
3623 ;;
3624 esac
3625 # Now try BSD make style include.
3626 if test "$am__include" = "#"; then
3627 echo '.include "confinc"' > confmf
3628 case `$am_make -s -f confmf 2> /dev/null` in #(
3629 *the\ am__doit\ target*)
3630 am__include=.include
3631 am__quote="\""
3632 _am_result=BSD
3633 ;;
3634 esac
3635 fi
3636
3637
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3639 $as_echo "$_am_result" >&6; }
3640 rm -f confinc confmf
3641
3642 # Check whether --enable-dependency-tracking was given.
3643 if test "${enable_dependency_tracking+set}" = set; then :
3644 enableval=$enable_dependency_tracking;
3645 fi
3646
3647 if test "x$enable_dependency_tracking" != xno; then
3648 am_depcomp="$ac_aux_dir/depcomp"
3649 AMDEPBACKSLASH='\'
3650 fi
3651 if test "x$enable_dependency_tracking" != xno; then
3652 AMDEP_TRUE=
3653 AMDEP_FALSE='#'
3654 else
3655 AMDEP_TRUE='#'
3656 AMDEP_FALSE=
3657 fi
3658
3659
3660
3661 depcc="$CC" am_compiler_list=
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3664 $as_echo_n "checking dependency style of $depcc... " >&6; }
3665 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3669 # We make a subdir and do the tests there. Otherwise we can end up
3670 # making bogus files that we don't know about and never remove. For
3671 # instance it was reported that on HP-UX the gcc test will end up
3672 # making a dummy file named `D' -- because `-MD' means `put the output
3673 # in D'.
3674 mkdir conftest.dir
3675 # Copy depcomp to subdir because otherwise we won't find it if we're
3676 # using a relative directory.
3677 cp "$am_depcomp" conftest.dir
3678 cd conftest.dir
3679 # We will build objects and dependencies in a subdirectory because
3680 # it helps to detect inapplicable dependency modes. For instance
3681 # both Tru64's cc and ICC support -MD to output dependencies as a
3682 # side effect of compilation, but ICC will put the dependencies in
3683 # the current directory while Tru64 will put them in the object
3684 # directory.
3685 mkdir sub
3686
3687 am_cv_CC_dependencies_compiler_type=none
3688 if test "$am_compiler_list" = ""; then
3689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3690 fi
3691 am__universal=false
3692 case " $depcc " in #(
3693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3694 esac
3695
3696 for depmode in $am_compiler_list; do
3697 # Setup a source with many dependencies, because some compilers
3698 # like to wrap large dependency lists on column 80 (with \), and
3699 # we should not choose a depcomp mode which is confused by this.
3700 #
3701 # We need to recreate these files for each test, as the compiler may
3702 # overwrite some of them when testing with obscure command lines.
3703 # This happens at least with the AIX C compiler.
3704 : > sub/conftest.c
3705 for i in 1 2 3 4 5 6; do
3706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3707 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3708 # Solaris 8's {/usr,}/bin/sh.
3709 touch sub/conftst$i.h
3710 done
3711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3712
3713 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3714 # mode. It turns out that the SunPro C++ compiler does not properly
3715 # handle `-M -o', and we need to detect this. Also, some Intel
3716 # versions had trouble with output in subdirs
3717 am__obj=sub/conftest.${OBJEXT-o}
3718 am__minus_obj="-o $am__obj"
3719 case $depmode in
3720 gcc)
3721 # This depmode causes a compiler race in universal mode.
3722 test "$am__universal" = false || continue
3723 ;;
3724 nosideeffect)
3725 # after this tag, mechanisms are not by side-effect, so they'll
3726 # only be used when explicitly requested
3727 if test "x$enable_dependency_tracking" = xyes; then
3728 continue
3729 else
3730 break
3731 fi
3732 ;;
3733 msvisualcpp | msvcmsys)
3734 # This compiler won't grok `-c -o', but also, the minuso test has
3735 # not run yet. These depmodes are late enough in the game, and
3736 # so weak that their functioning should not be impacted.
3737 am__obj=conftest.${OBJEXT-o}
3738 am__minus_obj=
3739 ;;
3740 none) break ;;
3741 esac
3742 if depmode=$depmode \
3743 source=sub/conftest.c object=$am__obj \
3744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3746 >/dev/null 2>conftest.err &&
3747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3751 # icc doesn't choke on unknown options, it will just issue warnings
3752 # or remarks (even with -Werror). So we grep stderr for any message
3753 # that says an option was ignored or not supported.
3754 # When given -MP, icc 7.0 and 7.1 complain thusly:
3755 # icc: Command line warning: ignoring option '-M'; no argument required
3756 # The diagnosis changed in icc 8.0:
3757 # icc: Command line remark: option '-MP' not supported
3758 if (grep 'ignoring option' conftest.err ||
3759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3760 am_cv_CC_dependencies_compiler_type=$depmode
3761 break
3762 fi
3763 fi
3764 done
3765
3766 cd ..
3767 rm -rf conftest.dir
3768 else
3769 am_cv_CC_dependencies_compiler_type=none
3770 fi
3771
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3774 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3776
3777 if
3778 test "x$enable_dependency_tracking" != xno \
3779 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3780 am__fastdepCC_TRUE=
3781 am__fastdepCC_FALSE='#'
3782 else
3783 am__fastdepCC_TRUE='#'
3784 am__fastdepCC_FALSE=
3785 fi
3786
3787
3788
3789 case `pwd` in
3790 *\ * | *\ *)
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3792 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3793 esac
3794
3795
3796
3797 macro_version='2.4'
3798 macro_revision='1.3293'
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812 ltmain="$ac_aux_dir/ltmain.sh"
3813
3814 # Make sure we can run config.sub.
3815 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3816 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3819 $as_echo_n "checking build system type... " >&6; }
3820 if ${ac_cv_build+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 ac_build_alias=$build_alias
3824 test "x$ac_build_alias" = x &&
3825 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3826 test "x$ac_build_alias" = x &&
3827 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3828 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3829 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3830
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3833 $as_echo "$ac_cv_build" >&6; }
3834 case $ac_cv_build in
3835 *-*-*) ;;
3836 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3837 esac
3838 build=$ac_cv_build
3839 ac_save_IFS=$IFS; IFS='-'
3840 set x $ac_cv_build
3841 shift
3842 build_cpu=$1
3843 build_vendor=$2
3844 shift; shift
3845 # Remember, the first character of IFS is used to create $*,
3846 # except with old shells:
3847 build_os=$*
3848 IFS=$ac_save_IFS
3849 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3850
3851
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3853 $as_echo_n "checking host system type... " >&6; }
3854 if ${ac_cv_host+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 if test "x$host_alias" = x; then
3858 ac_cv_host=$ac_cv_build
3859 else
3860 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3861 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3862 fi
3863
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3866 $as_echo "$ac_cv_host" >&6; }
3867 case $ac_cv_host in
3868 *-*-*) ;;
3869 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3870 esac
3871 host=$ac_cv_host
3872 ac_save_IFS=$IFS; IFS='-'
3873 set x $ac_cv_host
3874 shift
3875 host_cpu=$1
3876 host_vendor=$2
3877 shift; shift
3878 # Remember, the first character of IFS is used to create $*,
3879 # except with old shells:
3880 host_os=$*
3881 IFS=$ac_save_IFS
3882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3883
3884
3885 # Backslashify metacharacters that are still active within
3886 # double-quoted strings.
3887 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3888
3889 # Same as above, but do not quote variable references.
3890 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3891
3892 # Sed substitution to delay expansion of an escaped shell variable in a
3893 # double_quote_subst'ed string.
3894 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3895
3896 # Sed substitution to delay expansion of an escaped single quote.
3897 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3898
3899 # Sed substitution to avoid accidental globbing in evaled expressions
3900 no_glob_subst='s/\*/\\\*/g'
3901
3902 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3904 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3907 $as_echo_n "checking how to print strings... " >&6; }
3908 # Test print first, because it will be a builtin if present.
3909 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3910 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3911 ECHO='print -r --'
3912 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3913 ECHO='printf %s\n'
3914 else
3915 # Use this function as a fallback that always works.
3916 func_fallback_echo ()
3917 {
3918 eval 'cat <<_LTECHO_EOF
3919 $1
3920 _LTECHO_EOF'
3921 }
3922 ECHO='func_fallback_echo'
3923 fi
3924
3925 # func_echo_all arg...
3926 # Invoke $ECHO with all args, space-separated.
3927 func_echo_all ()
3928 {
3929 $ECHO ""
3930 }
3931
3932 case "$ECHO" in
3933 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3934 $as_echo "printf" >&6; } ;;
3935 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3936 $as_echo "print -r" >&6; } ;;
3937 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3938 $as_echo "cat" >&6; } ;;
3939 esac
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3955 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3956 if ${ac_cv_path_SED+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3960 for ac_i in 1 2 3 4 5 6 7; do
3961 ac_script="$ac_script$as_nl$ac_script"
3962 done
3963 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3964 { ac_script=; unset ac_script;}
3965 if test -z "$SED"; then
3966 ac_path_SED_found=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in sed gsed; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3977 # Check for GNU ac_path_SED and select it if it is found.
3978 # Check for GNU $ac_path_SED
3979 case `"$ac_path_SED" --version 2>&1` in
3980 *GNU*)
3981 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3982 *)
3983 ac_count=0
3984 $as_echo_n 0123456789 >"conftest.in"
3985 while :
3986 do
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 $as_echo '' >> "conftest.nl"
3991 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993 as_fn_arith $ac_count + 1 && ac_count=$as_val
3994 if test $ac_count -gt ${ac_path_SED_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_SED="$ac_path_SED"
3997 ac_path_SED_max=$ac_count
3998 fi
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4001 done
4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003 esac
4004
4005 $ac_path_SED_found && break 3
4006 done
4007 done
4008 done
4009 IFS=$as_save_IFS
4010 if test -z "$ac_cv_path_SED"; then
4011 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4012 fi
4013 else
4014 ac_cv_path_SED=$SED
4015 fi
4016
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4019 $as_echo "$ac_cv_path_SED" >&6; }
4020 SED="$ac_cv_path_SED"
4021 rm -f conftest.sed
4022
4023 test -z "$SED" && SED=sed
4024 Xsed="$SED -e 1s/^X//"
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4037 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4038 if ${ac_cv_path_GREP+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -z "$GREP"; then
4042 ac_path_GREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046 do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in grep ggrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4053 # Check for GNU ac_path_GREP and select it if it is found.
4054 # Check for GNU $ac_path_GREP
4055 case `"$ac_path_GREP" --version 2>&1` in
4056 *GNU*)
4057 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4058 *)
4059 ac_count=0
4060 $as_echo_n 0123456789 >"conftest.in"
4061 while :
4062 do
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 $as_echo 'GREP' >> "conftest.nl"
4067 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_GREP="$ac_path_GREP"
4073 ac_path_GREP_max=$ac_count
4074 fi
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 esac
4080
4081 $ac_path_GREP_found && break 3
4082 done
4083 done
4084 done
4085 IFS=$as_save_IFS
4086 if test -z "$ac_cv_path_GREP"; then
4087 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4088 fi
4089 else
4090 ac_cv_path_GREP=$GREP
4091 fi
4092
4093 fi
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4095 $as_echo "$ac_cv_path_GREP" >&6; }
4096 GREP="$ac_cv_path_GREP"
4097
4098
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4100 $as_echo_n "checking for egrep... " >&6; }
4101 if ${ac_cv_path_EGREP+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4105 then ac_cv_path_EGREP="$GREP -E"
4106 else
4107 if test -z "$EGREP"; then
4108 ac_path_EGREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in egrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4119 # Check for GNU ac_path_EGREP and select it if it is found.
4120 # Check for GNU $ac_path_EGREP
4121 case `"$ac_path_EGREP" --version 2>&1` in
4122 *GNU*)
4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124 *)
4125 ac_count=0
4126 $as_echo_n 0123456789 >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo 'EGREP' >> "conftest.nl"
4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 as_fn_arith $ac_count + 1 && ac_count=$as_val
4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_EGREP="$ac_path_EGREP"
4139 ac_path_EGREP_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 esac
4146
4147 $ac_path_EGREP_found && break 3
4148 done
4149 done
4150 done
4151 IFS=$as_save_IFS
4152 if test -z "$ac_cv_path_EGREP"; then
4153 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4154 fi
4155 else
4156 ac_cv_path_EGREP=$EGREP
4157 fi
4158
4159 fi
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4162 $as_echo "$ac_cv_path_EGREP" >&6; }
4163 EGREP="$ac_cv_path_EGREP"
4164
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4167 $as_echo_n "checking for fgrep... " >&6; }
4168 if ${ac_cv_path_FGREP+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4172 then ac_cv_path_FGREP="$GREP -F"
4173 else
4174 if test -z "$FGREP"; then
4175 ac_path_FGREP_found=false
4176 # Loop through the user's path and test for each of PROGNAME-LIST
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in fgrep; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4185 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4186 # Check for GNU ac_path_FGREP and select it if it is found.
4187 # Check for GNU $ac_path_FGREP
4188 case `"$ac_path_FGREP" --version 2>&1` in
4189 *GNU*)
4190 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4191 *)
4192 ac_count=0
4193 $as_echo_n 0123456789 >"conftest.in"
4194 while :
4195 do
4196 cat "conftest.in" "conftest.in" >"conftest.tmp"
4197 mv "conftest.tmp" "conftest.in"
4198 cp "conftest.in" "conftest.nl"
4199 $as_echo 'FGREP' >> "conftest.nl"
4200 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4202 as_fn_arith $ac_count + 1 && ac_count=$as_val
4203 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4204 # Best one so far, save it but keep looking for a better one
4205 ac_cv_path_FGREP="$ac_path_FGREP"
4206 ac_path_FGREP_max=$ac_count
4207 fi
4208 # 10*(2^10) chars as input seems more than enough
4209 test $ac_count -gt 10 && break
4210 done
4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4212 esac
4213
4214 $ac_path_FGREP_found && break 3
4215 done
4216 done
4217 done
4218 IFS=$as_save_IFS
4219 if test -z "$ac_cv_path_FGREP"; then
4220 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4221 fi
4222 else
4223 ac_cv_path_FGREP=$FGREP
4224 fi
4225
4226 fi
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4229 $as_echo "$ac_cv_path_FGREP" >&6; }
4230 FGREP="$ac_cv_path_FGREP"
4231
4232
4233 test -z "$GREP" && GREP=grep
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253 # Check whether --with-gnu-ld was given.
4254 if test "${with_gnu_ld+set}" = set; then :
4255 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4256 else
4257 with_gnu_ld=no
4258 fi
4259
4260 ac_prog=ld
4261 if test "$GCC" = yes; then
4262 # Check if gcc -print-prog-name=ld gives a path.
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4264 $as_echo_n "checking for ld used by $CC... " >&6; }
4265 case $host in
4266 *-*-mingw*)
4267 # gcc leaves a trailing carriage return which upsets mingw
4268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4269 *)
4270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4271 esac
4272 case $ac_prog in
4273 # Accept absolute paths.
4274 [\\/]* | ?:[\\/]*)
4275 re_direlt='/[^/][^/]*/\.\./'
4276 # Canonicalize the pathname of ld
4277 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4278 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4279 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4280 done
4281 test -z "$LD" && LD="$ac_prog"
4282 ;;
4283 "")
4284 # If it fails, then pretend we aren't using GCC.
4285 ac_prog=ld
4286 ;;
4287 *)
4288 # If it is relative, then search for the first ld in PATH.
4289 with_gnu_ld=unknown
4290 ;;
4291 esac
4292 elif test "$with_gnu_ld" = yes; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4294 $as_echo_n "checking for GNU ld... " >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4297 $as_echo_n "checking for non-GNU ld... " >&6; }
4298 fi
4299 if ${lt_cv_path_LD+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -z "$LD"; then
4303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4304 for ac_dir in $PATH; do
4305 IFS="$lt_save_ifs"
4306 test -z "$ac_dir" && ac_dir=.
4307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4308 lt_cv_path_LD="$ac_dir/$ac_prog"
4309 # Check to see if the program is GNU ld. I'd rather use --version,
4310 # but apparently some variants of GNU ld only accept -v.
4311 # Break only if it was the GNU/non-GNU ld that we prefer.
4312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4313 *GNU* | *'with BFD'*)
4314 test "$with_gnu_ld" != no && break
4315 ;;
4316 *)
4317 test "$with_gnu_ld" != yes && break
4318 ;;
4319 esac
4320 fi
4321 done
4322 IFS="$lt_save_ifs"
4323 else
4324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4325 fi
4326 fi
4327
4328 LD="$lt_cv_path_LD"
4329 if test -n "$LD"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4331 $as_echo "$LD" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4339 if ${lt_cv_prog_gnu_ld+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4343 case `$LD -v 2>&1 </dev/null` in
4344 *GNU* | *'with BFD'*)
4345 lt_cv_prog_gnu_ld=yes
4346 ;;
4347 *)
4348 lt_cv_prog_gnu_ld=no
4349 ;;
4350 esac
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4353 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4354 with_gnu_ld=$lt_cv_prog_gnu_ld
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4365 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4366 if ${lt_cv_path_NM+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$NM"; then
4370 # Let the user override the test.
4371 lt_cv_path_NM="$NM"
4372 else
4373 lt_nm_to_check="${ac_tool_prefix}nm"
4374 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4375 lt_nm_to_check="$lt_nm_to_check nm"
4376 fi
4377 for lt_tmp_nm in $lt_nm_to_check; do
4378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4379 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4380 IFS="$lt_save_ifs"
4381 test -z "$ac_dir" && ac_dir=.
4382 tmp_nm="$ac_dir/$lt_tmp_nm"
4383 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4384 # Check to see if the nm accepts a BSD-compat flag.
4385 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4386 # nm: unknown option "B" ignored
4387 # Tru64's nm complains that /dev/null is an invalid object file
4388 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4389 */dev/null* | *'Invalid file or object type'*)
4390 lt_cv_path_NM="$tmp_nm -B"
4391 break
4392 ;;
4393 *)
4394 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4395 */dev/null*)
4396 lt_cv_path_NM="$tmp_nm -p"
4397 break
4398 ;;
4399 *)
4400 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4401 continue # so that we can try to find one that supports BSD flags
4402 ;;
4403 esac
4404 ;;
4405 esac
4406 fi
4407 done
4408 IFS="$lt_save_ifs"
4409 done
4410 : ${lt_cv_path_NM=no}
4411 fi
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4414 $as_echo "$lt_cv_path_NM" >&6; }
4415 if test "$lt_cv_path_NM" != "no"; then
4416 NM="$lt_cv_path_NM"
4417 else
4418 # Didn't find any BSD compatible name lister, look for dumpbin.
4419 if test -n "$DUMPBIN"; then :
4420 # Let the user override the test.
4421 else
4422 if test -n "$ac_tool_prefix"; then
4423 for ac_prog in dumpbin "link -dump"
4424 do
4425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_DUMPBIN+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$DUMPBIN"; then
4433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 DUMPBIN=$ac_cv_prog_DUMPBIN
4453 if test -n "$DUMPBIN"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4455 $as_echo "$DUMPBIN" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4459 fi
4460
4461
4462 test -n "$DUMPBIN" && break
4463 done
4464 fi
4465 if test -z "$DUMPBIN"; then
4466 ac_ct_DUMPBIN=$DUMPBIN
4467 for ac_prog in dumpbin "link -dump"
4468 do
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$ac_ct_DUMPBIN"; then
4477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490 done
4491 done
4492 IFS=$as_save_IFS
4493
4494 fi
4495 fi
4496 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4497 if test -n "$ac_ct_DUMPBIN"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4499 $as_echo "$ac_ct_DUMPBIN" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504
4505
4506 test -n "$ac_ct_DUMPBIN" && break
4507 done
4508
4509 if test "x$ac_ct_DUMPBIN" = x; then
4510 DUMPBIN=":"
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513 yes:)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518 DUMPBIN=$ac_ct_DUMPBIN
4519 fi
4520 fi
4521
4522 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4523 *COFF*)
4524 DUMPBIN="$DUMPBIN -symbols"
4525 ;;
4526 *)
4527 DUMPBIN=:
4528 ;;
4529 esac
4530 fi
4531
4532 if test "$DUMPBIN" != ":"; then
4533 NM="$DUMPBIN"
4534 fi
4535 fi
4536 test -z "$NM" && NM=nm
4537
4538
4539
4540
4541
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4544 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4545 if ${lt_cv_nm_interface+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 lt_cv_nm_interface="BSD nm"
4549 echo "int some_variable = 0;" > conftest.$ac_ext
4550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4551 (eval "$ac_compile" 2>conftest.err)
4552 cat conftest.err >&5
4553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4555 cat conftest.err >&5
4556 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4557 cat conftest.out >&5
4558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4559 lt_cv_nm_interface="MS dumpbin"
4560 fi
4561 rm -f conftest*
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4564 $as_echo "$lt_cv_nm_interface" >&6; }
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4567 $as_echo_n "checking whether ln -s works... " >&6; }
4568 LN_S=$as_ln_s
4569 if test "$LN_S" = "ln -s"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4571 $as_echo "yes" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4574 $as_echo "no, using $LN_S" >&6; }
4575 fi
4576
4577 # find the maximum length of command line arguments
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4579 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4580 if ${lt_cv_sys_max_cmd_len+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 i=0
4584 teststring="ABCD"
4585
4586 case $build_os in
4587 msdosdjgpp*)
4588 # On DJGPP, this test can blow up pretty badly due to problems in libc
4589 # (any single argument exceeding 2000 bytes causes a buffer overrun
4590 # during glob expansion). Even if it were fixed, the result of this
4591 # check would be larger than it should be.
4592 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4593 ;;
4594
4595 gnu*)
4596 # Under GNU Hurd, this test is not required because there is
4597 # no limit to the length of command line arguments.
4598 # Libtool will interpret -1 as no limit whatsoever
4599 lt_cv_sys_max_cmd_len=-1;
4600 ;;
4601
4602 cygwin* | mingw* | cegcc*)
4603 # On Win9x/ME, this test blows up -- it succeeds, but takes
4604 # about 5 minutes as the teststring grows exponentially.
4605 # Worse, since 9x/ME are not pre-emptively multitasking,
4606 # you end up with a "frozen" computer, even though with patience
4607 # the test eventually succeeds (with a max line length of 256k).
4608 # Instead, let's just punt: use the minimum linelength reported by
4609 # all of the supported platforms: 8192 (on NT/2K/XP).
4610 lt_cv_sys_max_cmd_len=8192;
4611 ;;
4612
4613 mint*)
4614 # On MiNT this can take a long time and run out of memory.
4615 lt_cv_sys_max_cmd_len=8192;
4616 ;;
4617
4618 amigaos*)
4619 # On AmigaOS with pdksh, this test takes hours, literally.
4620 # So we just punt and use a minimum line length of 8192.
4621 lt_cv_sys_max_cmd_len=8192;
4622 ;;
4623
4624 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4625 # This has been around since 386BSD, at least. Likely further.
4626 if test -x /sbin/sysctl; then
4627 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4628 elif test -x /usr/sbin/sysctl; then
4629 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4630 else
4631 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4632 fi
4633 # And add a safety zone
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4636 ;;
4637
4638 interix*)
4639 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4640 lt_cv_sys_max_cmd_len=196608
4641 ;;
4642
4643 osf*)
4644 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4645 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4646 # nice to cause kernel panics so lets avoid the loop below.
4647 # First set a reasonable default.
4648 lt_cv_sys_max_cmd_len=16384
4649 #
4650 if test -x /sbin/sysconfig; then
4651 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4652 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4653 esac
4654 fi
4655 ;;
4656 sco3.2v5*)
4657 lt_cv_sys_max_cmd_len=102400
4658 ;;
4659 sysv5* | sco5v6* | sysv4.2uw2*)
4660 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4661 if test -n "$kargmax"; then
4662 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4663 else
4664 lt_cv_sys_max_cmd_len=32768
4665 fi
4666 ;;
4667 *)
4668 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4669 if test -n "$lt_cv_sys_max_cmd_len"; then
4670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4672 else
4673 # Make teststring a little bigger before we do anything with it.
4674 # a 1K string should be a reasonable start.
4675 for i in 1 2 3 4 5 6 7 8 ; do
4676 teststring=$teststring$teststring
4677 done
4678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4679 # If test is not a shell built-in, we'll probably end up computing a
4680 # maximum length that is only half of the actual maximum length, but
4681 # we can't tell.
4682 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4683 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4684 test $i != 17 # 1/2 MB should be enough
4685 do
4686 i=`expr $i + 1`
4687 teststring=$teststring$teststring
4688 done
4689 # Only check the string length outside the loop.
4690 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4691 teststring=
4692 # Add a significant safety factor because C++ compilers can tack on
4693 # massive amounts of additional arguments before passing them to the
4694 # linker. It appears as though 1/2 is a usable value.
4695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4696 fi
4697 ;;
4698 esac
4699
4700 fi
4701
4702 if test -n $lt_cv_sys_max_cmd_len ; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4704 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4707 $as_echo "none" >&6; }
4708 fi
4709 max_cmd_len=$lt_cv_sys_max_cmd_len
4710
4711
4712
4713
4714
4715
4716 : ${CP="cp -f"}
4717 : ${MV="mv -f"}
4718 : ${RM="rm -f"}
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4721 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4722 # Try some XSI features
4723 xsi_shell=no
4724 ( _lt_dummy="a/b/c"
4725 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4726 = c,a/b,b/c, \
4727 && eval 'test $(( 1 + 1 )) -eq 2 \
4728 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4729 && xsi_shell=yes
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4731 $as_echo "$xsi_shell" >&6; }
4732
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4735 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4736 lt_shell_append=no
4737 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4738 >/dev/null 2>&1 \
4739 && lt_shell_append=yes
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4741 $as_echo "$lt_shell_append" >&6; }
4742
4743
4744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4745 lt_unset=unset
4746 else
4747 lt_unset=false
4748 fi
4749
4750
4751
4752
4753
4754 # test EBCDIC or ASCII
4755 case `echo X|tr X '\101'` in
4756 A) # ASCII based system
4757 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4758 lt_SP2NL='tr \040 \012'
4759 lt_NL2SP='tr \015\012 \040\040'
4760 ;;
4761 *) # EBCDIC based system
4762 lt_SP2NL='tr \100 \n'
4763 lt_NL2SP='tr \r\n \100\100'
4764 ;;
4765 esac
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4776 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4777 if ${lt_cv_to_host_file_cmd+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 case $host in
4781 *-*-mingw* )
4782 case $build in
4783 *-*-mingw* ) # actually msys
4784 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4785 ;;
4786 *-*-cygwin* )
4787 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4788 ;;
4789 * ) # otherwise, assume *nix
4790 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4791 ;;
4792 esac
4793 ;;
4794 *-*-cygwin* )
4795 case $build in
4796 *-*-mingw* ) # actually msys
4797 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4798 ;;
4799 *-*-cygwin* )
4800 lt_cv_to_host_file_cmd=func_convert_file_noop
4801 ;;
4802 * ) # otherwise, assume *nix
4803 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4804 ;;
4805 esac
4806 ;;
4807 * ) # unhandled hosts (and "normal" native builds)
4808 lt_cv_to_host_file_cmd=func_convert_file_noop
4809 ;;
4810 esac
4811
4812 fi
4813
4814 to_host_file_cmd=$lt_cv_to_host_file_cmd
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4816 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4817
4818
4819
4820
4821
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4823 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4824 if ${lt_cv_to_tool_file_cmd+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 #assume ordinary cross tools, or native build.
4828 lt_cv_to_tool_file_cmd=func_convert_file_noop
4829 case $host in
4830 *-*-mingw* )
4831 case $build in
4832 *-*-mingw* ) # actually msys
4833 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4834 ;;
4835 esac
4836 ;;
4837 esac
4838
4839 fi
4840
4841 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4843 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4844
4845
4846
4847
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4850 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4851 if ${lt_cv_ld_reload_flag+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 lt_cv_ld_reload_flag='-r'
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4857 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4858 reload_flag=$lt_cv_ld_reload_flag
4859 case $reload_flag in
4860 "" | " "*) ;;
4861 *) reload_flag=" $reload_flag" ;;
4862 esac
4863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4864 case $host_os in
4865 cygwin* | mingw* | pw32* | cegcc*)
4866 if test "$GCC" != yes; then
4867 reload_cmds=false
4868 fi
4869 ;;
4870 darwin*)
4871 if test "$GCC" = yes; then
4872 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4873 else
4874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4875 fi
4876 ;;
4877 esac
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_OBJDUMP+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$OBJDUMP"; then
4896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 OBJDUMP=$ac_cv_prog_OBJDUMP
4916 if test -n "$OBJDUMP"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4918 $as_echo "$OBJDUMP" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 fi
4926 if test -z "$ac_cv_prog_OBJDUMP"; then
4927 ac_ct_OBJDUMP=$OBJDUMP
4928 # Extract the first word of "objdump", so it can be a program name with args.
4929 set dummy objdump; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$ac_ct_OBJDUMP"; then
4936 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4956 if test -n "$ac_ct_OBJDUMP"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4958 $as_echo "$ac_ct_OBJDUMP" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964 if test "x$ac_ct_OBJDUMP" = x; then
4965 OBJDUMP="false"
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 OBJDUMP=$ac_ct_OBJDUMP
4974 fi
4975 else
4976 OBJDUMP="$ac_cv_prog_OBJDUMP"
4977 fi
4978
4979 test -z "$OBJDUMP" && OBJDUMP=objdump
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4990 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4991 if ${lt_cv_deplibs_check_method+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 lt_cv_file_magic_cmd='$MAGIC_CMD'
4995 lt_cv_file_magic_test_file=
4996 lt_cv_deplibs_check_method='unknown'
4997 # Need to set the preceding variable on all platforms that support
4998 # interlibrary dependencies.
4999 # 'none' -- dependencies not supported.
5000 # `unknown' -- same as none, but documents that we really don't know.
5001 # 'pass_all' -- all dependencies passed with no checks.
5002 # 'test_compile' -- check by making test program.
5003 # 'file_magic [[regex]]' -- check by looking for files in library path
5004 # which responds to the $file_magic_cmd with a given extended regex.
5005 # If you have `file' or equivalent on your system and you're not sure
5006 # whether `pass_all' will *always* work, you probably want this one.
5007
5008 case $host_os in
5009 aix[4-9]*)
5010 lt_cv_deplibs_check_method=pass_all
5011 ;;
5012
5013 beos*)
5014 lt_cv_deplibs_check_method=pass_all
5015 ;;
5016
5017 bsdi[45]*)
5018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5019 lt_cv_file_magic_cmd='/usr/bin/file -L'
5020 lt_cv_file_magic_test_file=/shlib/libc.so
5021 ;;
5022
5023 cygwin*)
5024 # func_win32_libid is a shell function defined in ltmain.sh
5025 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5026 lt_cv_file_magic_cmd='func_win32_libid'
5027 ;;
5028
5029 mingw* | pw32*)
5030 # Base MSYS/MinGW do not provide the 'file' command needed by
5031 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5032 # unless we find 'file', for example because we are cross-compiling.
5033 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5034 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5036 lt_cv_file_magic_cmd='func_win32_libid'
5037 else
5038 # Keep this pattern in sync with the one in func_win32_libid.
5039 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5040 lt_cv_file_magic_cmd='$OBJDUMP -f'
5041 fi
5042 ;;
5043
5044 cegcc*)
5045 # use the weaker test based on 'objdump'. See mingw*.
5046 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5047 lt_cv_file_magic_cmd='$OBJDUMP -f'
5048 ;;
5049
5050 darwin* | rhapsody*)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053
5054 freebsd* | dragonfly*)
5055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5056 case $host_cpu in
5057 i*86 )
5058 # Not sure whether the presence of OpenBSD here was a mistake.
5059 # Let's accept both of them until this is cleared up.
5060 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5061 lt_cv_file_magic_cmd=/usr/bin/file
5062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5063 ;;
5064 esac
5065 else
5066 lt_cv_deplibs_check_method=pass_all
5067 fi
5068 ;;
5069
5070 gnu*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074 haiku*)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077
5078 hpux10.20* | hpux11*)
5079 lt_cv_file_magic_cmd=/usr/bin/file
5080 case $host_cpu in
5081 ia64*)
5082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5083 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5084 ;;
5085 hppa*64*)
5086 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]'
5087 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5088 ;;
5089 *)
5090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5091 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5092 ;;
5093 esac
5094 ;;
5095
5096 interix[3-9]*)
5097 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5099 ;;
5100
5101 irix5* | irix6* | nonstopux*)
5102 case $LD in
5103 *-32|*"-32 ") libmagic=32-bit;;
5104 *-n32|*"-n32 ") libmagic=N32;;
5105 *-64|*"-64 ") libmagic=64-bit;;
5106 *) libmagic=never-match;;
5107 esac
5108 lt_cv_deplibs_check_method=pass_all
5109 ;;
5110
5111 # This must be Linux ELF.
5112 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115
5116 netbsd* | netbsdelf*-gnu)
5117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5119 else
5120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5121 fi
5122 ;;
5123
5124 newos6*)
5125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5126 lt_cv_file_magic_cmd=/usr/bin/file
5127 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5128 ;;
5129
5130 *nto* | *qnx*)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133
5134 openbsd*)
5135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5137 else
5138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5139 fi
5140 ;;
5141
5142 osf3* | osf4* | osf5*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145
5146 rdos*)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
5149
5150 solaris*)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153
5154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
5157
5158 sysv4 | sysv4.3*)
5159 case $host_vendor in
5160 motorola)
5161 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]'
5162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5163 ;;
5164 ncr)
5165 lt_cv_deplibs_check_method=pass_all
5166 ;;
5167 sequent)
5168 lt_cv_file_magic_cmd='/bin/file'
5169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5170 ;;
5171 sni)
5172 lt_cv_file_magic_cmd='/bin/file'
5173 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5174 lt_cv_file_magic_test_file=/lib/libc.so
5175 ;;
5176 siemens)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179 pc)
5180 lt_cv_deplibs_check_method=pass_all
5181 ;;
5182 esac
5183 ;;
5184
5185 tpf*)
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188 esac
5189
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5192 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5193
5194 file_magic_glob=
5195 want_nocaseglob=no
5196 if test "$build" = "$host"; then
5197 case $host_os in
5198 mingw* | pw32*)
5199 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5200 want_nocaseglob=yes
5201 else
5202 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5203 fi
5204 ;;
5205 esac
5206 fi
5207
5208 file_magic_cmd=$lt_cv_file_magic_cmd
5209 deplibs_check_method=$lt_cv_deplibs_check_method
5210 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_DLLTOOL+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$DLLTOOL"; then
5242 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 DLLTOOL=$ac_cv_prog_DLLTOOL
5262 if test -n "$DLLTOOL"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5264 $as_echo "$DLLTOOL" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 fi
5272 if test -z "$ac_cv_prog_DLLTOOL"; then
5273 ac_ct_DLLTOOL=$DLLTOOL
5274 # Extract the first word of "dlltool", so it can be a program name with args.
5275 set dummy dlltool; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$ac_ct_DLLTOOL"; then
5282 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5302 if test -n "$ac_ct_DLLTOOL"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5304 $as_echo "$ac_ct_DLLTOOL" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5308 fi
5309
5310 if test "x$ac_ct_DLLTOOL" = x; then
5311 DLLTOOL="false"
5312 else
5313 case $cross_compiling:$ac_tool_warned in
5314 yes:)
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319 DLLTOOL=$ac_ct_DLLTOOL
5320 fi
5321 else
5322 DLLTOOL="$ac_cv_prog_DLLTOOL"
5323 fi
5324
5325 test -z "$DLLTOOL" && DLLTOOL=dlltool
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5337 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5338 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 lt_cv_sharedlib_from_linklib_cmd='unknown'
5342
5343 case $host_os in
5344 cygwin* | mingw* | pw32* | cegcc*)
5345 # two different shell functions defined in ltmain.sh
5346 # decide which to use based on capabilities of $DLLTOOL
5347 case `$DLLTOOL --help 2>&1` in
5348 *--identify-strict*)
5349 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5350 ;;
5351 *)
5352 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5353 ;;
5354 esac
5355 ;;
5356 *)
5357 # fallback: assume linklib IS sharedlib
5358 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5359 ;;
5360 esac
5361
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5364 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5365 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5366 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5367
5368
5369
5370
5371
5372
5373
5374
5375 if test -n "$ac_tool_prefix"; then
5376 for ac_prog in ar
5377 do
5378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_AR+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$AR"; then
5386 ac_cv_prog_AR="$AR" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 AR=$ac_cv_prog_AR
5406 if test -n "$AR"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5408 $as_echo "$AR" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 test -n "$AR" && break
5416 done
5417 fi
5418 if test -z "$AR"; then
5419 ac_ct_AR=$AR
5420 for ac_prog in ar
5421 do
5422 # Extract the first word of "$ac_prog", so it can be a program name with args.
5423 set dummy $ac_prog; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 if test -n "$ac_ct_AR"; then
5430 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_ac_ct_AR="$ac_prog"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5450 if test -n "$ac_ct_AR"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5452 $as_echo "$ac_ct_AR" >&6; }
5453 else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459 test -n "$ac_ct_AR" && break
5460 done
5461
5462 if test "x$ac_ct_AR" = x; then
5463 AR="false"
5464 else
5465 case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471 AR=$ac_ct_AR
5472 fi
5473 fi
5474
5475 : ${AR=ar}
5476 : ${AR_FLAGS=cru}
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5489 $as_echo_n "checking for archiver @FILE support... " >&6; }
5490 if ${lt_cv_ar_at_file+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 lt_cv_ar_at_file=no
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496
5497 int
5498 main ()
5499 {
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 echo conftest.$ac_objext > conftest.lst
5507 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5509 (eval $lt_ar_try) 2>&5
5510 ac_status=$?
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; }
5513 if test "$ac_status" -eq 0; then
5514 # Ensure the archiver fails upon bogus file names.
5515 rm -f conftest.$ac_objext libconftest.a
5516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5517 (eval $lt_ar_try) 2>&5
5518 ac_status=$?
5519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5520 test $ac_status = 0; }
5521 if test "$ac_status" -ne 0; then
5522 lt_cv_ar_at_file=@
5523 fi
5524 fi
5525 rm -f conftest.* libconftest.a
5526
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5532 $as_echo "$lt_cv_ar_at_file" >&6; }
5533
5534 if test "x$lt_cv_ar_at_file" = xno; then
5535 archiver_list_spec=
5536 else
5537 archiver_list_spec=$lt_cv_ar_at_file
5538 fi
5539
5540
5541
5542
5543
5544
5545
5546 if test -n "$ac_tool_prefix"; then
5547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5548 set dummy ${ac_tool_prefix}strip; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_STRIP+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$STRIP"; then
5555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 STRIP=$ac_cv_prog_STRIP
5575 if test -n "$STRIP"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5577 $as_echo "$STRIP" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583
5584 fi
5585 if test -z "$ac_cv_prog_STRIP"; then
5586 ac_ct_STRIP=$STRIP
5587 # Extract the first word of "strip", so it can be a program name with args.
5588 set dummy strip; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if test -n "$ac_ct_STRIP"; then
5595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_ac_ct_STRIP="strip"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5615 if test -n "$ac_ct_STRIP"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5617 $as_echo "$ac_ct_STRIP" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5622
5623 if test "x$ac_ct_STRIP" = x; then
5624 STRIP=":"
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627 yes:)
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632 STRIP=$ac_ct_STRIP
5633 fi
5634 else
5635 STRIP="$ac_cv_prog_STRIP"
5636 fi
5637
5638 test -z "$STRIP" && STRIP=:
5639
5640
5641
5642
5643
5644
5645 if test -n "$ac_tool_prefix"; then
5646 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5647 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_RANLIB+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$RANLIB"; then
5654 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5676 $as_echo "$RANLIB" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683 fi
5684 if test -z "$ac_cv_prog_RANLIB"; then
5685 ac_ct_RANLIB=$RANLIB
5686 # Extract the first word of "ranlib", so it can be a program name with args.
5687 set dummy ranlib; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 if test -n "$ac_ct_RANLIB"; then
5694 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_ac_ct_RANLIB="ranlib"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 fi
5712 fi
5713 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5714 if test -n "$ac_ct_RANLIB"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5716 $as_echo "$ac_ct_RANLIB" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5721
5722 if test "x$ac_ct_RANLIB" = x; then
5723 RANLIB=":"
5724 else
5725 case $cross_compiling:$ac_tool_warned in
5726 yes:)
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729 ac_tool_warned=yes ;;
5730 esac
5731 RANLIB=$ac_ct_RANLIB
5732 fi
5733 else
5734 RANLIB="$ac_cv_prog_RANLIB"
5735 fi
5736
5737 test -z "$RANLIB" && RANLIB=:
5738
5739
5740
5741
5742
5743
5744 # Determine commands to create old-style static archives.
5745 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5746 old_postinstall_cmds='chmod 644 $oldlib'
5747 old_postuninstall_cmds=
5748
5749 if test -n "$RANLIB"; then
5750 case $host_os in
5751 openbsd*)
5752 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5753 ;;
5754 *)
5755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5756 ;;
5757 esac
5758 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5759 fi
5760
5761 case $host_os in
5762 darwin*)
5763 lock_old_archive_extraction=yes ;;
5764 *)
5765 lock_old_archive_extraction=no ;;
5766 esac
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 # If no C compiler was specified, use CC.
5807 LTCC=${LTCC-"$CC"}
5808
5809 # If no C compiler flags were specified, use CFLAGS.
5810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5811
5812 # Allow CC to be a program name with arguments.
5813 compiler=$CC
5814
5815
5816 # Check for command to grab the raw symbol name followed by C symbol from nm.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5818 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5819 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822
5823 # These are sane defaults that work on at least a few old systems.
5824 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5825
5826 # Character class describing NM global symbol codes.
5827 symcode='[BCDEGRST]'
5828
5829 # Regexp to match symbols that can be accessed directly from C.
5830 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5831
5832 # Define system-specific variables.
5833 case $host_os in
5834 aix*)
5835 symcode='[BCDT]'
5836 ;;
5837 cygwin* | mingw* | pw32* | cegcc*)
5838 symcode='[ABCDGISTW]'
5839 ;;
5840 hpux*)
5841 if test "$host_cpu" = ia64; then
5842 symcode='[ABCDEGRST]'
5843 fi
5844 ;;
5845 irix* | nonstopux*)
5846 symcode='[BCDEGRST]'
5847 ;;
5848 osf*)
5849 symcode='[BCDEGQRST]'
5850 ;;
5851 solaris*)
5852 symcode='[BDRT]'
5853 ;;
5854 sco3.2v5*)
5855 symcode='[DT]'
5856 ;;
5857 sysv4.2uw2*)
5858 symcode='[DT]'
5859 ;;
5860 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5861 symcode='[ABDT]'
5862 ;;
5863 sysv4)
5864 symcode='[DFNSTU]'
5865 ;;
5866 esac
5867
5868 # If we're using GNU nm, then use its standard symbol codes.
5869 case `$NM -V 2>&1` in
5870 *GNU* | *'with BFD'*)
5871 symcode='[ABCDGIRSTW]' ;;
5872 esac
5873
5874 # Transform an extracted symbol line into a proper C declaration.
5875 # Some systems (esp. on ia64) link data and code symbols differently,
5876 # so use this general approach.
5877 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5878
5879 # Transform an extracted symbol line into symbol name and symbol address
5880 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5881 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5882
5883 # Handle CRLF in mingw tool chain
5884 opt_cr=
5885 case $build_os in
5886 mingw*)
5887 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5888 ;;
5889 esac
5890
5891 # Try without a prefix underscore, then with it.
5892 for ac_symprfx in "" "_"; do
5893
5894 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5895 symxfrm="\\1 $ac_symprfx\\2 \\2"
5896
5897 # Write the raw and C identifiers.
5898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5899 # Fake it for dumpbin and say T for any non-static function
5900 # and D for any global variable.
5901 # Also find C++ and __fastcall symbols from MSVC++,
5902 # which start with @ or ?.
5903 lt_cv_sys_global_symbol_pipe="$AWK '"\
5904 " {last_section=section; section=\$ 3};"\
5905 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5906 " \$ 0!~/External *\|/{next};"\
5907 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5908 " {if(hide[section]) next};"\
5909 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5910 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5911 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5912 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5913 " ' prfx=^$ac_symprfx"
5914 else
5915 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5916 fi
5917 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5918
5919 # Check to see that the pipe works correctly.
5920 pipe_works=no
5921
5922 rm -f conftest*
5923 cat > conftest.$ac_ext <<_LT_EOF
5924 #ifdef __cplusplus
5925 extern "C" {
5926 #endif
5927 char nm_test_var;
5928 void nm_test_func(void);
5929 void nm_test_func(void){}
5930 #ifdef __cplusplus
5931 }
5932 #endif
5933 int main(){nm_test_var='a';nm_test_func();return(0);}
5934 _LT_EOF
5935
5936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5937 (eval $ac_compile) 2>&5
5938 ac_status=$?
5939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5940 test $ac_status = 0; }; then
5941 # Now try to grab the symbols.
5942 nlist=conftest.nm
5943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5944 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5945 ac_status=$?
5946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5947 test $ac_status = 0; } && test -s "$nlist"; then
5948 # Try sorting and uniquifying the output.
5949 if sort "$nlist" | uniq > "$nlist"T; then
5950 mv -f "$nlist"T "$nlist"
5951 else
5952 rm -f "$nlist"T
5953 fi
5954
5955 # Make sure that we snagged all the symbols we need.
5956 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5957 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5958 cat <<_LT_EOF > conftest.$ac_ext
5959 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5960 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5961 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5962 relocations are performed -- see ld's documentation on pseudo-relocs. */
5963 # define LT_DLSYM_CONST
5964 #elif defined(__osf__)
5965 /* This system does not cope well with relocations in const data. */
5966 # define LT_DLSYM_CONST
5967 #else
5968 # define LT_DLSYM_CONST const
5969 #endif
5970
5971 #ifdef __cplusplus
5972 extern "C" {
5973 #endif
5974
5975 _LT_EOF
5976 # Now generate the symbol file.
5977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5978
5979 cat <<_LT_EOF >> conftest.$ac_ext
5980
5981 /* The mapping between symbol names and symbols. */
5982 LT_DLSYM_CONST struct {
5983 const char *name;
5984 void *address;
5985 }
5986 lt__PROGRAM__LTX_preloaded_symbols[] =
5987 {
5988 { "@PROGRAM@", (void *) 0 },
5989 _LT_EOF
5990 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5991 cat <<\_LT_EOF >> conftest.$ac_ext
5992 {0, (void *) 0}
5993 };
5994
5995 /* This works around a problem in FreeBSD linker */
5996 #ifdef FREEBSD_WORKAROUND
5997 static const void *lt_preloaded_setup() {
5998 return lt__PROGRAM__LTX_preloaded_symbols;
5999 }
6000 #endif
6001
6002 #ifdef __cplusplus
6003 }
6004 #endif
6005 _LT_EOF
6006 # Now try linking the two files.
6007 mv conftest.$ac_objext conftstm.$ac_objext
6008 lt_globsym_save_LIBS=$LIBS
6009 lt_globsym_save_CFLAGS=$CFLAGS
6010 LIBS="conftstm.$ac_objext"
6011 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6013 (eval $ac_link) 2>&5
6014 ac_status=$?
6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6017 pipe_works=yes
6018 fi
6019 LIBS=$lt_globsym_save_LIBS
6020 CFLAGS=$lt_globsym_save_CFLAGS
6021 else
6022 echo "cannot find nm_test_func in $nlist" >&5
6023 fi
6024 else
6025 echo "cannot find nm_test_var in $nlist" >&5
6026 fi
6027 else
6028 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6029 fi
6030 else
6031 echo "$progname: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033 fi
6034 rm -rf conftest* conftst*
6035
6036 # Do not use the global_symbol_pipe unless it works.
6037 if test "$pipe_works" = yes; then
6038 break
6039 else
6040 lt_cv_sys_global_symbol_pipe=
6041 fi
6042 done
6043
6044 fi
6045
6046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6047 lt_cv_sys_global_symbol_to_cdecl=
6048 fi
6049 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6051 $as_echo "failed" >&6; }
6052 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6054 $as_echo "ok" >&6; }
6055 fi
6056
6057 # Response file support.
6058 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6059 nm_file_list_spec='@'
6060 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6061 nm_file_list_spec='@'
6062 fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6091 $as_echo_n "checking for sysroot... " >&6; }
6092
6093 # Check whether --with-sysroot was given.
6094 if test "${with_sysroot+set}" = set; then :
6095 withval=$with_sysroot;
6096 else
6097 with_sysroot=no
6098 fi
6099
6100
6101 lt_sysroot=
6102 case ${with_sysroot} in #(
6103 yes)
6104 if test "$GCC" = yes; then
6105 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6106 fi
6107 ;; #(
6108 /*)
6109 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6110 ;; #(
6111 no|'')
6112 ;; #(
6113 *)
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6115 $as_echo "${with_sysroot}" >&6; }
6116 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6117 ;;
6118 esac
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6121 $as_echo "${lt_sysroot:-no}" >&6; }
6122
6123
6124
6125
6126
6127 # Check whether --enable-libtool-lock was given.
6128 if test "${enable_libtool_lock+set}" = set; then :
6129 enableval=$enable_libtool_lock;
6130 fi
6131
6132 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6133
6134 # Some flags need to be propagated to the compiler or linker for good
6135 # libtool support.
6136 case $host in
6137 ia64-*-hpux*)
6138 # Find out which ABI we are using.
6139 echo 'int i;' > conftest.$ac_ext
6140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6141 (eval $ac_compile) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; }; then
6145 case `/usr/bin/file conftest.$ac_objext` in
6146 *ELF-32*)
6147 HPUX_IA64_MODE="32"
6148 ;;
6149 *ELF-64*)
6150 HPUX_IA64_MODE="64"
6151 ;;
6152 esac
6153 fi
6154 rm -rf conftest*
6155 ;;
6156 *-*-irix6*)
6157 # Find out which ABI we are using.
6158 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163 test $ac_status = 0; }; then
6164 if test "$lt_cv_prog_gnu_ld" = yes; then
6165 case `/usr/bin/file conftest.$ac_objext` in
6166 *32-bit*)
6167 LD="${LD-ld} -melf32bsmip"
6168 ;;
6169 *N32*)
6170 LD="${LD-ld} -melf32bmipn32"
6171 ;;
6172 *64-bit*)
6173 LD="${LD-ld} -melf64bmip"
6174 ;;
6175 esac
6176 else
6177 case `/usr/bin/file conftest.$ac_objext` in
6178 *32-bit*)
6179 LD="${LD-ld} -32"
6180 ;;
6181 *N32*)
6182 LD="${LD-ld} -n32"
6183 ;;
6184 *64-bit*)
6185 LD="${LD-ld} -64"
6186 ;;
6187 esac
6188 fi
6189 fi
6190 rm -rf conftest*
6191 ;;
6192
6193 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6194 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6195 # Find out which ABI we are using.
6196 echo 'int i;' > conftest.$ac_ext
6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198 (eval $ac_compile) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; then
6202 case `/usr/bin/file conftest.o` in
6203 *32-bit*)
6204 case $host in
6205 x86_64-*kfreebsd*-gnu)
6206 LD="${LD-ld} -m elf_i386_fbsd"
6207 ;;
6208 x86_64-*linux*)
6209 LD="${LD-ld} -m elf_i386"
6210 ;;
6211 ppc64-*linux*|powerpc64-*linux*)
6212 LD="${LD-ld} -m elf32ppclinux"
6213 ;;
6214 s390x-*linux*)
6215 LD="${LD-ld} -m elf_s390"
6216 ;;
6217 sparc64-*linux*)
6218 LD="${LD-ld} -m elf32_sparc"
6219 ;;
6220 esac
6221 ;;
6222 *64-bit*)
6223 case $host in
6224 x86_64-*kfreebsd*-gnu)
6225 LD="${LD-ld} -m elf_x86_64_fbsd"
6226 ;;
6227 x86_64-*linux*)
6228 LD="${LD-ld} -m elf_x86_64"
6229 ;;
6230 ppc*-*linux*|powerpc*-*linux*)
6231 LD="${LD-ld} -m elf64ppc"
6232 ;;
6233 s390*-*linux*|s390*-*tpf*)
6234 LD="${LD-ld} -m elf64_s390"
6235 ;;
6236 sparc*-*linux*)
6237 LD="${LD-ld} -m elf64_sparc"
6238 ;;
6239 esac
6240 ;;
6241 esac
6242 fi
6243 rm -rf conftest*
6244 ;;
6245
6246 *-*-sco3.2v5*)
6247 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6248 SAVE_CFLAGS="$CFLAGS"
6249 CFLAGS="$CFLAGS -belf"
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6251 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6252 if ${lt_cv_cc_needs_belf+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 ac_ext=c
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263
6264 int
6265 main ()
6266 {
6267
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 if ac_fn_c_try_link "$LINENO"; then :
6273 lt_cv_cc_needs_belf=yes
6274 else
6275 lt_cv_cc_needs_belf=no
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279 ac_ext=c
6280 ac_cpp='$CPP $CPPFLAGS'
6281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6287 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6288 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6289 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6290 CFLAGS="$SAVE_CFLAGS"
6291 fi
6292 ;;
6293 sparc*-*solaris*)
6294 # Find out which ABI we are using.
6295 echo 'int i;' > conftest.$ac_ext
6296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300 test $ac_status = 0; }; then
6301 case `/usr/bin/file conftest.o` in
6302 *64-bit*)
6303 case $lt_cv_prog_gnu_ld in
6304 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6305 *)
6306 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6307 LD="${LD-ld} -64"
6308 fi
6309 ;;
6310 esac
6311 ;;
6312 esac
6313 fi
6314 rm -rf conftest*
6315 ;;
6316 esac
6317
6318 need_locks="$enable_libtool_lock"
6319
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}mt; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -n "$MANIFEST_TOOL"; then
6329 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6349 if test -n "$MANIFEST_TOOL"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6351 $as_echo "$MANIFEST_TOOL" >&6; }
6352 else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357
6358 fi
6359 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6360 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6361 # Extract the first word of "mt", so it can be a program name with args.
6362 set dummy mt; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if test -n "$ac_ct_MANIFEST_TOOL"; then
6369 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6389 if test -n "$ac_ct_MANIFEST_TOOL"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6391 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6398 MANIFEST_TOOL=":"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6407 fi
6408 else
6409 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6410 fi
6411
6412 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6414 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6415 if ${lt_cv_path_mainfest_tool+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 lt_cv_path_mainfest_tool=no
6419 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6420 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6421 cat conftest.err >&5
6422 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6423 lt_cv_path_mainfest_tool=yes
6424 fi
6425 rm -f conftest*
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6428 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6429 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6430 MANIFEST_TOOL=:
6431 fi
6432
6433
6434
6435
6436
6437
6438 case $host_os in
6439 rhapsody* | darwin*)
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$DSYMUTIL"; then
6449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469 if test -n "$DSYMUTIL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471 $as_echo "$DSYMUTIL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478 fi
6479 if test -z "$ac_cv_prog_DSYMUTIL"; then
6480 ac_ct_DSYMUTIL=$DSYMUTIL
6481 # Extract the first word of "dsymutil", so it can be a program name with args.
6482 set dummy dsymutil; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_DSYMUTIL"; then
6489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509 if test -n "$ac_ct_DSYMUTIL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517 if test "x$ac_ct_DSYMUTIL" = x; then
6518 DSYMUTIL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 DSYMUTIL=$ac_ct_DSYMUTIL
6527 fi
6528 else
6529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6530 fi
6531
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if ${ac_cv_prog_NMEDIT+:} false; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 if test -n "$NMEDIT"; then
6541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 fi
6559 fi
6560 NMEDIT=$ac_cv_prog_NMEDIT
6561 if test -n "$NMEDIT"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563 $as_echo "$NMEDIT" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568
6569
6570 fi
6571 if test -z "$ac_cv_prog_NMEDIT"; then
6572 ac_ct_NMEDIT=$NMEDIT
6573 # Extract the first word of "nmedit", so it can be a program name with args.
6574 set dummy nmedit; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$ac_ct_NMEDIT"; then
6581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601 if test -n "$ac_ct_NMEDIT"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603 $as_echo "$ac_ct_NMEDIT" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609 if test "x$ac_ct_NMEDIT" = x; then
6610 NMEDIT=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 NMEDIT=$ac_ct_NMEDIT
6619 fi
6620 else
6621 NMEDIT="$ac_cv_prog_NMEDIT"
6622 fi
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_LIPO+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$LIPO"; then
6633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 LIPO=$ac_cv_prog_LIPO
6653 if test -n "$LIPO"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655 $as_echo "$LIPO" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_LIPO"; then
6664 ac_ct_LIPO=$LIPO
6665 # Extract the first word of "lipo", so it can be a program name with args.
6666 set dummy lipo; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_LIPO"; then
6673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_LIPO="lipo"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693 if test -n "$ac_ct_LIPO"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695 $as_echo "$ac_ct_LIPO" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701 if test "x$ac_ct_LIPO" = x; then
6702 LIPO=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 LIPO=$ac_ct_LIPO
6711 fi
6712 else
6713 LIPO="$ac_cv_prog_LIPO"
6714 fi
6715
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}otool; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_OTOOL+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$OTOOL"; then
6725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 OTOOL=$ac_cv_prog_OTOOL
6745 if test -n "$OTOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747 $as_echo "$OTOOL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_OTOOL"; then
6756 ac_ct_OTOOL=$OTOOL
6757 # Extract the first word of "otool", so it can be a program name with args.
6758 set dummy otool; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_OTOOL"; then
6765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_OTOOL="otool"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785 if test -n "$ac_ct_OTOOL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787 $as_echo "$ac_ct_OTOOL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793 if test "x$ac_ct_OTOOL" = x; then
6794 OTOOL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 OTOOL=$ac_ct_OTOOL
6803 fi
6804 else
6805 OTOOL="$ac_cv_prog_OTOOL"
6806 fi
6807
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_OTOOL64+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$OTOOL64"; then
6817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 OTOOL64=$ac_cv_prog_OTOOL64
6837 if test -n "$OTOOL64"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839 $as_echo "$OTOOL64" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_OTOOL64"; then
6848 ac_ct_OTOOL64=$OTOOL64
6849 # Extract the first word of "otool64", so it can be a program name with args.
6850 set dummy otool64; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_OTOOL64"; then
6857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_OTOOL64="otool64"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877 if test -n "$ac_ct_OTOOL64"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879 $as_echo "$ac_ct_OTOOL64" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885 if test "x$ac_ct_OTOOL64" = x; then
6886 OTOOL64=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 OTOOL64=$ac_ct_OTOOL64
6895 fi
6896 else
6897 OTOOL64="$ac_cv_prog_OTOOL64"
6898 fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927 $as_echo_n "checking for -single_module linker flag... " >&6; }
6928 if ${lt_cv_apple_cc_single_mod+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 lt_cv_apple_cc_single_mod=no
6932 if test -z "${LT_MULTI_MODULE}"; then
6933 # By default we will add the -single_module flag. You can override
6934 # by either setting the environment variable LT_MULTI_MODULE
6935 # non-empty at configure time, or by adding -multi_module to the
6936 # link flags.
6937 rm -rf libconftest.dylib*
6938 echo "int foo(void){return 1;}" > conftest.c
6939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c" >&5
6941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943 _lt_result=$?
6944 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945 lt_cv_apple_cc_single_mod=yes
6946 else
6947 cat conftest.err >&5
6948 fi
6949 rm -rf libconftest.dylib*
6950 rm -f conftest.*
6951 fi
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 lt_cv_ld_exported_symbols_list=no
6961 save_LDFLAGS=$LDFLAGS
6962 echo "_main" > conftest.sym
6963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966
6967 int
6968 main ()
6969 {
6970
6971 ;
6972 return 0;
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_ld_exported_symbols_list=yes
6977 else
6978 lt_cv_ld_exported_symbols_list=no
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 LDFLAGS="$save_LDFLAGS"
6983
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6988 $as_echo_n "checking for -force_load linker flag... " >&6; }
6989 if ${lt_cv_ld_force_load+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 lt_cv_ld_force_load=no
6993 cat > conftest.c << _LT_EOF
6994 int forced_loaded() { return 2;}
6995 _LT_EOF
6996 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6997 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6998 echo "$AR cru libconftest.a conftest.o" >&5
6999 $AR cru libconftest.a conftest.o 2>&5
7000 echo "$RANLIB libconftest.a" >&5
7001 $RANLIB libconftest.a 2>&5
7002 cat > conftest.c << _LT_EOF
7003 int main() { return 0;}
7004 _LT_EOF
7005 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7006 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7007 _lt_result=$?
7008 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7009 lt_cv_ld_force_load=yes
7010 else
7011 cat conftest.err >&5
7012 fi
7013 rm -f conftest.err libconftest.a conftest conftest.c
7014 rm -rf conftest.dSYM
7015
7016 fi
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7018 $as_echo "$lt_cv_ld_force_load" >&6; }
7019 case $host_os in
7020 rhapsody* | darwin1.[012])
7021 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7022 darwin1.*)
7023 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7024 darwin*) # darwin 5.x on
7025 # if running on 10.5 or later, the deployment target defaults
7026 # to the OS version, if on x86, and 10.4, the deployment
7027 # target defaults to 10.4. Don't you love it?
7028 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7029 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7030 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7031 10.[012]*)
7032 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7033 10.*)
7034 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7035 esac
7036 ;;
7037 esac
7038 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7039 _lt_dar_single_mod='$single_module'
7040 fi
7041 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7042 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7043 else
7044 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7045 fi
7046 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7047 _lt_dsymutil='~$DSYMUTIL $lib || :'
7048 else
7049 _lt_dsymutil=
7050 fi
7051 ;;
7052 esac
7053
7054 ac_ext=c
7055 ac_cpp='$CPP $CPPFLAGS'
7056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7060 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7061 # On Suns, sometimes $CPP names a directory.
7062 if test -n "$CPP" && test -d "$CPP"; then
7063 CPP=
7064 fi
7065 if test -z "$CPP"; then
7066 if ${ac_cv_prog_CPP+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 # Double quotes because CPP needs to be expanded
7070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7071 do
7072 ac_preproc_ok=false
7073 for ac_c_preproc_warn_flag in '' yes
7074 do
7075 # Use a header file that comes with gcc, so configuring glibc
7076 # with a fresh cross-compiler works.
7077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7078 # <limits.h> exists even on freestanding compilers.
7079 # On the NeXT, cc -E runs the code through the compiler's parser,
7080 # not just through cpp. "Syntax error" is here to catch this case.
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #ifdef __STDC__
7084 # include <limits.h>
7085 #else
7086 # include <assert.h>
7087 #endif
7088 Syntax error
7089 _ACEOF
7090 if ac_fn_c_try_cpp "$LINENO"; then :
7091
7092 else
7093 # Broken: fails on valid input.
7094 continue
7095 fi
7096 rm -f conftest.err conftest.i conftest.$ac_ext
7097
7098 # OK, works on sane cases. Now check whether nonexistent headers
7099 # can be detected and how.
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 #include <ac_nonexistent.h>
7103 _ACEOF
7104 if ac_fn_c_try_cpp "$LINENO"; then :
7105 # Broken: success on invalid input.
7106 continue
7107 else
7108 # Passes both tests.
7109 ac_preproc_ok=:
7110 break
7111 fi
7112 rm -f conftest.err conftest.i conftest.$ac_ext
7113
7114 done
7115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7116 rm -f conftest.i conftest.err conftest.$ac_ext
7117 if $ac_preproc_ok; then :
7118 break
7119 fi
7120
7121 done
7122 ac_cv_prog_CPP=$CPP
7123
7124 fi
7125 CPP=$ac_cv_prog_CPP
7126 else
7127 ac_cv_prog_CPP=$CPP
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7130 $as_echo "$CPP" >&6; }
7131 ac_preproc_ok=false
7132 for ac_c_preproc_warn_flag in '' yes
7133 do
7134 # Use a header file that comes with gcc, so configuring glibc
7135 # with a fresh cross-compiler works.
7136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7137 # <limits.h> exists even on freestanding compilers.
7138 # On the NeXT, cc -E runs the code through the compiler's parser,
7139 # not just through cpp. "Syntax error" is here to catch this case.
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #ifdef __STDC__
7143 # include <limits.h>
7144 #else
7145 # include <assert.h>
7146 #endif
7147 Syntax error
7148 _ACEOF
7149 if ac_fn_c_try_cpp "$LINENO"; then :
7150
7151 else
7152 # Broken: fails on valid input.
7153 continue
7154 fi
7155 rm -f conftest.err conftest.i conftest.$ac_ext
7156
7157 # OK, works on sane cases. Now check whether nonexistent headers
7158 # can be detected and how.
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 #include <ac_nonexistent.h>
7162 _ACEOF
7163 if ac_fn_c_try_cpp "$LINENO"; then :
7164 # Broken: success on invalid input.
7165 continue
7166 else
7167 # Passes both tests.
7168 ac_preproc_ok=:
7169 break
7170 fi
7171 rm -f conftest.err conftest.i conftest.$ac_ext
7172
7173 done
7174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7175 rm -f conftest.i conftest.err conftest.$ac_ext
7176 if $ac_preproc_ok; then :
7177
7178 else
7179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7181 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7182 See \`config.log' for more details" "$LINENO" 5; }
7183 fi
7184
7185 ac_ext=c
7186 ac_cpp='$CPP $CPPFLAGS'
7187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190
7191
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7193 $as_echo_n "checking for ANSI C header files... " >&6; }
7194 if ${ac_cv_header_stdc+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <stdlib.h>
7200 #include <stdarg.h>
7201 #include <string.h>
7202 #include <float.h>
7203
7204 int
7205 main ()
7206 {
7207
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_compile "$LINENO"; then :
7213 ac_cv_header_stdc=yes
7214 else
7215 ac_cv_header_stdc=no
7216 fi
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218
7219 if test $ac_cv_header_stdc = yes; then
7220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 #include <string.h>
7224
7225 _ACEOF
7226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7227 $EGREP "memchr" >/dev/null 2>&1; then :
7228
7229 else
7230 ac_cv_header_stdc=no
7231 fi
7232 rm -f conftest*
7233
7234 fi
7235
7236 if test $ac_cv_header_stdc = yes; then
7237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 #include <stdlib.h>
7241
7242 _ACEOF
7243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7244 $EGREP "free" >/dev/null 2>&1; then :
7245
7246 else
7247 ac_cv_header_stdc=no
7248 fi
7249 rm -f conftest*
7250
7251 fi
7252
7253 if test $ac_cv_header_stdc = yes; then
7254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7255 if test "$cross_compiling" = yes; then :
7256 :
7257 else
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 #include <ctype.h>
7261 #include <stdlib.h>
7262 #if ((' ' & 0x0FF) == 0x020)
7263 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7264 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7265 #else
7266 # define ISLOWER(c) \
7267 (('a' <= (c) && (c) <= 'i') \
7268 || ('j' <= (c) && (c) <= 'r') \
7269 || ('s' <= (c) && (c) <= 'z'))
7270 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7271 #endif
7272
7273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7274 int
7275 main ()
7276 {
7277 int i;
7278 for (i = 0; i < 256; i++)
7279 if (XOR (islower (i), ISLOWER (i))
7280 || toupper (i) != TOUPPER (i))
7281 return 2;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_run "$LINENO"; then :
7286
7287 else
7288 ac_cv_header_stdc=no
7289 fi
7290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7291 conftest.$ac_objext conftest.beam conftest.$ac_ext
7292 fi
7293
7294 fi
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7297 $as_echo "$ac_cv_header_stdc" >&6; }
7298 if test $ac_cv_header_stdc = yes; then
7299
7300 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7301
7302 fi
7303
7304 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7305 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7306 inttypes.h stdint.h unistd.h
7307 do :
7308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7309 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7310 "
7311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7312 cat >>confdefs.h <<_ACEOF
7313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7314 _ACEOF
7315
7316 fi
7317
7318 done
7319
7320
7321 for ac_header in dlfcn.h
7322 do :
7323 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7324 "
7325 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7326 cat >>confdefs.h <<_ACEOF
7327 #define HAVE_DLFCN_H 1
7328 _ACEOF
7329
7330 fi
7331
7332 done
7333
7334
7335
7336
7337
7338 # Set options
7339
7340
7341
7342 enable_dlopen=no
7343
7344
7345 enable_win32_dll=no
7346
7347
7348 # Check whether --enable-shared was given.
7349 if test "${enable_shared+set}" = set; then :
7350 enableval=$enable_shared; p=${PACKAGE-default}
7351 case $enableval in
7352 yes) enable_shared=yes ;;
7353 no) enable_shared=no ;;
7354 *)
7355 enable_shared=no
7356 # Look at the argument we got. We use all the common list separators.
7357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7358 for pkg in $enableval; do
7359 IFS="$lt_save_ifs"
7360 if test "X$pkg" = "X$p"; then
7361 enable_shared=yes
7362 fi
7363 done
7364 IFS="$lt_save_ifs"
7365 ;;
7366 esac
7367 else
7368 enable_shared=yes
7369 fi
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379 # Check whether --enable-static was given.
7380 if test "${enable_static+set}" = set; then :
7381 enableval=$enable_static; p=${PACKAGE-default}
7382 case $enableval in
7383 yes) enable_static=yes ;;
7384 no) enable_static=no ;;
7385 *)
7386 enable_static=no
7387 # Look at the argument we got. We use all the common list separators.
7388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7389 for pkg in $enableval; do
7390 IFS="$lt_save_ifs"
7391 if test "X$pkg" = "X$p"; then
7392 enable_static=yes
7393 fi
7394 done
7395 IFS="$lt_save_ifs"
7396 ;;
7397 esac
7398 else
7399 enable_static=yes
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411 # Check whether --with-pic was given.
7412 if test "${with_pic+set}" = set; then :
7413 withval=$with_pic; pic_mode="$withval"
7414 else
7415 pic_mode=default
7416 fi
7417
7418
7419 test -z "$pic_mode" && pic_mode=default
7420
7421
7422
7423
7424
7425
7426
7427 # Check whether --enable-fast-install was given.
7428 if test "${enable_fast_install+set}" = set; then :
7429 enableval=$enable_fast_install; p=${PACKAGE-default}
7430 case $enableval in
7431 yes) enable_fast_install=yes ;;
7432 no) enable_fast_install=no ;;
7433 *)
7434 enable_fast_install=no
7435 # Look at the argument we got. We use all the common list separators.
7436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7437 for pkg in $enableval; do
7438 IFS="$lt_save_ifs"
7439 if test "X$pkg" = "X$p"; then
7440 enable_fast_install=yes
7441 fi
7442 done
7443 IFS="$lt_save_ifs"
7444 ;;
7445 esac
7446 else
7447 enable_fast_install=yes
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 # This can be used to rebuild libtool when needed
7461 LIBTOOL_DEPS="$ltmain"
7462
7463 # Always use our own libtool.
7464 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 test -z "$LN_S" && LN_S="ln -s"
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506 if test -n "${ZSH_VERSION+set}" ; then
7507 setopt NO_GLOB_SUBST
7508 fi
7509
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7511 $as_echo_n "checking for objdir... " >&6; }
7512 if ${lt_cv_objdir+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 rm -f .libs 2>/dev/null
7516 mkdir .libs 2>/dev/null
7517 if test -d .libs; then
7518 lt_cv_objdir=.libs
7519 else
7520 # MS-DOS does not allow filenames that begin with a dot.
7521 lt_cv_objdir=_libs
7522 fi
7523 rmdir .libs 2>/dev/null
7524 fi
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7526 $as_echo "$lt_cv_objdir" >&6; }
7527 objdir=$lt_cv_objdir
7528
7529
7530
7531
7532
7533 cat >>confdefs.h <<_ACEOF
7534 #define LT_OBJDIR "$lt_cv_objdir/"
7535 _ACEOF
7536
7537
7538
7539
7540 case $host_os in
7541 aix3*)
7542 # AIX sometimes has problems with the GCC collect2 program. For some
7543 # reason, if we set the COLLECT_NAMES environment variable, the problems
7544 # vanish in a puff of smoke.
7545 if test "X${COLLECT_NAMES+set}" != Xset; then
7546 COLLECT_NAMES=
7547 export COLLECT_NAMES
7548 fi
7549 ;;
7550 esac
7551
7552 # Global variables:
7553 ofile=libtool
7554 can_build_shared=yes
7555
7556 # All known linkers require a `.a' archive for static linking (except MSVC,
7557 # which needs '.lib').
7558 libext=a
7559
7560 with_gnu_ld="$lt_cv_prog_gnu_ld"
7561
7562 old_CC="$CC"
7563 old_CFLAGS="$CFLAGS"
7564
7565 # Set sane defaults for various variables
7566 test -z "$CC" && CC=cc
7567 test -z "$LTCC" && LTCC=$CC
7568 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7569 test -z "$LD" && LD=ld
7570 test -z "$ac_objext" && ac_objext=o
7571
7572 for cc_temp in $compiler""; do
7573 case $cc_temp in
7574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7576 \-*) ;;
7577 *) break;;
7578 esac
7579 done
7580 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7581
7582
7583 # Only perform the check for file, if the check method requires it
7584 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7585 case $deplibs_check_method in
7586 file_magic*)
7587 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7589 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7590 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 case $MAGIC_CMD in
7594 [\\/*] | ?:[\\/]*)
7595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 lt_save_MAGIC_CMD="$MAGIC_CMD"
7599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7601 for ac_dir in $ac_dummy; do
7602 IFS="$lt_save_ifs"
7603 test -z "$ac_dir" && ac_dir=.
7604 if test -f $ac_dir/${ac_tool_prefix}file; then
7605 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7606 if test -n "$file_magic_test_file"; then
7607 case $deplibs_check_method in
7608 "file_magic "*)
7609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7612 $EGREP "$file_magic_regex" > /dev/null; then
7613 :
7614 else
7615 cat <<_LT_EOF 1>&2
7616
7617 *** Warning: the command libtool uses to detect shared libraries,
7618 *** $file_magic_cmd, produces output that libtool cannot recognize.
7619 *** The result is that libtool may fail to recognize shared libraries
7620 *** as such. This will affect the creation of libtool libraries that
7621 *** depend on shared libraries, but programs linked with such libtool
7622 *** libraries will work regardless of this problem. Nevertheless, you
7623 *** may want to report the problem to your system manager and/or to
7624 *** [email protected]
7625
7626 _LT_EOF
7627 fi ;;
7628 esac
7629 fi
7630 break
7631 fi
7632 done
7633 IFS="$lt_save_ifs"
7634 MAGIC_CMD="$lt_save_MAGIC_CMD"
7635 ;;
7636 esac
7637 fi
7638
7639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640 if test -n "$MAGIC_CMD"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7642 $as_echo "$MAGIC_CMD" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648
7649
7650
7651
7652 if test -z "$lt_cv_path_MAGIC_CMD"; then
7653 if test -n "$ac_tool_prefix"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7655 $as_echo_n "checking for file... " >&6; }
7656 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 case $MAGIC_CMD in
7660 [\\/*] | ?:[\\/]*)
7661 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7662 ;;
7663 *)
7664 lt_save_MAGIC_CMD="$MAGIC_CMD"
7665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7666 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7667 for ac_dir in $ac_dummy; do
7668 IFS="$lt_save_ifs"
7669 test -z "$ac_dir" && ac_dir=.
7670 if test -f $ac_dir/file; then
7671 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7672 if test -n "$file_magic_test_file"; then
7673 case $deplibs_check_method in
7674 "file_magic "*)
7675 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7678 $EGREP "$file_magic_regex" > /dev/null; then
7679 :
7680 else
7681 cat <<_LT_EOF 1>&2
7682
7683 *** Warning: the command libtool uses to detect shared libraries,
7684 *** $file_magic_cmd, produces output that libtool cannot recognize.
7685 *** The result is that libtool may fail to recognize shared libraries
7686 *** as such. This will affect the creation of libtool libraries that
7687 *** depend on shared libraries, but programs linked with such libtool
7688 *** libraries will work regardless of this problem. Nevertheless, you
7689 *** may want to report the problem to your system manager and/or to
7690 *** [email protected]
7691
7692 _LT_EOF
7693 fi ;;
7694 esac
7695 fi
7696 break
7697 fi
7698 done
7699 IFS="$lt_save_ifs"
7700 MAGIC_CMD="$lt_save_MAGIC_CMD"
7701 ;;
7702 esac
7703 fi
7704
7705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7706 if test -n "$MAGIC_CMD"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7708 $as_echo "$MAGIC_CMD" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714
7715 else
7716 MAGIC_CMD=:
7717 fi
7718 fi
7719
7720 fi
7721 ;;
7722 esac
7723
7724 # Use C for the default configuration in the libtool script
7725
7726 lt_save_CC="$CC"
7727 ac_ext=c
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732
7733
7734 # Source file extension for C test sources.
7735 ac_ext=c
7736
7737 # Object file extension for compiled C test sources.
7738 objext=o
7739 objext=$objext
7740
7741 # Code to be used in simple compile tests
7742 lt_simple_compile_test_code="int some_variable = 0;"
7743
7744 # Code to be used in simple link tests
7745 lt_simple_link_test_code='int main(){return(0);}'
7746
7747
7748
7749
7750
7751
7752
7753 # If no C compiler was specified, use CC.
7754 LTCC=${LTCC-"$CC"}
7755
7756 # If no C compiler flags were specified, use CFLAGS.
7757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7758
7759 # Allow CC to be a program name with arguments.
7760 compiler=$CC
7761
7762 # Save the default compiler, since it gets overwritten when the other
7763 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7764 compiler_DEFAULT=$CC
7765
7766 # save warnings/boilerplate of simple test code
7767 ac_outfile=conftest.$ac_objext
7768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7770 _lt_compiler_boilerplate=`cat conftest.err`
7771 $RM conftest*
7772
7773 ac_outfile=conftest.$ac_objext
7774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7776 _lt_linker_boilerplate=`cat conftest.err`
7777 $RM -r conftest*
7778
7779
7780 ## CAVEAT EMPTOR:
7781 ## There is no encapsulation within the following macros, do not change
7782 ## the running order or otherwise move them around unless you know exactly
7783 ## what you are doing...
7784 if test -n "$compiler"; then
7785
7786 lt_prog_compiler_no_builtin_flag=
7787
7788 if test "$GCC" = yes; then
7789 case $cc_basename in
7790 nvcc*)
7791 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7792 *)
7793 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7794 esac
7795
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7797 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7798 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 lt_cv_prog_compiler_rtti_exceptions=no
7802 ac_outfile=conftest.$ac_objext
7803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7804 lt_compiler_flag="-fno-rtti -fno-exceptions"
7805 # Insert the option either (1) after the last *FLAGS variable, or
7806 # (2) before a word containing "conftest.", or (3) at the end.
7807 # Note that $ac_compile itself does not contain backslashes and begins
7808 # with a dollar sign (not a hyphen), so the echo should work correctly.
7809 # The option is referenced via a variable to avoid confusing sed.
7810 lt_compile=`echo "$ac_compile" | $SED \
7811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7813 -e 's:$: $lt_compiler_flag:'`
7814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7815 (eval "$lt_compile" 2>conftest.err)
7816 ac_status=$?
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 if (exit $ac_status) && test -s "$ac_outfile"; then
7820 # The compiler can only warn and ignore the option if not recognized
7821 # So say no if there are warnings other than the usual output.
7822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7825 lt_cv_prog_compiler_rtti_exceptions=yes
7826 fi
7827 fi
7828 $RM conftest*
7829
7830 fi
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7832 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7833
7834 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7835 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7836 else
7837 :
7838 fi
7839
7840 fi
7841
7842
7843
7844
7845
7846
7847 lt_prog_compiler_wl=
7848 lt_prog_compiler_pic=
7849 lt_prog_compiler_static=
7850
7851
7852 if test "$GCC" = yes; then
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_static='-static'
7855
7856 case $host_os in
7857 aix*)
7858 # All AIX code is PIC.
7859 if test "$host_cpu" = ia64; then
7860 # AIX 5 now supports IA64 processor
7861 lt_prog_compiler_static='-Bstatic'
7862 fi
7863 ;;
7864
7865 amigaos*)
7866 case $host_cpu in
7867 powerpc)
7868 # see comment about AmigaOS4 .so support
7869 lt_prog_compiler_pic='-fPIC'
7870 ;;
7871 m68k)
7872 # FIXME: we need at least 68020 code to build shared libraries, but
7873 # adding the `-m68020' flag to GCC prevents building anything better,
7874 # like `-m68040'.
7875 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7876 ;;
7877 esac
7878 ;;
7879
7880 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7881 # PIC is the default for these OSes.
7882 ;;
7883
7884 mingw* | cygwin* | pw32* | os2* | cegcc*)
7885 # This hack is so that the source file can tell whether it is being
7886 # built for inclusion in a dll (and should export symbols for example).
7887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7888 # (--disable-auto-import) libraries
7889 lt_prog_compiler_pic='-DDLL_EXPORT'
7890 ;;
7891
7892 darwin* | rhapsody*)
7893 # PIC is the default on this platform
7894 # Common symbols not allowed in MH_DYLIB files
7895 lt_prog_compiler_pic='-fno-common'
7896 ;;
7897
7898 haiku*)
7899 # PIC is the default for Haiku.
7900 # The "-static" flag exists, but is broken.
7901 lt_prog_compiler_static=
7902 ;;
7903
7904 hpux*)
7905 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7906 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7907 # sets the default TLS model and affects inlining.
7908 case $host_cpu in
7909 hppa*64*)
7910 # +Z the default
7911 ;;
7912 *)
7913 lt_prog_compiler_pic='-fPIC'
7914 ;;
7915 esac
7916 ;;
7917
7918 interix[3-9]*)
7919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7920 # Instead, we relocate shared libraries at runtime.
7921 ;;
7922
7923 msdosdjgpp*)
7924 # Just because we use GCC doesn't mean we suddenly get shared libraries
7925 # on systems that don't support them.
7926 lt_prog_compiler_can_build_shared=no
7927 enable_shared=no
7928 ;;
7929
7930 *nto* | *qnx*)
7931 # QNX uses GNU C++, but need to define -shared option too, otherwise
7932 # it will coredump.
7933 lt_prog_compiler_pic='-fPIC -shared'
7934 ;;
7935
7936 sysv4*MP*)
7937 if test -d /usr/nec; then
7938 lt_prog_compiler_pic=-Kconform_pic
7939 fi
7940 ;;
7941
7942 *)
7943 lt_prog_compiler_pic='-fPIC'
7944 ;;
7945 esac
7946
7947 case $cc_basename in
7948 nvcc*) # Cuda Compiler Driver 2.2
7949 lt_prog_compiler_wl='-Xlinker '
7950 lt_prog_compiler_pic='-Xcompiler -fPIC'
7951 ;;
7952 esac
7953 else
7954 # PORTME Check for flag to pass linker flags through the system compiler.
7955 case $host_os in
7956 aix*)
7957 lt_prog_compiler_wl='-Wl,'
7958 if test "$host_cpu" = ia64; then
7959 # AIX 5 now supports IA64 processor
7960 lt_prog_compiler_static='-Bstatic'
7961 else
7962 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7963 fi
7964 ;;
7965
7966 mingw* | cygwin* | pw32* | os2* | cegcc*)
7967 # This hack is so that the source file can tell whether it is being
7968 # built for inclusion in a dll (and should export symbols for example).
7969 lt_prog_compiler_pic='-DDLL_EXPORT'
7970 ;;
7971
7972 hpux9* | hpux10* | hpux11*)
7973 lt_prog_compiler_wl='-Wl,'
7974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7975 # not for PA HP-UX.
7976 case $host_cpu in
7977 hppa*64*|ia64*)
7978 # +Z the default
7979 ;;
7980 *)
7981 lt_prog_compiler_pic='+Z'
7982 ;;
7983 esac
7984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7985 lt_prog_compiler_static='${wl}-a ${wl}archive'
7986 ;;
7987
7988 irix5* | irix6* | nonstopux*)
7989 lt_prog_compiler_wl='-Wl,'
7990 # PIC (with -KPIC) is the default.
7991 lt_prog_compiler_static='-non_shared'
7992 ;;
7993
7994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7995 case $cc_basename in
7996 # old Intel for x86_64 which still supported -KPIC.
7997 ecc*)
7998 lt_prog_compiler_wl='-Wl,'
7999 lt_prog_compiler_pic='-KPIC'
8000 lt_prog_compiler_static='-static'
8001 ;;
8002 # icc used to be incompatible with GCC.
8003 # ICC 10 doesn't accept -KPIC any more.
8004 icc* | ifort*)
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-fPIC'
8007 lt_prog_compiler_static='-static'
8008 ;;
8009 # Lahey Fortran 8.1.
8010 lf95*)
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_pic='--shared'
8013 lt_prog_compiler_static='--static'
8014 ;;
8015 nagfor*)
8016 # NAG Fortran compiler
8017 lt_prog_compiler_wl='-Wl,-Wl,,'
8018 lt_prog_compiler_pic='-PIC'
8019 lt_prog_compiler_static='-Bstatic'
8020 ;;
8021 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8022 # Portland Group compilers (*not* the Pentium gcc compiler,
8023 # which looks to be a dead project)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-fpic'
8026 lt_prog_compiler_static='-Bstatic'
8027 ;;
8028 ccc*)
8029 lt_prog_compiler_wl='-Wl,'
8030 # All Alpha code is PIC.
8031 lt_prog_compiler_static='-non_shared'
8032 ;;
8033 xl* | bgxl* | bgf* | mpixl*)
8034 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-qpic'
8037 lt_prog_compiler_static='-qstaticlink'
8038 ;;
8039 *)
8040 case `$CC -V 2>&1 | sed 5q` in
8041 *Sun\ F* | *Sun*Fortran*)
8042 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8043 lt_prog_compiler_pic='-KPIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 lt_prog_compiler_wl=''
8046 ;;
8047 *Sun\ C*)
8048 # Sun C 5.9
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8051 lt_prog_compiler_wl='-Wl,'
8052 ;;
8053 esac
8054 ;;
8055 esac
8056 ;;
8057
8058 newsos6)
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062
8063 *nto* | *qnx*)
8064 # QNX uses GNU C++, but need to define -shared option too, otherwise
8065 # it will coredump.
8066 lt_prog_compiler_pic='-fPIC -shared'
8067 ;;
8068
8069 osf3* | osf4* | osf5*)
8070 lt_prog_compiler_wl='-Wl,'
8071 # All OSF/1 code is PIC.
8072 lt_prog_compiler_static='-non_shared'
8073 ;;
8074
8075 rdos*)
8076 lt_prog_compiler_static='-non_shared'
8077 ;;
8078
8079 solaris*)
8080 lt_prog_compiler_pic='-KPIC'
8081 lt_prog_compiler_static='-Bstatic'
8082 case $cc_basename in
8083 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8084 lt_prog_compiler_wl='-Qoption ld ';;
8085 *)
8086 lt_prog_compiler_wl='-Wl,';;
8087 esac
8088 ;;
8089
8090 sunos4*)
8091 lt_prog_compiler_wl='-Qoption ld '
8092 lt_prog_compiler_pic='-PIC'
8093 lt_prog_compiler_static='-Bstatic'
8094 ;;
8095
8096 sysv4 | sysv4.2uw2* | sysv4.3*)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-KPIC'
8099 lt_prog_compiler_static='-Bstatic'
8100 ;;
8101
8102 sysv4*MP*)
8103 if test -d /usr/nec ;then
8104 lt_prog_compiler_pic='-Kconform_pic'
8105 lt_prog_compiler_static='-Bstatic'
8106 fi
8107 ;;
8108
8109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-KPIC'
8112 lt_prog_compiler_static='-Bstatic'
8113 ;;
8114
8115 unicos*)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_can_build_shared=no
8118 ;;
8119
8120 uts4*)
8121 lt_prog_compiler_pic='-pic'
8122 lt_prog_compiler_static='-Bstatic'
8123 ;;
8124
8125 *)
8126 lt_prog_compiler_can_build_shared=no
8127 ;;
8128 esac
8129 fi
8130
8131 case $host_os in
8132 # For platforms which do not support PIC, -DPIC is meaningless:
8133 *djgpp*)
8134 lt_prog_compiler_pic=
8135 ;;
8136 *)
8137 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8138 ;;
8139 esac
8140
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8142 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8143 if ${lt_cv_prog_compiler_pic+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8149 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8150 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8151
8152 #
8153 # Check to make sure the PIC flag actually works.
8154 #
8155 if test -n "$lt_prog_compiler_pic"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8157 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8158 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 lt_cv_prog_compiler_pic_works=no
8162 ac_outfile=conftest.$ac_objext
8163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 # The option is referenced via a variable to avoid confusing sed.
8170 lt_compile=`echo "$ac_compile" | $SED \
8171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8173 -e 's:$: $lt_compiler_flag:'`
8174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8175 (eval "$lt_compile" 2>conftest.err)
8176 ac_status=$?
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 if (exit $ac_status) && test -s "$ac_outfile"; then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings other than the usual output.
8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_pic_works=yes
8186 fi
8187 fi
8188 $RM conftest*
8189
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8192 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8193
8194 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8195 case $lt_prog_compiler_pic in
8196 "" | " "*) ;;
8197 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8198 esac
8199 else
8200 lt_prog_compiler_pic=
8201 lt_prog_compiler_can_build_shared=no
8202 fi
8203
8204 fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 #
8217 # Check to make sure the static flag actually works.
8218 #
8219 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8221 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8222 if ${lt_cv_prog_compiler_static_works+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 lt_cv_prog_compiler_static_works=no
8226 save_LDFLAGS="$LDFLAGS"
8227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8230 # The linker can only warn and ignore the option if not recognized
8231 # So say no if there are warnings
8232 if test -s conftest.err; then
8233 # Append any errors to the config.log.
8234 cat conftest.err 1>&5
8235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8237 if diff conftest.exp conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_static_works=yes
8239 fi
8240 else
8241 lt_cv_prog_compiler_static_works=yes
8242 fi
8243 fi
8244 $RM -r conftest*
8245 LDFLAGS="$save_LDFLAGS"
8246
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8249 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8250
8251 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8252 :
8253 else
8254 lt_prog_compiler_static=
8255 fi
8256
8257
8258
8259
8260
8261
8262
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8265 if ${lt_cv_prog_compiler_c_o+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 lt_cv_prog_compiler_c_o=no
8269 $RM -r conftest 2>/dev/null
8270 mkdir conftest
8271 cd conftest
8272 mkdir out
8273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274
8275 lt_compiler_flag="-o out/conftest2.$ac_objext"
8276 # Insert the option either (1) after the last *FLAGS variable, or
8277 # (2) before a word containing "conftest.", or (3) at the end.
8278 # Note that $ac_compile itself does not contain backslashes and begins
8279 # with a dollar sign (not a hyphen), so the echo should work correctly.
8280 lt_compile=`echo "$ac_compile" | $SED \
8281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283 -e 's:$: $lt_compiler_flag:'`
8284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8285 (eval "$lt_compile" 2>out/conftest.err)
8286 ac_status=$?
8287 cat out/conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8290 then
8291 # The compiler can only warn and ignore the option if not recognized
8292 # So say no if there are warnings
8293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8296 lt_cv_prog_compiler_c_o=yes
8297 fi
8298 fi
8299 chmod u+w . 2>&5
8300 $RM conftest*
8301 # SGI C++ compiler will create directory out/ii_files/ for
8302 # template instantiation
8303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8304 $RM out/* && rmdir out
8305 cd ..
8306 $RM -r conftest
8307 $RM conftest*
8308
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8312
8313
8314
8315
8316
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8319 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8320 if ${lt_cv_prog_compiler_c_o+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 lt_cv_prog_compiler_c_o=no
8324 $RM -r conftest 2>/dev/null
8325 mkdir conftest
8326 cd conftest
8327 mkdir out
8328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8329
8330 lt_compiler_flag="-o out/conftest2.$ac_objext"
8331 # Insert the option either (1) after the last *FLAGS variable, or
8332 # (2) before a word containing "conftest.", or (3) at the end.
8333 # Note that $ac_compile itself does not contain backslashes and begins
8334 # with a dollar sign (not a hyphen), so the echo should work correctly.
8335 lt_compile=`echo "$ac_compile" | $SED \
8336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338 -e 's:$: $lt_compiler_flag:'`
8339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8340 (eval "$lt_compile" 2>out/conftest.err)
8341 ac_status=$?
8342 cat out/conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8345 then
8346 # The compiler can only warn and ignore the option if not recognized
8347 # So say no if there are warnings
8348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8351 lt_cv_prog_compiler_c_o=yes
8352 fi
8353 fi
8354 chmod u+w . 2>&5
8355 $RM conftest*
8356 # SGI C++ compiler will create directory out/ii_files/ for
8357 # template instantiation
8358 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8359 $RM out/* && rmdir out
8360 cd ..
8361 $RM -r conftest
8362 $RM conftest*
8363
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8366 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8367
8368
8369
8370
8371 hard_links="nottested"
8372 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8373 # do not overwrite the value of need_locks provided by the user
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8375 $as_echo_n "checking if we can lock with hard links... " >&6; }
8376 hard_links=yes
8377 $RM conftest*
8378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8379 touch conftest.a
8380 ln conftest.a conftest.b 2>&5 || hard_links=no
8381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8383 $as_echo "$hard_links" >&6; }
8384 if test "$hard_links" = no; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8386 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8387 need_locks=warn
8388 fi
8389 else
8390 need_locks=no
8391 fi
8392
8393
8394
8395
8396
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8399 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8400
8401 runpath_var=
8402 allow_undefined_flag=
8403 always_export_symbols=no
8404 archive_cmds=
8405 archive_expsym_cmds=
8406 compiler_needs_object=no
8407 enable_shared_with_static_runtimes=no
8408 export_dynamic_flag_spec=
8409 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8410 hardcode_automatic=no
8411 hardcode_direct=no
8412 hardcode_direct_absolute=no
8413 hardcode_libdir_flag_spec=
8414 hardcode_libdir_flag_spec_ld=
8415 hardcode_libdir_separator=
8416 hardcode_minus_L=no
8417 hardcode_shlibpath_var=unsupported
8418 inherit_rpath=no
8419 link_all_deplibs=unknown
8420 module_cmds=
8421 module_expsym_cmds=
8422 old_archive_from_new_cmds=
8423 old_archive_from_expsyms_cmds=
8424 thread_safe_flag_spec=
8425 whole_archive_flag_spec=
8426 # include_expsyms should be a list of space-separated symbols to be *always*
8427 # included in the symbol list
8428 include_expsyms=
8429 # exclude_expsyms can be an extended regexp of symbols to exclude
8430 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8431 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8432 # as well as any symbol that contains `d'.
8433 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8434 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8435 # platforms (ab)use it in PIC code, but their linkers get confused if
8436 # the symbol is explicitly referenced. Since portable code cannot
8437 # rely on this symbol name, it's probably fine to never include it in
8438 # preloaded symbol tables.
8439 # Exclude shared library initialization/finalization symbols.
8440 extract_expsyms_cmds=
8441
8442 case $host_os in
8443 cygwin* | mingw* | pw32* | cegcc*)
8444 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8445 # When not using gcc, we currently assume that we are using
8446 # Microsoft Visual C++.
8447 if test "$GCC" != yes; then
8448 with_gnu_ld=no
8449 fi
8450 ;;
8451 interix*)
8452 # we just hope/assume this is gcc and not c89 (= MSVC++)
8453 with_gnu_ld=yes
8454 ;;
8455 openbsd*)
8456 with_gnu_ld=no
8457 ;;
8458 linux* | k*bsd*-gnu | gnu*)
8459 link_all_deplibs=no
8460 ;;
8461 esac
8462
8463 ld_shlibs=yes
8464
8465 # On some targets, GNU ld is compatible enough with the native linker
8466 # that we're better off using the native interface for both.
8467 lt_use_gnu_ld_interface=no
8468 if test "$with_gnu_ld" = yes; then
8469 case $host_os in
8470 aix*)
8471 # The AIX port of GNU ld has always aspired to compatibility
8472 # with the native linker. However, as the warning in the GNU ld
8473 # block says, versions before 2.19.5* couldn't really create working
8474 # shared libraries, regardless of the interface used.
8475 case `$LD -v 2>&1` in
8476 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8477 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8478 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8479 *)
8480 lt_use_gnu_ld_interface=yes
8481 ;;
8482 esac
8483 ;;
8484 *)
8485 lt_use_gnu_ld_interface=yes
8486 ;;
8487 esac
8488 fi
8489
8490 if test "$lt_use_gnu_ld_interface" = yes; then
8491 # If archive_cmds runs LD, not CC, wlarc should be empty
8492 wlarc='${wl}'
8493
8494 # Set some defaults for GNU ld with shared library support. These
8495 # are reset later if shared libraries are not supported. Putting them
8496 # here allows them to be overridden if necessary.
8497 runpath_var=LD_RUN_PATH
8498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8499 export_dynamic_flag_spec='${wl}--export-dynamic'
8500 # ancient GNU ld didn't support --whole-archive et. al.
8501 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8502 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8503 else
8504 whole_archive_flag_spec=
8505 fi
8506 supports_anon_versioning=no
8507 case `$LD -v 2>&1` in
8508 *GNU\ gold*) supports_anon_versioning=yes ;;
8509 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8510 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8511 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8512 *\ 2.11.*) ;; # other 2.11 versions
8513 *) supports_anon_versioning=yes ;;
8514 esac
8515
8516 # See if GNU ld supports shared libraries.
8517 case $host_os in
8518 aix[3-9]*)
8519 # On AIX/PPC, the GNU linker is very broken
8520 if test "$host_cpu" != ia64; then
8521 ld_shlibs=no
8522 cat <<_LT_EOF 1>&2
8523
8524 *** Warning: the GNU linker, at least up to release 2.19, is reported
8525 *** to be unable to reliably create shared libraries on AIX.
8526 *** Therefore, libtool is disabling shared libraries support. If you
8527 *** really care for shared libraries, you may want to install binutils
8528 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8529 *** You will then need to restart the configuration process.
8530
8531 _LT_EOF
8532 fi
8533 ;;
8534
8535 amigaos*)
8536 case $host_cpu in
8537 powerpc)
8538 # see comment about AmigaOS4 .so support
8539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8540 archive_expsym_cmds=''
8541 ;;
8542 m68k)
8543 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)'
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 hardcode_minus_L=yes
8546 ;;
8547 esac
8548 ;;
8549
8550 beos*)
8551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8552 allow_undefined_flag=unsupported
8553 # Joseph Beckenbach <[email protected]> says some releases of gcc
8554 # support --undefined. This deserves some investigation. FIXME
8555 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8556 else
8557 ld_shlibs=no
8558 fi
8559 ;;
8560
8561 cygwin* | mingw* | pw32* | cegcc*)
8562 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8563 # as there is no search path for DLLs.
8564 hardcode_libdir_flag_spec='-L$libdir'
8565 export_dynamic_flag_spec='${wl}--export-all-symbols'
8566 allow_undefined_flag=unsupported
8567 always_export_symbols=no
8568 enable_shared_with_static_runtimes=yes
8569 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'
8570 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8571
8572 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8574 # If the export-symbols file already is a .def file (1st line
8575 # is EXPORTS), use it as is; otherwise, prepend...
8576 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8577 cp $export_symbols $output_objdir/$soname.def;
8578 else
8579 echo EXPORTS > $output_objdir/$soname.def;
8580 cat $export_symbols >> $output_objdir/$soname.def;
8581 fi~
8582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8583 else
8584 ld_shlibs=no
8585 fi
8586 ;;
8587
8588 haiku*)
8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590 link_all_deplibs=yes
8591 ;;
8592
8593 interix[3-9]*)
8594 hardcode_direct=no
8595 hardcode_shlibpath_var=no
8596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8597 export_dynamic_flag_spec='${wl}-E'
8598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8599 # Instead, shared libraries are loaded at an image base (0x10000000 by
8600 # default) and relocated if they conflict, which is a slow very memory
8601 # consuming and fragmenting process. To avoid this, we pick a random,
8602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8604 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8605 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'
8606 ;;
8607
8608 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8609 tmp_diet=no
8610 if test "$host_os" = linux-dietlibc; then
8611 case $cc_basename in
8612 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8613 esac
8614 fi
8615 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8616 && test "$tmp_diet" = no
8617 then
8618 tmp_addflag=' $pic_flag'
8619 tmp_sharedflag='-shared'
8620 case $cc_basename,$host_cpu in
8621 pgcc*) # Portland Group C compiler
8622 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'
8623 tmp_addflag=' $pic_flag'
8624 ;;
8625 pgf77* | pgf90* | pgf95* | pgfortran*)
8626 # Portland Group f77 and f90 compilers
8627 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'
8628 tmp_addflag=' $pic_flag -Mnomain' ;;
8629 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8630 tmp_addflag=' -i_dynamic' ;;
8631 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8632 tmp_addflag=' -i_dynamic -nofor_main' ;;
8633 ifc* | ifort*) # Intel Fortran compiler
8634 tmp_addflag=' -nofor_main' ;;
8635 lf95*) # Lahey Fortran 8.1
8636 whole_archive_flag_spec=
8637 tmp_sharedflag='--shared' ;;
8638 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8639 tmp_sharedflag='-qmkshrobj'
8640 tmp_addflag= ;;
8641 nvcc*) # Cuda Compiler Driver 2.2
8642 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'
8643 compiler_needs_object=yes
8644 ;;
8645 esac
8646 case `$CC -V 2>&1 | sed 5q` in
8647 *Sun\ C*) # Sun C 5.9
8648 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'
8649 compiler_needs_object=yes
8650 tmp_sharedflag='-G' ;;
8651 *Sun\ F*) # Sun Fortran 8.3
8652 tmp_sharedflag='-G' ;;
8653 esac
8654 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655
8656 if test "x$supports_anon_versioning" = xyes; then
8657 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8659 echo "local: *; };" >> $output_objdir/$libname.ver~
8660 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8661 fi
8662
8663 case $cc_basename in
8664 xlf* | bgf* | bgxlf* | mpixlf*)
8665 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8666 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8667 hardcode_libdir_flag_spec=
8668 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8669 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8670 if test "x$supports_anon_versioning" = xyes; then
8671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673 echo "local: *; };" >> $output_objdir/$libname.ver~
8674 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8675 fi
8676 ;;
8677 esac
8678 else
8679 ld_shlibs=no
8680 fi
8681 ;;
8682
8683 netbsd* | netbsdelf*-gnu)
8684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8685 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8686 wlarc=
8687 else
8688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690 fi
8691 ;;
8692
8693 solaris*)
8694 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8695 ld_shlibs=no
8696 cat <<_LT_EOF 1>&2
8697
8698 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8699 *** create shared libraries on Solaris systems. Therefore, libtool
8700 *** is disabling shared libraries support. We urge you to upgrade GNU
8701 *** binutils to release 2.9.1 or newer. Another option is to modify
8702 *** your PATH or compiler configuration so that the native linker is
8703 *** used, and then restart.
8704
8705 _LT_EOF
8706 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8709 else
8710 ld_shlibs=no
8711 fi
8712 ;;
8713
8714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8715 case `$LD -v 2>&1` in
8716 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8717 ld_shlibs=no
8718 cat <<_LT_EOF 1>&2
8719
8720 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8721 *** reliably create shared libraries on SCO systems. Therefore, libtool
8722 *** is disabling shared libraries support. We urge you to upgrade GNU
8723 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8724 *** your PATH or compiler configuration so that the native linker is
8725 *** used, and then restart.
8726
8727 _LT_EOF
8728 ;;
8729 *)
8730 # For security reasons, it is highly recommended that you always
8731 # use absolute paths for naming shared libraries, and exclude the
8732 # DT_RUNPATH tag from executables and libraries. But doing so
8733 # requires that you compile everything twice, which is a pain.
8734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738 else
8739 ld_shlibs=no
8740 fi
8741 ;;
8742 esac
8743 ;;
8744
8745 sunos4*)
8746 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8747 wlarc=
8748 hardcode_direct=yes
8749 hardcode_shlibpath_var=no
8750 ;;
8751
8752 *)
8753 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8756 else
8757 ld_shlibs=no
8758 fi
8759 ;;
8760 esac
8761
8762 if test "$ld_shlibs" = no; then
8763 runpath_var=
8764 hardcode_libdir_flag_spec=
8765 export_dynamic_flag_spec=
8766 whole_archive_flag_spec=
8767 fi
8768 else
8769 # PORTME fill in a description of your system's linker (not GNU ld)
8770 case $host_os in
8771 aix3*)
8772 allow_undefined_flag=unsupported
8773 always_export_symbols=yes
8774 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'
8775 # Note: this linker hardcodes the directories in LIBPATH if there
8776 # are no directories specified by -L.
8777 hardcode_minus_L=yes
8778 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8779 # Neither direct hardcoding nor static linking is supported with a
8780 # broken collect2.
8781 hardcode_direct=unsupported
8782 fi
8783 ;;
8784
8785 aix[4-9]*)
8786 if test "$host_cpu" = ia64; then
8787 # On IA64, the linker does run time linking by default, so we don't
8788 # have to do anything special.
8789 aix_use_runtimelinking=no
8790 exp_sym_flag='-Bexport'
8791 no_entry_flag=""
8792 else
8793 # If we're using GNU nm, then we don't want the "-C" option.
8794 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8795 # Also, AIX nm treats weak defined symbols like other global
8796 # defined symbols, whereas GNU nm marks them as "W".
8797 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8798 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8799 else
8800 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8801 fi
8802 aix_use_runtimelinking=no
8803
8804 # Test if we are trying to use run time linking or normal
8805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8806 # need to do runtime linking.
8807 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8808 for ld_flag in $LDFLAGS; do
8809 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8810 aix_use_runtimelinking=yes
8811 break
8812 fi
8813 done
8814 ;;
8815 esac
8816
8817 exp_sym_flag='-bexport'
8818 no_entry_flag='-bnoentry'
8819 fi
8820
8821 # When large executables or shared objects are built, AIX ld can
8822 # have problems creating the table of contents. If linking a library
8823 # or program results in "error TOC overflow" add -mminimal-toc to
8824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8826
8827 archive_cmds=''
8828 hardcode_direct=yes
8829 hardcode_direct_absolute=yes
8830 hardcode_libdir_separator=':'
8831 link_all_deplibs=yes
8832 file_list_spec='${wl}-f,'
8833
8834 if test "$GCC" = yes; then
8835 case $host_os in aix4.[012]|aix4.[012].*)
8836 # We only want to do this on AIX 4.2 and lower, the check
8837 # below for broken collect2 doesn't work under 4.3+
8838 collect2name=`${CC} -print-prog-name=collect2`
8839 if test -f "$collect2name" &&
8840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8841 then
8842 # We have reworked collect2
8843 :
8844 else
8845 # We have old collect2
8846 hardcode_direct=unsupported
8847 # It fails to find uninstalled libraries when the uninstalled
8848 # path is not listed in the libpath. Setting hardcode_minus_L
8849 # to unsupported forces relinking
8850 hardcode_minus_L=yes
8851 hardcode_libdir_flag_spec='-L$libdir'
8852 hardcode_libdir_separator=
8853 fi
8854 ;;
8855 esac
8856 shared_flag='-shared'
8857 if test "$aix_use_runtimelinking" = yes; then
8858 shared_flag="$shared_flag "'${wl}-G'
8859 fi
8860 link_all_deplibs=no
8861 else
8862 # not using gcc
8863 if test "$host_cpu" = ia64; then
8864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8865 # chokes on -Wl,-G. The following line is correct:
8866 shared_flag='-G'
8867 else
8868 if test "$aix_use_runtimelinking" = yes; then
8869 shared_flag='${wl}-G'
8870 else
8871 shared_flag='${wl}-bM:SRE'
8872 fi
8873 fi
8874 fi
8875
8876 export_dynamic_flag_spec='${wl}-bexpall'
8877 # It seems that -bexpall does not export symbols beginning with
8878 # underscore (_), so it is better to generate a list of symbols to export.
8879 always_export_symbols=yes
8880 if test "$aix_use_runtimelinking" = yes; then
8881 # Warning - without using the other runtime loading flags (-brtl),
8882 # -berok will link without error, but may produce a broken library.
8883 allow_undefined_flag='-berok'
8884 # Determine the default libpath from the value encoded in an
8885 # empty executable.
8886 if test "${lt_cv_aix_libpath+set}" = set; then
8887 aix_libpath=$lt_cv_aix_libpath
8888 else
8889 if ${lt_cv_aix_libpath_+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894
8895 int
8896 main ()
8897 {
8898
8899 ;
8900 return 0;
8901 }
8902 _ACEOF
8903 if ac_fn_c_try_link "$LINENO"; then :
8904
8905 lt_aix_libpath_sed='
8906 /Import File Strings/,/^$/ {
8907 /^0/ {
8908 s/^0 *\([^ ]*\) *$/\1/
8909 p
8910 }
8911 }'
8912 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8913 # Check for a 64-bit object if we didn't find anything.
8914 if test -z "$lt_cv_aix_libpath_"; then
8915 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916 fi
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 if test -z "$lt_cv_aix_libpath_"; then
8921 lt_cv_aix_libpath_="/usr/lib:/lib"
8922 fi
8923
8924 fi
8925
8926 aix_libpath=$lt_cv_aix_libpath_
8927 fi
8928
8929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8931 else
8932 if test "$host_cpu" = ia64; then
8933 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8934 allow_undefined_flag="-z nodefs"
8935 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"
8936 else
8937 # Determine the default libpath from the value encoded in an
8938 # empty executable.
8939 if test "${lt_cv_aix_libpath+set}" = set; then
8940 aix_libpath=$lt_cv_aix_libpath
8941 else
8942 if ${lt_cv_aix_libpath_+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947
8948 int
8949 main ()
8950 {
8951
8952 ;
8953 return 0;
8954 }
8955 _ACEOF
8956 if ac_fn_c_try_link "$LINENO"; then :
8957
8958 lt_aix_libpath_sed='
8959 /Import File Strings/,/^$/ {
8960 /^0/ {
8961 s/^0 *\([^ ]*\) *$/\1/
8962 p
8963 }
8964 }'
8965 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966 # Check for a 64-bit object if we didn't find anything.
8967 if test -z "$lt_cv_aix_libpath_"; then
8968 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 fi
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973 if test -z "$lt_cv_aix_libpath_"; then
8974 lt_cv_aix_libpath_="/usr/lib:/lib"
8975 fi
8976
8977 fi
8978
8979 aix_libpath=$lt_cv_aix_libpath_
8980 fi
8981
8982 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8983 # Warning - without using the other run time loading flags,
8984 # -berok will link without error, but may produce a broken library.
8985 no_undefined_flag=' ${wl}-bernotok'
8986 allow_undefined_flag=' ${wl}-berok'
8987 if test "$with_gnu_ld" = yes; then
8988 # We only use this code for GNU lds that support --whole-archive.
8989 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8990 else
8991 # Exported symbols can be pulled into shared objects from archives
8992 whole_archive_flag_spec='$convenience'
8993 fi
8994 archive_cmds_need_lc=yes
8995 # This is similar to how AIX traditionally builds its shared libraries.
8996 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8997 fi
8998 fi
8999 ;;
9000
9001 amigaos*)
9002 case $host_cpu in
9003 powerpc)
9004 # see comment about AmigaOS4 .so support
9005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006 archive_expsym_cmds=''
9007 ;;
9008 m68k)
9009 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)'
9010 hardcode_libdir_flag_spec='-L$libdir'
9011 hardcode_minus_L=yes
9012 ;;
9013 esac
9014 ;;
9015
9016 bsdi[45]*)
9017 export_dynamic_flag_spec=-rdynamic
9018 ;;
9019
9020 cygwin* | mingw* | pw32* | cegcc*)
9021 # When not using gcc, we currently assume that we are using
9022 # Microsoft Visual C++.
9023 # hardcode_libdir_flag_spec is actually meaningless, as there is
9024 # no search path for DLLs.
9025 case $cc_basename in
9026 cl*)
9027 # Native MSVC
9028 hardcode_libdir_flag_spec=' '
9029 allow_undefined_flag=unsupported
9030 always_export_symbols=yes
9031 file_list_spec='@'
9032 # Tell ltmain to make .lib files, not .a files.
9033 libext=lib
9034 # Tell ltmain to make .dll files, not .so files.
9035 shrext_cmds=".dll"
9036 # FIXME: Setting linknames here is a bad hack.
9037 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9038 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9039 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9040 else
9041 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9042 fi~
9043 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9044 linknames='
9045 # The linker will not automatically build a static lib if we build a DLL.
9046 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9047 enable_shared_with_static_runtimes=yes
9048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9049 # Don't use ranlib
9050 old_postinstall_cmds='chmod 644 $oldlib'
9051 postlink_cmds='lt_outputfile="@OUTPUT@"~
9052 lt_tool_outputfile="@TOOL_OUTPUT@"~
9053 case $lt_outputfile in
9054 *.exe|*.EXE) ;;
9055 *)
9056 lt_outputfile="$lt_outputfile.exe"
9057 lt_tool_outputfile="$lt_tool_outputfile.exe"
9058 ;;
9059 esac~
9060 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9061 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9062 $RM "$lt_outputfile.manifest";
9063 fi'
9064 ;;
9065 *)
9066 # Assume MSVC wrapper
9067 hardcode_libdir_flag_spec=' '
9068 allow_undefined_flag=unsupported
9069 # Tell ltmain to make .lib files, not .a files.
9070 libext=lib
9071 # Tell ltmain to make .dll files, not .so files.
9072 shrext_cmds=".dll"
9073 # FIXME: Setting linknames here is a bad hack.
9074 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9075 # The linker will automatically build a .lib file if we build a DLL.
9076 old_archive_from_new_cmds='true'
9077 # FIXME: Should let the user specify the lib program.
9078 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9079 enable_shared_with_static_runtimes=yes
9080 ;;
9081 esac
9082 ;;
9083
9084 darwin* | rhapsody*)
9085
9086
9087 archive_cmds_need_lc=no
9088 hardcode_direct=no
9089 hardcode_automatic=yes
9090 hardcode_shlibpath_var=unsupported
9091 if test "$lt_cv_ld_force_load" = "yes"; then
9092 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\"`'
9093 else
9094 whole_archive_flag_spec=''
9095 fi
9096 link_all_deplibs=yes
9097 allow_undefined_flag="$_lt_dar_allow_undefined"
9098 case $cc_basename in
9099 ifort*) _lt_dar_can_shared=yes ;;
9100 *) _lt_dar_can_shared=$GCC ;;
9101 esac
9102 if test "$_lt_dar_can_shared" = "yes"; then
9103 output_verbose_link_cmd=func_echo_all
9104 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9105 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9106 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}"
9107 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}"
9108
9109 else
9110 ld_shlibs=no
9111 fi
9112
9113 ;;
9114
9115 dgux*)
9116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117 hardcode_libdir_flag_spec='-L$libdir'
9118 hardcode_shlibpath_var=no
9119 ;;
9120
9121 freebsd1*)
9122 ld_shlibs=no
9123 ;;
9124
9125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9126 # support. Future versions do this automatically, but an explicit c++rt0.o
9127 # does not break anything, and helps significantly (at the cost of a little
9128 # extra space).
9129 freebsd2.2*)
9130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9131 hardcode_libdir_flag_spec='-R$libdir'
9132 hardcode_direct=yes
9133 hardcode_shlibpath_var=no
9134 ;;
9135
9136 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9137 freebsd2*)
9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9139 hardcode_direct=yes
9140 hardcode_minus_L=yes
9141 hardcode_shlibpath_var=no
9142 ;;
9143
9144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9145 freebsd* | dragonfly*)
9146 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9147 hardcode_libdir_flag_spec='-R$libdir'
9148 hardcode_direct=yes
9149 hardcode_shlibpath_var=no
9150 ;;
9151
9152 hpux9*)
9153 if test "$GCC" = yes; then
9154 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9155 else
9156 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9157 fi
9158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9159 hardcode_libdir_separator=:
9160 hardcode_direct=yes
9161
9162 # hardcode_minus_L: Not really in the search PATH,
9163 # but as the default location of the library.
9164 hardcode_minus_L=yes
9165 export_dynamic_flag_spec='${wl}-E'
9166 ;;
9167
9168 hpux10*)
9169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9170 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9171 else
9172 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9173 fi
9174 if test "$with_gnu_ld" = no; then
9175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176 hardcode_libdir_flag_spec_ld='+b $libdir'
9177 hardcode_libdir_separator=:
9178 hardcode_direct=yes
9179 hardcode_direct_absolute=yes
9180 export_dynamic_flag_spec='${wl}-E'
9181 # hardcode_minus_L: Not really in the search PATH,
9182 # but as the default location of the library.
9183 hardcode_minus_L=yes
9184 fi
9185 ;;
9186
9187 hpux11*)
9188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9189 case $host_cpu in
9190 hppa*64*)
9191 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 ;;
9193 ia64*)
9194 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9195 ;;
9196 *)
9197 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198 ;;
9199 esac
9200 else
9201 case $host_cpu in
9202 hppa*64*)
9203 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 ;;
9205 ia64*)
9206 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207 ;;
9208 *)
9209
9210 # Older versions of the 11.00 compiler do not understand -b yet
9211 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9213 $as_echo_n "checking if $CC understands -b... " >&6; }
9214 if ${lt_cv_prog_compiler__b+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 lt_cv_prog_compiler__b=no
9218 save_LDFLAGS="$LDFLAGS"
9219 LDFLAGS="$LDFLAGS -b"
9220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9222 # The linker can only warn and ignore the option if not recognized
9223 # So say no if there are warnings
9224 if test -s conftest.err; then
9225 # Append any errors to the config.log.
9226 cat conftest.err 1>&5
9227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229 if diff conftest.exp conftest.er2 >/dev/null; then
9230 lt_cv_prog_compiler__b=yes
9231 fi
9232 else
9233 lt_cv_prog_compiler__b=yes
9234 fi
9235 fi
9236 $RM -r conftest*
9237 LDFLAGS="$save_LDFLAGS"
9238
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9241 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9242
9243 if test x"$lt_cv_prog_compiler__b" = xyes; then
9244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245 else
9246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9247 fi
9248
9249 ;;
9250 esac
9251 fi
9252 if test "$with_gnu_ld" = no; then
9253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255
9256 case $host_cpu in
9257 hppa*64*|ia64*)
9258 hardcode_direct=no
9259 hardcode_shlibpath_var=no
9260 ;;
9261 *)
9262 hardcode_direct=yes
9263 hardcode_direct_absolute=yes
9264 export_dynamic_flag_spec='${wl}-E'
9265
9266 # hardcode_minus_L: Not really in the search PATH,
9267 # but as the default location of the library.
9268 hardcode_minus_L=yes
9269 ;;
9270 esac
9271 fi
9272 ;;
9273
9274 irix5* | irix6* | nonstopux*)
9275 if test "$GCC" = yes; then
9276 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'
9277 # Try to use the -exported_symbol ld option, if it does not
9278 # work, assume that -exports_file does not work either and
9279 # implicitly export all symbols.
9280 # This should be the same for all languages, so no per-tag cache variable.
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9282 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9283 if ${lt_cv_irix_exported_symbol+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 save_LDFLAGS="$LDFLAGS"
9287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int foo (void) { return 0; }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 lt_cv_irix_exported_symbol=yes
9294 else
9295 lt_cv_irix_exported_symbol=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LDFLAGS="$save_LDFLAGS"
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9302 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9303 if test "$lt_cv_irix_exported_symbol" = yes; then
9304 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'
9305 fi
9306 else
9307 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'
9308 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'
9309 fi
9310 archive_cmds_need_lc='no'
9311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312 hardcode_libdir_separator=:
9313 inherit_rpath=yes
9314 link_all_deplibs=yes
9315 ;;
9316
9317 netbsd* | netbsdelf*-gnu)
9318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9320 else
9321 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9322 fi
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_direct=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 newsos6)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_direct=yes
9331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332 hardcode_libdir_separator=:
9333 hardcode_shlibpath_var=no
9334 ;;
9335
9336 *nto* | *qnx*)
9337 ;;
9338
9339 openbsd*)
9340 if test -f /usr/libexec/ld.so; then
9341 hardcode_direct=yes
9342 hardcode_shlibpath_var=no
9343 hardcode_direct_absolute=yes
9344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348 export_dynamic_flag_spec='${wl}-E'
9349 else
9350 case $host_os in
9351 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 ;;
9355 *)
9356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9358 ;;
9359 esac
9360 fi
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365
9366 os2*)
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_minus_L=yes
9369 allow_undefined_flag=unsupported
9370 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9371 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9372 ;;
9373
9374 osf3*)
9375 if test "$GCC" = yes; then
9376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9377 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'
9378 else
9379 allow_undefined_flag=' -expect_unresolved \*'
9380 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'
9381 fi
9382 archive_cmds_need_lc='no'
9383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384 hardcode_libdir_separator=:
9385 ;;
9386
9387 osf4* | osf5*) # as osf3* with the addition of -msym flag
9388 if test "$GCC" = yes; then
9389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9390 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'
9391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 else
9393 allow_undefined_flag=' -expect_unresolved \*'
9394 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'
9395 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~
9396 $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'
9397
9398 # Both c and cxx compiler support -rpath directly
9399 hardcode_libdir_flag_spec='-rpath $libdir'
9400 fi
9401 archive_cmds_need_lc='no'
9402 hardcode_libdir_separator=:
9403 ;;
9404
9405 solaris*)
9406 no_undefined_flag=' -z defs'
9407 if test "$GCC" = yes; then
9408 wlarc='${wl}'
9409 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411 $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'
9412 else
9413 case `$CC -V 2>&1` in
9414 *"Compilers 5.0"*)
9415 wlarc=''
9416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9419 ;;
9420 *)
9421 wlarc='${wl}'
9422 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9424 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9425 ;;
9426 esac
9427 fi
9428 hardcode_libdir_flag_spec='-R$libdir'
9429 hardcode_shlibpath_var=no
9430 case $host_os in
9431 solaris2.[0-5] | solaris2.[0-5].*) ;;
9432 *)
9433 # The compiler driver will combine and reorder linker options,
9434 # but understands `-z linker_flag'. GCC discards it without `$wl',
9435 # but is careful enough not to reorder.
9436 # Supported since Solaris 2.6 (maybe 2.5.1?)
9437 if test "$GCC" = yes; then
9438 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9439 else
9440 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9441 fi
9442 ;;
9443 esac
9444 link_all_deplibs=yes
9445 ;;
9446
9447 sunos4*)
9448 if test "x$host_vendor" = xsequent; then
9449 # Use $CC to link under sequent, because it throws in some extra .o
9450 # files that make .init and .fini sections work.
9451 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9452 else
9453 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9454 fi
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_direct=yes
9457 hardcode_minus_L=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 sysv4)
9462 case $host_vendor in
9463 sni)
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_direct=yes # is this really true???
9466 ;;
9467 siemens)
9468 ## LD is ld it makes a PLAMLIB
9469 ## CC just makes a GrossModule.
9470 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9471 reload_cmds='$CC -r -o $output$reload_objs'
9472 hardcode_direct=no
9473 ;;
9474 motorola)
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9477 ;;
9478 esac
9479 runpath_var='LD_RUN_PATH'
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 sysv4.3*)
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_shlibpath_var=no
9486 export_dynamic_flag_spec='-Bexport'
9487 ;;
9488
9489 sysv4*MP*)
9490 if test -d /usr/nec; then
9491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 hardcode_shlibpath_var=no
9493 runpath_var=LD_RUN_PATH
9494 hardcode_runpath_var=yes
9495 ld_shlibs=yes
9496 fi
9497 ;;
9498
9499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9500 no_undefined_flag='${wl}-z,text'
9501 archive_cmds_need_lc=no
9502 hardcode_shlibpath_var=no
9503 runpath_var='LD_RUN_PATH'
9504
9505 if test "$GCC" = yes; then
9506 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 else
9509 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 fi
9512 ;;
9513
9514 sysv5* | sco3.2v5* | sco5v6*)
9515 # Note: We can NOT use -z defs as we might desire, because we do not
9516 # link with -lc, and that would cause any symbols used from libc to
9517 # always be unresolved, which means just about no library would
9518 # ever link correctly. If we're not using GNU ld we use -z text
9519 # though, which does catch some bad symbols but isn't as heavy-handed
9520 # as -z defs.
9521 no_undefined_flag='${wl}-z,text'
9522 allow_undefined_flag='${wl}-z,nodefs'
9523 archive_cmds_need_lc=no
9524 hardcode_shlibpath_var=no
9525 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9526 hardcode_libdir_separator=':'
9527 link_all_deplibs=yes
9528 export_dynamic_flag_spec='${wl}-Bexport'
9529 runpath_var='LD_RUN_PATH'
9530
9531 if test "$GCC" = yes; then
9532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 else
9535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 fi
9538 ;;
9539
9540 uts4*)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_shlibpath_var=no
9544 ;;
9545
9546 *)
9547 ld_shlibs=no
9548 ;;
9549 esac
9550
9551 if test x$host_vendor = xsni; then
9552 case $host in
9553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9554 export_dynamic_flag_spec='${wl}-Blargedynsym'
9555 ;;
9556 esac
9557 fi
9558 fi
9559
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9561 $as_echo "$ld_shlibs" >&6; }
9562 test "$ld_shlibs" = no && can_build_shared=no
9563
9564 with_gnu_ld=$with_gnu_ld
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580 #
9581 # Do we need to explicitly link libc?
9582 #
9583 case "x$archive_cmds_need_lc" in
9584 x|xyes)
9585 # Assume -lc should be added
9586 archive_cmds_need_lc=yes
9587
9588 if test "$enable_shared" = yes && test "$GCC" = yes; then
9589 case $archive_cmds in
9590 *'~'*)
9591 # FIXME: we may have to deal with multi-command sequences.
9592 ;;
9593 '$CC '*)
9594 # Test whether the compiler implicitly links with -lc since on some
9595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9596 # to ld, don't add -lc before -lgcc.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9599 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 $RM conftest*
9603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604
9605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606 (eval $ac_compile) 2>&5
9607 ac_status=$?
9608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609 test $ac_status = 0; } 2>conftest.err; then
9610 soname=conftest
9611 lib=conftest
9612 libobjs=conftest.$ac_objext
9613 deplibs=
9614 wl=$lt_prog_compiler_wl
9615 pic_flag=$lt_prog_compiler_pic
9616 compiler_flags=-v
9617 linker_flags=-v
9618 verstring=
9619 output_objdir=.
9620 libname=conftest
9621 lt_save_allow_undefined_flag=$allow_undefined_flag
9622 allow_undefined_flag=
9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9624 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9625 ac_status=$?
9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627 test $ac_status = 0; }
9628 then
9629 lt_cv_archive_cmds_need_lc=no
9630 else
9631 lt_cv_archive_cmds_need_lc=yes
9632 fi
9633 allow_undefined_flag=$lt_save_allow_undefined_flag
9634 else
9635 cat conftest.err 1>&5
9636 fi
9637 $RM conftest*
9638
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9641 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9642 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9643 ;;
9644 esac
9645 fi
9646 ;;
9647 esac
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9806 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9807
9808 if test "$GCC" = yes; then
9809 case $host_os in
9810 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9811 *) lt_awk_arg="/^libraries:/" ;;
9812 esac
9813 case $host_os in
9814 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9815 *) lt_sed_strip_eq="s,=/,/,g" ;;
9816 esac
9817 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9818 case $lt_search_path_spec in
9819 *\;*)
9820 # if the path contains ";" then we assume it to be the separator
9821 # otherwise default to the standard path separator (i.e. ":") - it is
9822 # assumed that no part of a normal pathname contains ";" but that should
9823 # okay in the real world where ";" in dirpaths is itself problematic.
9824 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9825 ;;
9826 *)
9827 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9828 ;;
9829 esac
9830 # Ok, now we have the path, separated by spaces, we can step through it
9831 # and add multilib dir if necessary.
9832 lt_tmp_lt_search_path_spec=
9833 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9834 for lt_sys_path in $lt_search_path_spec; do
9835 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9836 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9837 else
9838 test -d "$lt_sys_path" && \
9839 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9840 fi
9841 done
9842 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9843 BEGIN {RS=" "; FS="/|\n";} {
9844 lt_foo="";
9845 lt_count=0;
9846 for (lt_i = NF; lt_i > 0; lt_i--) {
9847 if ($lt_i != "" && $lt_i != ".") {
9848 if ($lt_i == "..") {
9849 lt_count++;
9850 } else {
9851 if (lt_count == 0) {
9852 lt_foo="/" $lt_i lt_foo;
9853 } else {
9854 lt_count--;
9855 }
9856 }
9857 }
9858 }
9859 if (lt_foo != "") { lt_freq[lt_foo]++; }
9860 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9861 }'`
9862 # AWK program above erroneously prepends '/' to C:/dos/paths
9863 # for these hosts.
9864 case $host_os in
9865 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9866 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9867 esac
9868 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9869 else
9870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9871 fi
9872 library_names_spec=
9873 libname_spec='lib$name'
9874 soname_spec=
9875 shrext_cmds=".so"
9876 postinstall_cmds=
9877 postuninstall_cmds=
9878 finish_cmds=
9879 finish_eval=
9880 shlibpath_var=
9881 shlibpath_overrides_runpath=unknown
9882 version_type=none
9883 dynamic_linker="$host_os ld.so"
9884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9885 need_lib_prefix=unknown
9886 hardcode_into_libs=no
9887
9888 # when you set need_version to no, make sure it does not cause -set_version
9889 # flags to be left without arguments
9890 need_version=unknown
9891
9892 case $host_os in
9893 aix3*)
9894 version_type=linux
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9896 shlibpath_var=LIBPATH
9897
9898 # AIX 3 has no versioning support, so we append a major version to the name.
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 ;;
9901
9902 aix[4-9]*)
9903 version_type=linux
9904 need_lib_prefix=no
9905 need_version=no
9906 hardcode_into_libs=yes
9907 if test "$host_cpu" = ia64; then
9908 # AIX 5 supports IA64
9909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 else
9912 # With GCC up to 2.95.x, collect2 would create an import file
9913 # for dependence libraries. The import file would start with
9914 # the line `#! .'. This would cause the generated library to
9915 # depend on `.', always an invalid library. This was fixed in
9916 # development snapshots of GCC prior to 3.0.
9917 case $host_os in
9918 aix4 | aix4.[01] | aix4.[01].*)
9919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9920 echo ' yes '
9921 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9922 :
9923 else
9924 can_build_shared=no
9925 fi
9926 ;;
9927 esac
9928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9929 # soname into executable. Probably we can add versioning support to
9930 # collect2, so additional links can be useful in future.
9931 if test "$aix_use_runtimelinking" = yes; then
9932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9933 # instead of lib<name>.a to let people know that these are not
9934 # typical AIX shared libraries.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 else
9937 # We preserve .a as extension for shared libraries through AIX4.2
9938 # and later when we are not doing run time linking.
9939 library_names_spec='${libname}${release}.a $libname.a'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 fi
9942 shlibpath_var=LIBPATH
9943 fi
9944 ;;
9945
9946 amigaos*)
9947 case $host_cpu in
9948 powerpc)
9949 # Since July 2007 AmigaOS4 officially supports .so libraries.
9950 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 ;;
9953 m68k)
9954 library_names_spec='$libname.ixlibrary $libname.a'
9955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9956 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9957 ;;
9958 esac
9959 ;;
9960
9961 beos*)
9962 library_names_spec='${libname}${shared_ext}'
9963 dynamic_linker="$host_os ld.so"
9964 shlibpath_var=LIBRARY_PATH
9965 ;;
9966
9967 bsdi[45]*)
9968 version_type=linux
9969 need_version=no
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9975 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9976 # the default ld.so.conf also contains /usr/contrib/lib and
9977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9978 # libtool to hard-code these into programs
9979 ;;
9980
9981 cygwin* | mingw* | pw32* | cegcc*)
9982 version_type=windows
9983 shrext_cmds=".dll"
9984 need_version=no
9985 need_lib_prefix=no
9986
9987 case $GCC,$cc_basename in
9988 yes,*)
9989 # gcc
9990 library_names_spec='$libname.dll.a'
9991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9992 postinstall_cmds='base_file=`basename \${file}`~
9993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9994 dldir=$destdir/`dirname \$dlpath`~
9995 test -d \$dldir || mkdir -p \$dldir~
9996 $install_prog $dir/$dlname \$dldir/$dlname~
9997 chmod a+x \$dldir/$dlname~
9998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10000 fi'
10001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10002 dlpath=$dir/\$dldll~
10003 $RM \$dlpath'
10004 shlibpath_overrides_runpath=yes
10005
10006 case $host_os in
10007 cygwin*)
10008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10010
10011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10012 ;;
10013 mingw* | cegcc*)
10014 # MinGW DLLs use traditional 'lib' prefix
10015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016 ;;
10017 pw32*)
10018 # pw32 DLLs use 'pw' prefix rather than 'lib'
10019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10020 ;;
10021 esac
10022 dynamic_linker='Win32 ld.exe'
10023 ;;
10024
10025 *,cl*)
10026 # Native MSVC
10027 libname_spec='$name'
10028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10029 library_names_spec='${libname}.dll.lib'
10030
10031 case $build_os in
10032 mingw*)
10033 sys_lib_search_path_spec=
10034 lt_save_ifs=$IFS
10035 IFS=';'
10036 for lt_path in $LIB
10037 do
10038 IFS=$lt_save_ifs
10039 # Let DOS variable expansion print the short 8.3 style file name.
10040 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10041 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10042 done
10043 IFS=$lt_save_ifs
10044 # Convert to MSYS style.
10045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10046 ;;
10047 cygwin*)
10048 # Convert to unix form, then to dos form, then back to unix form
10049 # but this time dos style (no spaces!) so that the unix form looks
10050 # like /cygdrive/c/PROGRA~1:/cygdr...
10051 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10052 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10053 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10054 ;;
10055 *)
10056 sys_lib_search_path_spec="$LIB"
10057 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10058 # It is most probably a Windows format PATH.
10059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10060 else
10061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10062 fi
10063 # FIXME: find the short name or the path components, as spaces are
10064 # common. (e.g. "Program Files" -> "PROGRA~1")
10065 ;;
10066 esac
10067
10068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10069 postinstall_cmds='base_file=`basename \${file}`~
10070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10071 dldir=$destdir/`dirname \$dlpath`~
10072 test -d \$dldir || mkdir -p \$dldir~
10073 $install_prog $dir/$dlname \$dldir/$dlname'
10074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10075 dlpath=$dir/\$dldll~
10076 $RM \$dlpath'
10077 shlibpath_overrides_runpath=yes
10078 dynamic_linker='Win32 link.exe'
10079 ;;
10080
10081 *)
10082 # Assume MSVC wrapper
10083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10084 dynamic_linker='Win32 ld.exe'
10085 ;;
10086 esac
10087 # FIXME: first we should search . and the directory the executable is in
10088 shlibpath_var=PATH
10089 ;;
10090
10091 darwin* | rhapsody*)
10092 dynamic_linker="$host_os dyld"
10093 version_type=darwin
10094 need_lib_prefix=no
10095 need_version=no
10096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10097 soname_spec='${libname}${release}${major}$shared_ext'
10098 shlibpath_overrides_runpath=yes
10099 shlibpath_var=DYLD_LIBRARY_PATH
10100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10101
10102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10104 ;;
10105
10106 dgux*)
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 ;;
10114
10115 freebsd1*)
10116 dynamic_linker=no
10117 ;;
10118
10119 freebsd* | dragonfly*)
10120 # DragonFly does not have aout. When/if they implement a new
10121 # versioning mechanism, adjust this.
10122 if test -x /usr/bin/objformat; then
10123 objformat=`/usr/bin/objformat`
10124 else
10125 case $host_os in
10126 freebsd[123]*) objformat=aout ;;
10127 *) objformat=elf ;;
10128 esac
10129 fi
10130 version_type=freebsd-$objformat
10131 case $version_type in
10132 freebsd-elf*)
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10134 need_version=no
10135 need_lib_prefix=no
10136 ;;
10137 freebsd-*)
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10139 need_version=yes
10140 ;;
10141 esac
10142 shlibpath_var=LD_LIBRARY_PATH
10143 case $host_os in
10144 freebsd2*)
10145 shlibpath_overrides_runpath=yes
10146 ;;
10147 freebsd3.[01]* | freebsdelf3.[01]*)
10148 shlibpath_overrides_runpath=yes
10149 hardcode_into_libs=yes
10150 ;;
10151 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10152 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10153 shlibpath_overrides_runpath=no
10154 hardcode_into_libs=yes
10155 ;;
10156 *) # from 4.6 on, and DragonFly
10157 shlibpath_overrides_runpath=yes
10158 hardcode_into_libs=yes
10159 ;;
10160 esac
10161 ;;
10162
10163 gnu*)
10164 version_type=linux
10165 need_lib_prefix=no
10166 need_version=no
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 shlibpath_overrides_runpath=no
10171 hardcode_into_libs=yes
10172 ;;
10173
10174 haiku*)
10175 version_type=linux
10176 need_lib_prefix=no
10177 need_version=no
10178 dynamic_linker="$host_os runtime_loader"
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 shlibpath_var=LIBRARY_PATH
10182 shlibpath_overrides_runpath=yes
10183 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10184 hardcode_into_libs=yes
10185 ;;
10186
10187 hpux9* | hpux10* | hpux11*)
10188 # Give a soname corresponding to the major version so that dld.sl refuses to
10189 # link against other versions.
10190 version_type=sunos
10191 need_lib_prefix=no
10192 need_version=no
10193 case $host_cpu in
10194 ia64*)
10195 shrext_cmds='.so'
10196 hardcode_into_libs=yes
10197 dynamic_linker="$host_os dld.so"
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 if test "X$HPUX_IA64_MODE" = X32; then
10203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10204 else
10205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10206 fi
10207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10208 ;;
10209 hppa*64*)
10210 shrext_cmds='.sl'
10211 hardcode_into_libs=yes
10212 dynamic_linker="$host_os dld.sl"
10213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10219 ;;
10220 *)
10221 shrext_cmds='.sl'
10222 dynamic_linker="$host_os dld.sl"
10223 shlibpath_var=SHLIB_PATH
10224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 ;;
10228 esac
10229 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10230 postinstall_cmds='chmod 555 $lib'
10231 # or fails outright, so override atomically:
10232 install_override_mode=555
10233 ;;
10234
10235 interix[3-9]*)
10236 version_type=linux
10237 need_lib_prefix=no
10238 need_version=no
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=no
10244 hardcode_into_libs=yes
10245 ;;
10246
10247 irix5* | irix6* | nonstopux*)
10248 case $host_os in
10249 nonstopux*) version_type=nonstopux ;;
10250 *)
10251 if test "$lt_cv_prog_gnu_ld" = yes; then
10252 version_type=linux
10253 else
10254 version_type=irix
10255 fi ;;
10256 esac
10257 need_lib_prefix=no
10258 need_version=no
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10261 case $host_os in
10262 irix5* | nonstopux*)
10263 libsuff= shlibsuff=
10264 ;;
10265 *)
10266 case $LD in # libtool.m4 will add one of these switches to LD
10267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10268 libsuff= shlibsuff= libmagic=32-bit;;
10269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10270 libsuff=32 shlibsuff=N32 libmagic=N32;;
10271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10273 *) libsuff= shlibsuff= libmagic=never-match;;
10274 esac
10275 ;;
10276 esac
10277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10278 shlibpath_overrides_runpath=no
10279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10281 hardcode_into_libs=yes
10282 ;;
10283
10284 # No shared lib support for Linux oldld, aout, or coff.
10285 linux*oldld* | linux*aout* | linux*coff*)
10286 dynamic_linker=no
10287 ;;
10288
10289 # This must be Linux ELF.
10290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10291 version_type=linux
10292 need_lib_prefix=no
10293 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=no
10299
10300 # Some binutils ld are patched to set DT_RUNPATH
10301 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 lt_cv_shlibpath_overrides_runpath=no
10305 save_LDFLAGS=$LDFLAGS
10306 save_libdir=$libdir
10307 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10308 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311
10312 int
10313 main ()
10314 {
10315
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10322 lt_cv_shlibpath_overrides_runpath=yes
10323 fi
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 LDFLAGS=$save_LDFLAGS
10328 libdir=$save_libdir
10329
10330 fi
10331
10332 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10333
10334 # This implies no fast_install, which is unacceptable.
10335 # Some rework will be needed to allow for fast_install
10336 # before this can be enabled.
10337 hardcode_into_libs=yes
10338
10339 # Append ld.so.conf contents to the search path
10340 if test -f /etc/ld.so.conf; then
10341 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' ' '`
10342 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10343 fi
10344
10345 # We used to test for /lib/ld.so.1 and disable shared libraries on
10346 # powerpc, because MkLinux only supported shared libraries with the
10347 # GNU dynamic linker. Since this was broken with cross compilers,
10348 # most powerpc-linux boxes support dynamic linking these days and
10349 # people can always --disable-shared, the test was removed, and we
10350 # assume the GNU/Linux dynamic linker is in use.
10351 dynamic_linker='GNU/Linux ld.so'
10352 ;;
10353
10354 netbsdelf*-gnu)
10355 version_type=linux
10356 need_lib_prefix=no
10357 need_version=no
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=no
10362 hardcode_into_libs=yes
10363 dynamic_linker='NetBSD ld.elf_so'
10364 ;;
10365
10366 netbsd*)
10367 version_type=sunos
10368 need_lib_prefix=no
10369 need_version=no
10370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10373 dynamic_linker='NetBSD (a.out) ld.so'
10374 else
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 dynamic_linker='NetBSD ld.elf_so'
10378 fi
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10381 hardcode_into_libs=yes
10382 ;;
10383
10384 newsos6)
10385 version_type=linux
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 ;;
10390
10391 *nto* | *qnx*)
10392 version_type=qnx
10393 need_lib_prefix=no
10394 need_version=no
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=no
10399 hardcode_into_libs=yes
10400 dynamic_linker='ldqnx.so'
10401 ;;
10402
10403 openbsd*)
10404 version_type=sunos
10405 sys_lib_dlsearch_path_spec="/usr/lib"
10406 need_lib_prefix=no
10407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10408 case $host_os in
10409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10410 *) need_version=no ;;
10411 esac
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10416 case $host_os in
10417 openbsd2.[89] | openbsd2.[89].*)
10418 shlibpath_overrides_runpath=no
10419 ;;
10420 *)
10421 shlibpath_overrides_runpath=yes
10422 ;;
10423 esac
10424 else
10425 shlibpath_overrides_runpath=yes
10426 fi
10427 ;;
10428
10429 os2*)
10430 libname_spec='$name'
10431 shrext_cmds=".dll"
10432 need_lib_prefix=no
10433 library_names_spec='$libname${shared_ext} $libname.a'
10434 dynamic_linker='OS/2 ld.exe'
10435 shlibpath_var=LIBPATH
10436 ;;
10437
10438 osf3* | osf4* | osf5*)
10439 version_type=osf
10440 need_lib_prefix=no
10441 need_version=no
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10447 ;;
10448
10449 rdos*)
10450 dynamic_linker=no
10451 ;;
10452
10453 solaris*)
10454 version_type=linux
10455 need_lib_prefix=no
10456 need_version=no
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=yes
10461 hardcode_into_libs=yes
10462 # ldd complains unless libraries are executable
10463 postinstall_cmds='chmod +x $lib'
10464 ;;
10465
10466 sunos4*)
10467 version_type=sunos
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=yes
10472 if test "$with_gnu_ld" = yes; then
10473 need_lib_prefix=no
10474 fi
10475 need_version=yes
10476 ;;
10477
10478 sysv4 | sysv4.3*)
10479 version_type=linux
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 case $host_vendor in
10484 sni)
10485 shlibpath_overrides_runpath=no
10486 need_lib_prefix=no
10487 runpath_var=LD_RUN_PATH
10488 ;;
10489 siemens)
10490 need_lib_prefix=no
10491 ;;
10492 motorola)
10493 need_lib_prefix=no
10494 need_version=no
10495 shlibpath_overrides_runpath=no
10496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10497 ;;
10498 esac
10499 ;;
10500
10501 sysv4*MP*)
10502 if test -d /usr/nec ;then
10503 version_type=linux
10504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10505 soname_spec='$libname${shared_ext}.$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 fi
10508 ;;
10509
10510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10511 version_type=freebsd-elf
10512 need_lib_prefix=no
10513 need_version=no
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=yes
10518 hardcode_into_libs=yes
10519 if test "$with_gnu_ld" = yes; then
10520 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10521 else
10522 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10523 case $host_os in
10524 sco3.2v5*)
10525 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10526 ;;
10527 esac
10528 fi
10529 sys_lib_dlsearch_path_spec='/usr/lib'
10530 ;;
10531
10532 tpf*)
10533 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10534 version_type=linux
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=no
10540 hardcode_into_libs=yes
10541 ;;
10542
10543 uts4*)
10544 version_type=linux
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 ;;
10549
10550 *)
10551 dynamic_linker=no
10552 ;;
10553 esac
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10555 $as_echo "$dynamic_linker" >&6; }
10556 test "$dynamic_linker" = no && can_build_shared=no
10557
10558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10559 if test "$GCC" = yes; then
10560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10561 fi
10562
10563 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10564 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10565 fi
10566 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10567 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10568 fi
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10663 hardcode_action=
10664 if test -n "$hardcode_libdir_flag_spec" ||
10665 test -n "$runpath_var" ||
10666 test "X$hardcode_automatic" = "Xyes" ; then
10667
10668 # We can hardcode non-existent directories.
10669 if test "$hardcode_direct" != no &&
10670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10671 # have to relink, otherwise we might link with an installed library
10672 # when we should be linking with a yet-to-be-installed one
10673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10674 test "$hardcode_minus_L" != no; then
10675 # Linking always hardcodes the temporary library directory.
10676 hardcode_action=relink
10677 else
10678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10679 hardcode_action=immediate
10680 fi
10681 else
10682 # We cannot hardcode anything, or else we can only hardcode existing
10683 # directories.
10684 hardcode_action=unsupported
10685 fi
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10687 $as_echo "$hardcode_action" >&6; }
10688
10689 if test "$hardcode_action" = relink ||
10690 test "$inherit_rpath" = yes; then
10691 # Fast installation is not supported
10692 enable_fast_install=no
10693 elif test "$shlibpath_overrides_runpath" = yes ||
10694 test "$enable_shared" = no; then
10695 # Fast installation is not necessary
10696 enable_fast_install=needless
10697 fi
10698
10699
10700
10701
10702
10703
10704 if test "x$enable_dlopen" != xyes; then
10705 enable_dlopen=unknown
10706 enable_dlopen_self=unknown
10707 enable_dlopen_self_static=unknown
10708 else
10709 lt_cv_dlopen=no
10710 lt_cv_dlopen_libs=
10711
10712 case $host_os in
10713 beos*)
10714 lt_cv_dlopen="load_add_on"
10715 lt_cv_dlopen_libs=
10716 lt_cv_dlopen_self=yes
10717 ;;
10718
10719 mingw* | pw32* | cegcc*)
10720 lt_cv_dlopen="LoadLibrary"
10721 lt_cv_dlopen_libs=
10722 ;;
10723
10724 cygwin*)
10725 lt_cv_dlopen="dlopen"
10726 lt_cv_dlopen_libs=
10727 ;;
10728
10729 darwin*)
10730 # if libdl is installed we need to link against it
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10733 if ${ac_cv_lib_dl_dlopen+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-ldl $LIBS"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10744 #ifdef __cplusplus
10745 extern "C"
10746 #endif
10747 char dlopen ();
10748 int
10749 main ()
10750 {
10751 return dlopen ();
10752 ;
10753 return 0;
10754 }
10755 _ACEOF
10756 if ac_fn_c_try_link "$LINENO"; then :
10757 ac_cv_lib_dl_dlopen=yes
10758 else
10759 ac_cv_lib_dl_dlopen=no
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10764 fi
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10767 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10769 else
10770
10771 lt_cv_dlopen="dyld"
10772 lt_cv_dlopen_libs=
10773 lt_cv_dlopen_self=yes
10774
10775 fi
10776
10777 ;;
10778
10779 *)
10780 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10781 if test "x$ac_cv_func_shl_load" = xyes; then :
10782 lt_cv_dlopen="shl_load"
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10786 if ${ac_cv_lib_dld_shl_load+:} false; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-ldld $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char shl_load ();
10801 int
10802 main ()
10803 {
10804 return shl_load ();
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_dld_shl_load=yes
10811 else
10812 ac_cv_lib_dld_shl_load=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10819 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10820 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10822 else
10823 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10824 if test "x$ac_cv_func_dlopen" = xyes; then :
10825 lt_cv_dlopen="dlopen"
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10829 if ${ac_cv_lib_dl_dlopen+:} false; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 ac_check_lib_save_LIBS=$LIBS
10833 LIBS="-ldl $LIBS"
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836
10837 /* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 char dlopen ();
10844 int
10845 main ()
10846 {
10847 return dlopen ();
10848 ;
10849 return 0;
10850 }
10851 _ACEOF
10852 if ac_fn_c_try_link "$LINENO"; then :
10853 ac_cv_lib_dl_dlopen=yes
10854 else
10855 ac_cv_lib_dl_dlopen=no
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10860 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10863 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10868 if ${ac_cv_lib_svld_dlopen+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lsvld $LIBS"
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char dlopen ();
10883 int
10884 main ()
10885 {
10886 return dlopen ();
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_link "$LINENO"; then :
10892 ac_cv_lib_svld_dlopen=yes
10893 else
10894 ac_cv_lib_svld_dlopen=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10899 fi
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10902 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10906 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10907 if ${ac_cv_lib_dld_dld_link+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-ldld $LIBS"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char dld_link ();
10922 int
10923 main ()
10924 {
10925 return dld_link ();
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 ac_cv_lib_dld_dld_link=yes
10932 else
10933 ac_cv_lib_dld_dld_link=no
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LIBS=$ac_check_lib_save_LIBS
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10940 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10941 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10942 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10943 fi
10944
10945
10946 fi
10947
10948
10949 fi
10950
10951
10952 fi
10953
10954
10955 fi
10956
10957
10958 fi
10959
10960 ;;
10961 esac
10962
10963 if test "x$lt_cv_dlopen" != xno; then
10964 enable_dlopen=yes
10965 else
10966 enable_dlopen=no
10967 fi
10968
10969 case $lt_cv_dlopen in
10970 dlopen)
10971 save_CPPFLAGS="$CPPFLAGS"
10972 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10973
10974 save_LDFLAGS="$LDFLAGS"
10975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10976
10977 save_LIBS="$LIBS"
10978 LIBS="$lt_cv_dlopen_libs $LIBS"
10979
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10981 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10982 if ${lt_cv_dlopen_self+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 if test "$cross_compiling" = yes; then :
10986 lt_cv_dlopen_self=cross
10987 else
10988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989 lt_status=$lt_dlunknown
10990 cat > conftest.$ac_ext <<_LT_EOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
10993
10994 #if HAVE_DLFCN_H
10995 #include <dlfcn.h>
10996 #endif
10997
10998 #include <stdio.h>
10999
11000 #ifdef RTLD_GLOBAL
11001 # define LT_DLGLOBAL RTLD_GLOBAL
11002 #else
11003 # ifdef DL_GLOBAL
11004 # define LT_DLGLOBAL DL_GLOBAL
11005 # else
11006 # define LT_DLGLOBAL 0
11007 # endif
11008 #endif
11009
11010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011 find out it does not work in some platform. */
11012 #ifndef LT_DLLAZY_OR_NOW
11013 # ifdef RTLD_LAZY
11014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11015 # else
11016 # ifdef DL_LAZY
11017 # define LT_DLLAZY_OR_NOW DL_LAZY
11018 # else
11019 # ifdef RTLD_NOW
11020 # define LT_DLLAZY_OR_NOW RTLD_NOW
11021 # else
11022 # ifdef DL_NOW
11023 # define LT_DLLAZY_OR_NOW DL_NOW
11024 # else
11025 # define LT_DLLAZY_OR_NOW 0
11026 # endif
11027 # endif
11028 # endif
11029 # endif
11030 #endif
11031
11032 /* When -fvisbility=hidden is used, assume the code has been annotated
11033 correspondingly for the symbols needed. */
11034 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11035 int fnord () __attribute__((visibility("default")));
11036 #endif
11037
11038 int fnord () { return 42; }
11039 int main ()
11040 {
11041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11042 int status = $lt_dlunknown;
11043
11044 if (self)
11045 {
11046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11047 else
11048 {
11049 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11050 else puts (dlerror ());
11051 }
11052 /* dlclose (self); */
11053 }
11054 else
11055 puts (dlerror ());
11056
11057 return status;
11058 }
11059 _LT_EOF
11060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11061 (eval $ac_link) 2>&5
11062 ac_status=$?
11063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11064 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11065 (./conftest; exit; ) >&5 2>/dev/null
11066 lt_status=$?
11067 case x$lt_status in
11068 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11069 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11070 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11071 esac
11072 else :
11073 # compilation failed
11074 lt_cv_dlopen_self=no
11075 fi
11076 fi
11077 rm -fr conftest*
11078
11079
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11082 $as_echo "$lt_cv_dlopen_self" >&6; }
11083
11084 if test "x$lt_cv_dlopen_self" = xyes; then
11085 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11087 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11088 if ${lt_cv_dlopen_self_static+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 if test "$cross_compiling" = yes; then :
11092 lt_cv_dlopen_self_static=cross
11093 else
11094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11095 lt_status=$lt_dlunknown
11096 cat > conftest.$ac_ext <<_LT_EOF
11097 #line $LINENO "configure"
11098 #include "confdefs.h"
11099
11100 #if HAVE_DLFCN_H
11101 #include <dlfcn.h>
11102 #endif
11103
11104 #include <stdio.h>
11105
11106 #ifdef RTLD_GLOBAL
11107 # define LT_DLGLOBAL RTLD_GLOBAL
11108 #else
11109 # ifdef DL_GLOBAL
11110 # define LT_DLGLOBAL DL_GLOBAL
11111 # else
11112 # define LT_DLGLOBAL 0
11113 # endif
11114 #endif
11115
11116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11117 find out it does not work in some platform. */
11118 #ifndef LT_DLLAZY_OR_NOW
11119 # ifdef RTLD_LAZY
11120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11121 # else
11122 # ifdef DL_LAZY
11123 # define LT_DLLAZY_OR_NOW DL_LAZY
11124 # else
11125 # ifdef RTLD_NOW
11126 # define LT_DLLAZY_OR_NOW RTLD_NOW
11127 # else
11128 # ifdef DL_NOW
11129 # define LT_DLLAZY_OR_NOW DL_NOW
11130 # else
11131 # define LT_DLLAZY_OR_NOW 0
11132 # endif
11133 # endif
11134 # endif
11135 # endif
11136 #endif
11137
11138 /* When -fvisbility=hidden is used, assume the code has been annotated
11139 correspondingly for the symbols needed. */
11140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11141 int fnord () __attribute__((visibility("default")));
11142 #endif
11143
11144 int fnord () { return 42; }
11145 int main ()
11146 {
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11149
11150 if (self)
11151 {
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11153 else
11154 {
11155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11156 else puts (dlerror ());
11157 }
11158 /* dlclose (self); */
11159 }
11160 else
11161 puts (dlerror ());
11162
11163 return status;
11164 }
11165 _LT_EOF
11166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11167 (eval $ac_link) 2>&5
11168 ac_status=$?
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11171 (./conftest; exit; ) >&5 2>/dev/null
11172 lt_status=$?
11173 case x$lt_status in
11174 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11175 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11176 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11177 esac
11178 else :
11179 # compilation failed
11180 lt_cv_dlopen_self_static=no
11181 fi
11182 fi
11183 rm -fr conftest*
11184
11185
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11188 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11189 fi
11190
11191 CPPFLAGS="$save_CPPFLAGS"
11192 LDFLAGS="$save_LDFLAGS"
11193 LIBS="$save_LIBS"
11194 ;;
11195 esac
11196
11197 case $lt_cv_dlopen_self in
11198 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11199 *) enable_dlopen_self=unknown ;;
11200 esac
11201
11202 case $lt_cv_dlopen_self_static in
11203 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11204 *) enable_dlopen_self_static=unknown ;;
11205 esac
11206 fi
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224 striplib=
11225 old_striplib=
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11227 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11228 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11229 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11230 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11232 $as_echo "yes" >&6; }
11233 else
11234 # FIXME - insert some real tests, host_os isn't really good enough
11235 case $host_os in
11236 darwin*)
11237 if test -n "$STRIP" ; then
11238 striplib="$STRIP -x"
11239 old_striplib="$STRIP -S"
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11242 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11245 fi
11246 ;;
11247 *)
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249 $as_echo "no" >&6; }
11250 ;;
11251 esac
11252 fi
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265 # Report which library types will actually be built
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11267 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11269 $as_echo "$can_build_shared" >&6; }
11270
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11272 $as_echo_n "checking whether to build shared libraries... " >&6; }
11273 test "$can_build_shared" = "no" && enable_shared=no
11274
11275 # On AIX, shared libraries and static libraries use the same namespace, and
11276 # are all built from PIC.
11277 case $host_os in
11278 aix3*)
11279 test "$enable_shared" = yes && enable_static=no
11280 if test -n "$RANLIB"; then
11281 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11282 postinstall_cmds='$RANLIB $lib'
11283 fi
11284 ;;
11285
11286 aix[4-9]*)
11287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11288 test "$enable_shared" = yes && enable_static=no
11289 fi
11290 ;;
11291 esac
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11293 $as_echo "$enable_shared" >&6; }
11294
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11296 $as_echo_n "checking whether to build static libraries... " >&6; }
11297 # Make sure either enable_shared or enable_static is yes.
11298 test "$enable_shared" = yes || enable_static=yes
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11300 $as_echo "$enable_static" >&6; }
11301
11302
11303
11304
11305 fi
11306 ac_ext=c
11307 ac_cpp='$CPP $CPPFLAGS'
11308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11311
11312 CC="$lt_save_CC"
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326 ac_config_commands="$ac_config_commands libtool"
11327
11328
11329
11330
11331 # Only expand once:
11332
11333
11334 # Configure Doxygen
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345 # Files:
11346 DX_PROJECT=libxdg-basedir
11347
11348 DX_CONFIG=doxygen.cfg
11349
11350 DX_DOCDIR=doc
11351
11352
11353 # Environment variables used inside doxygen.cfg:
11354 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11355
11356 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11357
11358 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11359
11360 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11361
11362
11363 # Doxygen itself:
11364
11365
11366
11367 # Check whether --enable-doxygen-doc was given.
11368 if test "${enable_doxygen_doc+set}" = set; then :
11369 enableval=$enable_doxygen_doc;
11370 case "$enableval" in
11371 #(
11372 y|Y|yes|Yes|YES)
11373 DX_FLAG_doc=1
11374
11375
11376 ;; #(
11377 n|N|no|No|NO)
11378 DX_FLAG_doc=0
11379
11380 ;; #(
11381 *)
11382 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11383 ;;
11384 esac
11385
11386 else
11387
11388 DX_FLAG_doc=1
11389
11390
11391
11392 fi
11393
11394 if test "$DX_FLAG_doc" = 1; then
11395
11396 if test -n "$ac_tool_prefix"; then
11397 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11398 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_path_DX_DOXYGEN+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 case $DX_DOXYGEN in
11405 [\\/]* | ?:[\\/]*)
11406 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11407 ;;
11408 *)
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11411 do
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11416 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11419 fi
11420 done
11421 done
11422 IFS=$as_save_IFS
11423
11424 ;;
11425 esac
11426 fi
11427 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11428 if test -n "$DX_DOXYGEN"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11430 $as_echo "$DX_DOXYGEN" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435
11436
11437 fi
11438 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11439 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11440 # Extract the first word of "doxygen", so it can be a program name with args.
11441 set dummy doxygen; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 case $ac_pt_DX_DOXYGEN in
11448 [\\/]* | ?:[\\/]*)
11449 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11450 ;;
11451 *)
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463 done
11464 done
11465 IFS=$as_save_IFS
11466
11467 ;;
11468 esac
11469 fi
11470 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11471 if test -n "$ac_pt_DX_DOXYGEN"; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11473 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11474 else
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11477 fi
11478
11479 if test "x$ac_pt_DX_DOXYGEN" = x; then
11480 DX_DOXYGEN=""
11481 else
11482 case $cross_compiling:$ac_tool_warned in
11483 yes:)
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11486 ac_tool_warned=yes ;;
11487 esac
11488 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
11489 fi
11490 else
11491 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
11492 fi
11493
11494 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
11496 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
11497 DX_FLAG_doc=0
11498
11499 fi
11500
11501
11502 if test -n "$ac_tool_prefix"; then
11503 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
11504 set dummy ${ac_tool_prefix}perl; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_path_DX_PERL+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 case $DX_PERL in
11511 [\\/]* | ?:[\\/]*)
11512 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
11513 ;;
11514 *)
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11525 fi
11526 done
11527 done
11528 IFS=$as_save_IFS
11529
11530 ;;
11531 esac
11532 fi
11533 DX_PERL=$ac_cv_path_DX_PERL
11534 if test -n "$DX_PERL"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
11536 $as_echo "$DX_PERL" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540 fi
11541
11542
11543 fi
11544 if test -z "$ac_cv_path_DX_PERL"; then
11545 ac_pt_DX_PERL=$DX_PERL
11546 # Extract the first word of "perl", so it can be a program name with args.
11547 set dummy perl; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 case $ac_pt_DX_PERL in
11554 [\\/]* | ?:[\\/]*)
11555 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
11556 ;;
11557 *)
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11565 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569 done
11570 done
11571 IFS=$as_save_IFS
11572
11573 ;;
11574 esac
11575 fi
11576 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
11577 if test -n "$ac_pt_DX_PERL"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
11579 $as_echo "$ac_pt_DX_PERL" >&6; }
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11583 fi
11584
11585 if test "x$ac_pt_DX_PERL" = x; then
11586 DX_PERL=""
11587 else
11588 case $cross_compiling:$ac_tool_warned in
11589 yes:)
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11592 ac_tool_warned=yes ;;
11593 esac
11594 DX_PERL=$ac_pt_DX_PERL
11595 fi
11596 else
11597 DX_PERL="$ac_cv_path_DX_PERL"
11598 fi
11599
11600 if test "$DX_FLAG_doc$DX_PERL" = 1; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
11602 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
11603 DX_FLAG_doc=0
11604
11605 fi
11606
11607 :
11608 fi
11609 if test "$DX_FLAG_doc" = 1; then
11610 if :; then
11611 DX_COND_doc_TRUE=
11612 DX_COND_doc_FALSE='#'
11613 else
11614 DX_COND_doc_TRUE='#'
11615 DX_COND_doc_FALSE=
11616 fi
11617
11618 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
11619
11620 :
11621 else
11622 if false; then
11623 DX_COND_doc_TRUE=
11624 DX_COND_doc_FALSE='#'
11625 else
11626 DX_COND_doc_TRUE='#'
11627 DX_COND_doc_FALSE=
11628 fi
11629
11630
11631 :
11632 fi
11633
11634
11635 # Dot for graphics:
11636
11637
11638
11639 # Check whether --enable-doxygen-dot was given.
11640 if test "${enable_doxygen_dot+set}" = set; then :
11641 enableval=$enable_doxygen_dot;
11642 case "$enableval" in
11643 #(
11644 y|Y|yes|Yes|YES)
11645 DX_FLAG_dot=1
11646
11647
11648 test "$DX_FLAG_doc" = "1" \
11649 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
11650
11651 ;; #(
11652 n|N|no|No|NO)
11653 DX_FLAG_dot=0
11654
11655 ;; #(
11656 *)
11657 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
11658 ;;
11659 esac
11660
11661 else
11662
11663 DX_FLAG_dot=1
11664
11665
11666 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
11667
11668
11669
11670 fi
11671
11672 if test "$DX_FLAG_dot" = 1; then
11673
11674 if test -n "$ac_tool_prefix"; then
11675 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
11676 set dummy ${ac_tool_prefix}dot; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_path_DX_DOT+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 case $DX_DOT in
11683 [\\/]* | ?:[\\/]*)
11684 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
11685 ;;
11686 *)
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11689 do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11694 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11697 fi
11698 done
11699 done
11700 IFS=$as_save_IFS
11701
11702 ;;
11703 esac
11704 fi
11705 DX_DOT=$ac_cv_path_DX_DOT
11706 if test -n "$DX_DOT"; then
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
11708 $as_echo "$DX_DOT" >&6; }
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712 fi
11713
11714
11715 fi
11716 if test -z "$ac_cv_path_DX_DOT"; then
11717 ac_pt_DX_DOT=$DX_DOT
11718 # Extract the first word of "dot", so it can be a program name with args.
11719 set dummy dot; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 case $ac_pt_DX_DOT in
11726 [\\/]* | ?:[\\/]*)
11727 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
11728 ;;
11729 *)
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11732 do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11740 fi
11741 done
11742 done
11743 IFS=$as_save_IFS
11744
11745 ;;
11746 esac
11747 fi
11748 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
11749 if test -n "$ac_pt_DX_DOT"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
11751 $as_echo "$ac_pt_DX_DOT" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755 fi
11756
11757 if test "x$ac_pt_DX_DOT" = x; then
11758 DX_DOT=""
11759 else
11760 case $cross_compiling:$ac_tool_warned in
11761 yes:)
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11764 ac_tool_warned=yes ;;
11765 esac
11766 DX_DOT=$ac_pt_DX_DOT
11767 fi
11768 else
11769 DX_DOT="$ac_cv_path_DX_DOT"
11770 fi
11771
11772 if test "$DX_FLAG_dot$DX_DOT" = 1; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
11774 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
11775 DX_FLAG_dot=0
11776
11777 fi
11778
11779 :
11780 fi
11781 if test "$DX_FLAG_dot" = 1; then
11782 if :; then
11783 DX_COND_dot_TRUE=
11784 DX_COND_dot_FALSE='#'
11785 else
11786 DX_COND_dot_TRUE='#'
11787 DX_COND_dot_FALSE=
11788 fi
11789
11790 DX_ENV="$DX_ENV HAVE_DOT='YES'"
11791
11792 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
11793
11794 :
11795 else
11796 if false; then
11797 DX_COND_dot_TRUE=
11798 DX_COND_dot_FALSE='#'
11799 else
11800 DX_COND_dot_TRUE='#'
11801 DX_COND_dot_FALSE=
11802 fi
11803
11804 DX_ENV="$DX_ENV HAVE_DOT='NO'"
11805
11806 :
11807 fi
11808
11809
11810 # Man pages generation:
11811
11812
11813
11814 # Check whether --enable-doxygen-man was given.
11815 if test "${enable_doxygen_man+set}" = set; then :
11816 enableval=$enable_doxygen_man;
11817 case "$enableval" in
11818 #(
11819 y|Y|yes|Yes|YES)
11820 DX_FLAG_man=1
11821
11822
11823 test "$DX_FLAG_doc" = "1" \
11824 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
11825
11826 ;; #(
11827 n|N|no|No|NO)
11828 DX_FLAG_man=0
11829
11830 ;; #(
11831 *)
11832 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
11833 ;;
11834 esac
11835
11836 else
11837
11838 DX_FLAG_man=0
11839
11840
11841 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
11842
11843
11844
11845 fi
11846
11847 if test "$DX_FLAG_man" = 1; then
11848
11849 :
11850 fi
11851 if test "$DX_FLAG_man" = 1; then
11852 if :; then
11853 DX_COND_man_TRUE=
11854 DX_COND_man_FALSE='#'
11855 else
11856 DX_COND_man_TRUE='#'
11857 DX_COND_man_FALSE=
11858 fi
11859
11860 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
11861
11862 :
11863 else
11864 if false; then
11865 DX_COND_man_TRUE=
11866 DX_COND_man_FALSE='#'
11867 else
11868 DX_COND_man_TRUE='#'
11869 DX_COND_man_FALSE=
11870 fi
11871
11872 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
11873
11874 :
11875 fi
11876
11877
11878 # RTF file generation:
11879
11880
11881
11882 # Check whether --enable-doxygen-rtf was given.
11883 if test "${enable_doxygen_rtf+set}" = set; then :
11884 enableval=$enable_doxygen_rtf;
11885 case "$enableval" in
11886 #(
11887 y|Y|yes|Yes|YES)
11888 DX_FLAG_rtf=1
11889
11890
11891 test "$DX_FLAG_doc" = "1" \
11892 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
11893
11894 ;; #(
11895 n|N|no|No|NO)
11896 DX_FLAG_rtf=0
11897
11898 ;; #(
11899 *)
11900 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
11901 ;;
11902 esac
11903
11904 else
11905
11906 DX_FLAG_rtf=0
11907
11908
11909 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
11910
11911
11912
11913 fi
11914
11915 if test "$DX_FLAG_rtf" = 1; then
11916
11917 :
11918 fi
11919 if test "$DX_FLAG_rtf" = 1; then
11920 if :; then
11921 DX_COND_rtf_TRUE=
11922 DX_COND_rtf_FALSE='#'
11923 else
11924 DX_COND_rtf_TRUE='#'
11925 DX_COND_rtf_FALSE=
11926 fi
11927
11928 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
11929
11930 :
11931 else
11932 if false; then
11933 DX_COND_rtf_TRUE=
11934 DX_COND_rtf_FALSE='#'
11935 else
11936 DX_COND_rtf_TRUE='#'
11937 DX_COND_rtf_FALSE=
11938 fi
11939
11940 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
11941
11942 :
11943 fi
11944
11945
11946 # XML file generation:
11947
11948
11949
11950 # Check whether --enable-doxygen-xml was given.
11951 if test "${enable_doxygen_xml+set}" = set; then :
11952 enableval=$enable_doxygen_xml;
11953 case "$enableval" in
11954 #(
11955 y|Y|yes|Yes|YES)
11956 DX_FLAG_xml=1
11957
11958
11959 test "$DX_FLAG_doc" = "1" \
11960 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
11961
11962 ;; #(
11963 n|N|no|No|NO)
11964 DX_FLAG_xml=0
11965
11966 ;; #(
11967 *)
11968 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
11969 ;;
11970 esac
11971
11972 else
11973
11974 DX_FLAG_xml=0
11975
11976
11977 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
11978
11979
11980
11981 fi
11982
11983 if test "$DX_FLAG_xml" = 1; then
11984
11985 :
11986 fi
11987 if test "$DX_FLAG_xml" = 1; then
11988 if :; then
11989 DX_COND_xml_TRUE=
11990 DX_COND_xml_FALSE='#'
11991 else
11992 DX_COND_xml_TRUE='#'
11993 DX_COND_xml_FALSE=
11994 fi
11995
11996 DX_ENV="$DX_ENV GENERATE_XML='YES'"
11997
11998 :
11999 else
12000 if false; then
12001 DX_COND_xml_TRUE=
12002 DX_COND_xml_FALSE='#'
12003 else
12004 DX_COND_xml_TRUE='#'
12005 DX_COND_xml_FALSE=
12006 fi
12007
12008 DX_ENV="$DX_ENV GENERATE_XML='NO'"
12009
12010 :
12011 fi
12012
12013
12014 # (Compressed) HTML help generation:
12015
12016
12017
12018 # Check whether --enable-doxygen-chm was given.
12019 if test "${enable_doxygen_chm+set}" = set; then :
12020 enableval=$enable_doxygen_chm;
12021 case "$enableval" in
12022 #(
12023 y|Y|yes|Yes|YES)
12024 DX_FLAG_chm=1
12025
12026
12027 test "$DX_FLAG_doc" = "1" \
12028 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
12029
12030 ;; #(
12031 n|N|no|No|NO)
12032 DX_FLAG_chm=0
12033
12034 ;; #(
12035 *)
12036 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
12037 ;;
12038 esac
12039
12040 else
12041
12042 DX_FLAG_chm=0
12043
12044
12045 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
12046
12047
12048
12049 fi
12050
12051 if test "$DX_FLAG_chm" = 1; then
12052
12053 if test -n "$ac_tool_prefix"; then
12054 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
12055 set dummy ${ac_tool_prefix}hhc; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_path_DX_HHC+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 case $DX_HHC in
12062 [\\/]* | ?:[\\/]*)
12063 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
12064 ;;
12065 *)
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12068 do
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12073 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12076 fi
12077 done
12078 done
12079 IFS=$as_save_IFS
12080
12081 ;;
12082 esac
12083 fi
12084 DX_HHC=$ac_cv_path_DX_HHC
12085 if test -n "$DX_HHC"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
12087 $as_echo "$DX_HHC" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092
12093
12094 fi
12095 if test -z "$ac_cv_path_DX_HHC"; then
12096 ac_pt_DX_HHC=$DX_HHC
12097 # Extract the first word of "hhc", so it can be a program name with args.
12098 set dummy hhc; ac_word=$2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100 $as_echo_n "checking for $ac_word... " >&6; }
12101 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 case $ac_pt_DX_HHC in
12105 [\\/]* | ?:[\\/]*)
12106 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
12107 ;;
12108 *)
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12119 fi
12120 done
12121 done
12122 IFS=$as_save_IFS
12123
12124 ;;
12125 esac
12126 fi
12127 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
12128 if test -n "$ac_pt_DX_HHC"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
12130 $as_echo "$ac_pt_DX_HHC" >&6; }
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 fi
12135
12136 if test "x$ac_pt_DX_HHC" = x; then
12137 DX_HHC=""
12138 else
12139 case $cross_compiling:$ac_tool_warned in
12140 yes:)
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12143 ac_tool_warned=yes ;;
12144 esac
12145 DX_HHC=$ac_pt_DX_HHC
12146 fi
12147 else
12148 DX_HHC="$ac_cv_path_DX_HHC"
12149 fi
12150
12151 if test "$DX_FLAG_chm$DX_HHC" = 1; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
12153 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
12154 DX_FLAG_chm=0
12155
12156 fi
12157
12158 :
12159 fi
12160 if test "$DX_FLAG_chm" = 1; then
12161 if :; then
12162 DX_COND_chm_TRUE=
12163 DX_COND_chm_FALSE='#'
12164 else
12165 DX_COND_chm_TRUE='#'
12166 DX_COND_chm_FALSE=
12167 fi
12168
12169 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
12170
12171 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12172
12173 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
12174
12175 :
12176 else
12177 if false; then
12178 DX_COND_chm_TRUE=
12179 DX_COND_chm_FALSE='#'
12180 else
12181 DX_COND_chm_TRUE='#'
12182 DX_COND_chm_FALSE=
12183 fi
12184
12185 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
12186
12187 :
12188 fi
12189
12190
12191 # Seperate CHI file generation.
12192
12193
12194
12195 # Check whether --enable-doxygen-chi was given.
12196 if test "${enable_doxygen_chi+set}" = set; then :
12197 enableval=$enable_doxygen_chi;
12198 case "$enableval" in
12199 #(
12200 y|Y|yes|Yes|YES)
12201 DX_FLAG_chi=1
12202
12203
12204 test "$DX_FLAG_chm" = "1" \
12205 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
12206
12207 ;; #(
12208 n|N|no|No|NO)
12209 DX_FLAG_chi=0
12210
12211 ;; #(
12212 *)
12213 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
12214 ;;
12215 esac
12216
12217 else
12218
12219 DX_FLAG_chi=0
12220
12221
12222 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
12223
12224
12225
12226 fi
12227
12228 if test "$DX_FLAG_chi" = 1; then
12229
12230 :
12231 fi
12232 if test "$DX_FLAG_chi" = 1; then
12233 if :; then
12234 DX_COND_chi_TRUE=
12235 DX_COND_chi_FALSE='#'
12236 else
12237 DX_COND_chi_TRUE='#'
12238 DX_COND_chi_FALSE=
12239 fi
12240
12241 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
12242
12243 :
12244 else
12245 if false; then
12246 DX_COND_chi_TRUE=
12247 DX_COND_chi_FALSE='#'
12248 else
12249 DX_COND_chi_TRUE='#'
12250 DX_COND_chi_FALSE=
12251 fi
12252
12253 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12254
12255 :
12256 fi
12257
12258
12259 # Plain HTML pages generation:
12260
12261
12262
12263 # Check whether --enable-doxygen-html was given.
12264 if test "${enable_doxygen_html+set}" = set; then :
12265 enableval=$enable_doxygen_html;
12266 case "$enableval" in
12267 #(
12268 y|Y|yes|Yes|YES)
12269 DX_FLAG_html=1
12270
12271
12272 test "$DX_FLAG_doc" = "1" \
12273 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12274
12275 test "$DX_FLAG_chm" = "0" \
12276 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12277
12278 ;; #(
12279 n|N|no|No|NO)
12280 DX_FLAG_html=0
12281
12282 ;; #(
12283 *)
12284 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12285 ;;
12286 esac
12287
12288 else
12289
12290 DX_FLAG_html=1
12291
12292
12293 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12294
12295
12296 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12297
12298
12299
12300 fi
12301
12302 if test "$DX_FLAG_html" = 1; then
12303
12304 :
12305 fi
12306 if test "$DX_FLAG_html" = 1; then
12307 if :; then
12308 DX_COND_html_TRUE=
12309 DX_COND_html_FALSE='#'
12310 else
12311 DX_COND_html_TRUE='#'
12312 DX_COND_html_FALSE=
12313 fi
12314
12315 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12316
12317 :
12318 else
12319 if false; then
12320 DX_COND_html_TRUE=
12321 DX_COND_html_FALSE='#'
12322 else
12323 DX_COND_html_TRUE='#'
12324 DX_COND_html_FALSE=
12325 fi
12326
12327 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12328
12329 :
12330 fi
12331
12332
12333 # PostScript file generation:
12334
12335
12336
12337 # Check whether --enable-doxygen-ps was given.
12338 if test "${enable_doxygen_ps+set}" = set; then :
12339 enableval=$enable_doxygen_ps;
12340 case "$enableval" in
12341 #(
12342 y|Y|yes|Yes|YES)
12343 DX_FLAG_ps=1
12344
12345
12346 test "$DX_FLAG_doc" = "1" \
12347 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12348
12349 ;; #(
12350 n|N|no|No|NO)
12351 DX_FLAG_ps=0
12352
12353 ;; #(
12354 *)
12355 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12356 ;;
12357 esac
12358
12359 else
12360
12361 DX_FLAG_ps=0
12362
12363
12364 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12365
12366
12367
12368 fi
12369
12370 if test "$DX_FLAG_ps" = 1; then
12371
12372 if test -n "$ac_tool_prefix"; then
12373 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12374 set dummy ${ac_tool_prefix}latex; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_path_DX_LATEX+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 case $DX_LATEX in
12381 [\\/]* | ?:[\\/]*)
12382 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12383 ;;
12384 *)
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12387 do
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12392 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12395 fi
12396 done
12397 done
12398 IFS=$as_save_IFS
12399
12400 ;;
12401 esac
12402 fi
12403 DX_LATEX=$ac_cv_path_DX_LATEX
12404 if test -n "$DX_LATEX"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12406 $as_echo "$DX_LATEX" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413 fi
12414 if test -z "$ac_cv_path_DX_LATEX"; then
12415 ac_pt_DX_LATEX=$DX_LATEX
12416 # Extract the first word of "latex", so it can be a program name with args.
12417 set dummy latex; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 case $ac_pt_DX_LATEX in
12424 [\\/]* | ?:[\\/]*)
12425 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12426 ;;
12427 *)
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12438 fi
12439 done
12440 done
12441 IFS=$as_save_IFS
12442
12443 ;;
12444 esac
12445 fi
12446 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12447 if test -n "$ac_pt_DX_LATEX"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12449 $as_echo "$ac_pt_DX_LATEX" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454
12455 if test "x$ac_pt_DX_LATEX" = x; then
12456 DX_LATEX=""
12457 else
12458 case $cross_compiling:$ac_tool_warned in
12459 yes:)
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12462 ac_tool_warned=yes ;;
12463 esac
12464 DX_LATEX=$ac_pt_DX_LATEX
12465 fi
12466 else
12467 DX_LATEX="$ac_cv_path_DX_LATEX"
12468 fi
12469
12470 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12472 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12473 DX_FLAG_ps=0
12474
12475 fi
12476
12477
12478 if test -n "$ac_tool_prefix"; then
12479 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12480 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 case $DX_MAKEINDEX in
12487 [\\/]* | ?:[\\/]*)
12488 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12489 ;;
12490 *)
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12493 do
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12498 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 break 2
12501 fi
12502 done
12503 done
12504 IFS=$as_save_IFS
12505
12506 ;;
12507 esac
12508 fi
12509 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12510 if test -n "$DX_MAKEINDEX"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12512 $as_echo "$DX_MAKEINDEX" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516 fi
12517
12518
12519 fi
12520 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12521 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12522 # Extract the first word of "makeindex", so it can be a program name with args.
12523 set dummy makeindex; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 case $ac_pt_DX_MAKEINDEX in
12530 [\\/]* | ?:[\\/]*)
12531 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12532 ;;
12533 *)
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12536 do
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12541 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 break 2
12544 fi
12545 done
12546 done
12547 IFS=$as_save_IFS
12548
12549 ;;
12550 esac
12551 fi
12552 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12553 if test -n "$ac_pt_DX_MAKEINDEX"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12555 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559 fi
12560
12561 if test "x$ac_pt_DX_MAKEINDEX" = x; then
12562 DX_MAKEINDEX=""
12563 else
12564 case $cross_compiling:$ac_tool_warned in
12565 yes:)
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12568 ac_tool_warned=yes ;;
12569 esac
12570 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12571 fi
12572 else
12573 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12574 fi
12575
12576 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
12578 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
12579 DX_FLAG_ps=0
12580
12581 fi
12582
12583
12584 if test -n "$ac_tool_prefix"; then
12585 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
12586 set dummy ${ac_tool_prefix}dvips; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_DX_DVIPS+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 case $DX_DVIPS in
12593 [\\/]* | ?:[\\/]*)
12594 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
12595 ;;
12596 *)
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608 done
12609 done
12610 IFS=$as_save_IFS
12611
12612 ;;
12613 esac
12614 fi
12615 DX_DVIPS=$ac_cv_path_DX_DVIPS
12616 if test -n "$DX_DVIPS"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
12618 $as_echo "$DX_DVIPS" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623
12624
12625 fi
12626 if test -z "$ac_cv_path_DX_DVIPS"; then
12627 ac_pt_DX_DVIPS=$DX_DVIPS
12628 # Extract the first word of "dvips", so it can be a program name with args.
12629 set dummy dvips; ac_word=$2
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631 $as_echo_n "checking for $ac_word... " >&6; }
12632 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 case $ac_pt_DX_DVIPS in
12636 [\\/]* | ?:[\\/]*)
12637 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
12638 ;;
12639 *)
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12642 do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12647 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12650 fi
12651 done
12652 done
12653 IFS=$as_save_IFS
12654
12655 ;;
12656 esac
12657 fi
12658 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
12659 if test -n "$ac_pt_DX_DVIPS"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
12661 $as_echo "$ac_pt_DX_DVIPS" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12665 fi
12666
12667 if test "x$ac_pt_DX_DVIPS" = x; then
12668 DX_DVIPS=""
12669 else
12670 case $cross_compiling:$ac_tool_warned in
12671 yes:)
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12674 ac_tool_warned=yes ;;
12675 esac
12676 DX_DVIPS=$ac_pt_DX_DVIPS
12677 fi
12678 else
12679 DX_DVIPS="$ac_cv_path_DX_DVIPS"
12680 fi
12681
12682 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
12684 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
12685 DX_FLAG_ps=0
12686
12687 fi
12688
12689
12690 if test -n "$ac_tool_prefix"; then
12691 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12692 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if ${ac_cv_path_DX_EGREP+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 case $DX_EGREP in
12699 [\\/]* | ?:[\\/]*)
12700 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12701 ;;
12702 *)
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12713 fi
12714 done
12715 done
12716 IFS=$as_save_IFS
12717
12718 ;;
12719 esac
12720 fi
12721 DX_EGREP=$ac_cv_path_DX_EGREP
12722 if test -n "$DX_EGREP"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12724 $as_echo "$DX_EGREP" >&6; }
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12728 fi
12729
12730
12731 fi
12732 if test -z "$ac_cv_path_DX_EGREP"; then
12733 ac_pt_DX_EGREP=$DX_EGREP
12734 # Extract the first word of "egrep", so it can be a program name with args.
12735 set dummy egrep; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 case $ac_pt_DX_EGREP in
12742 [\\/]* | ?:[\\/]*)
12743 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12744 ;;
12745 *)
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12748 do
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12756 fi
12757 done
12758 done
12759 IFS=$as_save_IFS
12760
12761 ;;
12762 esac
12763 fi
12764 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12765 if test -n "$ac_pt_DX_EGREP"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12767 $as_echo "$ac_pt_DX_EGREP" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12771 fi
12772
12773 if test "x$ac_pt_DX_EGREP" = x; then
12774 DX_EGREP=""
12775 else
12776 case $cross_compiling:$ac_tool_warned in
12777 yes:)
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12780 ac_tool_warned=yes ;;
12781 esac
12782 DX_EGREP=$ac_pt_DX_EGREP
12783 fi
12784 else
12785 DX_EGREP="$ac_cv_path_DX_EGREP"
12786 fi
12787
12788 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
12790 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
12791 DX_FLAG_ps=0
12792
12793 fi
12794
12795 :
12796 fi
12797 if test "$DX_FLAG_ps" = 1; then
12798 if :; then
12799 DX_COND_ps_TRUE=
12800 DX_COND_ps_FALSE='#'
12801 else
12802 DX_COND_ps_TRUE='#'
12803 DX_COND_ps_FALSE=
12804 fi
12805
12806
12807 :
12808 else
12809 if false; then
12810 DX_COND_ps_TRUE=
12811 DX_COND_ps_FALSE='#'
12812 else
12813 DX_COND_ps_TRUE='#'
12814 DX_COND_ps_FALSE=
12815 fi
12816
12817
12818 :
12819 fi
12820
12821
12822 # PDF file generation:
12823
12824
12825
12826 # Check whether --enable-doxygen-pdf was given.
12827 if test "${enable_doxygen_pdf+set}" = set; then :
12828 enableval=$enable_doxygen_pdf;
12829 case "$enableval" in
12830 #(
12831 y|Y|yes|Yes|YES)
12832 DX_FLAG_pdf=1
12833
12834
12835 test "$DX_FLAG_doc" = "1" \
12836 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
12837
12838 ;; #(
12839 n|N|no|No|NO)
12840 DX_FLAG_pdf=0
12841
12842 ;; #(
12843 *)
12844 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
12845 ;;
12846 esac
12847
12848 else
12849
12850 DX_FLAG_pdf=0
12851
12852
12853 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
12854
12855
12856
12857 fi
12858
12859 if test "$DX_FLAG_pdf" = 1; then
12860
12861 if test -n "$ac_tool_prefix"; then
12862 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
12863 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if ${ac_cv_path_DX_PDFLATEX+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 case $DX_PDFLATEX in
12870 [\\/]* | ?:[\\/]*)
12871 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
12872 ;;
12873 *)
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877 IFS=$as_save_IFS
12878 test -z "$as_dir" && as_dir=.
12879 for ac_exec_ext in '' $ac_executable_extensions; do
12880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12881 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883 break 2
12884 fi
12885 done
12886 done
12887 IFS=$as_save_IFS
12888
12889 ;;
12890 esac
12891 fi
12892 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
12893 if test -n "$DX_PDFLATEX"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
12895 $as_echo "$DX_PDFLATEX" >&6; }
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900
12901
12902 fi
12903 if test -z "$ac_cv_path_DX_PDFLATEX"; then
12904 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
12905 # Extract the first word of "pdflatex", so it can be a program name with args.
12906 set dummy pdflatex; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 case $ac_pt_DX_PDFLATEX in
12913 [\\/]* | ?:[\\/]*)
12914 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
12915 ;;
12916 *)
12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 for ac_exec_ext in '' $ac_executable_extensions; do
12923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12924 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 break 2
12927 fi
12928 done
12929 done
12930 IFS=$as_save_IFS
12931
12932 ;;
12933 esac
12934 fi
12935 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
12936 if test -n "$ac_pt_DX_PDFLATEX"; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
12938 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942 fi
12943
12944 if test "x$ac_pt_DX_PDFLATEX" = x; then
12945 DX_PDFLATEX=""
12946 else
12947 case $cross_compiling:$ac_tool_warned in
12948 yes:)
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12951 ac_tool_warned=yes ;;
12952 esac
12953 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
12954 fi
12955 else
12956 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
12957 fi
12958
12959 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
12961 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
12962 DX_FLAG_pdf=0
12963
12964 fi
12965
12966
12967 if test -n "$ac_tool_prefix"; then
12968 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12969 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 case $DX_MAKEINDEX in
12976 [\\/]* | ?:[\\/]*)
12977 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12978 ;;
12979 *)
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12982 do
12983 IFS=$as_save_IFS
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 break 2
12990 fi
12991 done
12992 done
12993 IFS=$as_save_IFS
12994
12995 ;;
12996 esac
12997 fi
12998 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12999 if test -n "$DX_MAKEINDEX"; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13001 $as_echo "$DX_MAKEINDEX" >&6; }
13002 else
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13005 fi
13006
13007
13008 fi
13009 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13010 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13011 # Extract the first word of "makeindex", so it can be a program name with args.
13012 set dummy makeindex; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 case $ac_pt_DX_MAKEINDEX in
13019 [\\/]* | ?:[\\/]*)
13020 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13021 ;;
13022 *)
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026 IFS=$as_save_IFS
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13030 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 break 2
13033 fi
13034 done
13035 done
13036 IFS=$as_save_IFS
13037
13038 ;;
13039 esac
13040 fi
13041 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13042 if test -n "$ac_pt_DX_MAKEINDEX"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13044 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 fi
13049
13050 if test "x$ac_pt_DX_MAKEINDEX" = x; then
13051 DX_MAKEINDEX=""
13052 else
13053 case $cross_compiling:$ac_tool_warned in
13054 yes:)
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13057 ac_tool_warned=yes ;;
13058 esac
13059 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13060 fi
13061 else
13062 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13063 fi
13064
13065 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
13067 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
13068 DX_FLAG_pdf=0
13069
13070 fi
13071
13072
13073 if test -n "$ac_tool_prefix"; then
13074 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13075 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_path_DX_EGREP+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 case $DX_EGREP in
13082 [\\/]* | ?:[\\/]*)
13083 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13084 ;;
13085 *)
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101 ;;
13102 esac
13103 fi
13104 DX_EGREP=$ac_cv_path_DX_EGREP
13105 if test -n "$DX_EGREP"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13107 $as_echo "$DX_EGREP" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113
13114 fi
13115 if test -z "$ac_cv_path_DX_EGREP"; then
13116 ac_pt_DX_EGREP=$DX_EGREP
13117 # Extract the first word of "egrep", so it can be a program name with args.
13118 set dummy egrep; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 case $ac_pt_DX_EGREP in
13125 [\\/]* | ?:[\\/]*)
13126 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13127 ;;
13128 *)
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13131 do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13139 fi
13140 done
13141 done
13142 IFS=$as_save_IFS
13143
13144 ;;
13145 esac
13146 fi
13147 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13148 if test -n "$ac_pt_DX_EGREP"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13150 $as_echo "$ac_pt_DX_EGREP" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155
13156 if test "x$ac_pt_DX_EGREP" = x; then
13157 DX_EGREP=""
13158 else
13159 case $cross_compiling:$ac_tool_warned in
13160 yes:)
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13163 ac_tool_warned=yes ;;
13164 esac
13165 DX_EGREP=$ac_pt_DX_EGREP
13166 fi
13167 else
13168 DX_EGREP="$ac_cv_path_DX_EGREP"
13169 fi
13170
13171 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
13173 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
13174 DX_FLAG_pdf=0
13175
13176 fi
13177
13178 :
13179 fi
13180 if test "$DX_FLAG_pdf" = 1; then
13181 if :; then
13182 DX_COND_pdf_TRUE=
13183 DX_COND_pdf_FALSE='#'
13184 else
13185 DX_COND_pdf_TRUE='#'
13186 DX_COND_pdf_FALSE=
13187 fi
13188
13189
13190 :
13191 else
13192 if false; then
13193 DX_COND_pdf_TRUE=
13194 DX_COND_pdf_FALSE='#'
13195 else
13196 DX_COND_pdf_TRUE='#'
13197 DX_COND_pdf_FALSE=
13198 fi
13199
13200
13201 :
13202 fi
13203
13204
13205 # LaTeX generation for PS and/or PDF:
13206 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
13207 if :; then
13208 DX_COND_latex_TRUE=
13209 DX_COND_latex_FALSE='#'
13210 else
13211 DX_COND_latex_TRUE='#'
13212 DX_COND_latex_FALSE=
13213 fi
13214
13215 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
13216
13217 else
13218 if false; then
13219 DX_COND_latex_TRUE=
13220 DX_COND_latex_FALSE='#'
13221 else
13222 DX_COND_latex_TRUE='#'
13223 DX_COND_latex_FALSE=
13224 fi
13225
13226 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
13227
13228 fi
13229
13230 # Paper size for PS and/or PDF:
13231
13232 case "$DOXYGEN_PAPER_SIZE" in
13233 #(
13234 "")
13235 DOXYGEN_PAPER_SIZE=""
13236
13237 ;; #(
13238 a4wide|a4|letter|legal|executive)
13239 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
13240
13241 ;; #(
13242 *)
13243 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
13244 ;;
13245 esac
13246
13247 #For debugging:
13248 #echo DX_FLAG_doc=$DX_FLAG_doc
13249 #echo DX_FLAG_dot=$DX_FLAG_dot
13250 #echo DX_FLAG_man=$DX_FLAG_man
13251 #echo DX_FLAG_html=$DX_FLAG_html
13252 #echo DX_FLAG_chm=$DX_FLAG_chm
13253 #echo DX_FLAG_chi=$DX_FLAG_chi
13254 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13255 #echo DX_FLAG_xml=$DX_FLAG_xml
13256 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13257 #echo DX_FLAG_ps=$DX_FLAG_ps
13258 #echo DX_ENV=$DX_ENV
13259
13260 # Checks for header files.
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13262 $as_echo_n "checking for ANSI C header files... " >&6; }
13263 if ${ac_cv_header_stdc+:} false; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 #include <stdlib.h>
13269 #include <stdarg.h>
13270 #include <string.h>
13271 #include <float.h>
13272
13273 int
13274 main ()
13275 {
13276
13277 ;
13278 return 0;
13279 }
13280 _ACEOF
13281 if ac_fn_c_try_compile "$LINENO"; then :
13282 ac_cv_header_stdc=yes
13283 else
13284 ac_cv_header_stdc=no
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287
13288 if test $ac_cv_header_stdc = yes; then
13289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 #include <string.h>
13293
13294 _ACEOF
13295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13296 $EGREP "memchr" >/dev/null 2>&1; then :
13297
13298 else
13299 ac_cv_header_stdc=no
13300 fi
13301 rm -f conftest*
13302
13303 fi
13304
13305 if test $ac_cv_header_stdc = yes; then
13306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 #include <stdlib.h>
13310
13311 _ACEOF
13312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13313 $EGREP "free" >/dev/null 2>&1; then :
13314
13315 else
13316 ac_cv_header_stdc=no
13317 fi
13318 rm -f conftest*
13319
13320 fi
13321
13322 if test $ac_cv_header_stdc = yes; then
13323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13324 if test "$cross_compiling" = yes; then :
13325 :
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 #include <ctype.h>
13330 #include <stdlib.h>
13331 #if ((' ' & 0x0FF) == 0x020)
13332 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13333 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13334 #else
13335 # define ISLOWER(c) \
13336 (('a' <= (c) && (c) <= 'i') \
13337 || ('j' <= (c) && (c) <= 'r') \
13338 || ('s' <= (c) && (c) <= 'z'))
13339 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13340 #endif
13341
13342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13343 int
13344 main ()
13345 {
13346 int i;
13347 for (i = 0; i < 256; i++)
13348 if (XOR (islower (i), ISLOWER (i))
13349 || toupper (i) != TOUPPER (i))
13350 return 2;
13351 return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_run "$LINENO"; then :
13355
13356 else
13357 ac_cv_header_stdc=no
13358 fi
13359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13360 conftest.$ac_objext conftest.beam conftest.$ac_ext
13361 fi
13362
13363 fi
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13366 $as_echo "$ac_cv_header_stdc" >&6; }
13367 if test $ac_cv_header_stdc = yes; then
13368
13369 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13370
13371 fi
13372
13373 for ac_header in stdlib.h string.h strings.h memory.h errno.h sys/stat.h
13374 do :
13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13378 cat >>confdefs.h <<_ACEOF
13379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13380 _ACEOF
13381
13382 fi
13383
13384 done
13385
13386 # Checks for typedefs, structures, and compiler characteristics.
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13388 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13389 if ${ac_cv_header_stdbool_h+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394
13395 #include <stdbool.h>
13396 #ifndef bool
13397 "error: bool is not defined"
13398 #endif
13399 #ifndef false
13400 "error: false is not defined"
13401 #endif
13402 #if false
13403 "error: false is not 0"
13404 #endif
13405 #ifndef true
13406 "error: true is not defined"
13407 #endif
13408 #if true != 1
13409 "error: true is not 1"
13410 #endif
13411 #ifndef __bool_true_false_are_defined
13412 "error: __bool_true_false_are_defined is not defined"
13413 #endif
13414
13415 struct s { _Bool s: 1; _Bool t; } s;
13416
13417 char a[true == 1 ? 1 : -1];
13418 char b[false == 0 ? 1 : -1];
13419 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13420 char d[(bool) 0.5 == true ? 1 : -1];
13421 /* See body of main program for 'e'. */
13422 char f[(_Bool) 0.0 == false ? 1 : -1];
13423 char g[true];
13424 char h[sizeof (_Bool)];
13425 char i[sizeof s.t];
13426 enum { j = false, k = true, l = false * true, m = true * 256 };
13427 /* The following fails for
13428 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13429 _Bool n[m];
13430 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13431 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13432 /* Catch a bug in an HP-UX C compiler. See
13433 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13434 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13435 */
13436 _Bool q = true;
13437 _Bool *pq = &q;
13438
13439 int
13440 main ()
13441 {
13442
13443 bool e = &s;
13444 *pq |= q;
13445 *pq |= ! q;
13446 /* Refer to every declared value, to avoid compiler optimizations. */
13447 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13448 + !m + !n + !o + !p + !q + !pq);
13449
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_compile "$LINENO"; then :
13455 ac_cv_header_stdbool_h=yes
13456 else
13457 ac_cv_header_stdbool_h=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 fi
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13462 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13463 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13464 if test "x$ac_cv_type__Bool" = xyes; then :
13465
13466 cat >>confdefs.h <<_ACEOF
13467 #define HAVE__BOOL 1
13468 _ACEOF
13469
13470
13471 fi
13472
13473 if test $ac_cv_header_stdbool_h = yes; then
13474
13475 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13476
13477 fi
13478
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13480 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13481 if ${ac_cv_c_const+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486
13487 int
13488 main ()
13489 {
13490 /* FIXME: Include the comments suggested by Paul. */
13491 #ifndef __cplusplus
13492 /* Ultrix mips cc rejects this. */
13493 typedef int charset[2];
13494 const charset cs;
13495 /* SunOS 4.1.1 cc rejects this. */
13496 char const *const *pcpcc;
13497 char **ppc;
13498 /* NEC SVR4.0.2 mips cc rejects this. */
13499 struct point {int x, y;};
13500 static struct point const zero = {0,0};
13501 /* AIX XL C 1.02.0.0 rejects this.
13502 It does not let you subtract one const X* pointer from another in
13503 an arm of an if-expression whose if-part is not a constant
13504 expression */
13505 const char *g = "string";
13506 pcpcc = &g + (g ? g-g : 0);
13507 /* HPUX 7.0 cc rejects these. */
13508 ++pcpcc;
13509 ppc = (char**) pcpcc;
13510 pcpcc = (char const *const *) ppc;
13511 { /* SCO 3.2v4 cc rejects this. */
13512 char *t;
13513 char const *s = 0 ? (char *) 0 : (char const *) 0;
13514
13515 *t++ = 0;
13516 if (s) return 0;
13517 }
13518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13519 int x[] = {25, 17};
13520 const int *foo = &x[0];
13521 ++foo;
13522 }
13523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13524 typedef const int *iptr;
13525 iptr p = 0;
13526 ++p;
13527 }
13528 { /* AIX XL C 1.02.0.0 rejects this saying
13529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13530 struct s { int j; const int *ap[3]; };
13531 struct s *b; b->j = 5;
13532 }
13533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13534 const int foo = 10;
13535 if (!foo) return 0;
13536 }
13537 return !cs[0] && !zero.x;
13538 #endif
13539
13540 ;
13541 return 0;
13542 }
13543 _ACEOF
13544 if ac_fn_c_try_compile "$LINENO"; then :
13545 ac_cv_c_const=yes
13546 else
13547 ac_cv_c_const=no
13548 fi
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13552 $as_echo "$ac_cv_c_const" >&6; }
13553 if test $ac_cv_c_const = no; then
13554
13555 $as_echo "#define const /**/" >>confdefs.h
13556
13557 fi
13558
13559 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13560 if test "x$ac_cv_type_mode_t" = xyes; then :
13561
13562 else
13563
13564 cat >>confdefs.h <<_ACEOF
13565 #define mode_t int
13566 _ACEOF
13567
13568 fi
13569
13570 # Checks for library functions.
13571 for ac_header in stdlib.h
13572 do :
13573 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13574 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13575 cat >>confdefs.h <<_ACEOF
13576 #define HAVE_STDLIB_H 1
13577 _ACEOF
13578
13579 fi
13580
13581 done
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13584 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13585 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 if test "$cross_compiling" = yes; then :
13589 ac_cv_func_malloc_0_nonnull=no
13590 else
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13594 # include <stdlib.h>
13595 #else
13596 char *malloc ();
13597 #endif
13598
13599 int
13600 main ()
13601 {
13602 return ! malloc (0);
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 if ac_fn_c_try_run "$LINENO"; then :
13608 ac_cv_func_malloc_0_nonnull=yes
13609 else
13610 ac_cv_func_malloc_0_nonnull=no
13611 fi
13612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13613 conftest.$ac_objext conftest.beam conftest.$ac_ext
13614 fi
13615
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13618 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13619 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13620
13621 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13622
13623 else
13624 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13625
13626 case " $LIBOBJS " in
13627 *" malloc.$ac_objext "* ) ;;
13628 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13629 ;;
13630 esac
13631
13632
13633 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13634
13635 fi
13636
13637
13638 for ac_header in stdlib.h
13639 do :
13640 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13641 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_STDLIB_H 1
13644 _ACEOF
13645
13646 fi
13647
13648 done
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13651 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
13652 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 if test "$cross_compiling" = yes; then :
13656 ac_cv_func_realloc_0_nonnull=no
13657 else
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13661 # include <stdlib.h>
13662 #else
13663 char *realloc ();
13664 #endif
13665
13666 int
13667 main ()
13668 {
13669 return ! realloc (0, 0);
13670 ;
13671 return 0;
13672 }
13673 _ACEOF
13674 if ac_fn_c_try_run "$LINENO"; then :
13675 ac_cv_func_realloc_0_nonnull=yes
13676 else
13677 ac_cv_func_realloc_0_nonnull=no
13678 fi
13679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13680 conftest.$ac_objext conftest.beam conftest.$ac_ext
13681 fi
13682
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13685 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
13686 if test $ac_cv_func_realloc_0_nonnull = yes; then :
13687
13688 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
13689
13690 else
13691 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
13692
13693 case " $LIBOBJS " in
13694 *" realloc.$ac_objext "* ) ;;
13695 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13696 ;;
13697 esac
13698
13699
13700 $as_echo "#define realloc rpl_realloc" >>confdefs.h
13701
13702 fi
13703
13704
13705 for ac_func in memset strcpy strncpy bcopy bzero getenv mkdir strdup
13706 do :
13707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13709 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13710 cat >>confdefs.h <<_ACEOF
13711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13712 _ACEOF
13713
13714 fi
13715 done
13716
13717
13718
13719
13720
13721 case $host in
13722 *-freebsd* | *-openbsd*) ;;
13723 *)
13724 for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $possible_flags flag" >&5
13727 $as_echo_n "checking if $CC supports $possible_flags flag... " >&6; }
13728 if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 ac_save_LDFLAGS="$LDFLAGS"
13732 LDFLAGS="$LDFLAGS $possible_flags"
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 int main() { return 1; }
13736 _ACEOF
13737 if ac_fn_c_try_link "$LINENO"; then :
13738 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'"
13739 else
13740 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`="
13741 fi
13742 rm -f core conftest.err conftest.$ac_objext \
13743 conftest$ac_exeext conftest.$ac_ext
13744 LDFLAGS="$ac_save_LDFLAGS"
13745
13746 fi
13747 eval ac_res=\$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13749 $as_echo "$ac_res" >&6; }
13750
13751 if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then :
13752 LDFLAGS_NOUNDEFINED="$possible_flags"
13753 fi
13754
13755 break
13756 done
13757 ;;
13758 esac
13759
13760
13761
13762
13763 # Generated files.
13764 ac_config_headers="$ac_config_headers config.h"
13765
13766
13767 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile tests/Makefile pkgconfig/libxdg-basedir.pc pkgconfig/libxdg-basedir-uninstalled.pc"
13768
13769 cat >confcache <<\_ACEOF
13770 # This file is a shell script that caches the results of configure
13771 # tests run on this system so they can be shared between configure
13772 # scripts and configure runs, see configure's option --config-cache.
13773 # It is not useful on other systems. If it contains results you don't
13774 # want to keep, you may remove or edit it.
13775 #
13776 # config.status only pays attention to the cache file if you give it
13777 # the --recheck option to rerun configure.
13778 #
13779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13781 # following values.
13782
13783 _ACEOF
13784
13785 # The following way of writing the cache mishandles newlines in values,
13786 # but we know of no workaround that is simple, portable, and efficient.
13787 # So, we kill variables containing newlines.
13788 # Ultrix sh set writes to stderr and can't be redirected directly,
13789 # and sets the high bit in the cache file unless we assign to the vars.
13790 (
13791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13792 eval ac_val=\$$ac_var
13793 case $ac_val in #(
13794 *${as_nl}*)
13795 case $ac_var in #(
13796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13798 esac
13799 case $ac_var in #(
13800 _ | IFS | as_nl) ;; #(
13801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13802 *) { eval $ac_var=; unset $ac_var;} ;;
13803 esac ;;
13804 esac
13805 done
13806
13807 (set) 2>&1 |
13808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13809 *${as_nl}ac_space=\ *)
13810 # `set' does not quote correctly, so add quotes: double-quote
13811 # substitution turns \\\\ into \\, and sed turns \\ into \.
13812 sed -n \
13813 "s/'/'\\\\''/g;
13814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13815 ;; #(
13816 *)
13817 # `set' quotes correctly as required by POSIX, so do not add quotes.
13818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13819 ;;
13820 esac |
13821 sort
13822 ) |
13823 sed '
13824 /^ac_cv_env_/b end
13825 t clear
13826 :clear
13827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13828 t end
13829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13830 :end' >>confcache
13831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13832 if test -w "$cache_file"; then
13833 if test "x$cache_file" != "x/dev/null"; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13835 $as_echo "$as_me: updating cache $cache_file" >&6;}
13836 if test ! -f "$cache_file" || test -h "$cache_file"; then
13837 cat confcache >"$cache_file"
13838 else
13839 case $cache_file in #(
13840 */* | ?:*)
13841 mv -f confcache "$cache_file"$$ &&
13842 mv -f "$cache_file"$$ "$cache_file" ;; #(
13843 *)
13844 mv -f confcache "$cache_file" ;;
13845 esac
13846 fi
13847 fi
13848 else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13851 fi
13852 fi
13853 rm -f confcache
13854
13855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13856 # Let make expand exec_prefix.
13857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13858
13859 DEFS=-DHAVE_CONFIG_H
13860
13861 ac_libobjs=
13862 ac_ltlibobjs=
13863 U=
13864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13865 # 1. Remove the extension, and $U if already installed.
13866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13867 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13869 # will be set to the directory where LIBOBJS objects are built.
13870 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13871 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13872 done
13873 LIBOBJS=$ac_libobjs
13874
13875 LTLIBOBJS=$ac_ltlibobjs
13876
13877
13878 if test -n "$EXEEXT"; then
13879 am__EXEEXT_TRUE=
13880 am__EXEEXT_FALSE='#'
13881 else
13882 am__EXEEXT_TRUE='#'
13883 am__EXEEXT_FALSE=
13884 fi
13885
13886 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13887 as_fn_error $? "conditional \"AMDEP\" was never defined.
13888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13889 fi
13890 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13891 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13893 fi
13894 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
13895 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
13896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13897 fi
13898 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
13899 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
13900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13901 fi
13902 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
13903 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
13904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13905 fi
13906 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
13907 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
13908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13909 fi
13910 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
13911 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
13912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13913 fi
13914 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
13915 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
13916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13917 fi
13918 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
13919 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
13920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13921 fi
13922 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
13923 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
13924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13925 fi
13926 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
13927 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
13928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13929 fi
13930 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
13931 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
13932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13933 fi
13934 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
13935 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
13936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13937 fi
13938 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
13939 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
13940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13941 fi
13942 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
13943 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
13944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13945 fi
13946 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
13947 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
13948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13949 fi
13950 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
13951 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
13952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13953 fi
13954 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
13955 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
13956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13957 fi
13958 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
13959 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
13960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13961 fi
13962 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
13963 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
13964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13965 fi
13966 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
13967 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
13968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13969 fi
13970 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
13971 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
13972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13973 fi
13974 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
13975 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
13976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13977 fi
13978 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
13979 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
13980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981 fi
13982
13983 : "${CONFIG_STATUS=./config.status}"
13984 ac_write_fail=0
13985 ac_clean_files_save=$ac_clean_files
13986 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13988 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13989 as_write_fail=0
13990 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13991 #! $SHELL
13992 # Generated by $as_me.
13993 # Run this file to recreate the current configuration.
13994 # Compiler output produced by configure, useful for debugging
13995 # configure, is in config.log if it exists.
13996
13997 debug=false
13998 ac_cs_recheck=false
13999 ac_cs_silent=false
14000
14001 SHELL=\${CONFIG_SHELL-$SHELL}
14002 export SHELL
14003 _ASEOF
14004 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14005 ## -------------------- ##
14006 ## M4sh Initialization. ##
14007 ## -------------------- ##
14008
14009 # Be more Bourne compatible
14010 DUALCASE=1; export DUALCASE # for MKS sh
14011 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14012 emulate sh
14013 NULLCMD=:
14014 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14015 # is contrary to our usage. Disable this feature.
14016 alias -g '${1+"$@"}'='"$@"'
14017 setopt NO_GLOB_SUBST
14018 else
14019 case `(set -o) 2>/dev/null` in #(
14020 *posix*) :
14021 set -o posix ;; #(
14022 *) :
14023 ;;
14024 esac
14025 fi
14026
14027
14028 as_nl='
14029 '
14030 export as_nl
14031 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14032 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14033 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14034 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14035 # Prefer a ksh shell builtin over an external printf program on Solaris,
14036 # but without wasting forks for bash or zsh.
14037 if test -z "$BASH_VERSION$ZSH_VERSION" \
14038 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14039 as_echo='print -r --'
14040 as_echo_n='print -rn --'
14041 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14042 as_echo='printf %s\n'
14043 as_echo_n='printf %s'
14044 else
14045 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14046 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14047 as_echo_n='/usr/ucb/echo -n'
14048 else
14049 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14050 as_echo_n_body='eval
14051 arg=$1;
14052 case $arg in #(
14053 *"$as_nl"*)
14054 expr "X$arg" : "X\\(.*\\)$as_nl";
14055 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14056 esac;
14057 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14058 '
14059 export as_echo_n_body
14060 as_echo_n='sh -c $as_echo_n_body as_echo'
14061 fi
14062 export as_echo_body
14063 as_echo='sh -c $as_echo_body as_echo'
14064 fi
14065
14066 # The user is always right.
14067 if test "${PATH_SEPARATOR+set}" != set; then
14068 PATH_SEPARATOR=:
14069 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14070 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14071 PATH_SEPARATOR=';'
14072 }
14073 fi
14074
14075
14076 # IFS
14077 # We need space, tab and new line, in precisely that order. Quoting is
14078 # there to prevent editors from complaining about space-tab.
14079 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14080 # splitting by setting IFS to empty value.)
14081 IFS=" "" $as_nl"
14082
14083 # Find who we are. Look in the path if we contain no directory separator.
14084 as_myself=
14085 case $0 in #((
14086 *[\\/]* ) as_myself=$0 ;;
14087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14089 do
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14093 done
14094 IFS=$as_save_IFS
14095
14096 ;;
14097 esac
14098 # We did not find ourselves, most probably we were run as `sh COMMAND'
14099 # in which case we are not to be found in the path.
14100 if test "x$as_myself" = x; then
14101 as_myself=$0
14102 fi
14103 if test ! -f "$as_myself"; then
14104 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14105 exit 1
14106 fi
14107
14108 # Unset variables that we do not need and which cause bugs (e.g. in
14109 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14110 # suppresses any "Segmentation fault" message there. '((' could
14111 # trigger a bug in pdksh 5.2.14.
14112 for as_var in BASH_ENV ENV MAIL MAILPATH
14113 do eval test x\${$as_var+set} = xset \
14114 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14115 done
14116 PS1='$ '
14117 PS2='> '
14118 PS4='+ '
14119
14120 # NLS nuisances.
14121 LC_ALL=C
14122 export LC_ALL
14123 LANGUAGE=C
14124 export LANGUAGE
14125
14126 # CDPATH.
14127 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14128
14129
14130 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14131 # ----------------------------------------
14132 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14133 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14134 # script with STATUS, using 1 if that was 0.
14135 as_fn_error ()
14136 {
14137 as_status=$1; test $as_status -eq 0 && as_status=1
14138 if test "$4"; then
14139 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14140 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14141 fi
14142 $as_echo "$as_me: error: $2" >&2
14143 as_fn_exit $as_status
14144 } # as_fn_error
14145
14146
14147 # as_fn_set_status STATUS
14148 # -----------------------
14149 # Set $? to STATUS, without forking.
14150 as_fn_set_status ()
14151 {
14152 return $1
14153 } # as_fn_set_status
14154
14155 # as_fn_exit STATUS
14156 # -----------------
14157 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14158 as_fn_exit ()
14159 {
14160 set +e
14161 as_fn_set_status $1
14162 exit $1
14163 } # as_fn_exit
14164
14165 # as_fn_unset VAR
14166 # ---------------
14167 # Portably unset VAR.
14168 as_fn_unset ()
14169 {
14170 { eval $1=; unset $1;}
14171 }
14172 as_unset=as_fn_unset
14173 # as_fn_append VAR VALUE
14174 # ----------------------
14175 # Append the text in VALUE to the end of the definition contained in VAR. Take
14176 # advantage of any shell optimizations that allow amortized linear growth over
14177 # repeated appends, instead of the typical quadratic growth present in naive
14178 # implementations.
14179 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14180 eval 'as_fn_append ()
14181 {
14182 eval $1+=\$2
14183 }'
14184 else
14185 as_fn_append ()
14186 {
14187 eval $1=\$$1\$2
14188 }
14189 fi # as_fn_append
14190
14191 # as_fn_arith ARG...
14192 # ------------------
14193 # Perform arithmetic evaluation on the ARGs, and store the result in the
14194 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14195 # must be portable across $(()) and expr.
14196 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14197 eval 'as_fn_arith ()
14198 {
14199 as_val=$(( $* ))
14200 }'
14201 else
14202 as_fn_arith ()
14203 {
14204 as_val=`expr "$@" || test $? -eq 1`
14205 }
14206 fi # as_fn_arith
14207
14208
14209 if expr a : '\(a\)' >/dev/null 2>&1 &&
14210 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14211 as_expr=expr
14212 else
14213 as_expr=false
14214 fi
14215
14216 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14217 as_basename=basename
14218 else
14219 as_basename=false
14220 fi
14221
14222 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14223 as_dirname=dirname
14224 else
14225 as_dirname=false
14226 fi
14227
14228 as_me=`$as_basename -- "$0" ||
14229 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14230 X"$0" : 'X\(//\)$' \| \
14231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14232 $as_echo X/"$0" |
14233 sed '/^.*\/\([^/][^/]*\)\/*$/{
14234 s//\1/
14235 q
14236 }
14237 /^X\/\(\/\/\)$/{
14238 s//\1/
14239 q
14240 }
14241 /^X\/\(\/\).*/{
14242 s//\1/
14243 q
14244 }
14245 s/.*/./; q'`
14246
14247 # Avoid depending upon Character Ranges.
14248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14251 as_cr_digits='0123456789'
14252 as_cr_alnum=$as_cr_Letters$as_cr_digits
14253
14254 ECHO_C= ECHO_N= ECHO_T=
14255 case `echo -n x` in #(((((
14256 -n*)
14257 case `echo 'xy\c'` in
14258 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14259 xy) ECHO_C='\c';;
14260 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14261 ECHO_T=' ';;
14262 esac;;
14263 *)
14264 ECHO_N='-n';;
14265 esac
14266
14267 rm -f conf$$ conf$$.exe conf$$.file
14268 if test -d conf$$.dir; then
14269 rm -f conf$$.dir/conf$$.file
14270 else
14271 rm -f conf$$.dir
14272 mkdir conf$$.dir 2>/dev/null
14273 fi
14274 if (echo >conf$$.file) 2>/dev/null; then
14275 if ln -s conf$$.file conf$$ 2>/dev/null; then
14276 as_ln_s='ln -s'
14277 # ... but there are two gotchas:
14278 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14279 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14280 # In both cases, we have to default to `cp -p'.
14281 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14282 as_ln_s='cp -p'
14283 elif ln conf$$.file conf$$ 2>/dev/null; then
14284 as_ln_s=ln
14285 else
14286 as_ln_s='cp -p'
14287 fi
14288 else
14289 as_ln_s='cp -p'
14290 fi
14291 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14292 rmdir conf$$.dir 2>/dev/null
14293
14294
14295 # as_fn_mkdir_p
14296 # -------------
14297 # Create "$as_dir" as a directory, including parents if necessary.
14298 as_fn_mkdir_p ()
14299 {
14300
14301 case $as_dir in #(
14302 -*) as_dir=./$as_dir;;
14303 esac
14304 test -d "$as_dir" || eval $as_mkdir_p || {
14305 as_dirs=
14306 while :; do
14307 case $as_dir in #(
14308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14309 *) as_qdir=$as_dir;;
14310 esac
14311 as_dirs="'$as_qdir' $as_dirs"
14312 as_dir=`$as_dirname -- "$as_dir" ||
14313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14314 X"$as_dir" : 'X\(//\)[^/]' \| \
14315 X"$as_dir" : 'X\(//\)$' \| \
14316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14317 $as_echo X"$as_dir" |
14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14319 s//\1/
14320 q
14321 }
14322 /^X\(\/\/\)[^/].*/{
14323 s//\1/
14324 q
14325 }
14326 /^X\(\/\/\)$/{
14327 s//\1/
14328 q
14329 }
14330 /^X\(\/\).*/{
14331 s//\1/
14332 q
14333 }
14334 s/.*/./; q'`
14335 test -d "$as_dir" && break
14336 done
14337 test -z "$as_dirs" || eval "mkdir $as_dirs"
14338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14339
14340
14341 } # as_fn_mkdir_p
14342 if mkdir -p . 2>/dev/null; then
14343 as_mkdir_p='mkdir -p "$as_dir"'
14344 else
14345 test -d ./-p && rmdir ./-p
14346 as_mkdir_p=false
14347 fi
14348
14349 if test -x / >/dev/null 2>&1; then
14350 as_test_x='test -x'
14351 else
14352 if ls -dL / >/dev/null 2>&1; then
14353 as_ls_L_option=L
14354 else
14355 as_ls_L_option=
14356 fi
14357 as_test_x='
14358 eval sh -c '\''
14359 if test -d "$1"; then
14360 test -d "$1/.";
14361 else
14362 case $1 in #(
14363 -*)set "./$1";;
14364 esac;
14365 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14366 ???[sx]*):;;*)false;;esac;fi
14367 '\'' sh
14368 '
14369 fi
14370 as_executable_p=$as_test_x
14371
14372 # Sed expression to map a string onto a valid CPP name.
14373 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14374
14375 # Sed expression to map a string onto a valid variable name.
14376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14377
14378
14379 exec 6>&1
14380 ## ----------------------------------- ##
14381 ## Main body of $CONFIG_STATUS script. ##
14382 ## ----------------------------------- ##
14383 _ASEOF
14384 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14385
14386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14387 # Save the log message, to keep $0 and so on meaningful, and to
14388 # report actual input values of CONFIG_FILES etc. instead of their
14389 # values after options handling.
14390 ac_log="
14391 This file was extended by libxdg-basedir $as_me 1.2.0, which was
14392 generated by GNU Autoconf 2.68. Invocation command line was
14393
14394 CONFIG_FILES = $CONFIG_FILES
14395 CONFIG_HEADERS = $CONFIG_HEADERS
14396 CONFIG_LINKS = $CONFIG_LINKS
14397 CONFIG_COMMANDS = $CONFIG_COMMANDS
14398 $ $0 $@
14399
14400 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14401 "
14402
14403 _ACEOF
14404
14405 case $ac_config_files in *"
14406 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14407 esac
14408
14409 case $ac_config_headers in *"
14410 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14411 esac
14412
14413
14414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14415 # Files that config.status was made for.
14416 config_files="$ac_config_files"
14417 config_headers="$ac_config_headers"
14418 config_commands="$ac_config_commands"
14419
14420 _ACEOF
14421
14422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14423 ac_cs_usage="\
14424 \`$as_me' instantiates files and other configuration actions
14425 from templates according to the current configuration. Unless the files
14426 and actions are specified as TAGs, all are instantiated by default.
14427
14428 Usage: $0 [OPTION]... [TAG]...
14429
14430 -h, --help print this help, then exit
14431 -V, --version print version number and configuration settings, then exit
14432 --config print configuration, then exit
14433 -q, --quiet, --silent
14434 do not print progress messages
14435 -d, --debug don't remove temporary files
14436 --recheck update $as_me by reconfiguring in the same conditions
14437 --file=FILE[:TEMPLATE]
14438 instantiate the configuration file FILE
14439 --header=FILE[:TEMPLATE]
14440 instantiate the configuration header FILE
14441
14442 Configuration files:
14443 $config_files
14444
14445 Configuration headers:
14446 $config_headers
14447
14448 Configuration commands:
14449 $config_commands
14450
14451 Report bugs to <[email protected]>."
14452
14453 _ACEOF
14454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14455 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14456 ac_cs_version="\\
14457 libxdg-basedir config.status 1.2.0
14458 configured by $0, generated by GNU Autoconf 2.68,
14459 with options \\"\$ac_cs_config\\"
14460
14461 Copyright (C) 2010 Free Software Foundation, Inc.
14462 This config.status script is free software; the Free Software Foundation
14463 gives unlimited permission to copy, distribute and modify it."
14464
14465 ac_pwd='$ac_pwd'
14466 srcdir='$srcdir'
14467 INSTALL='$INSTALL'
14468 MKDIR_P='$MKDIR_P'
14469 AWK='$AWK'
14470 test -n "\$AWK" || AWK=awk
14471 _ACEOF
14472
14473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14474 # The default lists apply if the user does not specify any file.
14475 ac_need_defaults=:
14476 while test $# != 0
14477 do
14478 case $1 in
14479 --*=?*)
14480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14482 ac_shift=:
14483 ;;
14484 --*=)
14485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14486 ac_optarg=
14487 ac_shift=:
14488 ;;
14489 *)
14490 ac_option=$1
14491 ac_optarg=$2
14492 ac_shift=shift
14493 ;;
14494 esac
14495
14496 case $ac_option in
14497 # Handling of the options.
14498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14499 ac_cs_recheck=: ;;
14500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14501 $as_echo "$ac_cs_version"; exit ;;
14502 --config | --confi | --conf | --con | --co | --c )
14503 $as_echo "$ac_cs_config"; exit ;;
14504 --debug | --debu | --deb | --de | --d | -d )
14505 debug=: ;;
14506 --file | --fil | --fi | --f )
14507 $ac_shift
14508 case $ac_optarg in
14509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14510 '') as_fn_error $? "missing file argument" ;;
14511 esac
14512 as_fn_append CONFIG_FILES " '$ac_optarg'"
14513 ac_need_defaults=false;;
14514 --header | --heade | --head | --hea )
14515 $ac_shift
14516 case $ac_optarg in
14517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14518 esac
14519 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14520 ac_need_defaults=false;;
14521 --he | --h)
14522 # Conflict between --help and --header
14523 as_fn_error $? "ambiguous option: \`$1'
14524 Try \`$0 --help' for more information.";;
14525 --help | --hel | -h )
14526 $as_echo "$ac_cs_usage"; exit ;;
14527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14529 ac_cs_silent=: ;;
14530
14531 # This is an error.
14532 -*) as_fn_error $? "unrecognized option: \`$1'
14533 Try \`$0 --help' for more information." ;;
14534
14535 *) as_fn_append ac_config_targets " $1"
14536 ac_need_defaults=false ;;
14537
14538 esac
14539 shift
14540 done
14541
14542 ac_configure_extra_args=
14543
14544 if $ac_cs_silent; then
14545 exec 6>/dev/null
14546 ac_configure_extra_args="$ac_configure_extra_args --silent"
14547 fi
14548
14549 _ACEOF
14550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14551 if \$ac_cs_recheck; then
14552 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14553 shift
14554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14555 CONFIG_SHELL='$SHELL'
14556 export CONFIG_SHELL
14557 exec "\$@"
14558 fi
14559
14560 _ACEOF
14561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14562 exec 5>>config.log
14563 {
14564 echo
14565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14566 ## Running $as_me. ##
14567 _ASBOX
14568 $as_echo "$ac_log"
14569 } >&5
14570
14571 _ACEOF
14572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14573 #
14574 # INIT-COMMANDS
14575 #
14576 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14577
14578
14579 # The HP-UX ksh and POSIX shell print the target directory to stdout
14580 # if CDPATH is set.
14581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14582
14583 sed_quote_subst='$sed_quote_subst'
14584 double_quote_subst='$double_quote_subst'
14585 delay_variable_subst='$delay_variable_subst'
14586 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14587 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14588 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14589 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14590 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14591 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14592 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14593 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14594 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14595 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14596 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14597 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14598 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14599 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14600 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14601 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14602 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14603 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14604 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14605 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14606 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14607 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14608 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14609 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14610 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14611 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14612 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14613 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14614 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14615 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14616 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14617 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14618 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14619 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14620 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14621 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14622 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14623 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14624 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14625 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14626 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14627 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14628 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14629 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14630 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14631 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14632 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14633 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14634 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14635 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14636 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14637 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14638 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14639 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14640 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14641 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"`'
14642 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14643 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14644 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14645 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14646 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14647 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14648 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14649 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14650 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14651 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14652 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14653 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14654 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14655 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14656 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14657 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14658 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14659 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14660 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14661 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14662 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14663 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14664 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14665 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14666 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14667 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14668 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14669 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14670 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14671 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14672 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14673 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14674 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14675 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14676 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14677 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14678 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14679 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14680 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14681 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14682 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14683 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14684 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14685 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14686 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14687 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14688 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14689 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14690 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14691 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14692 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14693 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14694 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14695 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14696 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14697 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14698 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14699 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14700 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14701 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14702 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14703 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14704 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14705 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14706 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14707 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14708 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14709 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14710 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14711 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14712 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14713 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14714 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14715 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14716
14717 LTCC='$LTCC'
14718 LTCFLAGS='$LTCFLAGS'
14719 compiler='$compiler_DEFAULT'
14720
14721 # A function that is used when there is no print builtin or printf.
14722 func_fallback_echo ()
14723 {
14724 eval 'cat <<_LTECHO_EOF
14725 \$1
14726 _LTECHO_EOF'
14727 }
14728
14729 # Quote evaled strings.
14730 for var in SHELL \
14731 ECHO \
14732 SED \
14733 GREP \
14734 EGREP \
14735 FGREP \
14736 LD \
14737 NM \
14738 LN_S \
14739 lt_SP2NL \
14740 lt_NL2SP \
14741 reload_flag \
14742 OBJDUMP \
14743 deplibs_check_method \
14744 file_magic_cmd \
14745 file_magic_glob \
14746 want_nocaseglob \
14747 DLLTOOL \
14748 sharedlib_from_linklib_cmd \
14749 AR \
14750 AR_FLAGS \
14751 archiver_list_spec \
14752 STRIP \
14753 RANLIB \
14754 CC \
14755 CFLAGS \
14756 compiler \
14757 lt_cv_sys_global_symbol_pipe \
14758 lt_cv_sys_global_symbol_to_cdecl \
14759 lt_cv_sys_global_symbol_to_c_name_address \
14760 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14761 nm_file_list_spec \
14762 lt_prog_compiler_no_builtin_flag \
14763 lt_prog_compiler_pic \
14764 lt_prog_compiler_wl \
14765 lt_prog_compiler_static \
14766 lt_cv_prog_compiler_c_o \
14767 need_locks \
14768 MANIFEST_TOOL \
14769 DSYMUTIL \
14770 NMEDIT \
14771 LIPO \
14772 OTOOL \
14773 OTOOL64 \
14774 shrext_cmds \
14775 export_dynamic_flag_spec \
14776 whole_archive_flag_spec \
14777 compiler_needs_object \
14778 with_gnu_ld \
14779 allow_undefined_flag \
14780 no_undefined_flag \
14781 hardcode_libdir_flag_spec \
14782 hardcode_libdir_flag_spec_ld \
14783 hardcode_libdir_separator \
14784 exclude_expsyms \
14785 include_expsyms \
14786 file_list_spec \
14787 variables_saved_for_relink \
14788 libname_spec \
14789 library_names_spec \
14790 soname_spec \
14791 install_override_mode \
14792 finish_eval \
14793 old_striplib \
14794 striplib; do
14795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14796 *[\\\\\\\`\\"\\\$]*)
14797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14798 ;;
14799 *)
14800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14801 ;;
14802 esac
14803 done
14804
14805 # Double-quote double-evaled strings.
14806 for var in reload_cmds \
14807 old_postinstall_cmds \
14808 old_postuninstall_cmds \
14809 old_archive_cmds \
14810 extract_expsyms_cmds \
14811 old_archive_from_new_cmds \
14812 old_archive_from_expsyms_cmds \
14813 archive_cmds \
14814 archive_expsym_cmds \
14815 module_cmds \
14816 module_expsym_cmds \
14817 export_symbols_cmds \
14818 prelink_cmds \
14819 postlink_cmds \
14820 postinstall_cmds \
14821 postuninstall_cmds \
14822 finish_cmds \
14823 sys_lib_search_path_spec \
14824 sys_lib_dlsearch_path_spec; do
14825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14826 *[\\\\\\\`\\"\\\$]*)
14827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14828 ;;
14829 *)
14830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14831 ;;
14832 esac
14833 done
14834
14835 ac_aux_dir='$ac_aux_dir'
14836 xsi_shell='$xsi_shell'
14837 lt_shell_append='$lt_shell_append'
14838
14839 # See if we are running on zsh, and set the options which allow our
14840 # commands through without removal of \ escapes INIT.
14841 if test -n "\${ZSH_VERSION+set}" ; then
14842 setopt NO_GLOB_SUBST
14843 fi
14844
14845
14846 PACKAGE='$PACKAGE'
14847 VERSION='$VERSION'
14848 TIMESTAMP='$TIMESTAMP'
14849 RM='$RM'
14850 ofile='$ofile'
14851
14852
14853
14854
14855 _ACEOF
14856
14857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14858
14859 # Handling of arguments.
14860 for ac_config_target in $ac_config_targets
14861 do
14862 case $ac_config_target in
14863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14865 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14867 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14868 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14869 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14870 "pkgconfig/libxdg-basedir.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libxdg-basedir.pc" ;;
14871 "pkgconfig/libxdg-basedir-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libxdg-basedir-uninstalled.pc" ;;
14872
14873 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14874 esac
14875 done
14876
14877
14878 # If the user did not use the arguments to specify the items to instantiate,
14879 # then the envvar interface is used. Set only those that are not.
14880 # We use the long form for the default assignment because of an extremely
14881 # bizarre bug on SunOS 4.1.3.
14882 if $ac_need_defaults; then
14883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14886 fi
14887
14888 # Have a temporary directory for convenience. Make it in the build tree
14889 # simply because there is no reason against having it here, and in addition,
14890 # creating and moving files from /tmp can sometimes cause problems.
14891 # Hook for its removal unless debugging.
14892 # Note that there is a small window in which the directory will not be cleaned:
14893 # after its creation but before its name has been assigned to `$tmp'.
14894 $debug ||
14895 {
14896 tmp= ac_tmp=
14897 trap 'exit_status=$?
14898 : "${ac_tmp:=$tmp}"
14899 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14900 ' 0
14901 trap 'as_fn_exit 1' 1 2 13 15
14902 }
14903 # Create a (secure) tmp directory for tmp files.
14904
14905 {
14906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14907 test -d "$tmp"
14908 } ||
14909 {
14910 tmp=./conf$$-$RANDOM
14911 (umask 077 && mkdir "$tmp")
14912 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14913 ac_tmp=$tmp
14914
14915 # Set up the scripts for CONFIG_FILES section.
14916 # No need to generate them if there are no CONFIG_FILES.
14917 # This happens for instance with `./config.status config.h'.
14918 if test -n "$CONFIG_FILES"; then
14919
14920
14921 ac_cr=`echo X | tr X '\015'`
14922 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14923 # But we know of no other shell where ac_cr would be empty at this
14924 # point, so we can use a bashism as a fallback.
14925 if test "x$ac_cr" = x; then
14926 eval ac_cr=\$\'\\r\'
14927 fi
14928 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14929 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14930 ac_cs_awk_cr='\\r'
14931 else
14932 ac_cs_awk_cr=$ac_cr
14933 fi
14934
14935 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14936 _ACEOF
14937
14938
14939 {
14940 echo "cat >conf$$subs.awk <<_ACEOF" &&
14941 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14942 echo "_ACEOF"
14943 } >conf$$subs.sh ||
14944 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14946 ac_delim='%!_!# '
14947 for ac_last_try in false false false false false :; do
14948 . ./conf$$subs.sh ||
14949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14950
14951 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14952 if test $ac_delim_n = $ac_delim_num; then
14953 break
14954 elif $ac_last_try; then
14955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14956 else
14957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14958 fi
14959 done
14960 rm -f conf$$subs.sh
14961
14962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14963 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14964 _ACEOF
14965 sed -n '
14966 h
14967 s/^/S["/; s/!.*/"]=/
14968 p
14969 g
14970 s/^[^!]*!//
14971 :repl
14972 t repl
14973 s/'"$ac_delim"'$//
14974 t delim
14975 :nl
14976 h
14977 s/\(.\{148\}\)..*/\1/
14978 t more1
14979 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14980 p
14981 n
14982 b repl
14983 :more1
14984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14985 p
14986 g
14987 s/.\{148\}//
14988 t nl
14989 :delim
14990 h
14991 s/\(.\{148\}\)..*/\1/
14992 t more2
14993 s/["\\]/\\&/g; s/^/"/; s/$/"/
14994 p
14995 b
14996 :more2
14997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14998 p
14999 g
15000 s/.\{148\}//
15001 t delim
15002 ' <conf$$subs.awk | sed '
15003 /^[^""]/{
15004 N
15005 s/\n//
15006 }
15007 ' >>$CONFIG_STATUS || ac_write_fail=1
15008 rm -f conf$$subs.awk
15009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15010 _ACAWK
15011 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15012 for (key in S) S_is_set[key] = 1
15013 FS = ""
15014
15015 }
15016 {
15017 line = $ 0
15018 nfields = split(line, field, "@")
15019 substed = 0
15020 len = length(field[1])
15021 for (i = 2; i < nfields; i++) {
15022 key = field[i]
15023 keylen = length(key)
15024 if (S_is_set[key]) {
15025 value = S[key]
15026 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15027 len += length(value) + length(field[++i])
15028 substed = 1
15029 } else
15030 len += 1 + keylen
15031 }
15032
15033 print line
15034 }
15035
15036 _ACAWK
15037 _ACEOF
15038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15039 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15040 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15041 else
15042 cat
15043 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15044 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15045 _ACEOF
15046
15047 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15048 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15049 # trailing colons and then remove the whole line if VPATH becomes empty
15050 # (actually we leave an empty line to preserve line numbers).
15051 if test "x$srcdir" = x.; then
15052 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15053 h
15054 s///
15055 s/^/:/
15056 s/[ ]*$/:/
15057 s/:\$(srcdir):/:/g
15058 s/:\${srcdir}:/:/g
15059 s/:@srcdir@:/:/g
15060 s/^:*//
15061 s/:*$//
15062 x
15063 s/\(=[ ]*\).*/\1/
15064 G
15065 s/\n//
15066 s/^[^=]*=[ ]*$//
15067 }'
15068 fi
15069
15070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15071 fi # test -n "$CONFIG_FILES"
15072
15073 # Set up the scripts for CONFIG_HEADERS section.
15074 # No need to generate them if there are no CONFIG_HEADERS.
15075 # This happens for instance with `./config.status Makefile'.
15076 if test -n "$CONFIG_HEADERS"; then
15077 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15078 BEGIN {
15079 _ACEOF
15080
15081 # Transform confdefs.h into an awk script `defines.awk', embedded as
15082 # here-document in config.status, that substitutes the proper values into
15083 # config.h.in to produce config.h.
15084
15085 # Create a delimiter string that does not exist in confdefs.h, to ease
15086 # handling of long lines.
15087 ac_delim='%!_!# '
15088 for ac_last_try in false false :; do
15089 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15090 if test -z "$ac_tt"; then
15091 break
15092 elif $ac_last_try; then
15093 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15094 else
15095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15096 fi
15097 done
15098
15099 # For the awk script, D is an array of macro values keyed by name,
15100 # likewise P contains macro parameters if any. Preserve backslash
15101 # newline sequences.
15102
15103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15104 sed -n '
15105 s/.\{148\}/&'"$ac_delim"'/g
15106 t rset
15107 :rset
15108 s/^[ ]*#[ ]*define[ ][ ]*/ /
15109 t def
15110 d
15111 :def
15112 s/\\$//
15113 t bsnl
15114 s/["\\]/\\&/g
15115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15116 D["\1"]=" \3"/p
15117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15118 d
15119 :bsnl
15120 s/["\\]/\\&/g
15121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15122 D["\1"]=" \3\\\\\\n"\\/p
15123 t cont
15124 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15125 t cont
15126 d
15127 :cont
15128 n
15129 s/.\{148\}/&'"$ac_delim"'/g
15130 t clear
15131 :clear
15132 s/\\$//
15133 t bsnlc
15134 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15135 d
15136 :bsnlc
15137 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15138 b cont
15139 ' <confdefs.h | sed '
15140 s/'"$ac_delim"'/"\\\
15141 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15142
15143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15144 for (key in D) D_is_set[key] = 1
15145 FS = ""
15146 }
15147 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15148 line = \$ 0
15149 split(line, arg, " ")
15150 if (arg[1] == "#") {
15151 defundef = arg[2]
15152 mac1 = arg[3]
15153 } else {
15154 defundef = substr(arg[1], 2)
15155 mac1 = arg[2]
15156 }
15157 split(mac1, mac2, "(") #)
15158 macro = mac2[1]
15159 prefix = substr(line, 1, index(line, defundef) - 1)
15160 if (D_is_set[macro]) {
15161 # Preserve the white space surrounding the "#".
15162 print prefix "define", macro P[macro] D[macro]
15163 next
15164 } else {
15165 # Replace #undef with comments. This is necessary, for example,
15166 # in the case of _POSIX_SOURCE, which is predefined and required
15167 # on some systems where configure will not decide to define it.
15168 if (defundef == "undef") {
15169 print "/*", prefix defundef, macro, "*/"
15170 next
15171 }
15172 }
15173 }
15174 { print }
15175 _ACAWK
15176 _ACEOF
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15179 fi # test -n "$CONFIG_HEADERS"
15180
15181
15182 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15183 shift
15184 for ac_tag
15185 do
15186 case $ac_tag in
15187 :[FHLC]) ac_mode=$ac_tag; continue;;
15188 esac
15189 case $ac_mode$ac_tag in
15190 :[FHL]*:*);;
15191 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15192 :[FH]-) ac_tag=-:-;;
15193 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15194 esac
15195 ac_save_IFS=$IFS
15196 IFS=:
15197 set x $ac_tag
15198 IFS=$ac_save_IFS
15199 shift
15200 ac_file=$1
15201 shift
15202
15203 case $ac_mode in
15204 :L) ac_source=$1;;
15205 :[FH])
15206 ac_file_inputs=
15207 for ac_f
15208 do
15209 case $ac_f in
15210 -) ac_f="$ac_tmp/stdin";;
15211 *) # Look for the file first in the build tree, then in the source tree
15212 # (if the path is not absolute). The absolute path cannot be DOS-style,
15213 # because $ac_f cannot contain `:'.
15214 test -f "$ac_f" ||
15215 case $ac_f in
15216 [\\/$]*) false;;
15217 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15218 esac ||
15219 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15220 esac
15221 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15222 as_fn_append ac_file_inputs " '$ac_f'"
15223 done
15224
15225 # Let's still pretend it is `configure' which instantiates (i.e., don't
15226 # use $as_me), people would be surprised to read:
15227 # /* config.h. Generated by config.status. */
15228 configure_input='Generated from '`
15229 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15230 `' by configure.'
15231 if test x"$ac_file" != x-; then
15232 configure_input="$ac_file. $configure_input"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15234 $as_echo "$as_me: creating $ac_file" >&6;}
15235 fi
15236 # Neutralize special characters interpreted by sed in replacement strings.
15237 case $configure_input in #(
15238 *\&* | *\|* | *\\* )
15239 ac_sed_conf_input=`$as_echo "$configure_input" |
15240 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15241 *) ac_sed_conf_input=$configure_input;;
15242 esac
15243
15244 case $ac_tag in
15245 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15247 esac
15248 ;;
15249 esac
15250
15251 ac_dir=`$as_dirname -- "$ac_file" ||
15252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15253 X"$ac_file" : 'X\(//\)[^/]' \| \
15254 X"$ac_file" : 'X\(//\)$' \| \
15255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15256 $as_echo X"$ac_file" |
15257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15258 s//\1/
15259 q
15260 }
15261 /^X\(\/\/\)[^/].*/{
15262 s//\1/
15263 q
15264 }
15265 /^X\(\/\/\)$/{
15266 s//\1/
15267 q
15268 }
15269 /^X\(\/\).*/{
15270 s//\1/
15271 q
15272 }
15273 s/.*/./; q'`
15274 as_dir="$ac_dir"; as_fn_mkdir_p
15275 ac_builddir=.
15276
15277 case "$ac_dir" in
15278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15279 *)
15280 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15281 # A ".." for each directory in $ac_dir_suffix.
15282 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15283 case $ac_top_builddir_sub in
15284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15286 esac ;;
15287 esac
15288 ac_abs_top_builddir=$ac_pwd
15289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15290 # for backward compatibility:
15291 ac_top_builddir=$ac_top_build_prefix
15292
15293 case $srcdir in
15294 .) # We are building in place.
15295 ac_srcdir=.
15296 ac_top_srcdir=$ac_top_builddir_sub
15297 ac_abs_top_srcdir=$ac_pwd ;;
15298 [\\/]* | ?:[\\/]* ) # Absolute name.
15299 ac_srcdir=$srcdir$ac_dir_suffix;
15300 ac_top_srcdir=$srcdir
15301 ac_abs_top_srcdir=$srcdir ;;
15302 *) # Relative name.
15303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15304 ac_top_srcdir=$ac_top_build_prefix$srcdir
15305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15306 esac
15307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15308
15309
15310 case $ac_mode in
15311 :F)
15312 #
15313 # CONFIG_FILE
15314 #
15315
15316 case $INSTALL in
15317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15318 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15319 esac
15320 ac_MKDIR_P=$MKDIR_P
15321 case $MKDIR_P in
15322 [\\/$]* | ?:[\\/]* ) ;;
15323 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15324 esac
15325 _ACEOF
15326
15327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15328 # If the template does not know about datarootdir, expand it.
15329 # FIXME: This hack should be removed a few years after 2.60.
15330 ac_datarootdir_hack=; ac_datarootdir_seen=
15331 ac_sed_dataroot='
15332 /datarootdir/ {
15333 p
15334 q
15335 }
15336 /@datadir@/p
15337 /@docdir@/p
15338 /@infodir@/p
15339 /@localedir@/p
15340 /@mandir@/p'
15341 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15342 *datarootdir*) ac_datarootdir_seen=yes;;
15343 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15345 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15346 _ACEOF
15347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348 ac_datarootdir_hack='
15349 s&@datadir@&$datadir&g
15350 s&@docdir@&$docdir&g
15351 s&@infodir@&$infodir&g
15352 s&@localedir@&$localedir&g
15353 s&@mandir@&$mandir&g
15354 s&\\\${datarootdir}&$datarootdir&g' ;;
15355 esac
15356 _ACEOF
15357
15358 # Neutralize VPATH when `$srcdir' = `.'.
15359 # Shell code in configure.ac might set extrasub.
15360 # FIXME: do we really want to maintain this feature?
15361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15362 ac_sed_extra="$ac_vpsub
15363 $extrasub
15364 _ACEOF
15365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15366 :t
15367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15368 s|@configure_input@|$ac_sed_conf_input|;t t
15369 s&@top_builddir@&$ac_top_builddir_sub&;t t
15370 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15371 s&@srcdir@&$ac_srcdir&;t t
15372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15373 s&@top_srcdir@&$ac_top_srcdir&;t t
15374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15375 s&@builddir@&$ac_builddir&;t t
15376 s&@abs_builddir@&$ac_abs_builddir&;t t
15377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15378 s&@INSTALL@&$ac_INSTALL&;t t
15379 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15380 $ac_datarootdir_hack
15381 "
15382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15383 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15384
15385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15388 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15390 which seems to be undefined. Please make sure it is defined" >&5
15391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15392 which seems to be undefined. Please make sure it is defined" >&2;}
15393
15394 rm -f "$ac_tmp/stdin"
15395 case $ac_file in
15396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15398 esac \
15399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15400 ;;
15401 :H)
15402 #
15403 # CONFIG_HEADER
15404 #
15405 if test x"$ac_file" != x-; then
15406 {
15407 $as_echo "/* $configure_input */" \
15408 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15409 } >"$ac_tmp/config.h" \
15410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15411 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15413 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15414 else
15415 rm -f "$ac_file"
15416 mv "$ac_tmp/config.h" "$ac_file" \
15417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15418 fi
15419 else
15420 $as_echo "/* $configure_input */" \
15421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15422 || as_fn_error $? "could not create -" "$LINENO" 5
15423 fi
15424 # Compute "$ac_file"'s index in $config_headers.
15425 _am_arg="$ac_file"
15426 _am_stamp_count=1
15427 for _am_header in $config_headers :; do
15428 case $_am_header in
15429 $_am_arg | $_am_arg:* )
15430 break ;;
15431 * )
15432 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15433 esac
15434 done
15435 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15436 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15437 X"$_am_arg" : 'X\(//\)[^/]' \| \
15438 X"$_am_arg" : 'X\(//\)$' \| \
15439 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15440 $as_echo X"$_am_arg" |
15441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15442 s//\1/
15443 q
15444 }
15445 /^X\(\/\/\)[^/].*/{
15446 s//\1/
15447 q
15448 }
15449 /^X\(\/\/\)$/{
15450 s//\1/
15451 q
15452 }
15453 /^X\(\/\).*/{
15454 s//\1/
15455 q
15456 }
15457 s/.*/./; q'`/stamp-h$_am_stamp_count
15458 ;;
15459
15460 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15461 $as_echo "$as_me: executing $ac_file commands" >&6;}
15462 ;;
15463 esac
15464
15465
15466 case $ac_file$ac_mode in
15467 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15468 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15469 # are listed without --file. Let's play safe and only enable the eval
15470 # if we detect the quoting.
15471 case $CONFIG_FILES in
15472 *\'*) eval set x "$CONFIG_FILES" ;;
15473 *) set x $CONFIG_FILES ;;
15474 esac
15475 shift
15476 for mf
15477 do
15478 # Strip MF so we end up with the name of the file.
15479 mf=`echo "$mf" | sed -e 's/:.*$//'`
15480 # Check whether this is an Automake generated Makefile or not.
15481 # We used to match only the files named `Makefile.in', but
15482 # some people rename them; so instead we look at the file content.
15483 # Grep'ing the first line is not enough: some people post-process
15484 # each Makefile.in and add a new line on top of each file to say so.
15485 # Grep'ing the whole file is not good either: AIX grep has a line
15486 # limit of 2048, but all sed's we know have understand at least 4000.
15487 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15488 dirpart=`$as_dirname -- "$mf" ||
15489 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490 X"$mf" : 'X\(//\)[^/]' \| \
15491 X"$mf" : 'X\(//\)$' \| \
15492 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15493 $as_echo X"$mf" |
15494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15495 s//\1/
15496 q
15497 }
15498 /^X\(\/\/\)[^/].*/{
15499 s//\1/
15500 q
15501 }
15502 /^X\(\/\/\)$/{
15503 s//\1/
15504 q
15505 }
15506 /^X\(\/\).*/{
15507 s//\1/
15508 q
15509 }
15510 s/.*/./; q'`
15511 else
15512 continue
15513 fi
15514 # Extract the definition of DEPDIR, am__include, and am__quote
15515 # from the Makefile without running `make'.
15516 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15517 test -z "$DEPDIR" && continue
15518 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15519 test -z "am__include" && continue
15520 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15521 # When using ansi2knr, U may be empty or an underscore; expand it
15522 U=`sed -n 's/^U = //p' < "$mf"`
15523 # Find all dependency output files, they are included files with
15524 # $(DEPDIR) in their names. We invoke sed twice because it is the
15525 # simplest approach to changing $(DEPDIR) to its actual value in the
15526 # expansion.
15527 for file in `sed -n "
15528 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15529 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15530 # Make sure the directory exists.
15531 test -f "$dirpart/$file" && continue
15532 fdir=`$as_dirname -- "$file" ||
15533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15534 X"$file" : 'X\(//\)[^/]' \| \
15535 X"$file" : 'X\(//\)$' \| \
15536 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15537 $as_echo X"$file" |
15538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15539 s//\1/
15540 q
15541 }
15542 /^X\(\/\/\)[^/].*/{
15543 s//\1/
15544 q
15545 }
15546 /^X\(\/\/\)$/{
15547 s//\1/
15548 q
15549 }
15550 /^X\(\/\).*/{
15551 s//\1/
15552 q
15553 }
15554 s/.*/./; q'`
15555 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15556 # echo "creating $dirpart/$file"
15557 echo '# dummy' > "$dirpart/$file"
15558 done
15559 done
15560 }
15561 ;;
15562 "libtool":C)
15563
15564 # See if we are running on zsh, and set the options which allow our
15565 # commands through without removal of \ escapes.
15566 if test -n "${ZSH_VERSION+set}" ; then
15567 setopt NO_GLOB_SUBST
15568 fi
15569
15570 cfgfile="${ofile}T"
15571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15572 $RM "$cfgfile"
15573
15574 cat <<_LT_EOF >> "$cfgfile"
15575 #! $SHELL
15576
15577 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15578 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15581 #
15582 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15583 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15584 # Inc.
15585 # Written by Gordon Matzigkeit, 1996
15586 #
15587 # This file is part of GNU Libtool.
15588 #
15589 # GNU Libtool is free software; you can redistribute it and/or
15590 # modify it under the terms of the GNU General Public License as
15591 # published by the Free Software Foundation; either version 2 of
15592 # the License, or (at your option) any later version.
15593 #
15594 # As a special exception to the GNU General Public License,
15595 # if you distribute this file as part of a program or library that
15596 # is built using GNU Libtool, you may include this file under the
15597 # same distribution terms that you use for the rest of that program.
15598 #
15599 # GNU Libtool is distributed in the hope that it will be useful,
15600 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15602 # GNU General Public License for more details.
15603 #
15604 # You should have received a copy of the GNU General Public License
15605 # along with GNU Libtool; see the file COPYING. If not, a copy
15606 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15607 # obtained by writing to the Free Software Foundation, Inc.,
15608 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15609
15610
15611 # The names of the tagged configurations supported by this script.
15612 available_tags=""
15613
15614 # ### BEGIN LIBTOOL CONFIG
15615
15616 # Which release of libtool.m4 was used?
15617 macro_version=$macro_version
15618 macro_revision=$macro_revision
15619
15620 # Whether or not to build shared libraries.
15621 build_libtool_libs=$enable_shared
15622
15623 # Whether or not to build static libraries.
15624 build_old_libs=$enable_static
15625
15626 # What type of objects to build.
15627 pic_mode=$pic_mode
15628
15629 # Whether or not to optimize for fast installation.
15630 fast_install=$enable_fast_install
15631
15632 # Shell to use when invoking shell scripts.
15633 SHELL=$lt_SHELL
15634
15635 # An echo program that protects backslashes.
15636 ECHO=$lt_ECHO
15637
15638 # The host system.
15639 host_alias=$host_alias
15640 host=$host
15641 host_os=$host_os
15642
15643 # The build system.
15644 build_alias=$build_alias
15645 build=$build
15646 build_os=$build_os
15647
15648 # A sed program that does not truncate output.
15649 SED=$lt_SED
15650
15651 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15652 Xsed="\$SED -e 1s/^X//"
15653
15654 # A grep program that handles long lines.
15655 GREP=$lt_GREP
15656
15657 # An ERE matcher.
15658 EGREP=$lt_EGREP
15659
15660 # A literal string matcher.
15661 FGREP=$lt_FGREP
15662
15663 # A BSD- or MS-compatible name lister.
15664 NM=$lt_NM
15665
15666 # Whether we need soft or hard links.
15667 LN_S=$lt_LN_S
15668
15669 # What is the maximum length of a command?
15670 max_cmd_len=$max_cmd_len
15671
15672 # Object file suffix (normally "o").
15673 objext=$ac_objext
15674
15675 # Executable file suffix (normally "").
15676 exeext=$exeext
15677
15678 # whether the shell understands "unset".
15679 lt_unset=$lt_unset
15680
15681 # turn spaces into newlines.
15682 SP2NL=$lt_lt_SP2NL
15683
15684 # turn newlines into spaces.
15685 NL2SP=$lt_lt_NL2SP
15686
15687 # convert \$build file names to \$host format.
15688 to_host_file_cmd=$lt_cv_to_host_file_cmd
15689
15690 # convert \$build files to toolchain format.
15691 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15692
15693 # An object symbol dumper.
15694 OBJDUMP=$lt_OBJDUMP
15695
15696 # Method to check whether dependent libraries are shared objects.
15697 deplibs_check_method=$lt_deplibs_check_method
15698
15699 # Command to use when deplibs_check_method = "file_magic".
15700 file_magic_cmd=$lt_file_magic_cmd
15701
15702 # How to find potential files when deplibs_check_method = "file_magic".
15703 file_magic_glob=$lt_file_magic_glob
15704
15705 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15706 want_nocaseglob=$lt_want_nocaseglob
15707
15708 # DLL creation program.
15709 DLLTOOL=$lt_DLLTOOL
15710
15711 # Command to associate shared and link libraries.
15712 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15713
15714 # The archiver.
15715 AR=$lt_AR
15716
15717 # Flags to create an archive.
15718 AR_FLAGS=$lt_AR_FLAGS
15719
15720 # How to feed a file listing to the archiver.
15721 archiver_list_spec=$lt_archiver_list_spec
15722
15723 # A symbol stripping program.
15724 STRIP=$lt_STRIP
15725
15726 # Commands used to install an old-style archive.
15727 RANLIB=$lt_RANLIB
15728 old_postinstall_cmds=$lt_old_postinstall_cmds
15729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15730
15731 # Whether to use a lock for old archive extraction.
15732 lock_old_archive_extraction=$lock_old_archive_extraction
15733
15734 # A C compiler.
15735 LTCC=$lt_CC
15736
15737 # LTCC compiler flags.
15738 LTCFLAGS=$lt_CFLAGS
15739
15740 # Take the output of nm and produce a listing of raw symbols and C names.
15741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15742
15743 # Transform the output of nm in a proper C declaration.
15744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15745
15746 # Transform the output of nm in a C name address pair.
15747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15748
15749 # Transform the output of nm in a C name address pair when lib prefix is needed.
15750 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15751
15752 # Specify filename containing input files for \$NM.
15753 nm_file_list_spec=$lt_nm_file_list_spec
15754
15755 # The root where to search for dependent libraries,and in which our libraries should be installed.
15756 lt_sysroot=$lt_sysroot
15757
15758 # The name of the directory that contains temporary libtool files.
15759 objdir=$objdir
15760
15761 # Used to examine libraries when file_magic_cmd begins with "file".
15762 MAGIC_CMD=$MAGIC_CMD
15763
15764 # Must we lock files when doing compilation?
15765 need_locks=$lt_need_locks
15766
15767 # Manifest tool.
15768 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15769
15770 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15771 DSYMUTIL=$lt_DSYMUTIL
15772
15773 # Tool to change global to local symbols on Mac OS X.
15774 NMEDIT=$lt_NMEDIT
15775
15776 # Tool to manipulate fat objects and archives on Mac OS X.
15777 LIPO=$lt_LIPO
15778
15779 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15780 OTOOL=$lt_OTOOL
15781
15782 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15783 OTOOL64=$lt_OTOOL64
15784
15785 # Old archive suffix (normally "a").
15786 libext=$libext
15787
15788 # Shared library suffix (normally ".so").
15789 shrext_cmds=$lt_shrext_cmds
15790
15791 # The commands to extract the exported symbol list from a shared archive.
15792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15793
15794 # Variables whose values should be saved in libtool wrapper scripts and
15795 # restored at link time.
15796 variables_saved_for_relink=$lt_variables_saved_for_relink
15797
15798 # Do we need the "lib" prefix for modules?
15799 need_lib_prefix=$need_lib_prefix
15800
15801 # Do we need a version for libraries?
15802 need_version=$need_version
15803
15804 # Library versioning type.
15805 version_type=$version_type
15806
15807 # Shared library runtime path variable.
15808 runpath_var=$runpath_var
15809
15810 # Shared library path variable.
15811 shlibpath_var=$shlibpath_var
15812
15813 # Is shlibpath searched before the hard-coded library search path?
15814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15815
15816 # Format of library name prefix.
15817 libname_spec=$lt_libname_spec
15818
15819 # List of archive names. First name is the real one, the rest are links.
15820 # The last name is the one that the linker finds with -lNAME
15821 library_names_spec=$lt_library_names_spec
15822
15823 # The coded name of the library, if different from the real name.
15824 soname_spec=$lt_soname_spec
15825
15826 # Permission mode override for installation of shared libraries.
15827 install_override_mode=$lt_install_override_mode
15828
15829 # Command to use after installation of a shared archive.
15830 postinstall_cmds=$lt_postinstall_cmds
15831
15832 # Command to use after uninstallation of a shared archive.
15833 postuninstall_cmds=$lt_postuninstall_cmds
15834
15835 # Commands used to finish a libtool library installation in a directory.
15836 finish_cmds=$lt_finish_cmds
15837
15838 # As "finish_cmds", except a single script fragment to be evaled but
15839 # not shown.
15840 finish_eval=$lt_finish_eval
15841
15842 # Whether we should hardcode library paths into libraries.
15843 hardcode_into_libs=$hardcode_into_libs
15844
15845 # Compile-time system search path for libraries.
15846 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15847
15848 # Run-time system search path for libraries.
15849 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15850
15851 # Whether dlopen is supported.
15852 dlopen_support=$enable_dlopen
15853
15854 # Whether dlopen of programs is supported.
15855 dlopen_self=$enable_dlopen_self
15856
15857 # Whether dlopen of statically linked programs is supported.
15858 dlopen_self_static=$enable_dlopen_self_static
15859
15860 # Commands to strip libraries.
15861 old_striplib=$lt_old_striplib
15862 striplib=$lt_striplib
15863
15864
15865 # The linker used to build libraries.
15866 LD=$lt_LD
15867
15868 # How to create reloadable object files.
15869 reload_flag=$lt_reload_flag
15870 reload_cmds=$lt_reload_cmds
15871
15872 # Commands used to build an old-style archive.
15873 old_archive_cmds=$lt_old_archive_cmds
15874
15875 # A language specific compiler.
15876 CC=$lt_compiler
15877
15878 # Is the compiler the GNU compiler?
15879 with_gcc=$GCC
15880
15881 # Compiler flag to turn off builtin functions.
15882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15883
15884 # Additional compiler flags for building library objects.
15885 pic_flag=$lt_lt_prog_compiler_pic
15886
15887 # How to pass a linker flag through the compiler.
15888 wl=$lt_lt_prog_compiler_wl
15889
15890 # Compiler flag to prevent dynamic linking.
15891 link_static_flag=$lt_lt_prog_compiler_static
15892
15893 # Does compiler simultaneously support -c and -o options?
15894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15895
15896 # Whether or not to add -lc for building shared libraries.
15897 build_libtool_need_lc=$archive_cmds_need_lc
15898
15899 # Whether or not to disallow shared libs when runtime libs are static.
15900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15901
15902 # Compiler flag to allow reflexive dlopens.
15903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15904
15905 # Compiler flag to generate shared objects directly from archives.
15906 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15907
15908 # Whether the compiler copes with passing no objects directly.
15909 compiler_needs_object=$lt_compiler_needs_object
15910
15911 # Create an old-style archive from a shared archive.
15912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15913
15914 # Create a temporary old-style archive to link instead of a shared archive.
15915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15916
15917 # Commands used to build a shared archive.
15918 archive_cmds=$lt_archive_cmds
15919 archive_expsym_cmds=$lt_archive_expsym_cmds
15920
15921 # Commands used to build a loadable module if different from building
15922 # a shared archive.
15923 module_cmds=$lt_module_cmds
15924 module_expsym_cmds=$lt_module_expsym_cmds
15925
15926 # Whether we are building with GNU ld or not.
15927 with_gnu_ld=$lt_with_gnu_ld
15928
15929 # Flag that allows shared libraries with undefined symbols to be built.
15930 allow_undefined_flag=$lt_allow_undefined_flag
15931
15932 # Flag that enforces no undefined symbols.
15933 no_undefined_flag=$lt_no_undefined_flag
15934
15935 # Flag to hardcode \$libdir into a binary during linking.
15936 # This must work even if \$libdir does not exist
15937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15938
15939 # If ld is used when linking, flag to hardcode \$libdir into a binary
15940 # during linking. This must work even if \$libdir does not exist.
15941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15942
15943 # Whether we need a single "-rpath" flag with a separated argument.
15944 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15945
15946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15947 # DIR into the resulting binary.
15948 hardcode_direct=$hardcode_direct
15949
15950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15951 # DIR into the resulting binary and the resulting library dependency is
15952 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15953 # library is relocated.
15954 hardcode_direct_absolute=$hardcode_direct_absolute
15955
15956 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15957 # into the resulting binary.
15958 hardcode_minus_L=$hardcode_minus_L
15959
15960 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15961 # into the resulting binary.
15962 hardcode_shlibpath_var=$hardcode_shlibpath_var
15963
15964 # Set to "yes" if building a shared library automatically hardcodes DIR
15965 # into the library and all subsequent libraries and executables linked
15966 # against it.
15967 hardcode_automatic=$hardcode_automatic
15968
15969 # Set to yes if linker adds runtime paths of dependent libraries
15970 # to runtime path list.
15971 inherit_rpath=$inherit_rpath
15972
15973 # Whether libtool must link a program against all its dependency libraries.
15974 link_all_deplibs=$link_all_deplibs
15975
15976 # Set to "yes" if exported symbols are required.
15977 always_export_symbols=$always_export_symbols
15978
15979 # The commands to list exported symbols.
15980 export_symbols_cmds=$lt_export_symbols_cmds
15981
15982 # Symbols that should not be listed in the preloaded symbols.
15983 exclude_expsyms=$lt_exclude_expsyms
15984
15985 # Symbols that must always be exported.
15986 include_expsyms=$lt_include_expsyms
15987
15988 # Commands necessary for linking programs (against libraries) with templates.
15989 prelink_cmds=$lt_prelink_cmds
15990
15991 # Commands necessary for finishing linking programs.
15992 postlink_cmds=$lt_postlink_cmds
15993
15994 # Specify filename containing input files.
15995 file_list_spec=$lt_file_list_spec
15996
15997 # How to hardcode a shared library path into an executable.
15998 hardcode_action=$hardcode_action
15999
16000 # ### END LIBTOOL CONFIG
16001
16002 _LT_EOF
16003
16004 case $host_os in
16005 aix3*)
16006 cat <<\_LT_EOF >> "$cfgfile"
16007 # AIX sometimes has problems with the GCC collect2 program. For some
16008 # reason, if we set the COLLECT_NAMES environment variable, the problems
16009 # vanish in a puff of smoke.
16010 if test "X${COLLECT_NAMES+set}" != Xset; then
16011 COLLECT_NAMES=
16012 export COLLECT_NAMES
16013 fi
16014 _LT_EOF
16015 ;;
16016 esac
16017
16018
16019 ltmain="$ac_aux_dir/ltmain.sh"
16020
16021
16022 # We use sed instead of cat because bash on DJGPP gets confused if
16023 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16024 # text mode, it properly converts lines to CR/LF. This bash problem
16025 # is reportedly fixed, but why not run on old versions too?
16026 sed '$q' "$ltmain" >> "$cfgfile" \
16027 || (rm -f "$cfgfile"; exit 1)
16028
16029 if test x"$xsi_shell" = xyes; then
16030 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16031 func_dirname ()\
16032 {\
16033 \ case ${1} in\
16034 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16035 \ * ) func_dirname_result="${3}" ;;\
16036 \ esac\
16037 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16038 && mv -f "$cfgfile.tmp" "$cfgfile" \
16039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16040 test 0 -eq $? || _lt_function_replace_fail=:
16041
16042
16043 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16044 func_basename ()\
16045 {\
16046 \ func_basename_result="${1##*/}"\
16047 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16048 && mv -f "$cfgfile.tmp" "$cfgfile" \
16049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16050 test 0 -eq $? || _lt_function_replace_fail=:
16051
16052
16053 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16054 func_dirname_and_basename ()\
16055 {\
16056 \ case ${1} in\
16057 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16058 \ * ) func_dirname_result="${3}" ;;\
16059 \ esac\
16060 \ func_basename_result="${1##*/}"\
16061 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16062 && mv -f "$cfgfile.tmp" "$cfgfile" \
16063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16064 test 0 -eq $? || _lt_function_replace_fail=:
16065
16066
16067 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16068 func_stripname ()\
16069 {\
16070 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16071 \ # positional parameters, so assign one to ordinary parameter first.\
16072 \ func_stripname_result=${3}\
16073 \ func_stripname_result=${func_stripname_result#"${1}"}\
16074 \ func_stripname_result=${func_stripname_result%"${2}"}\
16075 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16076 && mv -f "$cfgfile.tmp" "$cfgfile" \
16077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16078 test 0 -eq $? || _lt_function_replace_fail=:
16079
16080
16081 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16082 func_split_long_opt ()\
16083 {\
16084 \ func_split_long_opt_name=${1%%=*}\
16085 \ func_split_long_opt_arg=${1#*=}\
16086 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16087 && mv -f "$cfgfile.tmp" "$cfgfile" \
16088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16089 test 0 -eq $? || _lt_function_replace_fail=:
16090
16091
16092 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16093 func_split_short_opt ()\
16094 {\
16095 \ func_split_short_opt_arg=${1#??}\
16096 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16097 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16098 && mv -f "$cfgfile.tmp" "$cfgfile" \
16099 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16100 test 0 -eq $? || _lt_function_replace_fail=:
16101
16102
16103 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16104 func_lo2o ()\
16105 {\
16106 \ case ${1} in\
16107 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16108 \ *) func_lo2o_result=${1} ;;\
16109 \ esac\
16110 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16111 && mv -f "$cfgfile.tmp" "$cfgfile" \
16112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16113 test 0 -eq $? || _lt_function_replace_fail=:
16114
16115
16116 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16117 func_xform ()\
16118 {\
16119 func_xform_result=${1%.*}.lo\
16120 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16121 && mv -f "$cfgfile.tmp" "$cfgfile" \
16122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16123 test 0 -eq $? || _lt_function_replace_fail=:
16124
16125
16126 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16127 func_arith ()\
16128 {\
16129 func_arith_result=$(( $* ))\
16130 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16131 && mv -f "$cfgfile.tmp" "$cfgfile" \
16132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16133 test 0 -eq $? || _lt_function_replace_fail=:
16134
16135
16136 sed -e '/^func_len ()$/,/^} # func_len /c\
16137 func_len ()\
16138 {\
16139 func_len_result=${#1}\
16140 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16141 && mv -f "$cfgfile.tmp" "$cfgfile" \
16142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16143 test 0 -eq $? || _lt_function_replace_fail=:
16144
16145 fi
16146
16147 if test x"$lt_shell_append" = xyes; then
16148 sed -e '/^func_append ()$/,/^} # func_append /c\
16149 func_append ()\
16150 {\
16151 eval "${1}+=\\${2}"\
16152 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16153 && mv -f "$cfgfile.tmp" "$cfgfile" \
16154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16155 test 0 -eq $? || _lt_function_replace_fail=:
16156
16157
16158 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16159 func_append_quoted ()\
16160 {\
16161 \ func_quote_for_eval "${2}"\
16162 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16163 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16164 && mv -f "$cfgfile.tmp" "$cfgfile" \
16165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16166 test 0 -eq $? || _lt_function_replace_fail=:
16167
16168
16169 # Save a `func_append' function call where possible by direct use of '+='
16170 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16171 && mv -f "$cfgfile.tmp" "$cfgfile" \
16172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16173 test 0 -eq $? || _lt_function_replace_fail=:
16174 else
16175 # Save a `func_append' function call even when '+=' is not available
16176 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16177 && mv -f "$cfgfile.tmp" "$cfgfile" \
16178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16179 test 0 -eq $? || _lt_function_replace_fail=:
16180 fi
16181
16182 if test x"$_lt_function_replace_fail" = x":"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16184 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16185 fi
16186
16187
16188 mv -f "$cfgfile" "$ofile" ||
16189 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16190 chmod +x "$ofile"
16191
16192 ;;
16193
16194 esac
16195 done # for ac_tag
16196
16197
16198 as_fn_exit 0
16199 _ACEOF
16200 ac_clean_files=$ac_clean_files_save
16201
16202 test $ac_write_fail = 0 ||
16203 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16204
16205
16206 # configure is writing to config.log, and then calls config.status.
16207 # config.status does its own redirection, appending to config.log.
16208 # Unfortunately, on DOS this fails, as config.log is still kept open
16209 # by configure, so config.status won't be able to write to it; its
16210 # output is simply discarded. So we exec the FD to /dev/null,
16211 # effectively closing config.log, so it can be properly (re)opened and
16212 # appended to by config.status. When coming back to configure, we
16213 # need to make the FD available again.
16214 if test "$no_create" != yes; then
16215 ac_cs_success=:
16216 ac_config_status_args=
16217 test "$silent" = yes &&
16218 ac_config_status_args="$ac_config_status_args --quiet"
16219 exec 5>/dev/null
16220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16221 exec 5>>config.log
16222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16223 # would make configure fail if this is the last instruction.
16224 $ac_cs_success || as_fn_exit 1
16225 fi
16226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16229 fi
16230