Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for liboobs 3.0.0.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools>.
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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell [email protected] and
234 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239 fi
240 exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258 { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267 return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338 else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355 else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360 fi # as_fn_arith
361
362
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
368 as_fn_error ()
369 {
370 as_status=$1; test $as_status -eq 0 && as_status=1
371 if test "$4"; then
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 fi
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465 *)
466 ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490 else
491 as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
547 shift
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
550 :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $ECHO works!
553 :
554 else
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
561 shift
562 cat <<_LT_EOF
563 $*
564 _LT_EOF
565 exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 then
580 break
581 fi
582 done
583 fi
584
585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
588 :
589 else
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
593 #
594 # So, first we look for a working echo in the user's PATH.
595
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
598 IFS="$lt_save_ifs"
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
603 ECHO="$dir/echo"
604 break
605 fi
606 done
607 IFS="$lt_save_ifs"
608
609 if test "X$ECHO" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
615 ECHO='print -r'
616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
622 export CONFIG_SHELL
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 else
625 # Try using printf.
626 ECHO='printf %s\n'
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # Cool, printf works
631 :
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 export CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
639 export SHELL
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 else
647 # maybe with a smaller string...
648 prev=:
649
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 then
653 break
654 fi
655 prev="$cmd"
656 done
657
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 else
663 # Oops. We lost completely, so just stick with echo.
664 ECHO=echo
665 fi
666 fi
667 fi
668 fi
669 fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='liboobs'
704 PACKAGE_TARNAME='liboobs'
705 PACKAGE_VERSION='3.0.0'
706 PACKAGE_STRING='liboobs 3.0.0'
707 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools'
708 PACKAGE_URL=''
709
710 ac_unique_file="oobs/oobs-session.c"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 # include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 # include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
746
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 HAVE_RTNETLINK_FALSE
752 HAVE_RTNETLINK_TRUE
753 HAL_LIBS
754 HAL_CFLAGS
755 OOBS_LIBS
756 OOBS_CFLAGS
757 GTK_DOC_USE_REBASE_FALSE
758 GTK_DOC_USE_REBASE_TRUE
759 GTK_DOC_USE_LIBTOOL_FALSE
760 GTK_DOC_USE_LIBTOOL_TRUE
761 GTK_DOC_BUILD_PDF_FALSE
762 GTK_DOC_BUILD_PDF_TRUE
763 GTK_DOC_BUILD_HTML_FALSE
764 GTK_DOC_BUILD_HTML_TRUE
765 ENABLE_GTK_DOC_FALSE
766 ENABLE_GTK_DOC_TRUE
767 HTML_DIR
768 GTKDOC_MKPDF
769 GTKDOC_REBASE
770 GTKDOC_CHECK
771 GETTEXT_PACKAGE
772 LT_AGE
773 LT_REVISION
774 LT_CURRENT
775 GLIB_MKENUMS
776 GOBJECT_QUERY
777 GLIB_GENMARSHAL
778 GLIB_LIBS
779 GLIB_CFLAGS
780 PKG_CONFIG_LIBDIR
781 PKG_CONFIG_PATH
782 PKG_CONFIG
783 CPP
784 OTOOL64
785 OTOOL
786 LIPO
787 NMEDIT
788 DSYMUTIL
789 lt_ECHO
790 RANLIB
791 AR
792 OBJDUMP
793 LN_S
794 NM
795 ac_ct_DUMPBIN
796 DUMPBIN
797 LD
798 FGREP
799 EGREP
800 GREP
801 SED
802 am__fastdepCC_FALSE
803 am__fastdepCC_TRUE
804 CCDEPMODE
805 AMDEPBACKSLASH
806 AMDEP_FALSE
807 AMDEP_TRUE
808 am__quote
809 am__include
810 DEPDIR
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
817 CC
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 LIBTOOL
827 MAINT
828 MAINTAINER_MODE_FALSE
829 MAINTAINER_MODE_TRUE
830 AM_BACKSLASH
831 AM_DEFAULT_VERBOSITY
832 am__untar
833 am__tar
834 AMTAR
835 am__leading_dot
836 SET_MAKE
837 AWK
838 mkdir_p
839 MKDIR_P
840 INSTALL_STRIP_PROGRAM
841 STRIP
842 install_sh
843 MAKEINFO
844 AUTOHEADER
845 AUTOMAKE
846 AUTOCONF
847 ACLOCAL
848 VERSION
849 PACKAGE
850 CYGPATH_W
851 am__isrc
852 INSTALL_DATA
853 INSTALL_SCRIPT
854 INSTALL_PROGRAM
855 target_alias
856 host_alias
857 build_alias
858 LIBS
859 ECHO_T
860 ECHO_N
861 ECHO_C
862 DEFS
863 mandir
864 localedir
865 libdir
866 psdir
867 pdfdir
868 dvidir
869 htmldir
870 infodir
871 docdir
872 oldincludedir
873 includedir
874 localstatedir
875 sharedstatedir
876 sysconfdir
877 datadir
878 datarootdir
879 libexecdir
880 sbindir
881 bindir
882 program_transform_name
883 prefix
884 exec_prefix
885 PACKAGE_URL
886 PACKAGE_BUGREPORT
887 PACKAGE_STRING
888 PACKAGE_VERSION
889 PACKAGE_TARNAME
890 PACKAGE_NAME
891 PATH_SEPARATOR
892 SHELL'
893 ac_subst_files=''
894 ac_user_opts='
895 enable_option_checking
896 enable_silent_rules
897 enable_maintainer_mode
898 enable_shared
899 enable_static
900 with_pic
901 enable_fast_install
902 enable_dependency_tracking
903 with_gnu_ld
904 enable_libtool_lock
905 enable_glibtest
906 with_html_dir
907 enable_gtk_doc
908 enable_gtk_doc_html
909 enable_gtk_doc_pdf
910 with_hal
911 '
912 ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 CPP
921 PKG_CONFIG
922 PKG_CONFIG_PATH
923 PKG_CONFIG_LIBDIR
924 OOBS_CFLAGS
925 OOBS_LIBS
926 HAL_CFLAGS
927 HAL_LIBS'
928
929
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 ac_unrecognized_opts=
934 ac_unrecognized_sep=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
985 ac_prev=
986 continue
987 fi
988
989 case $ac_option in
990 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 *=) ac_optarg= ;;
992 *) ac_optarg=yes ;;
993 esac
994
995 # Accept the important Cygnus configure options, so we can diagnose typos.
996
997 case $ac_dashdash$ac_option in
998 --)
999 ac_dashdash=yes ;;
1000
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1005
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1010
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1017
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1020
1021 -datadir | --datadir | --datadi | --datad)
1022 ac_prev=datadir ;;
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1025
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1032
1033 -disable-* | --disable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=no ;;
1048
1049 -docdir | --docdir | --docdi | --doc | --do)
1050 ac_prev=docdir ;;
1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052 docdir=$ac_optarg ;;
1053
1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055 ac_prev=dvidir ;;
1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057 dvidir=$ac_optarg ;;
1058
1059 -enable-* | --enable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=\$ac_optarg ;;
1074
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1083
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1086 with_gas=yes ;;
1087
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1094
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1099
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 ac_prev=htmldir ;;
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 | --ht=*)
1104 htmldir=$ac_optarg ;;
1105
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1112
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 ac_prev=infodir ;;
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1117
1118 -libdir | --libdir | --libdi | --libd)
1119 ac_prev=libdir ;;
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1122
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1129
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1134
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1141
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 ac_prev=mandir ;;
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1146
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1149 with_fp=no ;;
1150
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1153 no_create=yes ;;
1154
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 no_recursion=yes ;;
1158
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1167
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 ac_prev=prefix ;;
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1172
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1179
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1186
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1203
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 ac_prev=pdfdir ;;
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1208
1209 -psdir | --psdir | --psdi | --psd | --ps)
1210 ac_prev=psdir ;;
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 psdir=$ac_optarg ;;
1213
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 silent=yes ;;
1217
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
1222 sbindir=$ac_optarg ;;
1223
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
1233 sharedstatedir=$ac_optarg ;;
1234
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
1238 site=$ac_optarg ;;
1239
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1244
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1251
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1256
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1259
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1262
1263 -with-* | --with-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=\$ac_optarg ;;
1278
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information"
1315 ;;
1316
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 esac
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 as_fn_error $? "missing argument to $ac_option"
1341 fi
1342
1343 if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1345 no) ;;
1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348 esac
1349 fi
1350
1351 # Check all directory arguments for consistency.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
1356 do
1357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
1359 case $ac_val in
1360 */ )
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1363 esac
1364 # Be sure to have absolute directory names.
1365 case $ac_val in
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 esac
1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used" >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $? "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $? "pwd does not report name of working directory"
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1434 fi
1435 else
1436 ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 pwd)`
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1449 fi
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1453 case $srcdir in
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 esac
1456 for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 done
1462
1463 #
1464 # Report the --help message.
1465 #
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1469 cat <<_ACEOF
1470 \`configure' configures liboobs 3.0.0 to adapt to many kinds of systems.
1471
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1476
1477 Defaults for the options are specified in brackets.
1478
1479 Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 [PREFIX]
1495
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1500
1501 For better control, use the options below.
1502
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/liboobs]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1523 _ACEOF
1524
1525 cat <<\_ACEOF
1526
1527 Program names:
1528 --program-prefix=PREFIX prepend PREFIX to installed program names
1529 --program-suffix=SUFFIX append SUFFIX to installed program names
1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531
1532 System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 _ACEOF
1536 fi
1537
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive ) echo "Configuration of liboobs 3.0.0:";;
1541 esac
1542 cat <<\_ACEOF
1543
1544 Optional Features:
1545 --disable-option-checking ignore unrecognized --enable/--with options
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-silent-rules less verbose build output (undo: `make V=1')
1549 --disable-silent-rules verbose build output (undo: `make V=0')
1550 --enable-maintainer-mode enable make rules and dependencies not useful
1551 (and sometimes confusing) to the casual installer
1552 --enable-shared[=PKGS] build shared libraries [default=yes]
1553 --enable-static[=PKGS] build static libraries [default=yes]
1554 --enable-fast-install[=PKGS]
1555 optimize for fast installation [default=yes]
1556 --disable-dependency-tracking speeds up one-time build
1557 --enable-dependency-tracking do not reject slow dependency extractors
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1559 --disable-glibtest do not try to compile and run a test GLIB program
1560 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1561 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1562 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1563
1564 Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-pic try to use only PIC/non-PIC objects [default=use
1568 both]
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-html-dir=PATH path to installed docs
1571 --with-hal Enable HAL support.
1572
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CPP C preprocessor
1582 PKG_CONFIG path to pkg-config utility
1583 PKG_CONFIG_PATH
1584 directories to add to pkg-config's search path
1585 PKG_CONFIG_LIBDIR
1586 path overriding pkg-config's built-in search path
1587 OOBS_CFLAGS C compiler flags for OOBS, overriding pkg-config
1588 OOBS_LIBS linker flags for OOBS, overriding pkg-config
1589 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config
1590 HAL_LIBS linker flags for HAL, overriding pkg-config
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 liboobs configure 3.0.0
1659 generated by GNU Autoconf 2.67
1660
1661 Copyright (C) 2010 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1666 fi
1667
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1671
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_compile
1709
1710 # ac_fn_c_try_link LINENO
1711 # -----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_link ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext conftest$ac_exeext
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 $as_test_x conftest$ac_exeext
1738 }; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745 fi
1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748 # interfere with the next link command; also delete a directory that is
1749 # left behind by Apple's compiler. We do this before executing the actions.
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_link
1755
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval "test \"\${$3+set}\"" = set; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
1785 } # ac_fn_c_check_header_compile
1786
1787 # ac_fn_c_try_cpp LINENO
1788 # ----------------------
1789 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_cpp ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_cpp conftest.$ac_ext"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } > conftest.i && {
1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_cpp
1823
1824 # ac_fn_c_try_run LINENO
1825 # ----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1827 # that executables *can* be run.
1828 ac_fn_c_try_run ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1842 { { case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_try") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: program exited with status $ac_status" >&5
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=$ac_status
1859 fi
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 as_fn_set_status $ac_retval
1863
1864 } # ac_fn_c_try_run
1865
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval "test \"\${$3+set}\"" = set; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881 #define $2 innocuous_$2
1882
1883 /* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1887
1888 #ifdef __STDC__
1889 # include <limits.h>
1890 #else
1891 # include <assert.h>
1892 #endif
1893
1894 #undef $2
1895
1896 /* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1899 #ifdef __cplusplus
1900 extern "C"
1901 #endif
1902 char $2 ();
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined __stub_$2 || defined __stub___$2
1907 choke me
1908 #endif
1909
1910 int
1911 main ()
1912 {
1913 return $2 ();
1914 ;
1915 return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_link "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930
1931 } # ac_fn_c_check_func
1932
1933 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936 # the include files in INCLUDES and setting the cache variable VAR
1937 # accordingly.
1938 ac_fn_c_check_header_mongrel ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if eval "test \"\${$3+set}\"" = set; then :
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval "test \"\${$3+set}\"" = set; then :
1945 $as_echo_n "(cached) " >&6
1946 fi
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 else
1951 # Is the header compilable?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953 $as_echo_n "checking $2 usability... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_header_compiler=yes
1961 else
1962 ac_header_compiler=no
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966 $as_echo "$ac_header_compiler" >&6; }
1967
1968 # Is the header present?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970 $as_echo_n "checking $2 presence... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 ac_header_preproc=yes
1977 else
1978 ac_header_preproc=no
1979 fi
1980 rm -f conftest.err conftest.i conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982 $as_echo "$ac_header_preproc" >&6; }
1983
1984 # So? What about this header?
1985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1986 yes:no: )
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 ;;
1992 no:yes:* )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1996 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2000 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 ( $as_echo "## --------------------------------------------------------------------------------- ##
2004 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools ##
2005 ## --------------------------------------------------------------------------------- ##"
2006 ) | sed "s/^/$as_me: WARNING: /" >&2
2007 ;;
2008 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval "test \"\${$3+set}\"" = set; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021
2022 } # ac_fn_c_check_header_mongrel
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2026
2027 It was created by liboobs $as_me 3.0.0, which was
2028 generated by GNU Autoconf 2.67. Invocation command line was
2029
2030 $ $0 $@
2031
2032 _ACEOF
2033 exec 5>>config.log
2034 {
2035 cat <<_ASUNAME
2036 ## --------- ##
2037 ## Platform. ##
2038 ## --------- ##
2039
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2048
2049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2056
2057 _ASUNAME
2058
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 $as_echo "PATH: $as_dir"
2065 done
2066 IFS=$as_save_IFS
2067
2068 } >&5
2069
2070 cat >&5 <<_ACEOF
2071
2072
2073 ## ----------- ##
2074 ## Core tests. ##
2075 ## ----------- ##
2076
2077 _ACEOF
2078
2079
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_configure_args=
2086 ac_configure_args0=
2087 ac_configure_args1=
2088 ac_must_keep_next=false
2089 for ac_pass in 1 2
2090 do
2091 for ac_arg
2092 do
2093 case $ac_arg in
2094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096 | -silent | --silent | --silen | --sile | --sil)
2097 continue ;;
2098 *\'*)
2099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 esac
2101 case $ac_pass in
2102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103 2)
2104 as_fn_append ac_configure_args1 " '$ac_arg'"
2105 if test $ac_must_keep_next = true; then
2106 ac_must_keep_next=false # Got value, back to normal.
2107 else
2108 case $ac_arg in
2109 *=* | --config-cache | -C | -disable-* | --disable-* \
2110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112 | -with-* | --with-* | -without-* | --without-* | --x)
2113 case "$ac_configure_args0 " in
2114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115 esac
2116 ;;
2117 -* ) ac_must_keep_next=true ;;
2118 esac
2119 fi
2120 as_fn_append ac_configure_args " '$ac_arg'"
2121 ;;
2122 esac
2123 done
2124 done
2125 { ac_configure_args0=; unset ac_configure_args0;}
2126 { ac_configure_args1=; unset ac_configure_args1;}
2127
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log. We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134 # Save into config.log some information that might help in debugging.
2135 {
2136 echo
2137
2138 $as_echo "## ---------------- ##
2139 ## Cache variables. ##
2140 ## ---------------- ##"
2141 echo
2142 # The following way of writing the cache mishandles newlines in values,
2143 (
2144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in #(
2147 *${as_nl}*)
2148 case $ac_var in #(
2149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151 esac
2152 case $ac_var in #(
2153 _ | IFS | as_nl) ;; #(
2154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2155 *) { eval $ac_var=; unset $ac_var;} ;;
2156 esac ;;
2157 esac
2158 done
2159 (set) 2>&1 |
2160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2161 *${as_nl}ac_space=\ *)
2162 sed -n \
2163 "s/'\''/'\''\\\\'\'''\''/g;
2164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165 ;; #(
2166 *)
2167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 ;;
2169 esac |
2170 sort
2171 )
2172 echo
2173
2174 $as_echo "## ----------------- ##
2175 ## Output variables. ##
2176 ## ----------------- ##"
2177 echo
2178 for ac_var in $ac_subst_vars
2179 do
2180 eval ac_val=\$$ac_var
2181 case $ac_val in
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183 esac
2184 $as_echo "$ac_var='\''$ac_val'\''"
2185 done | sort
2186 echo
2187
2188 if test -n "$ac_subst_files"; then
2189 $as_echo "## ------------------- ##
2190 ## File substitutions. ##
2191 ## ------------------- ##"
2192 echo
2193 for ac_var in $ac_subst_files
2194 do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in
2197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198 esac
2199 $as_echo "$ac_var='\''$ac_val'\''"
2200 done | sort
2201 echo
2202 fi
2203
2204 if test -s confdefs.h; then
2205 $as_echo "## ----------- ##
2206 ## confdefs.h. ##
2207 ## ----------- ##"
2208 echo
2209 cat confdefs.h
2210 echo
2211 fi
2212 test "$ac_signal" != 0 &&
2213 $as_echo "$as_me: caught signal $ac_signal"
2214 $as_echo "$as_me: exit $exit_status"
2215 } >&5
2216 rm -f core *.core core.conftest.* &&
2217 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218 exit $exit_status
2219 ' 0
2220 for ac_signal in 1 2 13 15; do
2221 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222 done
2223 ac_signal=0
2224
2225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2226 rm -f -r conftest* confdefs.h
2227
2228 $as_echo "/* confdefs.h */" > confdefs.h
2229
2230 # Predefined preprocessor variables.
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_NAME "$PACKAGE_NAME"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_STRING "$PACKAGE_STRING"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_URL "$PACKAGE_URL"
2254 _ACEOF
2255
2256
2257 # Let the site file select an alternate cache file if it wants to.
2258 # Prefer an explicitly selected file to automatically selected ones.
2259 ac_site_file1=NONE
2260 ac_site_file2=NONE
2261 if test -n "$CONFIG_SITE"; then
2262 # We do not want a PATH search for config.site.
2263 case $CONFIG_SITE in #((
2264 -*) ac_site_file1=./$CONFIG_SITE;;
2265 */*) ac_site_file1=$CONFIG_SITE;;
2266 *) ac_site_file1=./$CONFIG_SITE;;
2267 esac
2268 elif test "x$prefix" != xNONE; then
2269 ac_site_file1=$prefix/share/config.site
2270 ac_site_file2=$prefix/etc/config.site
2271 else
2272 ac_site_file1=$ac_default_prefix/share/config.site
2273 ac_site_file2=$ac_default_prefix/etc/config.site
2274 fi
2275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276 do
2277 test "x$ac_site_file" = xNONE && continue
2278 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2281 sed 's/^/| /' "$ac_site_file" >&5
2282 . "$ac_site_file" \
2283 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 as_fn_error $? "failed to load site script $ac_site_file
2286 See \`config.log' for more details" "$LINENO" 5 ; }
2287 fi
2288 done
2289
2290 if test -r "$cache_file"; then
2291 # Some versions of bash will fail to source /dev/null (special files
2292 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2293 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 $as_echo "$as_me: loading cache $cache_file" >&6;}
2296 case $cache_file in
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
2299 esac
2300 fi
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 $as_echo "$as_me: creating cache $cache_file" >&6;}
2304 >$cache_file
2305 fi
2306
2307 # Check that the precious variables saved in the cache have kept the same
2308 # value.
2309 ac_cache_corrupted=false
2310 for ac_var in $ac_precious_vars; do
2311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312 eval ac_new_set=\$ac_env_${ac_var}_set
2313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314 eval ac_new_val=\$ac_env_${ac_var}_value
2315 case $ac_old_set,$ac_new_set in
2316 set,)
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319 ac_cache_corrupted=: ;;
2320 ,set)
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2324 ,);;
2325 *)
2326 if test "x$ac_old_val" != "x$ac_new_val"; then
2327 # differences in whitespace do not lead to failure.
2328 ac_old_val_w=`echo x $ac_old_val`
2329 ac_new_val_w=`echo x $ac_new_val`
2330 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333 ac_cache_corrupted=:
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337 eval $ac_var=\$ac_old_val
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2340 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2342 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2343 fi;;
2344 esac
2345 # Pass precious variables to config.status.
2346 if test "$ac_new_set" = set; then
2347 case $ac_new_val in
2348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 *) ac_arg=$ac_var=$ac_new_val ;;
2350 esac
2351 case " $ac_configure_args " in
2352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354 esac
2355 fi
2356 done
2357 if $ac_cache_corrupted; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 fi
2364 ## -------------------- ##
2365 ## Main body of script. ##
2366 ## -------------------- ##
2367
2368 ac_ext=c
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376 am__api_version='1.11'
2377
2378 ac_aux_dir=
2379 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2380 if test -f "$ac_dir/install-sh"; then
2381 ac_aux_dir=$ac_dir
2382 ac_install_sh="$ac_aux_dir/install-sh -c"
2383 break
2384 elif test -f "$ac_dir/install.sh"; then
2385 ac_aux_dir=$ac_dir
2386 ac_install_sh="$ac_aux_dir/install.sh -c"
2387 break
2388 elif test -f "$ac_dir/shtool"; then
2389 ac_aux_dir=$ac_dir
2390 ac_install_sh="$ac_aux_dir/shtool install -c"
2391 break
2392 fi
2393 done
2394 if test -z "$ac_aux_dir"; then
2395 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2396 fi
2397
2398 # These three variables are undocumented and unsupported,
2399 # and are intended to be withdrawn in a future Autoconf release.
2400 # They can cause serious problems if a builder's source tree is in a directory
2401 # whose full name contains unusual characters.
2402 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2403 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2404 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2405
2406
2407 # Find a good install program. We prefer a C program (faster),
2408 # so one script is as good as another. But avoid the broken or
2409 # incompatible versions:
2410 # SysV /etc/install, /usr/sbin/install
2411 # SunOS /usr/etc/install
2412 # IRIX /sbin/install
2413 # AIX /bin/install
2414 # AmigaOS /C/install, which installs bootblocks on floppy discs
2415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2418 # OS/2's system install, which has a completely different semantic
2419 # ./install, which can be erroneously created by make from ./install.sh.
2420 # Reject install programs that cannot install multiple files.
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2422 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2423 if test -z "$INSTALL"; then
2424 if test "${ac_cv_path_install+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 # Account for people who put trailing slashes in PATH elements.
2433 case $as_dir/ in #((
2434 ./ | .// | /[cC]/* | \
2435 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2436 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2437 /usr/ucb/* ) ;;
2438 *)
2439 # OSF1 and SCO ODT 3.0 have their own names for install.
2440 # Don't use installbsd from OSF since it installs stuff as root
2441 # by default.
2442 for ac_prog in ginstall scoinst install; do
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2445 if test $ac_prog = install &&
2446 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447 # AIX install. It has an incompatible calling convention.
2448 :
2449 elif test $ac_prog = install &&
2450 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2451 # program-specific install script used by HP pwplus--don't use.
2452 :
2453 else
2454 rm -rf conftest.one conftest.two conftest.dir
2455 echo one > conftest.one
2456 echo two > conftest.two
2457 mkdir conftest.dir
2458 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2459 test -s conftest.one && test -s conftest.two &&
2460 test -s conftest.dir/conftest.one &&
2461 test -s conftest.dir/conftest.two
2462 then
2463 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2464 break 3
2465 fi
2466 fi
2467 fi
2468 done
2469 done
2470 ;;
2471 esac
2472
2473 done
2474 IFS=$as_save_IFS
2475
2476 rm -rf conftest.one conftest.two conftest.dir
2477
2478 fi
2479 if test "${ac_cv_path_install+set}" = set; then
2480 INSTALL=$ac_cv_path_install
2481 else
2482 # As a last resort, use the slow shell script. Don't cache a
2483 # value for INSTALL within a source directory, because that will
2484 # break other packages using the cache if that directory is
2485 # removed, or if the value is a relative name.
2486 INSTALL=$ac_install_sh
2487 fi
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2490 $as_echo "$INSTALL" >&6; }
2491
2492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2493 # It thinks the first close brace ends the variable substitution.
2494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2495
2496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2497
2498 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2499
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2501 $as_echo_n "checking whether build environment is sane... " >&6; }
2502 # Just in case
2503 sleep 1
2504 echo timestamp > conftest.file
2505 # Reject unsafe characters in $srcdir or the absolute working directory
2506 # name. Accept space and tab only in the latter.
2507 am_lf='
2508 '
2509 case `pwd` in
2510 *[\\\"\#\$\&\'\`$am_lf]*)
2511 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2512 esac
2513 case $srcdir in
2514 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2515 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2516 esac
2517
2518 # Do `set' in a subshell so we don't clobber the current shell's
2519 # arguments. Must try -L first in case configure is actually a
2520 # symlink; some systems play weird games with the mod time of symlinks
2521 # (eg FreeBSD returns the mod time of the symlink's containing
2522 # directory).
2523 if (
2524 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2525 if test "$*" = "X"; then
2526 # -L didn't work.
2527 set X `ls -t "$srcdir/configure" conftest.file`
2528 fi
2529 rm -f conftest.file
2530 if test "$*" != "X $srcdir/configure conftest.file" \
2531 && test "$*" != "X conftest.file $srcdir/configure"; then
2532
2533 # If neither matched, then we have a broken ls. This can happen
2534 # if, for instance, CONFIG_SHELL is bash and it inherits a
2535 # broken ls alias from the environment. This has actually
2536 # happened. Such a system could not be considered "sane".
2537 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2538 alias in your environment" "$LINENO" 5
2539 fi
2540
2541 test "$2" = conftest.file
2542 )
2543 then
2544 # Ok.
2545 :
2546 else
2547 as_fn_error $? "newly created file is older than distributed files!
2548 Check your system clock" "$LINENO" 5
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551 $as_echo "yes" >&6; }
2552 test "$program_prefix" != NONE &&
2553 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2554 # Use a double $ so make ignores it.
2555 test "$program_suffix" != NONE &&
2556 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2557 # Double any \ or $.
2558 # By default was `s,x,x', remove it if useless.
2559 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2560 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2561
2562 # expand $ac_aux_dir to an absolute path
2563 am_aux_dir=`cd $ac_aux_dir && pwd`
2564
2565 if test x"${MISSING+set}" != xset; then
2566 case $am_aux_dir in
2567 *\ * | *\ *)
2568 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2569 *)
2570 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2571 esac
2572 fi
2573 # Use eval to expand $SHELL
2574 if eval "$MISSING --run true"; then
2575 am_missing_run="$MISSING --run "
2576 else
2577 am_missing_run=
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2579 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2580 fi
2581
2582 if test x"${install_sh}" != xset; then
2583 case $am_aux_dir in
2584 *\ * | *\ *)
2585 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2586 *)
2587 install_sh="\${SHELL} $am_aux_dir/install-sh"
2588 esac
2589 fi
2590
2591 # Installed binaries are usually stripped using `strip' when the user
2592 # run `make install-strip'. However `strip' might not be the right
2593 # tool to use in cross-compilation environments, therefore Automake
2594 # will honor the `STRIP' environment variable to overrule this program.
2595 if test "$cross_compiling" != no; then
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2598 set dummy ${ac_tool_prefix}strip; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_STRIP+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$STRIP"; then
2605 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 STRIP=$ac_cv_prog_STRIP
2625 if test -n "$STRIP"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2627 $as_echo "$STRIP" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633
2634 fi
2635 if test -z "$ac_cv_prog_STRIP"; then
2636 ac_ct_STRIP=$STRIP
2637 # Extract the first word of "strip", so it can be a program name with args.
2638 set dummy strip; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$ac_ct_STRIP"; then
2645 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_STRIP="strip"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2665 if test -n "$ac_ct_STRIP"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2667 $as_echo "$ac_ct_STRIP" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673 if test "x$ac_ct_STRIP" = x; then
2674 STRIP=":"
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2680 ac_tool_warned=yes ;;
2681 esac
2682 STRIP=$ac_ct_STRIP
2683 fi
2684 else
2685 STRIP="$ac_cv_prog_STRIP"
2686 fi
2687
2688 fi
2689 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2692 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2693 if test -z "$MKDIR_P"; then
2694 if test "${ac_cv_path_mkdir+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2699 do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_prog in mkdir gmkdir; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2705 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2706 'mkdir (GNU coreutils) '* | \
2707 'mkdir (coreutils) '* | \
2708 'mkdir (fileutils) '4.1*)
2709 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2710 break 3;;
2711 esac
2712 done
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718
2719 test -d ./--version && rmdir ./--version
2720 if test "${ac_cv_path_mkdir+set}" = set; then
2721 MKDIR_P="$ac_cv_path_mkdir -p"
2722 else
2723 # As a last resort, use the slow shell script. Don't cache a
2724 # value for MKDIR_P within a source directory, because that will
2725 # break other packages using the cache if that directory is
2726 # removed, or if the value is a relative name.
2727 MKDIR_P="$ac_install_sh -d"
2728 fi
2729 fi
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2731 $as_echo "$MKDIR_P" >&6; }
2732
2733 mkdir_p="$MKDIR_P"
2734 case $mkdir_p in
2735 [\\/$]* | ?:[\\/]*) ;;
2736 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2737 esac
2738
2739 for ac_prog in gawk mawk nawk awk
2740 do
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_AWK+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 if test -n "$AWK"; then
2749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_AWK="$ac_prog"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 AWK=$ac_cv_prog_AWK
2769 if test -n "$AWK"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2771 $as_echo "$AWK" >&6; }
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778 test -n "$AWK" && break
2779 done
2780
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2782 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2783 set x ${MAKE-make}
2784 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2785 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 cat >conftest.make <<\_ACEOF
2789 SHELL = /bin/sh
2790 all:
2791 @echo '@@@%%%=$(MAKE)=@@@%%%'
2792 _ACEOF
2793 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2794 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2795 *@@@%%%=?*=@@@%%%*)
2796 eval ac_cv_prog_make_${ac_make}_set=yes;;
2797 *)
2798 eval ac_cv_prog_make_${ac_make}_set=no;;
2799 esac
2800 rm -f conftest.make
2801 fi
2802 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2804 $as_echo "yes" >&6; }
2805 SET_MAKE=
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 SET_MAKE="MAKE=${MAKE-make}"
2810 fi
2811
2812 rm -rf .tst 2>/dev/null
2813 mkdir .tst 2>/dev/null
2814 if test -d .tst; then
2815 am__leading_dot=.
2816 else
2817 am__leading_dot=_
2818 fi
2819 rmdir .tst 2>/dev/null
2820
2821 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2822 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2823 # is not polluted with repeated "-I."
2824 am__isrc=' -I$(srcdir)'
2825 # test to see if srcdir already configured
2826 if test -f $srcdir/config.status; then
2827 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2828 fi
2829 fi
2830
2831 # test whether we have cygpath
2832 if test -z "$CYGPATH_W"; then
2833 if (cygpath --version) >/dev/null 2>/dev/null; then
2834 CYGPATH_W='cygpath -w'
2835 else
2836 CYGPATH_W=echo
2837 fi
2838 fi
2839
2840
2841 # Define the identity of the package.
2842 PACKAGE=liboobs
2843 VERSION=3.0.0
2844
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE "$PACKAGE"
2848 _ACEOF
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define VERSION "$VERSION"
2853 _ACEOF
2854
2855 # Some tools Automake needs.
2856
2857 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2858
2859
2860 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2861
2862
2863 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2864
2865
2866 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2867
2868
2869 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2870
2871 # We need awk for the "check" target. The system "awk" is bad on
2872 # some platforms.
2873 # Always define AMTAR for backward compatibility.
2874
2875 AMTAR=${AMTAR-"${am_missing_run}tar"}
2876
2877 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2878
2879
2880
2881
2882
2883 # Check whether --enable-silent-rules was given.
2884 if test "${enable_silent_rules+set}" = set; then :
2885 enableval=$enable_silent_rules;
2886 fi
2887
2888 case $enable_silent_rules in
2889 yes) AM_DEFAULT_VERBOSITY=0;;
2890 no) AM_DEFAULT_VERBOSITY=1;;
2891 *) AM_DEFAULT_VERBOSITY=0;;
2892 esac
2893 AM_BACKSLASH='\'
2894
2895
2896 ac_config_headers="$ac_config_headers config.h"
2897
2898
2899
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2901 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2902 # Check whether --enable-maintainer-mode was given.
2903 if test "${enable_maintainer_mode+set}" = set; then :
2904 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2905 else
2906 USE_MAINTAINER_MODE=no
2907 fi
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2910 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2911 if test $USE_MAINTAINER_MODE = yes; then
2912 MAINTAINER_MODE_TRUE=
2913 MAINTAINER_MODE_FALSE='#'
2914 else
2915 MAINTAINER_MODE_TRUE='#'
2916 MAINTAINER_MODE_FALSE=
2917 fi
2918
2919 MAINT=$MAINTAINER_MODE_TRUE
2920
2921
2922
2923 case `pwd` in
2924 *\ * | *\ *)
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2926 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2927 esac
2928
2929
2930
2931 macro_version='2.2.6b'
2932 macro_revision='1.3017'
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946 ltmain="$ac_aux_dir/ltmain.sh"
2947
2948 # Make sure we can run config.sub.
2949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2950 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2951
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2953 $as_echo_n "checking build system type... " >&6; }
2954 if test "${ac_cv_build+set}" = set; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 ac_build_alias=$build_alias
2958 test "x$ac_build_alias" = x &&
2959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2960 test "x$ac_build_alias" = x &&
2961 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2964
2965 fi
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2967 $as_echo "$ac_cv_build" >&6; }
2968 case $ac_cv_build in
2969 *-*-*) ;;
2970 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2971 esac
2972 build=$ac_cv_build
2973 ac_save_IFS=$IFS; IFS='-'
2974 set x $ac_cv_build
2975 shift
2976 build_cpu=$1
2977 build_vendor=$2
2978 shift; shift
2979 # Remember, the first character of IFS is used to create $*,
2980 # except with old shells:
2981 build_os=$*
2982 IFS=$ac_save_IFS
2983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2984
2985
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2987 $as_echo_n "checking host system type... " >&6; }
2988 if test "${ac_cv_host+set}" = set; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test "x$host_alias" = x; then
2992 ac_cv_host=$ac_cv_build
2993 else
2994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2995 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2996 fi
2997
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3000 $as_echo "$ac_cv_host" >&6; }
3001 case $ac_cv_host in
3002 *-*-*) ;;
3003 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3004 esac
3005 host=$ac_cv_host
3006 ac_save_IFS=$IFS; IFS='-'
3007 set x $ac_cv_host
3008 shift
3009 host_cpu=$1
3010 host_vendor=$2
3011 shift; shift
3012 # Remember, the first character of IFS is used to create $*,
3013 # except with old shells:
3014 host_os=$*
3015 IFS=$ac_save_IFS
3016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3017
3018
3019 DEPDIR="${am__leading_dot}deps"
3020
3021 ac_config_commands="$ac_config_commands depfiles"
3022
3023
3024 am_make=${MAKE-make}
3025 cat > confinc << 'END'
3026 am__doit:
3027 @echo this is the am__doit target
3028 .PHONY: am__doit
3029 END
3030 # If we don't find an include directive, just comment out the code.
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3032 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3033 am__include="#"
3034 am__quote=
3035 _am_result=none
3036 # First try GNU make style include.
3037 echo "include confinc" > confmf
3038 # Ignore all kinds of additional output from `make'.
3039 case `$am_make -s -f confmf 2> /dev/null` in #(
3040 *the\ am__doit\ target*)
3041 am__include=include
3042 am__quote=
3043 _am_result=GNU
3044 ;;
3045 esac
3046 # Now try BSD make style include.
3047 if test "$am__include" = "#"; then
3048 echo '.include "confinc"' > confmf
3049 case `$am_make -s -f confmf 2> /dev/null` in #(
3050 *the\ am__doit\ target*)
3051 am__include=.include
3052 am__quote="\""
3053 _am_result=BSD
3054 ;;
3055 esac
3056 fi
3057
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3060 $as_echo "$_am_result" >&6; }
3061 rm -f confinc confmf
3062
3063 # Check whether --enable-dependency-tracking was given.
3064 if test "${enable_dependency_tracking+set}" = set; then :
3065 enableval=$enable_dependency_tracking;
3066 fi
3067
3068 if test "x$enable_dependency_tracking" != xno; then
3069 am_depcomp="$ac_aux_dir/depcomp"
3070 AMDEPBACKSLASH='\'
3071 fi
3072 if test "x$enable_dependency_tracking" != xno; then
3073 AMDEP_TRUE=
3074 AMDEP_FALSE='#'
3075 else
3076 AMDEP_TRUE='#'
3077 AMDEP_FALSE=
3078 fi
3079
3080
3081 ac_ext=c
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124 fi
3125 if test -z "$ac_cv_prog_CC"; then
3126 ac_ct_CC=$CC
3127 # Extract the first word of "gcc", so it can be a program name with args.
3128 set dummy gcc; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_ac_ct_CC="gcc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172 CC=$ac_ct_CC
3173 fi
3174 else
3175 CC="$ac_cv_prog_CC"
3176 fi
3177
3178 if test -z "$CC"; then
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}cc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="${ac_tool_prefix}cc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 fi
3219 if test -z "$CC"; then
3220 # Extract the first word of "cc", so it can be a program name with args.
3221 set dummy cc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 ac_prog_rejected=no
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3239 ac_prog_rejected=yes
3240 continue
3241 fi
3242 ac_cv_prog_CC="cc"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 if test $ac_prog_rejected = yes; then
3251 # We found a bogon in the path, so make sure we never use it.
3252 set dummy $ac_cv_prog_CC
3253 shift
3254 if test $# != 0; then
3255 # We chose a different compiler from the bogus one.
3256 # However, it has the same basename, so the bogon will be chosen
3257 # first if we set CC to just the basename; use the full file name.
3258 shift
3259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3260 fi
3261 fi
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 fi
3275 if test -z "$CC"; then
3276 if test -n "$ac_tool_prefix"; then
3277 for ac_prog in cl.exe
3278 do
3279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if test "${ac_cv_prog_CC+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3314
3315
3316 test -n "$CC" && break
3317 done
3318 fi
3319 if test -z "$CC"; then
3320 ac_ct_CC=$CC
3321 for ac_prog in cl.exe
3322 do
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 if test -n "$ac_ct_CC"; then
3331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_ac_ct_CC="$ac_prog"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3353 $as_echo "$ac_ct_CC" >&6; }
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360 test -n "$ac_ct_CC" && break
3361 done
3362
3363 if test "x$ac_ct_CC" = x; then
3364 CC=""
3365 else
3366 case $cross_compiling:$ac_tool_warned in
3367 yes:)
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370 ac_tool_warned=yes ;;
3371 esac
3372 CC=$ac_ct_CC
3373 fi
3374 fi
3375
3376 fi
3377
3378
3379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details" "$LINENO" 5 ; }
3383
3384 # Provide some information about the compiler.
3385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3386 set X $ac_compile
3387 ac_compiler=$2
3388 for ac_option in --version -v -V -qversion; do
3389 { { ac_try="$ac_compiler $ac_option >&5"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3397 ac_status=$?
3398 if test -s conftest.err; then
3399 sed '10a\
3400 ... rest of stderr output deleted ...
3401 10q' conftest.err >conftest.er1
3402 cat conftest.er1 >&5
3403 fi
3404 rm -f conftest.er1 conftest.err
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3407 done
3408
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411
3412 int
3413 main ()
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 ac_clean_files_save=$ac_clean_files
3421 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3422 # Try to create an executable without -o first, disregard a.out.
3423 # It will help us diagnose broken compilers, and finding out an intuition
3424 # of exeext.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3426 $as_echo_n "checking whether the C compiler works... " >&6; }
3427 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3428
3429 # The possible output files:
3430 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3431
3432 ac_rmfiles=
3433 for ac_file in $ac_files
3434 do
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3438 esac
3439 done
3440 rm -f $ac_rmfiles
3441
3442 if { { ac_try="$ac_link_default"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link_default") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3455 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3456 # so that the user can short-circuit this test for compilers unknown to
3457 # Autoconf.
3458 for ac_file in $ac_files ''
3459 do
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3463 ;;
3464 [ab].out )
3465 # We found the default executable, but exeext='' is most
3466 # certainly right.
3467 break;;
3468 *.* )
3469 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3470 then :; else
3471 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472 fi
3473 # We set ac_cv_exeext here because the later test for it is not
3474 # safe: cross compilers may not add the suffix if given an `-o'
3475 # argument, so we may need to know it at that point already.
3476 # Even if this section looks crufty: it has the advantage of
3477 # actually working.
3478 break;;
3479 * )
3480 break;;
3481 esac
3482 done
3483 test "$ac_cv_exeext" = no && ac_cv_exeext=
3484
3485 else
3486 ac_file=''
3487 fi
3488 if test -z "$ac_file"; then :
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error 77 "C compiler cannot create executables
3497 See \`config.log' for more details" "$LINENO" 5 ; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3503 $as_echo_n "checking for C compiler default output file name... " >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3505 $as_echo "$ac_file" >&6; }
3506 ac_exeext=$ac_cv_exeext
3507
3508 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3509 ac_clean_files=$ac_clean_files_save
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3511 $as_echo_n "checking for suffix of executables... " >&6; }
3512 if { { ac_try="$ac_link"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_link") 2>&5
3520 ac_status=$?
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; then :
3523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3525 # work properly (i.e., refer to `conftest.exe'), while it won't with
3526 # `rm'.
3527 for ac_file in conftest.exe conftest conftest.*; do
3528 test -f "$ac_file" || continue
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 break;;
3533 * ) break;;
3534 esac
3535 done
3536 else
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details" "$LINENO" 5 ; }
3541 fi
3542 rm -f conftest conftest$ac_cv_exeext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544 $as_echo "$ac_cv_exeext" >&6; }
3545
3546 rm -f conftest.$ac_ext
3547 EXEEXT=$ac_cv_exeext
3548 ac_exeext=$EXEEXT
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <stdio.h>
3552 int
3553 main ()
3554 {
3555 FILE *f = fopen ("conftest.out", "w");
3556 return ferror (f) || fclose (f) != 0;
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 ac_clean_files="$ac_clean_files conftest.out"
3563 # Check that the compiler produces executables we can run. If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566 $as_echo_n "checking whether we are cross compiling... " >&6; }
3567 if test "$cross_compiling" != yes; then
3568 { { ac_try="$ac_link"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_link") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3579 if { ac_try='./conftest$ac_cv_exeext'
3580 { { case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_try") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; }; then
3590 cross_compiling=no
3591 else
3592 if test "$cross_compiling" = maybe; then
3593 cross_compiling=yes
3594 else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details" "$LINENO" 5 ; }
3600 fi
3601 fi
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604 $as_echo "$cross_compiling" >&6; }
3605
3606 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3607 ac_clean_files=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3609 $as_echo_n "checking for suffix of object files... " >&6; }
3610 if test "${ac_cv_objext+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 rm -f conftest.o conftest.obj
3625 if { { ac_try="$ac_compile"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_compile") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 for ac_file in conftest.o conftest.obj conftest.*; do
3637 test -f "$ac_file" || continue;
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3640 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3641 break;;
3642 esac
3643 done
3644 else
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot compute suffix of object files: cannot compile
3651 See \`config.log' for more details" "$LINENO" 5 ; }
3652 fi
3653 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3656 $as_echo "$ac_cv_objext" >&6; }
3657 OBJEXT=$ac_cv_objext
3658 ac_objext=$OBJEXT
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3661 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666
3667 int
3668 main ()
3669 {
3670 #ifndef __GNUC__
3671 choke me
3672 #endif
3673
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_compiler_gnu=yes
3680 else
3681 ac_compiler_gnu=no
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3685
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3689 if test $ac_compiler_gnu = yes; then
3690 GCC=yes
3691 else
3692 GCC=
3693 fi
3694 ac_test_CFLAGS=${CFLAGS+set}
3695 ac_save_CFLAGS=$CFLAGS
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3698 if test "${ac_cv_prog_cc_g+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 ac_save_c_werror_flag=$ac_c_werror_flag
3702 ac_c_werror_flag=yes
3703 ac_cv_prog_cc_g=no
3704 CFLAGS="-g"
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_g=yes
3718 else
3719 CFLAGS=""
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732
3733 else
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 CFLAGS="-g"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_prog_cc_g=yes
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3758 $as_echo "$ac_cv_prog_cc_g" >&6; }
3759 if test "$ac_test_CFLAGS" = set; then
3760 CFLAGS=$ac_save_CFLAGS
3761 elif test $ac_cv_prog_cc_g = yes; then
3762 if test "$GCC" = yes; then
3763 CFLAGS="-g -O2"
3764 else
3765 CFLAGS="-g"
3766 fi
3767 else
3768 if test "$GCC" = yes; then
3769 CFLAGS="-O2"
3770 else
3771 CFLAGS=
3772 fi
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3776 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 ac_cv_prog_cc_c89=no
3780 ac_save_CC=$CC
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <stdarg.h>
3784 #include <stdio.h>
3785 #include <sys/types.h>
3786 #include <sys/stat.h>
3787 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3788 struct buf { int x; };
3789 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3790 static char *e (p, i)
3791 char **p;
3792 int i;
3793 {
3794 return p[i];
3795 }
3796 static char *f (char * (*g) (char **, int), char **p, ...)
3797 {
3798 char *s;
3799 va_list v;
3800 va_start (v,p);
3801 s = g (p, va_arg (v,int));
3802 va_end (v);
3803 return s;
3804 }
3805
3806 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3807 function prototypes and stuff, but not '\xHH' hex character constants.
3808 These don't provoke an error unfortunately, instead are silently treated
3809 as 'x'. The following induces an error, until -std is added to get
3810 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3811 array size at least. It's necessary to write '\x00'==0 to get something
3812 that's true only with -std. */
3813 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814
3815 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3816 inside strings and character constants. */
3817 #define FOO(x) 'x'
3818 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819
3820 int test (int i, double x);
3821 struct s1 {int (*f) (int a);};
3822 struct s2 {int (*f) (double a);};
3823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3824 int argc;
3825 char **argv;
3826 int
3827 main ()
3828 {
3829 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 do
3837 CC="$ac_save_CC $ac_arg"
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_prog_cc_c89=$ac_arg
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext
3842 test "x$ac_cv_prog_cc_c89" != "xno" && break
3843 done
3844 rm -f conftest.$ac_ext
3845 CC=$ac_save_CC
3846
3847 fi
3848 # AC_CACHE_VAL
3849 case "x$ac_cv_prog_cc_c89" in
3850 x)
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3852 $as_echo "none needed" >&6; } ;;
3853 xno)
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3855 $as_echo "unsupported" >&6; } ;;
3856 *)
3857 CC="$CC $ac_cv_prog_cc_c89"
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3859 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3860 esac
3861 if test "x$ac_cv_prog_cc_c89" != xno; then :
3862
3863 fi
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871 depcc="$CC" am_compiler_list=
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3874 $as_echo_n "checking dependency style of $depcc... " >&6; }
3875 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3879 # We make a subdir and do the tests there. Otherwise we can end up
3880 # making bogus files that we don't know about and never remove. For
3881 # instance it was reported that on HP-UX the gcc test will end up
3882 # making a dummy file named `D' -- because `-MD' means `put the output
3883 # in D'.
3884 mkdir conftest.dir
3885 # Copy depcomp to subdir because otherwise we won't find it if we're
3886 # using a relative directory.
3887 cp "$am_depcomp" conftest.dir
3888 cd conftest.dir
3889 # We will build objects and dependencies in a subdirectory because
3890 # it helps to detect inapplicable dependency modes. For instance
3891 # both Tru64's cc and ICC support -MD to output dependencies as a
3892 # side effect of compilation, but ICC will put the dependencies in
3893 # the current directory while Tru64 will put them in the object
3894 # directory.
3895 mkdir sub
3896
3897 am_cv_CC_dependencies_compiler_type=none
3898 if test "$am_compiler_list" = ""; then
3899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3900 fi
3901 am__universal=false
3902 case " $depcc " in #(
3903 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3904 esac
3905
3906 for depmode in $am_compiler_list; do
3907 # Setup a source with many dependencies, because some compilers
3908 # like to wrap large dependency lists on column 80 (with \), and
3909 # we should not choose a depcomp mode which is confused by this.
3910 #
3911 # We need to recreate these files for each test, as the compiler may
3912 # overwrite some of them when testing with obscure command lines.
3913 # This happens at least with the AIX C compiler.
3914 : > sub/conftest.c
3915 for i in 1 2 3 4 5 6; do
3916 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3917 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3918 # Solaris 8's {/usr,}/bin/sh.
3919 touch sub/conftst$i.h
3920 done
3921 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3922
3923 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3924 # mode. It turns out that the SunPro C++ compiler does not properly
3925 # handle `-M -o', and we need to detect this. Also, some Intel
3926 # versions had trouble with output in subdirs
3927 am__obj=sub/conftest.${OBJEXT-o}
3928 am__minus_obj="-o $am__obj"
3929 case $depmode in
3930 gcc)
3931 # This depmode causes a compiler race in universal mode.
3932 test "$am__universal" = false || continue
3933 ;;
3934 nosideeffect)
3935 # after this tag, mechanisms are not by side-effect, so they'll
3936 # only be used when explicitly requested
3937 if test "x$enable_dependency_tracking" = xyes; then
3938 continue
3939 else
3940 break
3941 fi
3942 ;;
3943 msvisualcpp | msvcmsys)
3944 # This compiler won't grok `-c -o', but also, the minuso test has
3945 # not run yet. These depmodes are late enough in the game, and
3946 # so weak that their functioning should not be impacted.
3947 am__obj=conftest.${OBJEXT-o}
3948 am__minus_obj=
3949 ;;
3950 none) break ;;
3951 esac
3952 if depmode=$depmode \
3953 source=sub/conftest.c object=$am__obj \
3954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3955 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3956 >/dev/null 2>conftest.err &&
3957 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3958 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3959 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3960 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3961 # icc doesn't choke on unknown options, it will just issue warnings
3962 # or remarks (even with -Werror). So we grep stderr for any message
3963 # that says an option was ignored or not supported.
3964 # When given -MP, icc 7.0 and 7.1 complain thusly:
3965 # icc: Command line warning: ignoring option '-M'; no argument required
3966 # The diagnosis changed in icc 8.0:
3967 # icc: Command line remark: option '-MP' not supported
3968 if (grep 'ignoring option' conftest.err ||
3969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3970 am_cv_CC_dependencies_compiler_type=$depmode
3971 break
3972 fi
3973 fi
3974 done
3975
3976 cd ..
3977 rm -rf conftest.dir
3978 else
3979 am_cv_CC_dependencies_compiler_type=none
3980 fi
3981
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3984 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3985 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3986
3987 if
3988 test "x$enable_dependency_tracking" != xno \
3989 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3990 am__fastdepCC_TRUE=
3991 am__fastdepCC_FALSE='#'
3992 else
3993 am__fastdepCC_TRUE='#'
3994 am__fastdepCC_FALSE=
3995 fi
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3999 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4000 if test "${ac_cv_path_SED+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4004 for ac_i in 1 2 3 4 5 6 7; do
4005 ac_script="$ac_script$as_nl$ac_script"
4006 done
4007 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4008 { ac_script=; unset ac_script;}
4009 if test -z "$SED"; then
4010 ac_path_SED_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in sed gsed; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4021 # Check for GNU ac_path_SED and select it if it is found.
4022 # Check for GNU $ac_path_SED
4023 case `"$ac_path_SED" --version 2>&1` in
4024 *GNU*)
4025 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4026 *)
4027 ac_count=0
4028 $as_echo_n 0123456789 >"conftest.in"
4029 while :
4030 do
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 $as_echo '' >> "conftest.nl"
4035 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 as_fn_arith $ac_count + 1 && ac_count=$as_val
4038 if test $ac_count -gt ${ac_path_SED_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_SED="$ac_path_SED"
4041 ac_path_SED_max=$ac_count
4042 fi
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4048
4049 $ac_path_SED_found && break 3
4050 done
4051 done
4052 done
4053 IFS=$as_save_IFS
4054 if test -z "$ac_cv_path_SED"; then
4055 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4056 fi
4057 else
4058 ac_cv_path_SED=$SED
4059 fi
4060
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4063 $as_echo "$ac_cv_path_SED" >&6; }
4064 SED="$ac_cv_path_SED"
4065 rm -f conftest.sed
4066
4067 test -z "$SED" && SED=sed
4068 Xsed="$SED -e 1s/^X//"
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4081 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4082 if test "${ac_cv_path_GREP+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -z "$GREP"; then
4086 ac_path_GREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in grep ggrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4097 # Check for GNU ac_path_GREP and select it if it is found.
4098 # Check for GNU $ac_path_GREP
4099 case `"$ac_path_GREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102 *)
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo 'GREP' >> "conftest.nl"
4111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 as_fn_arith $ac_count + 1 && ac_count=$as_val
4114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_GREP="$ac_path_GREP"
4117 ac_path_GREP_max=$ac_count
4118 fi
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125 $ac_path_GREP_found && break 3
4126 done
4127 done
4128 done
4129 IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_GREP"; then
4131 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 fi
4133 else
4134 ac_cv_path_GREP=$GREP
4135 fi
4136
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4139 $as_echo "$ac_cv_path_GREP" >&6; }
4140 GREP="$ac_cv_path_GREP"
4141
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4144 $as_echo_n "checking for egrep... " >&6; }
4145 if test "${ac_cv_path_EGREP+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4149 then ac_cv_path_EGREP="$GREP -E"
4150 else
4151 if test -z "$EGREP"; then
4152 ac_path_EGREP_found=false
4153 # Loop through the user's path and test for each of PROGNAME-LIST
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_prog in egrep; do
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4162 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4163 # Check for GNU ac_path_EGREP and select it if it is found.
4164 # Check for GNU $ac_path_EGREP
4165 case `"$ac_path_EGREP" --version 2>&1` in
4166 *GNU*)
4167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168 *)
4169 ac_count=0
4170 $as_echo_n 0123456789 >"conftest.in"
4171 while :
4172 do
4173 cat "conftest.in" "conftest.in" >"conftest.tmp"
4174 mv "conftest.tmp" "conftest.in"
4175 cp "conftest.in" "conftest.nl"
4176 $as_echo 'EGREP' >> "conftest.nl"
4177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179 as_fn_arith $ac_count + 1 && ac_count=$as_val
4180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4181 # Best one so far, save it but keep looking for a better one
4182 ac_cv_path_EGREP="$ac_path_EGREP"
4183 ac_path_EGREP_max=$ac_count
4184 fi
4185 # 10*(2^10) chars as input seems more than enough
4186 test $ac_count -gt 10 && break
4187 done
4188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189 esac
4190
4191 $ac_path_EGREP_found && break 3
4192 done
4193 done
4194 done
4195 IFS=$as_save_IFS
4196 if test -z "$ac_cv_path_EGREP"; then
4197 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 fi
4199 else
4200 ac_cv_path_EGREP=$EGREP
4201 fi
4202
4203 fi
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4206 $as_echo "$ac_cv_path_EGREP" >&6; }
4207 EGREP="$ac_cv_path_EGREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4211 $as_echo_n "checking for fgrep... " >&6; }
4212 if test "${ac_cv_path_FGREP+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4216 then ac_cv_path_FGREP="$GREP -F"
4217 else
4218 if test -z "$FGREP"; then
4219 ac_path_FGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in fgrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4230 # Check for GNU ac_path_FGREP and select it if it is found.
4231 # Check for GNU $ac_path_FGREP
4232 case `"$ac_path_FGREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'FGREP' >> "conftest.nl"
4244 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_FGREP="$ac_path_FGREP"
4250 ac_path_FGREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_FGREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_FGREP"; then
4264 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 fi
4266 else
4267 ac_cv_path_FGREP=$FGREP
4268 fi
4269
4270 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4273 $as_echo "$ac_cv_path_FGREP" >&6; }
4274 FGREP="$ac_cv_path_FGREP"
4275
4276
4277 test -z "$GREP" && GREP=grep
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297 # Check whether --with-gnu-ld was given.
4298 if test "${with_gnu_ld+set}" = set; then :
4299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4300 else
4301 with_gnu_ld=no
4302 fi
4303
4304 ac_prog=ld
4305 if test "$GCC" = yes; then
4306 # Check if gcc -print-prog-name=ld gives a path.
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4308 $as_echo_n "checking for ld used by $CC... " >&6; }
4309 case $host in
4310 *-*-mingw*)
4311 # gcc leaves a trailing carriage return which upsets mingw
4312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4313 *)
4314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4315 esac
4316 case $ac_prog in
4317 # Accept absolute paths.
4318 [\\/]* | ?:[\\/]*)
4319 re_direlt='/[^/][^/]*/\.\./'
4320 # Canonicalize the pathname of ld
4321 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4322 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4323 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4324 done
4325 test -z "$LD" && LD="$ac_prog"
4326 ;;
4327 "")
4328 # If it fails, then pretend we aren't using GCC.
4329 ac_prog=ld
4330 ;;
4331 *)
4332 # If it is relative, then search for the first ld in PATH.
4333 with_gnu_ld=unknown
4334 ;;
4335 esac
4336 elif test "$with_gnu_ld" = yes; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4338 $as_echo_n "checking for GNU ld... " >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4341 $as_echo_n "checking for non-GNU ld... " >&6; }
4342 fi
4343 if test "${lt_cv_path_LD+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -z "$LD"; then
4347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4348 for ac_dir in $PATH; do
4349 IFS="$lt_save_ifs"
4350 test -z "$ac_dir" && ac_dir=.
4351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4352 lt_cv_path_LD="$ac_dir/$ac_prog"
4353 # Check to see if the program is GNU ld. I'd rather use --version,
4354 # but apparently some variants of GNU ld only accept -v.
4355 # Break only if it was the GNU/non-GNU ld that we prefer.
4356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4357 *GNU* | *'with BFD'*)
4358 test "$with_gnu_ld" != no && break
4359 ;;
4360 *)
4361 test "$with_gnu_ld" != yes && break
4362 ;;
4363 esac
4364 fi
4365 done
4366 IFS="$lt_save_ifs"
4367 else
4368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4369 fi
4370 fi
4371
4372 LD="$lt_cv_path_LD"
4373 if test -n "$LD"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4375 $as_echo "$LD" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4382 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4383 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4387 case `$LD -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 lt_cv_prog_gnu_ld=yes
4390 ;;
4391 *)
4392 lt_cv_prog_gnu_ld=no
4393 ;;
4394 esac
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4397 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4398 with_gnu_ld=$lt_cv_prog_gnu_ld
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4409 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4410 if test "${lt_cv_path_NM+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$NM"; then
4414 # Let the user override the test.
4415 lt_cv_path_NM="$NM"
4416 else
4417 lt_nm_to_check="${ac_tool_prefix}nm"
4418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4419 lt_nm_to_check="$lt_nm_to_check nm"
4420 fi
4421 for lt_tmp_nm in $lt_nm_to_check; do
4422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4424 IFS="$lt_save_ifs"
4425 test -z "$ac_dir" && ac_dir=.
4426 tmp_nm="$ac_dir/$lt_tmp_nm"
4427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4428 # Check to see if the nm accepts a BSD-compat flag.
4429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4430 # nm: unknown option "B" ignored
4431 # Tru64's nm complains that /dev/null is an invalid object file
4432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4433 */dev/null* | *'Invalid file or object type'*)
4434 lt_cv_path_NM="$tmp_nm -B"
4435 break
4436 ;;
4437 *)
4438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4439 */dev/null*)
4440 lt_cv_path_NM="$tmp_nm -p"
4441 break
4442 ;;
4443 *)
4444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4445 continue # so that we can try to find one that supports BSD flags
4446 ;;
4447 esac
4448 ;;
4449 esac
4450 fi
4451 done
4452 IFS="$lt_save_ifs"
4453 done
4454 : ${lt_cv_path_NM=no}
4455 fi
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4458 $as_echo "$lt_cv_path_NM" >&6; }
4459 if test "$lt_cv_path_NM" != "no"; then
4460 NM="$lt_cv_path_NM"
4461 else
4462 # Didn't find any BSD compatible name lister, look for dumpbin.
4463 if test -n "$ac_tool_prefix"; then
4464 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4465 do
4466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469 $as_echo_n "checking for $ac_word... " >&6; }
4470 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -n "$DUMPBIN"; then
4474 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487 done
4488 done
4489 IFS=$as_save_IFS
4490
4491 fi
4492 fi
4493 DUMPBIN=$ac_cv_prog_DUMPBIN
4494 if test -n "$DUMPBIN"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4496 $as_echo "$DUMPBIN" >&6; }
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500 fi
4501
4502
4503 test -n "$DUMPBIN" && break
4504 done
4505 fi
4506 if test -z "$DUMPBIN"; then
4507 ac_ct_DUMPBIN=$DUMPBIN
4508 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4509 do
4510 # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -n "$ac_ct_DUMPBIN"; then
4518 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531 done
4532 done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4538 if test -n "$ac_ct_DUMPBIN"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4540 $as_echo "$ac_ct_DUMPBIN" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546
4547 test -n "$ac_ct_DUMPBIN" && break
4548 done
4549
4550 if test "x$ac_ct_DUMPBIN" = x; then
4551 DUMPBIN=":"
4552 else
4553 case $cross_compiling:$ac_tool_warned in
4554 yes:)
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4557 ac_tool_warned=yes ;;
4558 esac
4559 DUMPBIN=$ac_ct_DUMPBIN
4560 fi
4561 fi
4562
4563
4564 if test "$DUMPBIN" != ":"; then
4565 NM="$DUMPBIN"
4566 fi
4567 fi
4568 test -z "$NM" && NM=nm
4569
4570
4571
4572
4573
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4576 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4577 if test "${lt_cv_nm_interface+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 lt_cv_nm_interface="BSD nm"
4581 echo "int some_variable = 0;" > conftest.$ac_ext
4582 (eval echo "\"\$as_me:4582: $ac_compile\"" >&5)
4583 (eval "$ac_compile" 2>conftest.err)
4584 cat conftest.err >&5
4585 (eval echo "\"\$as_me:4585: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4586 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4587 cat conftest.err >&5
4588 (eval echo "\"\$as_me:4588: output\"" >&5)
4589 cat conftest.out >&5
4590 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4591 lt_cv_nm_interface="MS dumpbin"
4592 fi
4593 rm -f conftest*
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4596 $as_echo "$lt_cv_nm_interface" >&6; }
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4599 $as_echo_n "checking whether ln -s works... " >&6; }
4600 LN_S=$as_ln_s
4601 if test "$LN_S" = "ln -s"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo "yes" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4606 $as_echo "no, using $LN_S" >&6; }
4607 fi
4608
4609 # find the maximum length of command line arguments
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4611 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4612 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 i=0
4616 teststring="ABCD"
4617
4618 case $build_os in
4619 msdosdjgpp*)
4620 # On DJGPP, this test can blow up pretty badly due to problems in libc
4621 # (any single argument exceeding 2000 bytes causes a buffer overrun
4622 # during glob expansion). Even if it were fixed, the result of this
4623 # check would be larger than it should be.
4624 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4625 ;;
4626
4627 gnu*)
4628 # Under GNU Hurd, this test is not required because there is
4629 # no limit to the length of command line arguments.
4630 # Libtool will interpret -1 as no limit whatsoever
4631 lt_cv_sys_max_cmd_len=-1;
4632 ;;
4633
4634 cygwin* | mingw* | cegcc*)
4635 # On Win9x/ME, this test blows up -- it succeeds, but takes
4636 # about 5 minutes as the teststring grows exponentially.
4637 # Worse, since 9x/ME are not pre-emptively multitasking,
4638 # you end up with a "frozen" computer, even though with patience
4639 # the test eventually succeeds (with a max line length of 256k).
4640 # Instead, let's just punt: use the minimum linelength reported by
4641 # all of the supported platforms: 8192 (on NT/2K/XP).
4642 lt_cv_sys_max_cmd_len=8192;
4643 ;;
4644
4645 amigaos*)
4646 # On AmigaOS with pdksh, this test takes hours, literally.
4647 # So we just punt and use a minimum line length of 8192.
4648 lt_cv_sys_max_cmd_len=8192;
4649 ;;
4650
4651 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4652 # This has been around since 386BSD, at least. Likely further.
4653 if test -x /sbin/sysctl; then
4654 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4655 elif test -x /usr/sbin/sysctl; then
4656 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4657 else
4658 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4659 fi
4660 # And add a safety zone
4661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4663 ;;
4664
4665 interix*)
4666 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4667 lt_cv_sys_max_cmd_len=196608
4668 ;;
4669
4670 osf*)
4671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4673 # nice to cause kernel panics so lets avoid the loop below.
4674 # First set a reasonable default.
4675 lt_cv_sys_max_cmd_len=16384
4676 #
4677 if test -x /sbin/sysconfig; then
4678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4680 esac
4681 fi
4682 ;;
4683 sco3.2v5*)
4684 lt_cv_sys_max_cmd_len=102400
4685 ;;
4686 sysv5* | sco5v6* | sysv4.2uw2*)
4687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4688 if test -n "$kargmax"; then
4689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4690 else
4691 lt_cv_sys_max_cmd_len=32768
4692 fi
4693 ;;
4694 *)
4695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4696 if test -n "$lt_cv_sys_max_cmd_len"; then
4697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4699 else
4700 # Make teststring a little bigger before we do anything with it.
4701 # a 1K string should be a reasonable start.
4702 for i in 1 2 3 4 5 6 7 8 ; do
4703 teststring=$teststring$teststring
4704 done
4705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4706 # If test is not a shell built-in, we'll probably end up computing a
4707 # maximum length that is only half of the actual maximum length, but
4708 # we can't tell.
4709 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4710 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4711 test $i != 17 # 1/2 MB should be enough
4712 do
4713 i=`expr $i + 1`
4714 teststring=$teststring$teststring
4715 done
4716 # Only check the string length outside the loop.
4717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4718 teststring=
4719 # Add a significant safety factor because C++ compilers can tack on
4720 # massive amounts of additional arguments before passing them to the
4721 # linker. It appears as though 1/2 is a usable value.
4722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4723 fi
4724 ;;
4725 esac
4726
4727 fi
4728
4729 if test -n $lt_cv_sys_max_cmd_len ; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4731 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4734 $as_echo "none" >&6; }
4735 fi
4736 max_cmd_len=$lt_cv_sys_max_cmd_len
4737
4738
4739
4740
4741
4742
4743 : ${CP="cp -f"}
4744 : ${MV="mv -f"}
4745 : ${RM="rm -f"}
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4748 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4749 # Try some XSI features
4750 xsi_shell=no
4751 ( _lt_dummy="a/b/c"
4752 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4753 = c,a/b,, \
4754 && eval 'test $(( 1 + 1 )) -eq 2 \
4755 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4756 && xsi_shell=yes
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4758 $as_echo "$xsi_shell" >&6; }
4759
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4762 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4763 lt_shell_append=no
4764 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4765 >/dev/null 2>&1 \
4766 && lt_shell_append=yes
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4768 $as_echo "$lt_shell_append" >&6; }
4769
4770
4771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4772 lt_unset=unset
4773 else
4774 lt_unset=false
4775 fi
4776
4777
4778
4779
4780
4781 # test EBCDIC or ASCII
4782 case `echo X|tr X '\101'` in
4783 A) # ASCII based system
4784 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4785 lt_SP2NL='tr \040 \012'
4786 lt_NL2SP='tr \015\012 \040\040'
4787 ;;
4788 *) # EBCDIC based system
4789 lt_SP2NL='tr \100 \n'
4790 lt_NL2SP='tr \r\n \100\100'
4791 ;;
4792 esac
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4803 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4804 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 lt_cv_ld_reload_flag='-r'
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4810 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4811 reload_flag=$lt_cv_ld_reload_flag
4812 case $reload_flag in
4813 "" | " "*) ;;
4814 *) reload_flag=" $reload_flag" ;;
4815 esac
4816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4817 case $host_os in
4818 darwin*)
4819 if test "$GCC" = yes; then
4820 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4821 else
4822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4823 fi
4824 ;;
4825 esac
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835 if test -n "$ac_tool_prefix"; then
4836 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4837 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$OBJDUMP"; then
4844 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861 fi
4862 fi
4863 OBJDUMP=$ac_cv_prog_OBJDUMP
4864 if test -n "$OBJDUMP"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4866 $as_echo "$OBJDUMP" >&6; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4870 fi
4871
4872
4873 fi
4874 if test -z "$ac_cv_prog_OBJDUMP"; then
4875 ac_ct_OBJDUMP=$OBJDUMP
4876 # Extract the first word of "objdump", so it can be a program name with args.
4877 set dummy objdump; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$ac_ct_OBJDUMP"; then
4884 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897 done
4898 done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4904 if test -n "$ac_ct_OBJDUMP"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4906 $as_echo "$ac_ct_OBJDUMP" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911
4912 if test "x$ac_ct_OBJDUMP" = x; then
4913 OBJDUMP="false"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916 yes:)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 OBJDUMP=$ac_ct_OBJDUMP
4922 fi
4923 else
4924 OBJDUMP="$ac_cv_prog_OBJDUMP"
4925 fi
4926
4927 test -z "$OBJDUMP" && OBJDUMP=objdump
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4938 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4939 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 lt_cv_file_magic_cmd='$MAGIC_CMD'
4943 lt_cv_file_magic_test_file=
4944 lt_cv_deplibs_check_method='unknown'
4945 # Need to set the preceding variable on all platforms that support
4946 # interlibrary dependencies.
4947 # 'none' -- dependencies not supported.
4948 # `unknown' -- same as none, but documents that we really don't know.
4949 # 'pass_all' -- all dependencies passed with no checks.
4950 # 'test_compile' -- check by making test program.
4951 # 'file_magic [[regex]]' -- check by looking for files in library path
4952 # which responds to the $file_magic_cmd with a given extended regex.
4953 # If you have `file' or equivalent on your system and you're not sure
4954 # whether `pass_all' will *always* work, you probably want this one.
4955
4956 case $host_os in
4957 aix[4-9]*)
4958 lt_cv_deplibs_check_method=pass_all
4959 ;;
4960
4961 beos*)
4962 lt_cv_deplibs_check_method=pass_all
4963 ;;
4964
4965 bsdi[45]*)
4966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4967 lt_cv_file_magic_cmd='/usr/bin/file -L'
4968 lt_cv_file_magic_test_file=/shlib/libc.so
4969 ;;
4970
4971 cygwin*)
4972 # func_win32_libid is a shell function defined in ltmain.sh
4973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4974 lt_cv_file_magic_cmd='func_win32_libid'
4975 ;;
4976
4977 mingw* | pw32*)
4978 # Base MSYS/MinGW do not provide the 'file' command needed by
4979 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4980 # unless we find 'file', for example because we are cross-compiling.
4981 if ( file / ) >/dev/null 2>&1; then
4982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4983 lt_cv_file_magic_cmd='func_win32_libid'
4984 else
4985 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4986 lt_cv_file_magic_cmd='$OBJDUMP -f'
4987 fi
4988 ;;
4989
4990 cegcc)
4991 # use the weaker test based on 'objdump'. See mingw*.
4992 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4993 lt_cv_file_magic_cmd='$OBJDUMP -f'
4994 ;;
4995
4996 darwin* | rhapsody*)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000 freebsd* | dragonfly*)
5001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5002 case $host_cpu in
5003 i*86 )
5004 # Not sure whether the presence of OpenBSD here was a mistake.
5005 # Let's accept both of them until this is cleared up.
5006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5007 lt_cv_file_magic_cmd=/usr/bin/file
5008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5009 ;;
5010 esac
5011 else
5012 lt_cv_deplibs_check_method=pass_all
5013 fi
5014 ;;
5015
5016 gnu*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
5019
5020 hpux10.20* | hpux11*)
5021 lt_cv_file_magic_cmd=/usr/bin/file
5022 case $host_cpu in
5023 ia64*)
5024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5025 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5026 ;;
5027 hppa*64*)
5028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5029 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5030 ;;
5031 *)
5032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5033 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5034 ;;
5035 esac
5036 ;;
5037
5038 interix[3-9]*)
5039 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5041 ;;
5042
5043 irix5* | irix6* | nonstopux*)
5044 case $LD in
5045 *-32|*"-32 ") libmagic=32-bit;;
5046 *-n32|*"-n32 ") libmagic=N32;;
5047 *-64|*"-64 ") libmagic=64-bit;;
5048 *) libmagic=never-match;;
5049 esac
5050 lt_cv_deplibs_check_method=pass_all
5051 ;;
5052
5053 # This must be Linux ELF.
5054 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5057
5058 netbsd* | netbsdelf*-gnu)
5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5061 else
5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5063 fi
5064 ;;
5065
5066 newos6*)
5067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5068 lt_cv_file_magic_cmd=/usr/bin/file
5069 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5070 ;;
5071
5072 *nto* | *qnx*)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
5075
5076 openbsd*)
5077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5079 else
5080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5081 fi
5082 ;;
5083
5084 osf3* | osf4* | osf5*)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087
5088 rdos*)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091
5092 solaris*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 sysv4 | sysv4.3*)
5101 case $host_vendor in
5102 motorola)
5103 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]'
5104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5105 ;;
5106 ncr)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109 sequent)
5110 lt_cv_file_magic_cmd='/bin/file'
5111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5112 ;;
5113 sni)
5114 lt_cv_file_magic_cmd='/bin/file'
5115 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5116 lt_cv_file_magic_test_file=/lib/libc.so
5117 ;;
5118 siemens)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121 pc)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124 esac
5125 ;;
5126
5127 tpf*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130 esac
5131
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5134 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5135 file_magic_cmd=$lt_cv_file_magic_cmd
5136 deplibs_check_method=$lt_cv_deplibs_check_method
5137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5152 set dummy ${ac_tool_prefix}ar; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_AR+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$AR"; then
5159 ac_cv_prog_AR="$AR" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_AR="${ac_tool_prefix}ar"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 AR=$ac_cv_prog_AR
5179 if test -n "$AR"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5181 $as_echo "$AR" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188 fi
5189 if test -z "$ac_cv_prog_AR"; then
5190 ac_ct_AR=$AR
5191 # Extract the first word of "ar", so it can be a program name with args.
5192 set dummy ar; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$ac_ct_AR"; then
5199 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_ac_ct_AR="ar"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5219 if test -n "$ac_ct_AR"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5221 $as_echo "$ac_ct_AR" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227 if test "x$ac_ct_AR" = x; then
5228 AR="false"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231 yes:)
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 AR=$ac_ct_AR
5237 fi
5238 else
5239 AR="$ac_cv_prog_AR"
5240 fi
5241
5242 test -z "$AR" && AR=ar
5243 test -z "$AR_FLAGS" && AR_FLAGS=cru
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}strip; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_prog_STRIP+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$STRIP"; then
5264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281 fi
5282 fi
5283 STRIP=$ac_cv_prog_STRIP
5284 if test -n "$STRIP"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5286 $as_echo "$STRIP" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 fi
5291
5292
5293 fi
5294 if test -z "$ac_cv_prog_STRIP"; then
5295 ac_ct_STRIP=$STRIP
5296 # Extract the first word of "strip", so it can be a program name with args.
5297 set dummy strip; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_STRIP"; then
5304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_prog_ac_ct_STRIP="strip"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5324 if test -n "$ac_ct_STRIP"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5326 $as_echo "$ac_ct_STRIP" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332 if test "x$ac_ct_STRIP" = x; then
5333 STRIP=":"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 STRIP=$ac_ct_STRIP
5342 fi
5343 else
5344 STRIP="$ac_cv_prog_STRIP"
5345 fi
5346
5347 test -z "$STRIP" && STRIP=:
5348
5349
5350
5351
5352
5353
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$RANLIB"; then
5363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 RANLIB=$ac_cv_prog_RANLIB
5383 if test -n "$RANLIB"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5385 $as_echo "$RANLIB" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 fi
5393 if test -z "$ac_cv_prog_RANLIB"; then
5394 ac_ct_RANLIB=$RANLIB
5395 # Extract the first word of "ranlib", so it can be a program name with args.
5396 set dummy ranlib; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_RANLIB"; then
5403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_RANLIB="ranlib"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5423 if test -n "$ac_ct_RANLIB"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5425 $as_echo "$ac_ct_RANLIB" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431 if test "x$ac_ct_RANLIB" = x; then
5432 RANLIB=":"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 RANLIB=$ac_ct_RANLIB
5441 fi
5442 else
5443 RANLIB="$ac_cv_prog_RANLIB"
5444 fi
5445
5446 test -z "$RANLIB" && RANLIB=:
5447
5448
5449
5450
5451
5452
5453 # Determine commands to create old-style static archives.
5454 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5455 old_postinstall_cmds='chmod 644 $oldlib'
5456 old_postuninstall_cmds=
5457
5458 if test -n "$RANLIB"; then
5459 case $host_os in
5460 openbsd*)
5461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5462 ;;
5463 *)
5464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5465 ;;
5466 esac
5467 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5468 fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503 # If no C compiler was specified, use CC.
5504 LTCC=${LTCC-"$CC"}
5505
5506 # If no C compiler flags were specified, use CFLAGS.
5507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5508
5509 # Allow CC to be a program name with arguments.
5510 compiler=$CC
5511
5512
5513 # Check for command to grab the raw symbol name followed by C symbol from nm.
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5515 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5516 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519
5520 # These are sane defaults that work on at least a few old systems.
5521 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5522
5523 # Character class describing NM global symbol codes.
5524 symcode='[BCDEGRST]'
5525
5526 # Regexp to match symbols that can be accessed directly from C.
5527 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5528
5529 # Define system-specific variables.
5530 case $host_os in
5531 aix*)
5532 symcode='[BCDT]'
5533 ;;
5534 cygwin* | mingw* | pw32* | cegcc*)
5535 symcode='[ABCDGISTW]'
5536 ;;
5537 hpux*)
5538 if test "$host_cpu" = ia64; then
5539 symcode='[ABCDEGRST]'
5540 fi
5541 ;;
5542 irix* | nonstopux*)
5543 symcode='[BCDEGRST]'
5544 ;;
5545 osf*)
5546 symcode='[BCDEGQRST]'
5547 ;;
5548 solaris*)
5549 symcode='[BDRT]'
5550 ;;
5551 sco3.2v5*)
5552 symcode='[DT]'
5553 ;;
5554 sysv4.2uw2*)
5555 symcode='[DT]'
5556 ;;
5557 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5558 symcode='[ABDT]'
5559 ;;
5560 sysv4)
5561 symcode='[DFNSTU]'
5562 ;;
5563 esac
5564
5565 # If we're using GNU nm, then use its standard symbol codes.
5566 case `$NM -V 2>&1` in
5567 *GNU* | *'with BFD'*)
5568 symcode='[ABCDGIRSTW]' ;;
5569 esac
5570
5571 # Transform an extracted symbol line into a proper C declaration.
5572 # Some systems (esp. on ia64) link data and code symbols differently,
5573 # so use this general approach.
5574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5575
5576 # Transform an extracted symbol line into symbol name and symbol address
5577 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5578 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'"
5579
5580 # Handle CRLF in mingw tool chain
5581 opt_cr=
5582 case $build_os in
5583 mingw*)
5584 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5585 ;;
5586 esac
5587
5588 # Try without a prefix underscore, then with it.
5589 for ac_symprfx in "" "_"; do
5590
5591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5592 symxfrm="\\1 $ac_symprfx\\2 \\2"
5593
5594 # Write the raw and C identifiers.
5595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5596 # Fake it for dumpbin and say T for any non-static function
5597 # and D for any global variable.
5598 # Also find C++ and __fastcall symbols from MSVC++,
5599 # which start with @ or ?.
5600 lt_cv_sys_global_symbol_pipe="$AWK '"\
5601 " {last_section=section; section=\$ 3};"\
5602 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5603 " \$ 0!~/External *\|/{next};"\
5604 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5605 " {if(hide[section]) next};"\
5606 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5607 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5608 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5609 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5610 " ' prfx=^$ac_symprfx"
5611 else
5612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5613 fi
5614
5615 # Check to see that the pipe works correctly.
5616 pipe_works=no
5617
5618 rm -f conftest*
5619 cat > conftest.$ac_ext <<_LT_EOF
5620 #ifdef __cplusplus
5621 extern "C" {
5622 #endif
5623 char nm_test_var;
5624 void nm_test_func(void);
5625 void nm_test_func(void){}
5626 #ifdef __cplusplus
5627 }
5628 #endif
5629 int main(){nm_test_var='a';nm_test_func();return(0);}
5630 _LT_EOF
5631
5632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5633 (eval $ac_compile) 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; }; then
5637 # Now try to grab the symbols.
5638 nlist=conftest.nm
5639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5640 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5641 ac_status=$?
5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643 test $ac_status = 0; } && test -s "$nlist"; then
5644 # Try sorting and uniquifying the output.
5645 if sort "$nlist" | uniq > "$nlist"T; then
5646 mv -f "$nlist"T "$nlist"
5647 else
5648 rm -f "$nlist"T
5649 fi
5650
5651 # Make sure that we snagged all the symbols we need.
5652 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5653 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5654 cat <<_LT_EOF > conftest.$ac_ext
5655 #ifdef __cplusplus
5656 extern "C" {
5657 #endif
5658
5659 _LT_EOF
5660 # Now generate the symbol file.
5661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5662
5663 cat <<_LT_EOF >> conftest.$ac_ext
5664
5665 /* The mapping between symbol names and symbols. */
5666 const struct {
5667 const char *name;
5668 void *address;
5669 }
5670 lt__PROGRAM__LTX_preloaded_symbols[] =
5671 {
5672 { "@PROGRAM@", (void *) 0 },
5673 _LT_EOF
5674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5675 cat <<\_LT_EOF >> conftest.$ac_ext
5676 {0, (void *) 0}
5677 };
5678
5679 /* This works around a problem in FreeBSD linker */
5680 #ifdef FREEBSD_WORKAROUND
5681 static const void *lt_preloaded_setup() {
5682 return lt__PROGRAM__LTX_preloaded_symbols;
5683 }
5684 #endif
5685
5686 #ifdef __cplusplus
5687 }
5688 #endif
5689 _LT_EOF
5690 # Now try linking the two files.
5691 mv conftest.$ac_objext conftstm.$ac_objext
5692 lt_save_LIBS="$LIBS"
5693 lt_save_CFLAGS="$CFLAGS"
5694 LIBS="conftstm.$ac_objext"
5695 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5697 (eval $ac_link) 2>&5
5698 ac_status=$?
5699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5701 pipe_works=yes
5702 fi
5703 LIBS="$lt_save_LIBS"
5704 CFLAGS="$lt_save_CFLAGS"
5705 else
5706 echo "cannot find nm_test_func in $nlist" >&5
5707 fi
5708 else
5709 echo "cannot find nm_test_var in $nlist" >&5
5710 fi
5711 else
5712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5713 fi
5714 else
5715 echo "$progname: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5717 fi
5718 rm -rf conftest* conftst*
5719
5720 # Do not use the global_symbol_pipe unless it works.
5721 if test "$pipe_works" = yes; then
5722 break
5723 else
5724 lt_cv_sys_global_symbol_pipe=
5725 fi
5726 done
5727
5728 fi
5729
5730 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5731 lt_cv_sys_global_symbol_to_cdecl=
5732 fi
5733 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5735 $as_echo "failed" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5738 $as_echo "ok" >&6; }
5739 fi
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 # Check whether --enable-libtool-lock was given.
5764 if test "${enable_libtool_lock+set}" = set; then :
5765 enableval=$enable_libtool_lock;
5766 fi
5767
5768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5769
5770 # Some flags need to be propagated to the compiler or linker for good
5771 # libtool support.
5772 case $host in
5773 ia64-*-hpux*)
5774 # Find out which ABI we are using.
5775 echo 'int i;' > conftest.$ac_ext
5776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5777 (eval $ac_compile) 2>&5
5778 ac_status=$?
5779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5780 test $ac_status = 0; }; then
5781 case `/usr/bin/file conftest.$ac_objext` in
5782 *ELF-32*)
5783 HPUX_IA64_MODE="32"
5784 ;;
5785 *ELF-64*)
5786 HPUX_IA64_MODE="64"
5787 ;;
5788 esac
5789 fi
5790 rm -rf conftest*
5791 ;;
5792 *-*-irix6*)
5793 # Find out which ABI we are using.
5794 echo '#line 5794 "configure"' > conftest.$ac_ext
5795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5796 (eval $ac_compile) 2>&5
5797 ac_status=$?
5798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799 test $ac_status = 0; }; then
5800 if test "$lt_cv_prog_gnu_ld" = yes; then
5801 case `/usr/bin/file conftest.$ac_objext` in
5802 *32-bit*)
5803 LD="${LD-ld} -melf32bsmip"
5804 ;;
5805 *N32*)
5806 LD="${LD-ld} -melf32bmipn32"
5807 ;;
5808 *64-bit*)
5809 LD="${LD-ld} -melf64bmip"
5810 ;;
5811 esac
5812 else
5813 case `/usr/bin/file conftest.$ac_objext` in
5814 *32-bit*)
5815 LD="${LD-ld} -32"
5816 ;;
5817 *N32*)
5818 LD="${LD-ld} -n32"
5819 ;;
5820 *64-bit*)
5821 LD="${LD-ld} -64"
5822 ;;
5823 esac
5824 fi
5825 fi
5826 rm -rf conftest*
5827 ;;
5828
5829 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5830 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5831 # Find out which ABI we are using.
5832 echo 'int i;' > conftest.$ac_ext
5833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5834 (eval $ac_compile) 2>&5
5835 ac_status=$?
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; }; then
5838 case `/usr/bin/file conftest.o` in
5839 *32-bit*)
5840 case $host in
5841 x86_64-*kfreebsd*-gnu)
5842 LD="${LD-ld} -m elf_i386_fbsd"
5843 ;;
5844 x86_64-*linux*)
5845 LD="${LD-ld} -m elf_i386"
5846 ;;
5847 ppc64-*linux*|powerpc64-*linux*)
5848 LD="${LD-ld} -m elf32ppclinux"
5849 ;;
5850 s390x-*linux*)
5851 LD="${LD-ld} -m elf_s390"
5852 ;;
5853 sparc64-*linux*)
5854 LD="${LD-ld} -m elf32_sparc"
5855 ;;
5856 esac
5857 ;;
5858 *64-bit*)
5859 case $host in
5860 x86_64-*kfreebsd*-gnu)
5861 LD="${LD-ld} -m elf_x86_64_fbsd"
5862 ;;
5863 x86_64-*linux*)
5864 LD="${LD-ld} -m elf_x86_64"
5865 ;;
5866 ppc*-*linux*|powerpc*-*linux*)
5867 LD="${LD-ld} -m elf64ppc"
5868 ;;
5869 s390*-*linux*|s390*-*tpf*)
5870 LD="${LD-ld} -m elf64_s390"
5871 ;;
5872 sparc*-*linux*)
5873 LD="${LD-ld} -m elf64_sparc"
5874 ;;
5875 esac
5876 ;;
5877 esac
5878 fi
5879 rm -rf conftest*
5880 ;;
5881
5882 *-*-sco3.2v5*)
5883 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5884 SAVE_CFLAGS="$CFLAGS"
5885 CFLAGS="$CFLAGS -belf"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5887 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5888 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 ac_ext=c
5892 ac_cpp='$CPP $CPPFLAGS'
5893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5896
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899
5900 int
5901 main ()
5902 {
5903
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 if ac_fn_c_try_link "$LINENO"; then :
5909 lt_cv_cc_needs_belf=yes
5910 else
5911 lt_cv_cc_needs_belf=no
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5915 ac_ext=c
5916 ac_cpp='$CPP $CPPFLAGS'
5917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5923 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5926 CFLAGS="$SAVE_CFLAGS"
5927 fi
5928 ;;
5929 sparc*-*solaris*)
5930 # Find out which ABI we are using.
5931 echo 'int i;' > conftest.$ac_ext
5932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5933 (eval $ac_compile) 2>&5
5934 ac_status=$?
5935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5936 test $ac_status = 0; }; then
5937 case `/usr/bin/file conftest.o` in
5938 *64-bit*)
5939 case $lt_cv_prog_gnu_ld in
5940 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5941 *)
5942 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5943 LD="${LD-ld} -64"
5944 fi
5945 ;;
5946 esac
5947 ;;
5948 esac
5949 fi
5950 rm -rf conftest*
5951 ;;
5952 esac
5953
5954 need_locks="$enable_libtool_lock"
5955
5956
5957 case $host_os in
5958 rhapsody* | darwin*)
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$DSYMUTIL"; then
5968 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5988 if test -n "$DSYMUTIL"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5990 $as_echo "$DSYMUTIL" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997 fi
5998 if test -z "$ac_cv_prog_DSYMUTIL"; then
5999 ac_ct_DSYMUTIL=$DSYMUTIL
6000 # Extract the first word of "dsymutil", so it can be a program name with args.
6001 set dummy dsymutil; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$ac_ct_DSYMUTIL"; then
6008 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6028 if test -n "$ac_ct_DSYMUTIL"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6030 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036 if test "x$ac_ct_DSYMUTIL" = x; then
6037 DSYMUTIL=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045 DSYMUTIL=$ac_ct_DSYMUTIL
6046 fi
6047 else
6048 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6049 fi
6050
6051 if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6053 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$NMEDIT"; then
6060 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 NMEDIT=$ac_cv_prog_NMEDIT
6080 if test -n "$NMEDIT"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6082 $as_echo "$NMEDIT" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088
6089 fi
6090 if test -z "$ac_cv_prog_NMEDIT"; then
6091 ac_ct_NMEDIT=$NMEDIT
6092 # Extract the first word of "nmedit", so it can be a program name with args.
6093 set dummy nmedit; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$ac_ct_NMEDIT"; then
6100 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6120 if test -n "$ac_ct_NMEDIT"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6122 $as_echo "$ac_ct_NMEDIT" >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127
6128 if test "x$ac_ct_NMEDIT" = x; then
6129 NMEDIT=":"
6130 else
6131 case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137 NMEDIT=$ac_ct_NMEDIT
6138 fi
6139 else
6140 NMEDIT="$ac_cv_prog_NMEDIT"
6141 fi
6142
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_LIPO+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$LIPO"; then
6152 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 LIPO=$ac_cv_prog_LIPO
6172 if test -n "$LIPO"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6174 $as_echo "$LIPO" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180
6181 fi
6182 if test -z "$ac_cv_prog_LIPO"; then
6183 ac_ct_LIPO=$LIPO
6184 # Extract the first word of "lipo", so it can be a program name with args.
6185 set dummy lipo; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$ac_ct_LIPO"; then
6192 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_LIPO="lipo"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6212 if test -n "$ac_ct_LIPO"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6214 $as_echo "$ac_ct_LIPO" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220 if test "x$ac_ct_LIPO" = x; then
6221 LIPO=":"
6222 else
6223 case $cross_compiling:$ac_tool_warned in
6224 yes:)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229 LIPO=$ac_ct_LIPO
6230 fi
6231 else
6232 LIPO="$ac_cv_prog_LIPO"
6233 fi
6234
6235 if test -n "$ac_tool_prefix"; then
6236 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6237 set dummy ${ac_tool_prefix}otool; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$OTOOL"; then
6244 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 OTOOL=$ac_cv_prog_OTOOL
6264 if test -n "$OTOOL"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6266 $as_echo "$OTOOL" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272
6273 fi
6274 if test -z "$ac_cv_prog_OTOOL"; then
6275 ac_ct_OTOOL=$OTOOL
6276 # Extract the first word of "otool", so it can be a program name with args.
6277 set dummy otool; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 if test -n "$ac_ct_OTOOL"; then
6284 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_ac_ct_OTOOL="otool"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6304 if test -n "$ac_ct_OTOOL"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6306 $as_echo "$ac_ct_OTOOL" >&6; }
6307 else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311
6312 if test "x$ac_ct_OTOOL" = x; then
6313 OTOOL=":"
6314 else
6315 case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6319 ac_tool_warned=yes ;;
6320 esac
6321 OTOOL=$ac_ct_OTOOL
6322 fi
6323 else
6324 OTOOL="$ac_cv_prog_OTOOL"
6325 fi
6326
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$OTOOL64"; then
6336 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 OTOOL64=$ac_cv_prog_OTOOL64
6356 if test -n "$OTOOL64"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6358 $as_echo "$OTOOL64" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364
6365 fi
6366 if test -z "$ac_cv_prog_OTOOL64"; then
6367 ac_ct_OTOOL64=$OTOOL64
6368 # Extract the first word of "otool64", so it can be a program name with args.
6369 set dummy otool64; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$ac_ct_OTOOL64"; then
6376 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_OTOOL64="otool64"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6396 if test -n "$ac_ct_OTOOL64"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6398 $as_echo "$ac_ct_OTOOL64" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404 if test "x$ac_ct_OTOOL64" = x; then
6405 OTOOL64=":"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413 OTOOL64=$ac_ct_OTOOL64
6414 fi
6415 else
6416 OTOOL64="$ac_cv_prog_OTOOL64"
6417 fi
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6446 $as_echo_n "checking for -single_module linker flag... " >&6; }
6447 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 lt_cv_apple_cc_single_mod=no
6451 if test -z "${LT_MULTI_MODULE}"; then
6452 # By default we will add the -single_module flag. You can override
6453 # by either setting the environment variable LT_MULTI_MODULE
6454 # non-empty at configure time, or by adding -multi_module to the
6455 # link flags.
6456 rm -rf libconftest.dylib*
6457 echo "int foo(void){return 1;}" > conftest.c
6458 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6459 -dynamiclib -Wl,-single_module conftest.c" >&5
6460 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6461 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6462 _lt_result=$?
6463 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6464 lt_cv_apple_cc_single_mod=yes
6465 else
6466 cat conftest.err >&5
6467 fi
6468 rm -rf libconftest.dylib*
6469 rm -f conftest.*
6470 fi
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6473 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6475 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6476 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 lt_cv_ld_exported_symbols_list=no
6480 save_LDFLAGS=$LDFLAGS
6481 echo "_main" > conftest.sym
6482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485
6486 int
6487 main ()
6488 {
6489
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_link "$LINENO"; then :
6495 lt_cv_ld_exported_symbols_list=yes
6496 else
6497 lt_cv_ld_exported_symbols_list=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501 LDFLAGS="$save_LDFLAGS"
6502
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6505 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6506 case $host_os in
6507 rhapsody* | darwin1.[012])
6508 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6509 darwin1.*)
6510 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6511 darwin*) # darwin 5.x on
6512 # if running on 10.5 or later, the deployment target defaults
6513 # to the OS version, if on x86, and 10.4, the deployment
6514 # target defaults to 10.4. Don't you love it?
6515 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6516 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6517 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6518 10.[012]*)
6519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6520 10.*)
6521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6522 esac
6523 ;;
6524 esac
6525 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6526 _lt_dar_single_mod='$single_module'
6527 fi
6528 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6529 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6530 else
6531 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6532 fi
6533 if test "$DSYMUTIL" != ":"; then
6534 _lt_dsymutil='~$DSYMUTIL $lib || :'
6535 else
6536 _lt_dsymutil=
6537 fi
6538 ;;
6539 esac
6540
6541 ac_ext=c
6542 ac_cpp='$CPP $CPPFLAGS'
6543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6547 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6548 # On Suns, sometimes $CPP names a directory.
6549 if test -n "$CPP" && test -d "$CPP"; then
6550 CPP=
6551 fi
6552 if test -z "$CPP"; then
6553 if test "${ac_cv_prog_CPP+set}" = set; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 # Double quotes because CPP needs to be expanded
6557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6558 do
6559 ac_preproc_ok=false
6560 for ac_c_preproc_warn_flag in '' yes
6561 do
6562 # Use a header file that comes with gcc, so configuring glibc
6563 # with a fresh cross-compiler works.
6564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 # <limits.h> exists even on freestanding compilers.
6566 # On the NeXT, cc -E runs the code through the compiler's parser,
6567 # not just through cpp. "Syntax error" is here to catch this case.
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 #ifdef __STDC__
6571 # include <limits.h>
6572 #else
6573 # include <assert.h>
6574 #endif
6575 Syntax error
6576 _ACEOF
6577 if ac_fn_c_try_cpp "$LINENO"; then :
6578
6579 else
6580 # Broken: fails on valid input.
6581 continue
6582 fi
6583 rm -f conftest.err conftest.i conftest.$ac_ext
6584
6585 # OK, works on sane cases. Now check whether nonexistent headers
6586 # can be detected and how.
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 #include <ac_nonexistent.h>
6590 _ACEOF
6591 if ac_fn_c_try_cpp "$LINENO"; then :
6592 # Broken: success on invalid input.
6593 continue
6594 else
6595 # Passes both tests.
6596 ac_preproc_ok=:
6597 break
6598 fi
6599 rm -f conftest.err conftest.i conftest.$ac_ext
6600
6601 done
6602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6603 rm -f conftest.i conftest.err conftest.$ac_ext
6604 if $ac_preproc_ok; then :
6605 break
6606 fi
6607
6608 done
6609 ac_cv_prog_CPP=$CPP
6610
6611 fi
6612 CPP=$ac_cv_prog_CPP
6613 else
6614 ac_cv_prog_CPP=$CPP
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6617 $as_echo "$CPP" >&6; }
6618 ac_preproc_ok=false
6619 for ac_c_preproc_warn_flag in '' yes
6620 do
6621 # Use a header file that comes with gcc, so configuring glibc
6622 # with a fresh cross-compiler works.
6623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6624 # <limits.h> exists even on freestanding compilers.
6625 # On the NeXT, cc -E runs the code through the compiler's parser,
6626 # not just through cpp. "Syntax error" is here to catch this case.
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629 #ifdef __STDC__
6630 # include <limits.h>
6631 #else
6632 # include <assert.h>
6633 #endif
6634 Syntax error
6635 _ACEOF
6636 if ac_fn_c_try_cpp "$LINENO"; then :
6637
6638 else
6639 # Broken: fails on valid input.
6640 continue
6641 fi
6642 rm -f conftest.err conftest.i conftest.$ac_ext
6643
6644 # OK, works on sane cases. Now check whether nonexistent headers
6645 # can be detected and how.
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 #include <ac_nonexistent.h>
6649 _ACEOF
6650 if ac_fn_c_try_cpp "$LINENO"; then :
6651 # Broken: success on invalid input.
6652 continue
6653 else
6654 # Passes both tests.
6655 ac_preproc_ok=:
6656 break
6657 fi
6658 rm -f conftest.err conftest.i conftest.$ac_ext
6659
6660 done
6661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6662 rm -f conftest.i conftest.err conftest.$ac_ext
6663 if $ac_preproc_ok; then :
6664
6665 else
6666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6668 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6669 See \`config.log' for more details" "$LINENO" 5 ; }
6670 fi
6671
6672 ac_ext=c
6673 ac_cpp='$CPP $CPPFLAGS'
6674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6677
6678
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6680 $as_echo_n "checking for ANSI C header files... " >&6; }
6681 if test "${ac_cv_header_stdc+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <stdlib.h>
6687 #include <stdarg.h>
6688 #include <string.h>
6689 #include <float.h>
6690
6691 int
6692 main ()
6693 {
6694
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 ac_cv_header_stdc=yes
6701 else
6702 ac_cv_header_stdc=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705
6706 if test $ac_cv_header_stdc = yes; then
6707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 #include <string.h>
6711
6712 _ACEOF
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714 $EGREP "memchr" >/dev/null 2>&1; then :
6715
6716 else
6717 ac_cv_header_stdc=no
6718 fi
6719 rm -f conftest*
6720
6721 fi
6722
6723 if test $ac_cv_header_stdc = yes; then
6724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <stdlib.h>
6728
6729 _ACEOF
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "free" >/dev/null 2>&1; then :
6732
6733 else
6734 ac_cv_header_stdc=no
6735 fi
6736 rm -f conftest*
6737
6738 fi
6739
6740 if test $ac_cv_header_stdc = yes; then
6741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6742 if test "$cross_compiling" = yes; then :
6743 :
6744 else
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <ctype.h>
6748 #include <stdlib.h>
6749 #if ((' ' & 0x0FF) == 0x020)
6750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6752 #else
6753 # define ISLOWER(c) \
6754 (('a' <= (c) && (c) <= 'i') \
6755 || ('j' <= (c) && (c) <= 'r') \
6756 || ('s' <= (c) && (c) <= 'z'))
6757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6758 #endif
6759
6760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6761 int
6762 main ()
6763 {
6764 int i;
6765 for (i = 0; i < 256; i++)
6766 if (XOR (islower (i), ISLOWER (i))
6767 || toupper (i) != TOUPPER (i))
6768 return 2;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_run "$LINENO"; then :
6773
6774 else
6775 ac_cv_header_stdc=no
6776 fi
6777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6778 conftest.$ac_objext conftest.beam conftest.$ac_ext
6779 fi
6780
6781 fi
6782 fi
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6784 $as_echo "$ac_cv_header_stdc" >&6; }
6785 if test $ac_cv_header_stdc = yes; then
6786
6787 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6788
6789 fi
6790
6791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6792 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6793 inttypes.h stdint.h unistd.h
6794 do :
6795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6796 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6797 "
6798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6801 _ACEOF
6802
6803 fi
6804
6805 done
6806
6807
6808 for ac_header in dlfcn.h
6809 do :
6810 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6811 "
6812 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6813 cat >>confdefs.h <<_ACEOF
6814 #define HAVE_DLFCN_H 1
6815 _ACEOF
6816
6817 fi
6818
6819 done
6820
6821
6822
6823 # Set options
6824
6825
6826
6827 enable_dlopen=no
6828
6829
6830 enable_win32_dll=no
6831
6832
6833 # Check whether --enable-shared was given.
6834 if test "${enable_shared+set}" = set; then :
6835 enableval=$enable_shared; p=${PACKAGE-default}
6836 case $enableval in
6837 yes) enable_shared=yes ;;
6838 no) enable_shared=no ;;
6839 *)
6840 enable_shared=no
6841 # Look at the argument we got. We use all the common list separators.
6842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6843 for pkg in $enableval; do
6844 IFS="$lt_save_ifs"
6845 if test "X$pkg" = "X$p"; then
6846 enable_shared=yes
6847 fi
6848 done
6849 IFS="$lt_save_ifs"
6850 ;;
6851 esac
6852 else
6853 enable_shared=yes
6854 fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864 # Check whether --enable-static was given.
6865 if test "${enable_static+set}" = set; then :
6866 enableval=$enable_static; p=${PACKAGE-default}
6867 case $enableval in
6868 yes) enable_static=yes ;;
6869 no) enable_static=no ;;
6870 *)
6871 enable_static=no
6872 # Look at the argument we got. We use all the common list separators.
6873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6874 for pkg in $enableval; do
6875 IFS="$lt_save_ifs"
6876 if test "X$pkg" = "X$p"; then
6877 enable_static=yes
6878 fi
6879 done
6880 IFS="$lt_save_ifs"
6881 ;;
6882 esac
6883 else
6884 enable_static=yes
6885 fi
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896 # Check whether --with-pic was given.
6897 if test "${with_pic+set}" = set; then :
6898 withval=$with_pic; pic_mode="$withval"
6899 else
6900 pic_mode=default
6901 fi
6902
6903
6904 test -z "$pic_mode" && pic_mode=default
6905
6906
6907
6908
6909
6910
6911
6912 # Check whether --enable-fast-install was given.
6913 if test "${enable_fast_install+set}" = set; then :
6914 enableval=$enable_fast_install; p=${PACKAGE-default}
6915 case $enableval in
6916 yes) enable_fast_install=yes ;;
6917 no) enable_fast_install=no ;;
6918 *)
6919 enable_fast_install=no
6920 # Look at the argument we got. We use all the common list separators.
6921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6922 for pkg in $enableval; do
6923 IFS="$lt_save_ifs"
6924 if test "X$pkg" = "X$p"; then
6925 enable_fast_install=yes
6926 fi
6927 done
6928 IFS="$lt_save_ifs"
6929 ;;
6930 esac
6931 else
6932 enable_fast_install=yes
6933 fi
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 # This can be used to rebuild libtool when needed
6946 LIBTOOL_DEPS="$ltmain"
6947
6948 # Always use our own libtool.
6949 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975 test -z "$LN_S" && LN_S="ln -s"
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990 if test -n "${ZSH_VERSION+set}" ; then
6991 setopt NO_GLOB_SUBST
6992 fi
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6995 $as_echo_n "checking for objdir... " >&6; }
6996 if test "${lt_cv_objdir+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 rm -f .libs 2>/dev/null
7000 mkdir .libs 2>/dev/null
7001 if test -d .libs; then
7002 lt_cv_objdir=.libs
7003 else
7004 # MS-DOS does not allow filenames that begin with a dot.
7005 lt_cv_objdir=_libs
7006 fi
7007 rmdir .libs 2>/dev/null
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7010 $as_echo "$lt_cv_objdir" >&6; }
7011 objdir=$lt_cv_objdir
7012
7013
7014
7015
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define LT_OBJDIR "$lt_cv_objdir/"
7019 _ACEOF
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037 case $host_os in
7038 aix3*)
7039 # AIX sometimes has problems with the GCC collect2 program. For some
7040 # reason, if we set the COLLECT_NAMES environment variable, the problems
7041 # vanish in a puff of smoke.
7042 if test "X${COLLECT_NAMES+set}" != Xset; then
7043 COLLECT_NAMES=
7044 export COLLECT_NAMES
7045 fi
7046 ;;
7047 esac
7048
7049 # Sed substitution that helps us do robust quoting. It backslashifies
7050 # metacharacters that are still active within double-quoted strings.
7051 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7052
7053 # Same as above, but do not quote variable references.
7054 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7055
7056 # Sed substitution to delay expansion of an escaped shell variable in a
7057 # double_quote_subst'ed string.
7058 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7059
7060 # Sed substitution to delay expansion of an escaped single quote.
7061 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7062
7063 # Sed substitution to avoid accidental globbing in evaled expressions
7064 no_glob_subst='s/\*/\\\*/g'
7065
7066 # Global variables:
7067 ofile=libtool
7068 can_build_shared=yes
7069
7070 # All known linkers require a `.a' archive for static linking (except MSVC,
7071 # which needs '.lib').
7072 libext=a
7073
7074 with_gnu_ld="$lt_cv_prog_gnu_ld"
7075
7076 old_CC="$CC"
7077 old_CFLAGS="$CFLAGS"
7078
7079 # Set sane defaults for various variables
7080 test -z "$CC" && CC=cc
7081 test -z "$LTCC" && LTCC=$CC
7082 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7083 test -z "$LD" && LD=ld
7084 test -z "$ac_objext" && ac_objext=o
7085
7086 for cc_temp in $compiler""; do
7087 case $cc_temp in
7088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7090 \-*) ;;
7091 *) break;;
7092 esac
7093 done
7094 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7095
7096
7097 # Only perform the check for file, if the check method requires it
7098 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7099 case $deplibs_check_method in
7100 file_magic*)
7101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7103 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7104 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 case $MAGIC_CMD in
7108 [\\/*] | ?:[\\/]*)
7109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7110 ;;
7111 *)
7112 lt_save_MAGIC_CMD="$MAGIC_CMD"
7113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7115 for ac_dir in $ac_dummy; do
7116 IFS="$lt_save_ifs"
7117 test -z "$ac_dir" && ac_dir=.
7118 if test -f $ac_dir/${ac_tool_prefix}file; then
7119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7120 if test -n "$file_magic_test_file"; then
7121 case $deplibs_check_method in
7122 "file_magic "*)
7123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7126 $EGREP "$file_magic_regex" > /dev/null; then
7127 :
7128 else
7129 cat <<_LT_EOF 1>&2
7130
7131 *** Warning: the command libtool uses to detect shared libraries,
7132 *** $file_magic_cmd, produces output that libtool cannot recognize.
7133 *** The result is that libtool may fail to recognize shared libraries
7134 *** as such. This will affect the creation of libtool libraries that
7135 *** depend on shared libraries, but programs linked with such libtool
7136 *** libraries will work regardless of this problem. Nevertheless, you
7137 *** may want to report the problem to your system manager and/or to
7138 *** [email protected]
7139
7140 _LT_EOF
7141 fi ;;
7142 esac
7143 fi
7144 break
7145 fi
7146 done
7147 IFS="$lt_save_ifs"
7148 MAGIC_CMD="$lt_save_MAGIC_CMD"
7149 ;;
7150 esac
7151 fi
7152
7153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7154 if test -n "$MAGIC_CMD"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7156 $as_echo "$MAGIC_CMD" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163
7164
7165
7166 if test -z "$lt_cv_path_MAGIC_CMD"; then
7167 if test -n "$ac_tool_prefix"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7169 $as_echo_n "checking for file... " >&6; }
7170 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 case $MAGIC_CMD in
7174 [\\/*] | ?:[\\/]*)
7175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7176 ;;
7177 *)
7178 lt_save_MAGIC_CMD="$MAGIC_CMD"
7179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7181 for ac_dir in $ac_dummy; do
7182 IFS="$lt_save_ifs"
7183 test -z "$ac_dir" && ac_dir=.
7184 if test -f $ac_dir/file; then
7185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7186 if test -n "$file_magic_test_file"; then
7187 case $deplibs_check_method in
7188 "file_magic "*)
7189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7192 $EGREP "$file_magic_regex" > /dev/null; then
7193 :
7194 else
7195 cat <<_LT_EOF 1>&2
7196
7197 *** Warning: the command libtool uses to detect shared libraries,
7198 *** $file_magic_cmd, produces output that libtool cannot recognize.
7199 *** The result is that libtool may fail to recognize shared libraries
7200 *** as such. This will affect the creation of libtool libraries that
7201 *** depend on shared libraries, but programs linked with such libtool
7202 *** libraries will work regardless of this problem. Nevertheless, you
7203 *** may want to report the problem to your system manager and/or to
7204 *** [email protected]
7205
7206 _LT_EOF
7207 fi ;;
7208 esac
7209 fi
7210 break
7211 fi
7212 done
7213 IFS="$lt_save_ifs"
7214 MAGIC_CMD="$lt_save_MAGIC_CMD"
7215 ;;
7216 esac
7217 fi
7218
7219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7220 if test -n "$MAGIC_CMD"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7222 $as_echo "$MAGIC_CMD" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228
7229 else
7230 MAGIC_CMD=:
7231 fi
7232 fi
7233
7234 fi
7235 ;;
7236 esac
7237
7238 # Use C for the default configuration in the libtool script
7239
7240 lt_save_CC="$CC"
7241 ac_ext=c
7242 ac_cpp='$CPP $CPPFLAGS'
7243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7246
7247
7248 # Source file extension for C test sources.
7249 ac_ext=c
7250
7251 # Object file extension for compiled C test sources.
7252 objext=o
7253 objext=$objext
7254
7255 # Code to be used in simple compile tests
7256 lt_simple_compile_test_code="int some_variable = 0;"
7257
7258 # Code to be used in simple link tests
7259 lt_simple_link_test_code='int main(){return(0);}'
7260
7261
7262
7263
7264
7265
7266
7267 # If no C compiler was specified, use CC.
7268 LTCC=${LTCC-"$CC"}
7269
7270 # If no C compiler flags were specified, use CFLAGS.
7271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7272
7273 # Allow CC to be a program name with arguments.
7274 compiler=$CC
7275
7276 # Save the default compiler, since it gets overwritten when the other
7277 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7278 compiler_DEFAULT=$CC
7279
7280 # save warnings/boilerplate of simple test code
7281 ac_outfile=conftest.$ac_objext
7282 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7283 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7284 _lt_compiler_boilerplate=`cat conftest.err`
7285 $RM conftest*
7286
7287 ac_outfile=conftest.$ac_objext
7288 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7289 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7290 _lt_linker_boilerplate=`cat conftest.err`
7291 $RM -r conftest*
7292
7293
7294 if test -n "$compiler"; then
7295
7296 lt_prog_compiler_no_builtin_flag=
7297
7298 if test "$GCC" = yes; then
7299 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7302 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7303 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 lt_cv_prog_compiler_rtti_exceptions=no
7307 ac_outfile=conftest.$ac_objext
7308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7309 lt_compiler_flag="-fno-rtti -fno-exceptions"
7310 # Insert the option either (1) after the last *FLAGS variable, or
7311 # (2) before a word containing "conftest.", or (3) at the end.
7312 # Note that $ac_compile itself does not contain backslashes and begins
7313 # with a dollar sign (not a hyphen), so the echo should work correctly.
7314 # The option is referenced via a variable to avoid confusing sed.
7315 lt_compile=`echo "$ac_compile" | $SED \
7316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7318 -e 's:$: $lt_compiler_flag:'`
7319 (eval echo "\"\$as_me:7319: $lt_compile\"" >&5)
7320 (eval "$lt_compile" 2>conftest.err)
7321 ac_status=$?
7322 cat conftest.err >&5
7323 echo "$as_me:7323: \$? = $ac_status" >&5
7324 if (exit $ac_status) && test -s "$ac_outfile"; then
7325 # The compiler can only warn and ignore the option if not recognized
7326 # So say no if there are warnings other than the usual output.
7327 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7329 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7330 lt_cv_prog_compiler_rtti_exceptions=yes
7331 fi
7332 fi
7333 $RM conftest*
7334
7335 fi
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7337 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7338
7339 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7340 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7341 else
7342 :
7343 fi
7344
7345 fi
7346
7347
7348
7349
7350
7351
7352 lt_prog_compiler_wl=
7353 lt_prog_compiler_pic=
7354 lt_prog_compiler_static=
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7358
7359 if test "$GCC" = yes; then
7360 lt_prog_compiler_wl='-Wl,'
7361 lt_prog_compiler_static='-static'
7362
7363 case $host_os in
7364 aix*)
7365 # All AIX code is PIC.
7366 if test "$host_cpu" = ia64; then
7367 # AIX 5 now supports IA64 processor
7368 lt_prog_compiler_static='-Bstatic'
7369 fi
7370 ;;
7371
7372 amigaos*)
7373 case $host_cpu in
7374 powerpc)
7375 # see comment about AmigaOS4 .so support
7376 lt_prog_compiler_pic='-fPIC'
7377 ;;
7378 m68k)
7379 # FIXME: we need at least 68020 code to build shared libraries, but
7380 # adding the `-m68020' flag to GCC prevents building anything better,
7381 # like `-m68040'.
7382 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7383 ;;
7384 esac
7385 ;;
7386
7387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7388 # PIC is the default for these OSes.
7389 ;;
7390
7391 mingw* | cygwin* | pw32* | os2* | cegcc*)
7392 # This hack is so that the source file can tell whether it is being
7393 # built for inclusion in a dll (and should export symbols for example).
7394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7395 # (--disable-auto-import) libraries
7396 lt_prog_compiler_pic='-DDLL_EXPORT'
7397 ;;
7398
7399 darwin* | rhapsody*)
7400 # PIC is the default on this platform
7401 # Common symbols not allowed in MH_DYLIB files
7402 lt_prog_compiler_pic='-fno-common'
7403 ;;
7404
7405 hpux*)
7406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7408 # sets the default TLS model and affects inlining.
7409 case $host_cpu in
7410 hppa*64*)
7411 # +Z the default
7412 ;;
7413 *)
7414 lt_prog_compiler_pic='-fPIC'
7415 ;;
7416 esac
7417 ;;
7418
7419 interix[3-9]*)
7420 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7421 # Instead, we relocate shared libraries at runtime.
7422 ;;
7423
7424 msdosdjgpp*)
7425 # Just because we use GCC doesn't mean we suddenly get shared libraries
7426 # on systems that don't support them.
7427 lt_prog_compiler_can_build_shared=no
7428 enable_shared=no
7429 ;;
7430
7431 *nto* | *qnx*)
7432 # QNX uses GNU C++, but need to define -shared option too, otherwise
7433 # it will coredump.
7434 lt_prog_compiler_pic='-fPIC -shared'
7435 ;;
7436
7437 sysv4*MP*)
7438 if test -d /usr/nec; then
7439 lt_prog_compiler_pic=-Kconform_pic
7440 fi
7441 ;;
7442
7443 *)
7444 lt_prog_compiler_pic='-fPIC'
7445 ;;
7446 esac
7447 else
7448 # PORTME Check for flag to pass linker flags through the system compiler.
7449 case $host_os in
7450 aix*)
7451 lt_prog_compiler_wl='-Wl,'
7452 if test "$host_cpu" = ia64; then
7453 # AIX 5 now supports IA64 processor
7454 lt_prog_compiler_static='-Bstatic'
7455 else
7456 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7457 fi
7458 ;;
7459
7460 mingw* | cygwin* | pw32* | os2* | cegcc*)
7461 # This hack is so that the source file can tell whether it is being
7462 # built for inclusion in a dll (and should export symbols for example).
7463 lt_prog_compiler_pic='-DDLL_EXPORT'
7464 ;;
7465
7466 hpux9* | hpux10* | hpux11*)
7467 lt_prog_compiler_wl='-Wl,'
7468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7469 # not for PA HP-UX.
7470 case $host_cpu in
7471 hppa*64*|ia64*)
7472 # +Z the default
7473 ;;
7474 *)
7475 lt_prog_compiler_pic='+Z'
7476 ;;
7477 esac
7478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7479 lt_prog_compiler_static='${wl}-a ${wl}archive'
7480 ;;
7481
7482 irix5* | irix6* | nonstopux*)
7483 lt_prog_compiler_wl='-Wl,'
7484 # PIC (with -KPIC) is the default.
7485 lt_prog_compiler_static='-non_shared'
7486 ;;
7487
7488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7489 case $cc_basename in
7490 # old Intel for x86_64 which still supported -KPIC.
7491 ecc*)
7492 lt_prog_compiler_wl='-Wl,'
7493 lt_prog_compiler_pic='-KPIC'
7494 lt_prog_compiler_static='-static'
7495 ;;
7496 # icc used to be incompatible with GCC.
7497 # ICC 10 doesn't accept -KPIC any more.
7498 icc* | ifort*)
7499 lt_prog_compiler_wl='-Wl,'
7500 lt_prog_compiler_pic='-fPIC'
7501 lt_prog_compiler_static='-static'
7502 ;;
7503 # Lahey Fortran 8.1.
7504 lf95*)
7505 lt_prog_compiler_wl='-Wl,'
7506 lt_prog_compiler_pic='--shared'
7507 lt_prog_compiler_static='--static'
7508 ;;
7509 pgcc* | pgf77* | pgf90* | pgf95*)
7510 # Portland Group compilers (*not* the Pentium gcc compiler,
7511 # which looks to be a dead project)
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-fpic'
7514 lt_prog_compiler_static='-Bstatic'
7515 ;;
7516 ccc*)
7517 lt_prog_compiler_wl='-Wl,'
7518 # All Alpha code is PIC.
7519 lt_prog_compiler_static='-non_shared'
7520 ;;
7521 xl*)
7522 # IBM XL C 8.0/Fortran 10.1 on PPC
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-qpic'
7525 lt_prog_compiler_static='-qstaticlink'
7526 ;;
7527 *)
7528 case `$CC -V 2>&1 | sed 5q` in
7529 *Sun\ C*)
7530 # Sun C 5.9
7531 lt_prog_compiler_pic='-KPIC'
7532 lt_prog_compiler_static='-Bstatic'
7533 lt_prog_compiler_wl='-Wl,'
7534 ;;
7535 *Sun\ F*)
7536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7537 lt_prog_compiler_pic='-KPIC'
7538 lt_prog_compiler_static='-Bstatic'
7539 lt_prog_compiler_wl=''
7540 ;;
7541 esac
7542 ;;
7543 esac
7544 ;;
7545
7546 newsos6)
7547 lt_prog_compiler_pic='-KPIC'
7548 lt_prog_compiler_static='-Bstatic'
7549 ;;
7550
7551 *nto* | *qnx*)
7552 # QNX uses GNU C++, but need to define -shared option too, otherwise
7553 # it will coredump.
7554 lt_prog_compiler_pic='-fPIC -shared'
7555 ;;
7556
7557 osf3* | osf4* | osf5*)
7558 lt_prog_compiler_wl='-Wl,'
7559 # All OSF/1 code is PIC.
7560 lt_prog_compiler_static='-non_shared'
7561 ;;
7562
7563 rdos*)
7564 lt_prog_compiler_static='-non_shared'
7565 ;;
7566
7567 solaris*)
7568 lt_prog_compiler_pic='-KPIC'
7569 lt_prog_compiler_static='-Bstatic'
7570 case $cc_basename in
7571 f77* | f90* | f95*)
7572 lt_prog_compiler_wl='-Qoption ld ';;
7573 *)
7574 lt_prog_compiler_wl='-Wl,';;
7575 esac
7576 ;;
7577
7578 sunos4*)
7579 lt_prog_compiler_wl='-Qoption ld '
7580 lt_prog_compiler_pic='-PIC'
7581 lt_prog_compiler_static='-Bstatic'
7582 ;;
7583
7584 sysv4 | sysv4.2uw2* | sysv4.3*)
7585 lt_prog_compiler_wl='-Wl,'
7586 lt_prog_compiler_pic='-KPIC'
7587 lt_prog_compiler_static='-Bstatic'
7588 ;;
7589
7590 sysv4*MP*)
7591 if test -d /usr/nec ;then
7592 lt_prog_compiler_pic='-Kconform_pic'
7593 lt_prog_compiler_static='-Bstatic'
7594 fi
7595 ;;
7596
7597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7598 lt_prog_compiler_wl='-Wl,'
7599 lt_prog_compiler_pic='-KPIC'
7600 lt_prog_compiler_static='-Bstatic'
7601 ;;
7602
7603 unicos*)
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_can_build_shared=no
7606 ;;
7607
7608 uts4*)
7609 lt_prog_compiler_pic='-pic'
7610 lt_prog_compiler_static='-Bstatic'
7611 ;;
7612
7613 *)
7614 lt_prog_compiler_can_build_shared=no
7615 ;;
7616 esac
7617 fi
7618
7619 case $host_os in
7620 # For platforms which do not support PIC, -DPIC is meaningless:
7621 *djgpp*)
7622 lt_prog_compiler_pic=
7623 ;;
7624 *)
7625 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7626 ;;
7627 esac
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7629 $as_echo "$lt_prog_compiler_pic" >&6; }
7630
7631
7632
7633
7634
7635
7636 #
7637 # Check to make sure the PIC flag actually works.
7638 #
7639 if test -n "$lt_prog_compiler_pic"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7641 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7642 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 lt_cv_prog_compiler_pic_works=no
7646 ac_outfile=conftest.$ac_objext
7647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7649 # Insert the option either (1) after the last *FLAGS variable, or
7650 # (2) before a word containing "conftest.", or (3) at the end.
7651 # Note that $ac_compile itself does not contain backslashes and begins
7652 # with a dollar sign (not a hyphen), so the echo should work correctly.
7653 # The option is referenced via a variable to avoid confusing sed.
7654 lt_compile=`echo "$ac_compile" | $SED \
7655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657 -e 's:$: $lt_compiler_flag:'`
7658 (eval echo "\"\$as_me:7658: $lt_compile\"" >&5)
7659 (eval "$lt_compile" 2>conftest.err)
7660 ac_status=$?
7661 cat conftest.err >&5
7662 echo "$as_me:7662: \$? = $ac_status" >&5
7663 if (exit $ac_status) && test -s "$ac_outfile"; then
7664 # The compiler can only warn and ignore the option if not recognized
7665 # So say no if there are warnings other than the usual output.
7666 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7669 lt_cv_prog_compiler_pic_works=yes
7670 fi
7671 fi
7672 $RM conftest*
7673
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7676 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7677
7678 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7679 case $lt_prog_compiler_pic in
7680 "" | " "*) ;;
7681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7682 esac
7683 else
7684 lt_prog_compiler_pic=
7685 lt_prog_compiler_can_build_shared=no
7686 fi
7687
7688 fi
7689
7690
7691
7692
7693
7694
7695 #
7696 # Check to make sure the static flag actually works.
7697 #
7698 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7700 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7701 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 lt_cv_prog_compiler_static_works=no
7705 save_LDFLAGS="$LDFLAGS"
7706 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7707 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7709 # The linker can only warn and ignore the option if not recognized
7710 # So say no if there are warnings
7711 if test -s conftest.err; then
7712 # Append any errors to the config.log.
7713 cat conftest.err 1>&5
7714 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7716 if diff conftest.exp conftest.er2 >/dev/null; then
7717 lt_cv_prog_compiler_static_works=yes
7718 fi
7719 else
7720 lt_cv_prog_compiler_static_works=yes
7721 fi
7722 fi
7723 $RM -r conftest*
7724 LDFLAGS="$save_LDFLAGS"
7725
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7728 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7729
7730 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7731 :
7732 else
7733 lt_prog_compiler_static=
7734 fi
7735
7736
7737
7738
7739
7740
7741
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7744 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 lt_cv_prog_compiler_c_o=no
7748 $RM -r conftest 2>/dev/null
7749 mkdir conftest
7750 cd conftest
7751 mkdir out
7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753
7754 lt_compiler_flag="-o out/conftest2.$ac_objext"
7755 # Insert the option either (1) after the last *FLAGS variable, or
7756 # (2) before a word containing "conftest.", or (3) at the end.
7757 # Note that $ac_compile itself does not contain backslashes and begins
7758 # with a dollar sign (not a hyphen), so the echo should work correctly.
7759 lt_compile=`echo "$ac_compile" | $SED \
7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762 -e 's:$: $lt_compiler_flag:'`
7763 (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764 (eval "$lt_compile" 2>out/conftest.err)
7765 ac_status=$?
7766 cat out/conftest.err >&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7769 then
7770 # The compiler can only warn and ignore the option if not recognized
7771 # So say no if there are warnings
7772 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7775 lt_cv_prog_compiler_c_o=yes
7776 fi
7777 fi
7778 chmod u+w . 2>&5
7779 $RM conftest*
7780 # SGI C++ compiler will create directory out/ii_files/ for
7781 # template instantiation
7782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7783 $RM out/* && rmdir out
7784 cd ..
7785 $RM -r conftest
7786 $RM conftest*
7787
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7790 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7791
7792
7793
7794
7795
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7799 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 lt_cv_prog_compiler_c_o=no
7803 $RM -r conftest 2>/dev/null
7804 mkdir conftest
7805 cd conftest
7806 mkdir out
7807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
7809 lt_compiler_flag="-o out/conftest2.$ac_objext"
7810 # Insert the option either (1) after the last *FLAGS variable, or
7811 # (2) before a word containing "conftest.", or (3) at the end.
7812 # Note that $ac_compile itself does not contain backslashes and begins
7813 # with a dollar sign (not a hyphen), so the echo should work correctly.
7814 lt_compile=`echo "$ac_compile" | $SED \
7815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7817 -e 's:$: $lt_compiler_flag:'`
7818 (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
7819 (eval "$lt_compile" 2>out/conftest.err)
7820 ac_status=$?
7821 cat out/conftest.err >&5
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824 then
7825 # The compiler can only warn and ignore the option if not recognized
7826 # So say no if there are warnings
7827 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7830 lt_cv_prog_compiler_c_o=yes
7831 fi
7832 fi
7833 chmod u+w . 2>&5
7834 $RM conftest*
7835 # SGI C++ compiler will create directory out/ii_files/ for
7836 # template instantiation
7837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7838 $RM out/* && rmdir out
7839 cd ..
7840 $RM -r conftest
7841 $RM conftest*
7842
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7845 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7846
7847
7848
7849
7850 hard_links="nottested"
7851 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7852 # do not overwrite the value of need_locks provided by the user
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7854 $as_echo_n "checking if we can lock with hard links... " >&6; }
7855 hard_links=yes
7856 $RM conftest*
7857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7858 touch conftest.a
7859 ln conftest.a conftest.b 2>&5 || hard_links=no
7860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7862 $as_echo "$hard_links" >&6; }
7863 if test "$hard_links" = no; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7865 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7866 need_locks=warn
7867 fi
7868 else
7869 need_locks=no
7870 fi
7871
7872
7873
7874
7875
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7878 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7879
7880 runpath_var=
7881 allow_undefined_flag=
7882 always_export_symbols=no
7883 archive_cmds=
7884 archive_expsym_cmds=
7885 compiler_needs_object=no
7886 enable_shared_with_static_runtimes=no
7887 export_dynamic_flag_spec=
7888 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7889 hardcode_automatic=no
7890 hardcode_direct=no
7891 hardcode_direct_absolute=no
7892 hardcode_libdir_flag_spec=
7893 hardcode_libdir_flag_spec_ld=
7894 hardcode_libdir_separator=
7895 hardcode_minus_L=no
7896 hardcode_shlibpath_var=unsupported
7897 inherit_rpath=no
7898 link_all_deplibs=unknown
7899 module_cmds=
7900 module_expsym_cmds=
7901 old_archive_from_new_cmds=
7902 old_archive_from_expsyms_cmds=
7903 thread_safe_flag_spec=
7904 whole_archive_flag_spec=
7905 # include_expsyms should be a list of space-separated symbols to be *always*
7906 # included in the symbol list
7907 include_expsyms=
7908 # exclude_expsyms can be an extended regexp of symbols to exclude
7909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7911 # as well as any symbol that contains `d'.
7912 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7914 # platforms (ab)use it in PIC code, but their linkers get confused if
7915 # the symbol is explicitly referenced. Since portable code cannot
7916 # rely on this symbol name, it's probably fine to never include it in
7917 # preloaded symbol tables.
7918 # Exclude shared library initialization/finalization symbols.
7919 extract_expsyms_cmds=
7920
7921 case $host_os in
7922 cygwin* | mingw* | pw32* | cegcc*)
7923 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7924 # When not using gcc, we currently assume that we are using
7925 # Microsoft Visual C++.
7926 if test "$GCC" != yes; then
7927 with_gnu_ld=no
7928 fi
7929 ;;
7930 interix*)
7931 # we just hope/assume this is gcc and not c89 (= MSVC++)
7932 with_gnu_ld=yes
7933 ;;
7934 openbsd*)
7935 with_gnu_ld=no
7936 ;;
7937 linux* | k*bsd*-gnu)
7938 link_all_deplibs=no
7939 ;;
7940 esac
7941
7942 ld_shlibs=yes
7943 if test "$with_gnu_ld" = yes; then
7944 # If archive_cmds runs LD, not CC, wlarc should be empty
7945 wlarc='${wl}'
7946
7947 # Set some defaults for GNU ld with shared library support. These
7948 # are reset later if shared libraries are not supported. Putting them
7949 # here allows them to be overridden if necessary.
7950 runpath_var=LD_RUN_PATH
7951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7952 export_dynamic_flag_spec='${wl}--export-dynamic'
7953 # ancient GNU ld didn't support --whole-archive et. al.
7954 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7955 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7956 else
7957 whole_archive_flag_spec=
7958 fi
7959 supports_anon_versioning=no
7960 case `$LD -v 2>&1` in
7961 *GNU\ gold*) supports_anon_versioning=yes ;;
7962 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7963 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7964 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7965 *\ 2.11.*) ;; # other 2.11 versions
7966 *) supports_anon_versioning=yes ;;
7967 esac
7968
7969 # See if GNU ld supports shared libraries.
7970 case $host_os in
7971 aix[3-9]*)
7972 # On AIX/PPC, the GNU linker is very broken
7973 if test "$host_cpu" != ia64; then
7974 ld_shlibs=no
7975 cat <<_LT_EOF 1>&2
7976
7977 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7978 *** to be unable to reliably create shared libraries on AIX.
7979 *** Therefore, libtool is disabling shared libraries support. If you
7980 *** really care for shared libraries, you may want to modify your PATH
7981 *** so that a non-GNU linker is found, and then restart.
7982
7983 _LT_EOF
7984 fi
7985 ;;
7986
7987 amigaos*)
7988 case $host_cpu in
7989 powerpc)
7990 # see comment about AmigaOS4 .so support
7991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992 archive_expsym_cmds=''
7993 ;;
7994 m68k)
7995 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)'
7996 hardcode_libdir_flag_spec='-L$libdir'
7997 hardcode_minus_L=yes
7998 ;;
7999 esac
8000 ;;
8001
8002 beos*)
8003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8004 allow_undefined_flag=unsupported
8005 # Joseph Beckenbach <[email protected]> says some releases of gcc
8006 # support --undefined. This deserves some investigation. FIXME
8007 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8008 else
8009 ld_shlibs=no
8010 fi
8011 ;;
8012
8013 cygwin* | mingw* | pw32* | cegcc*)
8014 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8015 # as there is no search path for DLLs.
8016 hardcode_libdir_flag_spec='-L$libdir'
8017 allow_undefined_flag=unsupported
8018 always_export_symbols=no
8019 enable_shared_with_static_runtimes=yes
8020 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8021
8022 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8024 # If the export-symbols file already is a .def file (1st line
8025 # is EXPORTS), use it as is; otherwise, prepend...
8026 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8027 cp $export_symbols $output_objdir/$soname.def;
8028 else
8029 echo EXPORTS > $output_objdir/$soname.def;
8030 cat $export_symbols >> $output_objdir/$soname.def;
8031 fi~
8032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8033 else
8034 ld_shlibs=no
8035 fi
8036 ;;
8037
8038 interix[3-9]*)
8039 hardcode_direct=no
8040 hardcode_shlibpath_var=no
8041 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8042 export_dynamic_flag_spec='${wl}-E'
8043 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8044 # Instead, shared libraries are loaded at an image base (0x10000000 by
8045 # default) and relocated if they conflict, which is a slow very memory
8046 # consuming and fragmenting process. To avoid this, we pick a random,
8047 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8048 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8049 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8050 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'
8051 ;;
8052
8053 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8054 tmp_diet=no
8055 if test "$host_os" = linux-dietlibc; then
8056 case $cc_basename in
8057 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8058 esac
8059 fi
8060 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8061 && test "$tmp_diet" = no
8062 then
8063 tmp_addflag=
8064 tmp_sharedflag='-shared'
8065 case $cc_basename,$host_cpu in
8066 pgcc*) # Portland Group C compiler
8067 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8068 tmp_addflag=' $pic_flag'
8069 ;;
8070 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8071 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8072 tmp_addflag=' $pic_flag -Mnomain' ;;
8073 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8074 tmp_addflag=' -i_dynamic' ;;
8075 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8076 tmp_addflag=' -i_dynamic -nofor_main' ;;
8077 ifc* | ifort*) # Intel Fortran compiler
8078 tmp_addflag=' -nofor_main' ;;
8079 lf95*) # Lahey Fortran 8.1
8080 whole_archive_flag_spec=
8081 tmp_sharedflag='--shared' ;;
8082 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8083 tmp_sharedflag='-qmkshrobj'
8084 tmp_addflag= ;;
8085 esac
8086 case `$CC -V 2>&1 | sed 5q` in
8087 *Sun\ C*) # Sun C 5.9
8088 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8089 compiler_needs_object=yes
8090 tmp_sharedflag='-G' ;;
8091 *Sun\ F*) # Sun Fortran 8.3
8092 tmp_sharedflag='-G' ;;
8093 esac
8094 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8095
8096 if test "x$supports_anon_versioning" = xyes; then
8097 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8099 echo "local: *; };" >> $output_objdir/$libname.ver~
8100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8101 fi
8102
8103 case $cc_basename in
8104 xlf*)
8105 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8106 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8107 hardcode_libdir_flag_spec=
8108 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8109 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8110 if test "x$supports_anon_versioning" = xyes; then
8111 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8112 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8113 echo "local: *; };" >> $output_objdir/$libname.ver~
8114 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8115 fi
8116 ;;
8117 esac
8118 else
8119 ld_shlibs=no
8120 fi
8121 ;;
8122
8123 netbsd* | netbsdelf*-gnu)
8124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8125 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8126 wlarc=
8127 else
8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8130 fi
8131 ;;
8132
8133 solaris*)
8134 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8135 ld_shlibs=no
8136 cat <<_LT_EOF 1>&2
8137
8138 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8139 *** create shared libraries on Solaris systems. Therefore, libtool
8140 *** is disabling shared libraries support. We urge you to upgrade GNU
8141 *** binutils to release 2.9.1 or newer. Another option is to modify
8142 *** your PATH or compiler configuration so that the native linker is
8143 *** used, and then restart.
8144
8145 _LT_EOF
8146 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8149 else
8150 ld_shlibs=no
8151 fi
8152 ;;
8153
8154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8155 case `$LD -v 2>&1` in
8156 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8157 ld_shlibs=no
8158 cat <<_LT_EOF 1>&2
8159
8160 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8161 *** reliably create shared libraries on SCO systems. Therefore, libtool
8162 *** is disabling shared libraries support. We urge you to upgrade GNU
8163 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8164 *** your PATH or compiler configuration so that the native linker is
8165 *** used, and then restart.
8166
8167 _LT_EOF
8168 ;;
8169 *)
8170 # For security reasons, it is highly recommended that you always
8171 # use absolute paths for naming shared libraries, and exclude the
8172 # DT_RUNPATH tag from executables and libraries. But doing so
8173 # requires that you compile everything twice, which is a pain.
8174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8178 else
8179 ld_shlibs=no
8180 fi
8181 ;;
8182 esac
8183 ;;
8184
8185 sunos4*)
8186 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8187 wlarc=
8188 hardcode_direct=yes
8189 hardcode_shlibpath_var=no
8190 ;;
8191
8192 *)
8193 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8196 else
8197 ld_shlibs=no
8198 fi
8199 ;;
8200 esac
8201
8202 if test "$ld_shlibs" = no; then
8203 runpath_var=
8204 hardcode_libdir_flag_spec=
8205 export_dynamic_flag_spec=
8206 whole_archive_flag_spec=
8207 fi
8208 else
8209 # PORTME fill in a description of your system's linker (not GNU ld)
8210 case $host_os in
8211 aix3*)
8212 allow_undefined_flag=unsupported
8213 always_export_symbols=yes
8214 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'
8215 # Note: this linker hardcodes the directories in LIBPATH if there
8216 # are no directories specified by -L.
8217 hardcode_minus_L=yes
8218 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8219 # Neither direct hardcoding nor static linking is supported with a
8220 # broken collect2.
8221 hardcode_direct=unsupported
8222 fi
8223 ;;
8224
8225 aix[4-9]*)
8226 if test "$host_cpu" = ia64; then
8227 # On IA64, the linker does run time linking by default, so we don't
8228 # have to do anything special.
8229 aix_use_runtimelinking=no
8230 exp_sym_flag='-Bexport'
8231 no_entry_flag=""
8232 else
8233 # If we're using GNU nm, then we don't want the "-C" option.
8234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8235 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8236 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8237 else
8238 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'
8239 fi
8240 aix_use_runtimelinking=no
8241
8242 # Test if we are trying to use run time linking or normal
8243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8244 # need to do runtime linking.
8245 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8246 for ld_flag in $LDFLAGS; do
8247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8248 aix_use_runtimelinking=yes
8249 break
8250 fi
8251 done
8252 ;;
8253 esac
8254
8255 exp_sym_flag='-bexport'
8256 no_entry_flag='-bnoentry'
8257 fi
8258
8259 # When large executables or shared objects are built, AIX ld can
8260 # have problems creating the table of contents. If linking a library
8261 # or program results in "error TOC overflow" add -mminimal-toc to
8262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8264
8265 archive_cmds=''
8266 hardcode_direct=yes
8267 hardcode_direct_absolute=yes
8268 hardcode_libdir_separator=':'
8269 link_all_deplibs=yes
8270 file_list_spec='${wl}-f,'
8271
8272 if test "$GCC" = yes; then
8273 case $host_os in aix4.[012]|aix4.[012].*)
8274 # We only want to do this on AIX 4.2 and lower, the check
8275 # below for broken collect2 doesn't work under 4.3+
8276 collect2name=`${CC} -print-prog-name=collect2`
8277 if test -f "$collect2name" &&
8278 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8279 then
8280 # We have reworked collect2
8281 :
8282 else
8283 # We have old collect2
8284 hardcode_direct=unsupported
8285 # It fails to find uninstalled libraries when the uninstalled
8286 # path is not listed in the libpath. Setting hardcode_minus_L
8287 # to unsupported forces relinking
8288 hardcode_minus_L=yes
8289 hardcode_libdir_flag_spec='-L$libdir'
8290 hardcode_libdir_separator=
8291 fi
8292 ;;
8293 esac
8294 shared_flag='-shared'
8295 if test "$aix_use_runtimelinking" = yes; then
8296 shared_flag="$shared_flag "'${wl}-G'
8297 fi
8298 link_all_deplibs=no
8299 else
8300 # not using gcc
8301 if test "$host_cpu" = ia64; then
8302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8303 # chokes on -Wl,-G. The following line is correct:
8304 shared_flag='-G'
8305 else
8306 if test "$aix_use_runtimelinking" = yes; then
8307 shared_flag='${wl}-G'
8308 else
8309 shared_flag='${wl}-bM:SRE'
8310 fi
8311 fi
8312 fi
8313
8314 export_dynamic_flag_spec='${wl}-bexpall'
8315 # It seems that -bexpall does not export symbols beginning with
8316 # underscore (_), so it is better to generate a list of symbols to export.
8317 always_export_symbols=yes
8318 if test "$aix_use_runtimelinking" = yes; then
8319 # Warning - without using the other runtime loading flags (-brtl),
8320 # -berok will link without error, but may produce a broken library.
8321 allow_undefined_flag='-berok'
8322 # Determine the default libpath from the value encoded in an
8323 # empty executable.
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326
8327 int
8328 main ()
8329 {
8330
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"; then :
8336
8337 lt_aix_libpath_sed='
8338 /Import File Strings/,/^$/ {
8339 /^0/ {
8340 s/^0 *\(.*\)$/\1/
8341 p
8342 }
8343 }'
8344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8345 # Check for a 64-bit object if we didn't find anything.
8346 if test -z "$aix_libpath"; then
8347 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8348 fi
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8353
8354 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8355 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8356 else
8357 if test "$host_cpu" = ia64; then
8358 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8359 allow_undefined_flag="-z nodefs"
8360 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"
8361 else
8362 # Determine the default libpath from the value encoded in an
8363 # empty executable.
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366
8367 int
8368 main ()
8369 {
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376
8377 lt_aix_libpath_sed='
8378 /Import File Strings/,/^$/ {
8379 /^0/ {
8380 s/^0 *\(.*\)$/\1/
8381 p
8382 }
8383 }'
8384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385 # Check for a 64-bit object if we didn't find anything.
8386 if test -z "$aix_libpath"; then
8387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8388 fi
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext conftest.$ac_ext
8392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8393
8394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8395 # Warning - without using the other run time loading flags,
8396 # -berok will link without error, but may produce a broken library.
8397 no_undefined_flag=' ${wl}-bernotok'
8398 allow_undefined_flag=' ${wl}-berok'
8399 # Exported symbols can be pulled into shared objects from archives
8400 whole_archive_flag_spec='$convenience'
8401 archive_cmds_need_lc=yes
8402 # This is similar to how AIX traditionally builds its shared libraries.
8403 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'
8404 fi
8405 fi
8406 ;;
8407
8408 amigaos*)
8409 case $host_cpu in
8410 powerpc)
8411 # see comment about AmigaOS4 .so support
8412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413 archive_expsym_cmds=''
8414 ;;
8415 m68k)
8416 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)'
8417 hardcode_libdir_flag_spec='-L$libdir'
8418 hardcode_minus_L=yes
8419 ;;
8420 esac
8421 ;;
8422
8423 bsdi[45]*)
8424 export_dynamic_flag_spec=-rdynamic
8425 ;;
8426
8427 cygwin* | mingw* | pw32* | cegcc*)
8428 # When not using gcc, we currently assume that we are using
8429 # Microsoft Visual C++.
8430 # hardcode_libdir_flag_spec is actually meaningless, as there is
8431 # no search path for DLLs.
8432 hardcode_libdir_flag_spec=' '
8433 allow_undefined_flag=unsupported
8434 # Tell ltmain to make .lib files, not .a files.
8435 libext=lib
8436 # Tell ltmain to make .dll files, not .so files.
8437 shrext_cmds=".dll"
8438 # FIXME: Setting linknames here is a bad hack.
8439 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8440 # The linker will automatically build a .lib file if we build a DLL.
8441 old_archive_from_new_cmds='true'
8442 # FIXME: Should let the user specify the lib program.
8443 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8444 fix_srcfile_path='`cygpath -w "$srcfile"`'
8445 enable_shared_with_static_runtimes=yes
8446 ;;
8447
8448 darwin* | rhapsody*)
8449
8450
8451 archive_cmds_need_lc=no
8452 hardcode_direct=no
8453 hardcode_automatic=yes
8454 hardcode_shlibpath_var=unsupported
8455 whole_archive_flag_spec=''
8456 link_all_deplibs=yes
8457 allow_undefined_flag="$_lt_dar_allow_undefined"
8458 case $cc_basename in
8459 ifort*) _lt_dar_can_shared=yes ;;
8460 *) _lt_dar_can_shared=$GCC ;;
8461 esac
8462 if test "$_lt_dar_can_shared" = "yes"; then
8463 output_verbose_link_cmd=echo
8464 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8465 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8466 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}"
8467 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}"
8468
8469 else
8470 ld_shlibs=no
8471 fi
8472
8473 ;;
8474
8475 dgux*)
8476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec='-L$libdir'
8478 hardcode_shlibpath_var=no
8479 ;;
8480
8481 freebsd1*)
8482 ld_shlibs=no
8483 ;;
8484
8485 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8486 # support. Future versions do this automatically, but an explicit c++rt0.o
8487 # does not break anything, and helps significantly (at the cost of a little
8488 # extra space).
8489 freebsd2.2*)
8490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8491 hardcode_libdir_flag_spec='-R$libdir'
8492 hardcode_direct=yes
8493 hardcode_shlibpath_var=no
8494 ;;
8495
8496 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8497 freebsd2*)
8498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8499 hardcode_direct=yes
8500 hardcode_minus_L=yes
8501 hardcode_shlibpath_var=no
8502 ;;
8503
8504 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8505 freebsd* | dragonfly*)
8506 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8507 hardcode_libdir_flag_spec='-R$libdir'
8508 hardcode_direct=yes
8509 hardcode_shlibpath_var=no
8510 ;;
8511
8512 hpux9*)
8513 if test "$GCC" = yes; then
8514 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8515 else
8516 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'
8517 fi
8518 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8519 hardcode_libdir_separator=:
8520 hardcode_direct=yes
8521
8522 # hardcode_minus_L: Not really in the search PATH,
8523 # but as the default location of the library.
8524 hardcode_minus_L=yes
8525 export_dynamic_flag_spec='${wl}-E'
8526 ;;
8527
8528 hpux10*)
8529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8530 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8531 else
8532 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8533 fi
8534 if test "$with_gnu_ld" = no; then
8535 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8536 hardcode_libdir_flag_spec_ld='+b $libdir'
8537 hardcode_libdir_separator=:
8538 hardcode_direct=yes
8539 hardcode_direct_absolute=yes
8540 export_dynamic_flag_spec='${wl}-E'
8541 # hardcode_minus_L: Not really in the search PATH,
8542 # but as the default location of the library.
8543 hardcode_minus_L=yes
8544 fi
8545 ;;
8546
8547 hpux11*)
8548 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8549 case $host_cpu in
8550 hppa*64*)
8551 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8552 ;;
8553 ia64*)
8554 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8555 ;;
8556 *)
8557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8558 ;;
8559 esac
8560 else
8561 case $host_cpu in
8562 hppa*64*)
8563 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 ;;
8565 ia64*)
8566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8567 ;;
8568 *)
8569 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8570 ;;
8571 esac
8572 fi
8573 if test "$with_gnu_ld" = no; then
8574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8575 hardcode_libdir_separator=:
8576
8577 case $host_cpu in
8578 hppa*64*|ia64*)
8579 hardcode_direct=no
8580 hardcode_shlibpath_var=no
8581 ;;
8582 *)
8583 hardcode_direct=yes
8584 hardcode_direct_absolute=yes
8585 export_dynamic_flag_spec='${wl}-E'
8586
8587 # hardcode_minus_L: Not really in the search PATH,
8588 # but as the default location of the library.
8589 hardcode_minus_L=yes
8590 ;;
8591 esac
8592 fi
8593 ;;
8594
8595 irix5* | irix6* | nonstopux*)
8596 if test "$GCC" = yes; then
8597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8598 # Try to use the -exported_symbol ld option, if it does not
8599 # work, assume that -exports_file does not work either and
8600 # implicitly export all symbols.
8601 save_LDFLAGS="$LDFLAGS"
8602 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int foo(void) {}
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8609
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613 LDFLAGS="$save_LDFLAGS"
8614 else
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8617 fi
8618 archive_cmds_need_lc='no'
8619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620 hardcode_libdir_separator=:
8621 inherit_rpath=yes
8622 link_all_deplibs=yes
8623 ;;
8624
8625 netbsd* | netbsdelf*-gnu)
8626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8628 else
8629 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8630 fi
8631 hardcode_libdir_flag_spec='-R$libdir'
8632 hardcode_direct=yes
8633 hardcode_shlibpath_var=no
8634 ;;
8635
8636 newsos6)
8637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_direct=yes
8639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8640 hardcode_libdir_separator=:
8641 hardcode_shlibpath_var=no
8642 ;;
8643
8644 *nto* | *qnx*)
8645 ;;
8646
8647 openbsd*)
8648 if test -f /usr/libexec/ld.so; then
8649 hardcode_direct=yes
8650 hardcode_shlibpath_var=no
8651 hardcode_direct_absolute=yes
8652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8654 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8656 export_dynamic_flag_spec='${wl}-E'
8657 else
8658 case $host_os in
8659 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_libdir_flag_spec='-R$libdir'
8662 ;;
8663 *)
8664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666 ;;
8667 esac
8668 fi
8669 else
8670 ld_shlibs=no
8671 fi
8672 ;;
8673
8674 os2*)
8675 hardcode_libdir_flag_spec='-L$libdir'
8676 hardcode_minus_L=yes
8677 allow_undefined_flag=unsupported
8678 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'
8679 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8680 ;;
8681
8682 osf3*)
8683 if test "$GCC" = yes; then
8684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8685 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8686 else
8687 allow_undefined_flag=' -expect_unresolved \*'
8688 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8689 fi
8690 archive_cmds_need_lc='no'
8691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8692 hardcode_libdir_separator=:
8693 ;;
8694
8695 osf4* | osf5*) # as osf3* with the addition of -msym flag
8696 if test "$GCC" = yes; then
8697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8698 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 else
8701 allow_undefined_flag=' -expect_unresolved \*'
8702 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8703 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~
8704 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8705
8706 # Both c and cxx compiler support -rpath directly
8707 hardcode_libdir_flag_spec='-rpath $libdir'
8708 fi
8709 archive_cmds_need_lc='no'
8710 hardcode_libdir_separator=:
8711 ;;
8712
8713 solaris*)
8714 no_undefined_flag=' -z defs'
8715 if test "$GCC" = yes; then
8716 wlarc='${wl}'
8717 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8719 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8720 else
8721 case `$CC -V 2>&1` in
8722 *"Compilers 5.0"*)
8723 wlarc=''
8724 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8727 ;;
8728 *)
8729 wlarc='${wl}'
8730 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8732 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8733 ;;
8734 esac
8735 fi
8736 hardcode_libdir_flag_spec='-R$libdir'
8737 hardcode_shlibpath_var=no
8738 case $host_os in
8739 solaris2.[0-5] | solaris2.[0-5].*) ;;
8740 *)
8741 # The compiler driver will combine and reorder linker options,
8742 # but understands `-z linker_flag'. GCC discards it without `$wl',
8743 # but is careful enough not to reorder.
8744 # Supported since Solaris 2.6 (maybe 2.5.1?)
8745 if test "$GCC" = yes; then
8746 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8747 else
8748 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8749 fi
8750 ;;
8751 esac
8752 link_all_deplibs=yes
8753 ;;
8754
8755 sunos4*)
8756 if test "x$host_vendor" = xsequent; then
8757 # Use $CC to link under sequent, because it throws in some extra .o
8758 # files that make .init and .fini sections work.
8759 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8760 else
8761 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8762 fi
8763 hardcode_libdir_flag_spec='-L$libdir'
8764 hardcode_direct=yes
8765 hardcode_minus_L=yes
8766 hardcode_shlibpath_var=no
8767 ;;
8768
8769 sysv4)
8770 case $host_vendor in
8771 sni)
8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_direct=yes # is this really true???
8774 ;;
8775 siemens)
8776 ## LD is ld it makes a PLAMLIB
8777 ## CC just makes a GrossModule.
8778 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8779 reload_cmds='$CC -r -o $output$reload_objs'
8780 hardcode_direct=no
8781 ;;
8782 motorola)
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8785 ;;
8786 esac
8787 runpath_var='LD_RUN_PATH'
8788 hardcode_shlibpath_var=no
8789 ;;
8790
8791 sysv4.3*)
8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_shlibpath_var=no
8794 export_dynamic_flag_spec='-Bexport'
8795 ;;
8796
8797 sysv4*MP*)
8798 if test -d /usr/nec; then
8799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_shlibpath_var=no
8801 runpath_var=LD_RUN_PATH
8802 hardcode_runpath_var=yes
8803 ld_shlibs=yes
8804 fi
8805 ;;
8806
8807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8808 no_undefined_flag='${wl}-z,text'
8809 archive_cmds_need_lc=no
8810 hardcode_shlibpath_var=no
8811 runpath_var='LD_RUN_PATH'
8812
8813 if test "$GCC" = yes; then
8814 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 else
8817 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 fi
8820 ;;
8821
8822 sysv5* | sco3.2v5* | sco5v6*)
8823 # Note: We can NOT use -z defs as we might desire, because we do not
8824 # link with -lc, and that would cause any symbols used from libc to
8825 # always be unresolved, which means just about no library would
8826 # ever link correctly. If we're not using GNU ld we use -z text
8827 # though, which does catch some bad symbols but isn't as heavy-handed
8828 # as -z defs.
8829 no_undefined_flag='${wl}-z,text'
8830 allow_undefined_flag='${wl}-z,nodefs'
8831 archive_cmds_need_lc=no
8832 hardcode_shlibpath_var=no
8833 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8834 hardcode_libdir_separator=':'
8835 link_all_deplibs=yes
8836 export_dynamic_flag_spec='${wl}-Bexport'
8837 runpath_var='LD_RUN_PATH'
8838
8839 if test "$GCC" = yes; then
8840 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 else
8843 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 fi
8846 ;;
8847
8848 uts4*)
8849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8850 hardcode_libdir_flag_spec='-L$libdir'
8851 hardcode_shlibpath_var=no
8852 ;;
8853
8854 *)
8855 ld_shlibs=no
8856 ;;
8857 esac
8858
8859 if test x$host_vendor = xsni; then
8860 case $host in
8861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8862 export_dynamic_flag_spec='${wl}-Blargedynsym'
8863 ;;
8864 esac
8865 fi
8866 fi
8867
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8869 $as_echo "$ld_shlibs" >&6; }
8870 test "$ld_shlibs" = no && can_build_shared=no
8871
8872 with_gnu_ld=$with_gnu_ld
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888 #
8889 # Do we need to explicitly link libc?
8890 #
8891 case "x$archive_cmds_need_lc" in
8892 x|xyes)
8893 # Assume -lc should be added
8894 archive_cmds_need_lc=yes
8895
8896 if test "$enable_shared" = yes && test "$GCC" = yes; then
8897 case $archive_cmds in
8898 *'~'*)
8899 # FIXME: we may have to deal with multi-command sequences.
8900 ;;
8901 '$CC '*)
8902 # Test whether the compiler implicitly links with -lc since on some
8903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8904 # to ld, don't add -lc before -lgcc.
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8906 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8907 $RM conftest*
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909
8910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8911 (eval $ac_compile) 2>&5
8912 ac_status=$?
8913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8914 test $ac_status = 0; } 2>conftest.err; then
8915 soname=conftest
8916 lib=conftest
8917 libobjs=conftest.$ac_objext
8918 deplibs=
8919 wl=$lt_prog_compiler_wl
8920 pic_flag=$lt_prog_compiler_pic
8921 compiler_flags=-v
8922 linker_flags=-v
8923 verstring=
8924 output_objdir=.
8925 libname=conftest
8926 lt_save_allow_undefined_flag=$allow_undefined_flag
8927 allow_undefined_flag=
8928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8929 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8930 ac_status=$?
8931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8932 test $ac_status = 0; }
8933 then
8934 archive_cmds_need_lc=no
8935 else
8936 archive_cmds_need_lc=yes
8937 fi
8938 allow_undefined_flag=$lt_save_allow_undefined_flag
8939 else
8940 cat conftest.err 1>&5
8941 fi
8942 $RM conftest*
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8944 $as_echo "$archive_cmds_need_lc" >&6; }
8945 ;;
8946 esac
8947 fi
8948 ;;
8949 esac
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9108 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9109
9110 if test "$GCC" = yes; then
9111 case $host_os in
9112 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9113 *) lt_awk_arg="/^libraries:/" ;;
9114 esac
9115 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9116 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9117 # if the path contains ";" then we assume it to be the separator
9118 # otherwise default to the standard path separator (i.e. ":") - it is
9119 # assumed that no part of a normal pathname contains ";" but that should
9120 # okay in the real world where ";" in dirpaths is itself problematic.
9121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9122 else
9123 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9124 fi
9125 # Ok, now we have the path, separated by spaces, we can step through it
9126 # and add multilib dir if necessary.
9127 lt_tmp_lt_search_path_spec=
9128 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9129 for lt_sys_path in $lt_search_path_spec; do
9130 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9132 else
9133 test -d "$lt_sys_path" && \
9134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9135 fi
9136 done
9137 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9138 BEGIN {RS=" "; FS="/|\n";} {
9139 lt_foo="";
9140 lt_count=0;
9141 for (lt_i = NF; lt_i > 0; lt_i--) {
9142 if ($lt_i != "" && $lt_i != ".") {
9143 if ($lt_i == "..") {
9144 lt_count++;
9145 } else {
9146 if (lt_count == 0) {
9147 lt_foo="/" $lt_i lt_foo;
9148 } else {
9149 lt_count--;
9150 }
9151 }
9152 }
9153 }
9154 if (lt_foo != "") { lt_freq[lt_foo]++; }
9155 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9156 }'`
9157 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9158 else
9159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9160 fi
9161 library_names_spec=
9162 libname_spec='lib$name'
9163 soname_spec=
9164 shrext_cmds=".so"
9165 postinstall_cmds=
9166 postuninstall_cmds=
9167 finish_cmds=
9168 finish_eval=
9169 shlibpath_var=
9170 shlibpath_overrides_runpath=unknown
9171 version_type=none
9172 dynamic_linker="$host_os ld.so"
9173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9174 need_lib_prefix=unknown
9175 hardcode_into_libs=no
9176
9177 # when you set need_version to no, make sure it does not cause -set_version
9178 # flags to be left without arguments
9179 need_version=unknown
9180
9181 case $host_os in
9182 aix3*)
9183 version_type=linux
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9185 shlibpath_var=LIBPATH
9186
9187 # AIX 3 has no versioning support, so we append a major version to the name.
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 ;;
9190
9191 aix[4-9]*)
9192 version_type=linux
9193 need_lib_prefix=no
9194 need_version=no
9195 hardcode_into_libs=yes
9196 if test "$host_cpu" = ia64; then
9197 # AIX 5 supports IA64
9198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 else
9201 # With GCC up to 2.95.x, collect2 would create an import file
9202 # for dependence libraries. The import file would start with
9203 # the line `#! .'. This would cause the generated library to
9204 # depend on `.', always an invalid library. This was fixed in
9205 # development snapshots of GCC prior to 3.0.
9206 case $host_os in
9207 aix4 | aix4.[01] | aix4.[01].*)
9208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9209 echo ' yes '
9210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9211 :
9212 else
9213 can_build_shared=no
9214 fi
9215 ;;
9216 esac
9217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9218 # soname into executable. Probably we can add versioning support to
9219 # collect2, so additional links can be useful in future.
9220 if test "$aix_use_runtimelinking" = yes; then
9221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9222 # instead of lib<name>.a to let people know that these are not
9223 # typical AIX shared libraries.
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 else
9226 # We preserve .a as extension for shared libraries through AIX4.2
9227 # and later when we are not doing run time linking.
9228 library_names_spec='${libname}${release}.a $libname.a'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 fi
9231 shlibpath_var=LIBPATH
9232 fi
9233 ;;
9234
9235 amigaos*)
9236 case $host_cpu in
9237 powerpc)
9238 # Since July 2007 AmigaOS4 officially supports .so libraries.
9239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 ;;
9242 m68k)
9243 library_names_spec='$libname.ixlibrary $libname.a'
9244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9245 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9246 ;;
9247 esac
9248 ;;
9249
9250 beos*)
9251 library_names_spec='${libname}${shared_ext}'
9252 dynamic_linker="$host_os ld.so"
9253 shlibpath_var=LIBRARY_PATH
9254 ;;
9255
9256 bsdi[45]*)
9257 version_type=linux
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9265 # the default ld.so.conf also contains /usr/contrib/lib and
9266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9267 # libtool to hard-code these into programs
9268 ;;
9269
9270 cygwin* | mingw* | pw32* | cegcc*)
9271 version_type=windows
9272 shrext_cmds=".dll"
9273 need_version=no
9274 need_lib_prefix=no
9275
9276 case $GCC,$host_os in
9277 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9278 library_names_spec='$libname.dll.a'
9279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9280 postinstall_cmds='base_file=`basename \${file}`~
9281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9282 dldir=$destdir/`dirname \$dlpath`~
9283 test -d \$dldir || mkdir -p \$dldir~
9284 $install_prog $dir/$dlname \$dldir/$dlname~
9285 chmod a+x \$dldir/$dlname~
9286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9288 fi'
9289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9290 dlpath=$dir/\$dldll~
9291 $RM \$dlpath'
9292 shlibpath_overrides_runpath=yes
9293
9294 case $host_os in
9295 cygwin*)
9296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9299 ;;
9300 mingw* | cegcc*)
9301 # MinGW DLLs use traditional 'lib' prefix
9302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9303 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9304 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9305 # It is most probably a Windows format PATH printed by
9306 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9307 # path with ; separators, and with drive letters. We can handle the
9308 # drive letters (cygwin fileutils understands them), so leave them,
9309 # especially as we might pass files found there to a mingw objdump,
9310 # which wouldn't understand a cygwinified path. Ahh.
9311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9312 else
9313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9314 fi
9315 ;;
9316 pw32*)
9317 # pw32 DLLs use 'pw' prefix rather than 'lib'
9318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9319 ;;
9320 esac
9321 ;;
9322
9323 *)
9324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9325 ;;
9326 esac
9327 dynamic_linker='Win32 ld.exe'
9328 # FIXME: first we should search . and the directory the executable is in
9329 shlibpath_var=PATH
9330 ;;
9331
9332 darwin* | rhapsody*)
9333 dynamic_linker="$host_os dyld"
9334 version_type=darwin
9335 need_lib_prefix=no
9336 need_version=no
9337 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9338 soname_spec='${libname}${release}${major}$shared_ext'
9339 shlibpath_overrides_runpath=yes
9340 shlibpath_var=DYLD_LIBRARY_PATH
9341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9342
9343 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9345 ;;
9346
9347 dgux*)
9348 version_type=linux
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 ;;
9355
9356 freebsd1*)
9357 dynamic_linker=no
9358 ;;
9359
9360 freebsd* | dragonfly*)
9361 # DragonFly does not have aout. When/if they implement a new
9362 # versioning mechanism, adjust this.
9363 if test -x /usr/bin/objformat; then
9364 objformat=`/usr/bin/objformat`
9365 else
9366 case $host_os in
9367 freebsd[123]*) objformat=aout ;;
9368 *) objformat=elf ;;
9369 esac
9370 fi
9371 version_type=freebsd-$objformat
9372 case $version_type in
9373 freebsd-elf*)
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9375 need_version=no
9376 need_lib_prefix=no
9377 ;;
9378 freebsd-*)
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9380 need_version=yes
9381 ;;
9382 esac
9383 shlibpath_var=LD_LIBRARY_PATH
9384 case $host_os in
9385 freebsd2*)
9386 shlibpath_overrides_runpath=yes
9387 ;;
9388 freebsd3.[01]* | freebsdelf3.[01]*)
9389 shlibpath_overrides_runpath=yes
9390 hardcode_into_libs=yes
9391 ;;
9392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9394 shlibpath_overrides_runpath=no
9395 hardcode_into_libs=yes
9396 ;;
9397 *) # from 4.6 on, and DragonFly
9398 shlibpath_overrides_runpath=yes
9399 hardcode_into_libs=yes
9400 ;;
9401 esac
9402 ;;
9403
9404 gnu*)
9405 version_type=linux
9406 need_lib_prefix=no
9407 need_version=no
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 hardcode_into_libs=yes
9412 ;;
9413
9414 hpux9* | hpux10* | hpux11*)
9415 # Give a soname corresponding to the major version so that dld.sl refuses to
9416 # link against other versions.
9417 version_type=sunos
9418 need_lib_prefix=no
9419 need_version=no
9420 case $host_cpu in
9421 ia64*)
9422 shrext_cmds='.so'
9423 hardcode_into_libs=yes
9424 dynamic_linker="$host_os dld.so"
9425 shlibpath_var=LD_LIBRARY_PATH
9426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 if test "X$HPUX_IA64_MODE" = X32; then
9430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9431 else
9432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9433 fi
9434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9435 ;;
9436 hppa*64*)
9437 shrext_cmds='.sl'
9438 hardcode_into_libs=yes
9439 dynamic_linker="$host_os dld.sl"
9440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9446 ;;
9447 *)
9448 shrext_cmds='.sl'
9449 dynamic_linker="$host_os dld.sl"
9450 shlibpath_var=SHLIB_PATH
9451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 ;;
9455 esac
9456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9457 postinstall_cmds='chmod 555 $lib'
9458 ;;
9459
9460 interix[3-9]*)
9461 version_type=linux
9462 need_lib_prefix=no
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 shlibpath_overrides_runpath=no
9469 hardcode_into_libs=yes
9470 ;;
9471
9472 irix5* | irix6* | nonstopux*)
9473 case $host_os in
9474 nonstopux*) version_type=nonstopux ;;
9475 *)
9476 if test "$lt_cv_prog_gnu_ld" = yes; then
9477 version_type=linux
9478 else
9479 version_type=irix
9480 fi ;;
9481 esac
9482 need_lib_prefix=no
9483 need_version=no
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9486 case $host_os in
9487 irix5* | nonstopux*)
9488 libsuff= shlibsuff=
9489 ;;
9490 *)
9491 case $LD in # libtool.m4 will add one of these switches to LD
9492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9493 libsuff= shlibsuff= libmagic=32-bit;;
9494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9495 libsuff=32 shlibsuff=N32 libmagic=N32;;
9496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9497 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9498 *) libsuff= shlibsuff= libmagic=never-match;;
9499 esac
9500 ;;
9501 esac
9502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9503 shlibpath_overrides_runpath=no
9504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9506 hardcode_into_libs=yes
9507 ;;
9508
9509 # No shared lib support for Linux oldld, aout, or coff.
9510 linux*oldld* | linux*aout* | linux*coff*)
9511 dynamic_linker=no
9512 ;;
9513
9514 # This must be Linux ELF.
9515 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9516 version_type=linux
9517 need_lib_prefix=no
9518 need_version=no
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 shlibpath_overrides_runpath=no
9524 # Some binutils ld are patched to set DT_RUNPATH
9525 save_LDFLAGS=$LDFLAGS
9526 save_libdir=$libdir
9527 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9528 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531
9532 int
9533 main ()
9534 {
9535
9536 ;
9537 return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9542 shlibpath_overrides_runpath=yes
9543 fi
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LDFLAGS=$save_LDFLAGS
9548 libdir=$save_libdir
9549
9550 # This implies no fast_install, which is unacceptable.
9551 # Some rework will be needed to allow for fast_install
9552 # before this can be enabled.
9553 hardcode_into_libs=yes
9554
9555 # Append ld.so.conf contents to the search path
9556 if test -f /etc/ld.so.conf; then
9557 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;/^$/d' | tr '\n' ' '`
9558 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9559 fi
9560
9561 # We used to test for /lib/ld.so.1 and disable shared libraries on
9562 # powerpc, because MkLinux only supported shared libraries with the
9563 # GNU dynamic linker. Since this was broken with cross compilers,
9564 # most powerpc-linux boxes support dynamic linking these days and
9565 # people can always --disable-shared, the test was removed, and we
9566 # assume the GNU/Linux dynamic linker is in use.
9567 dynamic_linker='GNU/Linux ld.so'
9568 ;;
9569
9570 netbsdelf*-gnu)
9571 version_type=linux
9572 need_lib_prefix=no
9573 need_version=no
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 shlibpath_overrides_runpath=no
9578 hardcode_into_libs=yes
9579 dynamic_linker='NetBSD ld.elf_so'
9580 ;;
9581
9582 netbsd*)
9583 version_type=sunos
9584 need_lib_prefix=no
9585 need_version=no
9586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9589 dynamic_linker='NetBSD (a.out) ld.so'
9590 else
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 dynamic_linker='NetBSD ld.elf_so'
9594 fi
9595 shlibpath_var=LD_LIBRARY_PATH
9596 shlibpath_overrides_runpath=yes
9597 hardcode_into_libs=yes
9598 ;;
9599
9600 newsos6)
9601 version_type=linux
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=yes
9605 ;;
9606
9607 *nto* | *qnx*)
9608 version_type=qnx
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 shlibpath_overrides_runpath=no
9615 hardcode_into_libs=yes
9616 dynamic_linker='ldqnx.so'
9617 ;;
9618
9619 openbsd*)
9620 version_type=sunos
9621 sys_lib_dlsearch_path_spec="/usr/lib"
9622 need_lib_prefix=no
9623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9624 case $host_os in
9625 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9626 *) need_version=no ;;
9627 esac
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9632 case $host_os in
9633 openbsd2.[89] | openbsd2.[89].*)
9634 shlibpath_overrides_runpath=no
9635 ;;
9636 *)
9637 shlibpath_overrides_runpath=yes
9638 ;;
9639 esac
9640 else
9641 shlibpath_overrides_runpath=yes
9642 fi
9643 ;;
9644
9645 os2*)
9646 libname_spec='$name'
9647 shrext_cmds=".dll"
9648 need_lib_prefix=no
9649 library_names_spec='$libname${shared_ext} $libname.a'
9650 dynamic_linker='OS/2 ld.exe'
9651 shlibpath_var=LIBPATH
9652 ;;
9653
9654 osf3* | osf4* | osf5*)
9655 version_type=osf
9656 need_lib_prefix=no
9657 need_version=no
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9662 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9663 ;;
9664
9665 rdos*)
9666 dynamic_linker=no
9667 ;;
9668
9669 solaris*)
9670 version_type=linux
9671 need_lib_prefix=no
9672 need_version=no
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 shlibpath_var=LD_LIBRARY_PATH
9676 shlibpath_overrides_runpath=yes
9677 hardcode_into_libs=yes
9678 # ldd complains unless libraries are executable
9679 postinstall_cmds='chmod +x $lib'
9680 ;;
9681
9682 sunos4*)
9683 version_type=sunos
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 shlibpath_overrides_runpath=yes
9688 if test "$with_gnu_ld" = yes; then
9689 need_lib_prefix=no
9690 fi
9691 need_version=yes
9692 ;;
9693
9694 sysv4 | sysv4.3*)
9695 version_type=linux
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 case $host_vendor in
9700 sni)
9701 shlibpath_overrides_runpath=no
9702 need_lib_prefix=no
9703 runpath_var=LD_RUN_PATH
9704 ;;
9705 siemens)
9706 need_lib_prefix=no
9707 ;;
9708 motorola)
9709 need_lib_prefix=no
9710 need_version=no
9711 shlibpath_overrides_runpath=no
9712 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9713 ;;
9714 esac
9715 ;;
9716
9717 sysv4*MP*)
9718 if test -d /usr/nec ;then
9719 version_type=linux
9720 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9721 soname_spec='$libname${shared_ext}.$major'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 fi
9724 ;;
9725
9726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9727 version_type=freebsd-elf
9728 need_lib_prefix=no
9729 need_version=no
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 shlibpath_var=LD_LIBRARY_PATH
9733 shlibpath_overrides_runpath=yes
9734 hardcode_into_libs=yes
9735 if test "$with_gnu_ld" = yes; then
9736 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9737 else
9738 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9739 case $host_os in
9740 sco3.2v5*)
9741 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9742 ;;
9743 esac
9744 fi
9745 sys_lib_dlsearch_path_spec='/usr/lib'
9746 ;;
9747
9748 tpf*)
9749 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9750 version_type=linux
9751 need_lib_prefix=no
9752 need_version=no
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 shlibpath_var=LD_LIBRARY_PATH
9755 shlibpath_overrides_runpath=no
9756 hardcode_into_libs=yes
9757 ;;
9758
9759 uts4*)
9760 version_type=linux
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 ;;
9765
9766 *)
9767 dynamic_linker=no
9768 ;;
9769 esac
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9771 $as_echo "$dynamic_linker" >&6; }
9772 test "$dynamic_linker" = no && can_build_shared=no
9773
9774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9775 if test "$GCC" = yes; then
9776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9777 fi
9778
9779 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9780 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9781 fi
9782 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9783 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9784 fi
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9873 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9874 hardcode_action=
9875 if test -n "$hardcode_libdir_flag_spec" ||
9876 test -n "$runpath_var" ||
9877 test "X$hardcode_automatic" = "Xyes" ; then
9878
9879 # We can hardcode non-existent directories.
9880 if test "$hardcode_direct" != no &&
9881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9882 # have to relink, otherwise we might link with an installed library
9883 # when we should be linking with a yet-to-be-installed one
9884 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9885 test "$hardcode_minus_L" != no; then
9886 # Linking always hardcodes the temporary library directory.
9887 hardcode_action=relink
9888 else
9889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9890 hardcode_action=immediate
9891 fi
9892 else
9893 # We cannot hardcode anything, or else we can only hardcode existing
9894 # directories.
9895 hardcode_action=unsupported
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9898 $as_echo "$hardcode_action" >&6; }
9899
9900 if test "$hardcode_action" = relink ||
9901 test "$inherit_rpath" = yes; then
9902 # Fast installation is not supported
9903 enable_fast_install=no
9904 elif test "$shlibpath_overrides_runpath" = yes ||
9905 test "$enable_shared" = no; then
9906 # Fast installation is not necessary
9907 enable_fast_install=needless
9908 fi
9909
9910
9911
9912
9913
9914
9915 if test "x$enable_dlopen" != xyes; then
9916 enable_dlopen=unknown
9917 enable_dlopen_self=unknown
9918 enable_dlopen_self_static=unknown
9919 else
9920 lt_cv_dlopen=no
9921 lt_cv_dlopen_libs=
9922
9923 case $host_os in
9924 beos*)
9925 lt_cv_dlopen="load_add_on"
9926 lt_cv_dlopen_libs=
9927 lt_cv_dlopen_self=yes
9928 ;;
9929
9930 mingw* | pw32* | cegcc*)
9931 lt_cv_dlopen="LoadLibrary"
9932 lt_cv_dlopen_libs=
9933 ;;
9934
9935 cygwin*)
9936 lt_cv_dlopen="dlopen"
9937 lt_cv_dlopen_libs=
9938 ;;
9939
9940 darwin*)
9941 # if libdl is installed we need to link against it
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9943 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 ac_check_lib_save_LIBS=$LIBS
9948 LIBS="-ldl $LIBS"
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951
9952 /* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 char dlopen ();
9959 int
9960 main ()
9961 {
9962 return dlopen ();
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 if ac_fn_c_try_link "$LINENO"; then :
9968 ac_cv_lib_dl_dlopen=yes
9969 else
9970 ac_cv_lib_dl_dlopen=no
9971 fi
9972 rm -f core conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974 LIBS=$ac_check_lib_save_LIBS
9975 fi
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9977 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9978 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9980 else
9981
9982 lt_cv_dlopen="dyld"
9983 lt_cv_dlopen_libs=
9984 lt_cv_dlopen_self=yes
9985
9986 fi
9987
9988 ;;
9989
9990 *)
9991 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9992 if test "x$ac_cv_func_shl_load" = x""yes; then :
9993 lt_cv_dlopen="shl_load"
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9996 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9997 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 ac_check_lib_save_LIBS=$LIBS
10001 LIBS="-ldld $LIBS"
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004
10005 /* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 char shl_load ();
10012 int
10013 main ()
10014 {
10015 return shl_load ();
10016 ;
10017 return 0;
10018 }
10019 _ACEOF
10020 if ac_fn_c_try_link "$LINENO"; then :
10021 ac_cv_lib_dld_shl_load=yes
10022 else
10023 ac_cv_lib_dld_shl_load=no
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext \
10026 conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10028 fi
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10030 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10031 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10032 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10033 else
10034 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10035 if test "x$ac_cv_func_dlopen" = x""yes; then :
10036 lt_cv_dlopen="dlopen"
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10039 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-ldl $LIBS"
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 char dlopen ();
10055 int
10056 main ()
10057 {
10058 return dlopen ();
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10064 ac_cv_lib_dl_dlopen=yes
10065 else
10066 ac_cv_lib_dl_dlopen=no
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10071 fi
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10073 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10074 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10076 else
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10078 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10079 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lsvld $LIBS"
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086
10087 /* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 char dlopen ();
10094 int
10095 main ()
10096 {
10097 return dlopen ();
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 if ac_fn_c_try_link "$LINENO"; then :
10103 ac_cv_lib_svld_dlopen=yes
10104 else
10105 ac_cv_lib_svld_dlopen=no
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LIBS=$ac_check_lib_save_LIBS
10110 fi
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10112 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10113 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10115 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10117 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10118 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-ldld $LIBS"
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125
10126 /* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 char dld_link ();
10133 int
10134 main ()
10135 {
10136 return dld_link ();
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"; then :
10142 ac_cv_lib_dld_dld_link=yes
10143 else
10144 ac_cv_lib_dld_dld_link=no
10145 fi
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10149 fi
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10151 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10152 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10153 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10154 fi
10155
10156
10157 fi
10158
10159
10160 fi
10161
10162
10163 fi
10164
10165
10166 fi
10167
10168
10169 fi
10170
10171 ;;
10172 esac
10173
10174 if test "x$lt_cv_dlopen" != xno; then
10175 enable_dlopen=yes
10176 else
10177 enable_dlopen=no
10178 fi
10179
10180 case $lt_cv_dlopen in
10181 dlopen)
10182 save_CPPFLAGS="$CPPFLAGS"
10183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10184
10185 save_LDFLAGS="$LDFLAGS"
10186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10187
10188 save_LIBS="$LIBS"
10189 LIBS="$lt_cv_dlopen_libs $LIBS"
10190
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10192 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10193 if test "${lt_cv_dlopen_self+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 if test "$cross_compiling" = yes; then :
10197 lt_cv_dlopen_self=cross
10198 else
10199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10200 lt_status=$lt_dlunknown
10201 cat > conftest.$ac_ext <<_LT_EOF
10202 #line 10202 "configure"
10203 #include "confdefs.h"
10204
10205 #if HAVE_DLFCN_H
10206 #include <dlfcn.h>
10207 #endif
10208
10209 #include <stdio.h>
10210
10211 #ifdef RTLD_GLOBAL
10212 # define LT_DLGLOBAL RTLD_GLOBAL
10213 #else
10214 # ifdef DL_GLOBAL
10215 # define LT_DLGLOBAL DL_GLOBAL
10216 # else
10217 # define LT_DLGLOBAL 0
10218 # endif
10219 #endif
10220
10221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10222 find out it does not work in some platform. */
10223 #ifndef LT_DLLAZY_OR_NOW
10224 # ifdef RTLD_LAZY
10225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10226 # else
10227 # ifdef DL_LAZY
10228 # define LT_DLLAZY_OR_NOW DL_LAZY
10229 # else
10230 # ifdef RTLD_NOW
10231 # define LT_DLLAZY_OR_NOW RTLD_NOW
10232 # else
10233 # ifdef DL_NOW
10234 # define LT_DLLAZY_OR_NOW DL_NOW
10235 # else
10236 # define LT_DLLAZY_OR_NOW 0
10237 # endif
10238 # endif
10239 # endif
10240 # endif
10241 #endif
10242
10243 void fnord() { int i=42;}
10244 int main ()
10245 {
10246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10247 int status = $lt_dlunknown;
10248
10249 if (self)
10250 {
10251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10252 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10253 /* dlclose (self); */
10254 }
10255 else
10256 puts (dlerror ());
10257
10258 return status;
10259 }
10260 _LT_EOF
10261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10262 (eval $ac_link) 2>&5
10263 ac_status=$?
10264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10266 (./conftest; exit; ) >&5 2>/dev/null
10267 lt_status=$?
10268 case x$lt_status in
10269 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10270 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10271 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10272 esac
10273 else :
10274 # compilation failed
10275 lt_cv_dlopen_self=no
10276 fi
10277 fi
10278 rm -fr conftest*
10279
10280
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10283 $as_echo "$lt_cv_dlopen_self" >&6; }
10284
10285 if test "x$lt_cv_dlopen_self" = xyes; then
10286 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10288 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10289 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 if test "$cross_compiling" = yes; then :
10293 lt_cv_dlopen_self_static=cross
10294 else
10295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10296 lt_status=$lt_dlunknown
10297 cat > conftest.$ac_ext <<_LT_EOF
10298 #line 10298 "configure"
10299 #include "confdefs.h"
10300
10301 #if HAVE_DLFCN_H
10302 #include <dlfcn.h>
10303 #endif
10304
10305 #include <stdio.h>
10306
10307 #ifdef RTLD_GLOBAL
10308 # define LT_DLGLOBAL RTLD_GLOBAL
10309 #else
10310 # ifdef DL_GLOBAL
10311 # define LT_DLGLOBAL DL_GLOBAL
10312 # else
10313 # define LT_DLGLOBAL 0
10314 # endif
10315 #endif
10316
10317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10318 find out it does not work in some platform. */
10319 #ifndef LT_DLLAZY_OR_NOW
10320 # ifdef RTLD_LAZY
10321 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10322 # else
10323 # ifdef DL_LAZY
10324 # define LT_DLLAZY_OR_NOW DL_LAZY
10325 # else
10326 # ifdef RTLD_NOW
10327 # define LT_DLLAZY_OR_NOW RTLD_NOW
10328 # else
10329 # ifdef DL_NOW
10330 # define LT_DLLAZY_OR_NOW DL_NOW
10331 # else
10332 # define LT_DLLAZY_OR_NOW 0
10333 # endif
10334 # endif
10335 # endif
10336 # endif
10337 #endif
10338
10339 void fnord() { int i=42;}
10340 int main ()
10341 {
10342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10343 int status = $lt_dlunknown;
10344
10345 if (self)
10346 {
10347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10349 /* dlclose (self); */
10350 }
10351 else
10352 puts (dlerror ());
10353
10354 return status;
10355 }
10356 _LT_EOF
10357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10358 (eval $ac_link) 2>&5
10359 ac_status=$?
10360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10361 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10362 (./conftest; exit; ) >&5 2>/dev/null
10363 lt_status=$?
10364 case x$lt_status in
10365 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10366 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10367 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10368 esac
10369 else :
10370 # compilation failed
10371 lt_cv_dlopen_self_static=no
10372 fi
10373 fi
10374 rm -fr conftest*
10375
10376
10377 fi
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10379 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10380 fi
10381
10382 CPPFLAGS="$save_CPPFLAGS"
10383 LDFLAGS="$save_LDFLAGS"
10384 LIBS="$save_LIBS"
10385 ;;
10386 esac
10387
10388 case $lt_cv_dlopen_self in
10389 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10390 *) enable_dlopen_self=unknown ;;
10391 esac
10392
10393 case $lt_cv_dlopen_self_static in
10394 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10395 *) enable_dlopen_self_static=unknown ;;
10396 esac
10397 fi
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415 striplib=
10416 old_striplib=
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10418 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10419 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10423 $as_echo "yes" >&6; }
10424 else
10425 # FIXME - insert some real tests, host_os isn't really good enough
10426 case $host_os in
10427 darwin*)
10428 if test -n "$STRIP" ; then
10429 striplib="$STRIP -x"
10430 old_striplib="$STRIP -S"
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; }
10433 else
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10436 fi
10437 ;;
10438 *)
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10441 ;;
10442 esac
10443 fi
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456 # Report which library types will actually be built
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10458 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10460 $as_echo "$can_build_shared" >&6; }
10461
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10463 $as_echo_n "checking whether to build shared libraries... " >&6; }
10464 test "$can_build_shared" = "no" && enable_shared=no
10465
10466 # On AIX, shared libraries and static libraries use the same namespace, and
10467 # are all built from PIC.
10468 case $host_os in
10469 aix3*)
10470 test "$enable_shared" = yes && enable_static=no
10471 if test -n "$RANLIB"; then
10472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10473 postinstall_cmds='$RANLIB $lib'
10474 fi
10475 ;;
10476
10477 aix[4-9]*)
10478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10479 test "$enable_shared" = yes && enable_static=no
10480 fi
10481 ;;
10482 esac
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10484 $as_echo "$enable_shared" >&6; }
10485
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10487 $as_echo_n "checking whether to build static libraries... " >&6; }
10488 # Make sure either enable_shared or enable_static is yes.
10489 test "$enable_shared" = yes || enable_static=yes
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10491 $as_echo "$enable_static" >&6; }
10492
10493
10494
10495
10496 fi
10497 ac_ext=c
10498 ac_cpp='$CPP $CPPFLAGS'
10499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10502
10503 CC="$lt_save_CC"
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517 ac_config_commands="$ac_config_commands libtool"
10518
10519
10520
10521
10522 # Only expand once:
10523
10524
10525
10526 # Sets GLIB_GENMARSHAL and GLIB_MKENUMS
10527 # Check whether --enable-glibtest was given.
10528 if test "${enable_glibtest+set}" = set; then :
10529 enableval=$enable_glibtest;
10530 else
10531 enable_glibtest=yes
10532 fi
10533
10534
10535 pkg_config_args=glib-2.0
10536 for module in .
10537 do
10538 case "$module" in
10539 gmodule)
10540 pkg_config_args="$pkg_config_args gmodule-2.0"
10541 ;;
10542 gmodule-no-export)
10543 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
10544 ;;
10545 gobject)
10546 pkg_config_args="$pkg_config_args gobject-2.0"
10547 ;;
10548 gthread)
10549 pkg_config_args="$pkg_config_args gthread-2.0"
10550 ;;
10551 gio*)
10552 pkg_config_args="$pkg_config_args $module-2.0"
10553 ;;
10554 esac
10555 done
10556
10557
10558
10559
10560
10561
10562
10563 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10564 if test -n "$ac_tool_prefix"; then
10565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10566 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 case $PKG_CONFIG in
10573 [\\/]* | ?:[\\/]*)
10574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10575 ;;
10576 *)
10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578 for as_dir in $PATH
10579 do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588 done
10589 done
10590 IFS=$as_save_IFS
10591
10592 ;;
10593 esac
10594 fi
10595 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10596 if test -n "$PKG_CONFIG"; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10598 $as_echo "$PKG_CONFIG" >&6; }
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10602 fi
10603
10604
10605 fi
10606 if test -z "$ac_cv_path_PKG_CONFIG"; then
10607 ac_pt_PKG_CONFIG=$PKG_CONFIG
10608 # Extract the first word of "pkg-config", so it can be a program name with args.
10609 set dummy pkg-config; ac_word=$2
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611 $as_echo_n "checking for $ac_word... " >&6; }
10612 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 case $ac_pt_PKG_CONFIG in
10616 [\\/]* | ?:[\\/]*)
10617 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10618 ;;
10619 *)
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10622 do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10627 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10630 fi
10631 done
10632 done
10633 IFS=$as_save_IFS
10634
10635 ;;
10636 esac
10637 fi
10638 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10639 if test -n "$ac_pt_PKG_CONFIG"; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10641 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; }
10645 fi
10646
10647 if test "x$ac_pt_PKG_CONFIG" = x; then
10648 PKG_CONFIG=""
10649 else
10650 case $cross_compiling:$ac_tool_warned in
10651 yes:)
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10654 ac_tool_warned=yes ;;
10655 esac
10656 PKG_CONFIG=$ac_pt_PKG_CONFIG
10657 fi
10658 else
10659 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10660 fi
10661
10662 fi
10663 if test -n "$PKG_CONFIG"; then
10664 _pkg_min_version=0.16
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10666 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10667 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10669 $as_echo "yes" >&6; }
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 PKG_CONFIG=""
10674 fi
10675 fi
10676
10677 no_glib=""
10678
10679 if test "x$PKG_CONFIG" = x ; then
10680 no_glib=yes
10681 PKG_CONFIG=no
10682 fi
10683
10684 min_glib_version=2.0.0
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
10686 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
10687
10688 if test x$PKG_CONFIG != xno ; then
10689 ## don't try to run the test against uninstalled libtool libs
10690 if $PKG_CONFIG --uninstalled $pkg_config_args; then
10691 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
10692 enable_glibtest=no
10693 fi
10694
10695 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
10696 :
10697 else
10698 no_glib=yes
10699 fi
10700 fi
10701
10702 if test x"$no_glib" = x ; then
10703 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
10704 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
10705 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
10706
10707 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
10708 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
10709 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
10710 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10711 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
10712 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10713 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
10714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10715 if test "x$enable_glibtest" = "xyes" ; then
10716 ac_save_CFLAGS="$CFLAGS"
10717 ac_save_LIBS="$LIBS"
10718 CFLAGS="$CFLAGS $GLIB_CFLAGS"
10719 LIBS="$GLIB_LIBS $LIBS"
10720 rm -f conf.glibtest
10721 if test "$cross_compiling" = yes; then :
10722 echo $ac_n "cross compiling; assumed OK... $ac_c"
10723 else
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726
10727 #include <glib.h>
10728 #include <stdio.h>
10729 #include <stdlib.h>
10730
10731 int
10732 main ()
10733 {
10734 unsigned int major, minor, micro;
10735 char *tmp_version;
10736
10737 fclose (fopen ("conf.glibtest", "w"));
10738
10739 /* HP/UX 9 (%@#!) writes to sscanf strings */
10740 tmp_version = g_strdup("$min_glib_version");
10741 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
10742 printf("%s, bad version string\n", "$min_glib_version");
10743 exit(1);
10744 }
10745
10746 if ((glib_major_version != $glib_config_major_version) ||
10747 (glib_minor_version != $glib_config_minor_version) ||
10748 (glib_micro_version != $glib_config_micro_version))
10749 {
10750 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
10751 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
10752 glib_major_version, glib_minor_version, glib_micro_version);
10753 printf ("*** was found! If pkg-config was correct, then it is best\n");
10754 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
10755 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10756 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10757 printf("*** required on your system.\n");
10758 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
10759 printf("*** to point to the correct configuration files\n");
10760 }
10761 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
10762 (glib_minor_version != GLIB_MINOR_VERSION) ||
10763 (glib_micro_version != GLIB_MICRO_VERSION))
10764 {
10765 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
10766 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
10767 printf("*** library (version %d.%d.%d)\n",
10768 glib_major_version, glib_minor_version, glib_micro_version);
10769 }
10770 else
10771 {
10772 if ((glib_major_version > major) ||
10773 ((glib_major_version == major) && (glib_minor_version > minor)) ||
10774 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
10775 {
10776 return 0;
10777 }
10778 else
10779 {
10780 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
10781 glib_major_version, glib_minor_version, glib_micro_version);
10782 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
10783 major, minor, micro);
10784 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
10785 printf("***\n");
10786 printf("*** If you have already installed a sufficiently new version, this error\n");
10787 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
10788 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10789 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
10790 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
10791 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10792 printf("*** so that the correct libraries are found at run-time))\n");
10793 }
10794 }
10795 return 1;
10796 }
10797
10798 _ACEOF
10799 if ac_fn_c_try_run "$LINENO"; then :
10800
10801 else
10802 no_glib=yes
10803 fi
10804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10805 conftest.$ac_objext conftest.beam conftest.$ac_ext
10806 fi
10807
10808 CFLAGS="$ac_save_CFLAGS"
10809 LIBS="$ac_save_LIBS"
10810 fi
10811 fi
10812 if test "x$no_glib" = x ; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
10814 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
10815 :
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10819 if test "$PKG_CONFIG" = "no" ; then
10820 echo "*** A new enough version of pkg-config was not found."
10821 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
10822 else
10823 if test -f conf.glibtest ; then
10824 :
10825 else
10826 echo "*** Could not run GLIB test program, checking why..."
10827 ac_save_CFLAGS="$CFLAGS"
10828 ac_save_LIBS="$LIBS"
10829 CFLAGS="$CFLAGS $GLIB_CFLAGS"
10830 LIBS="$LIBS $GLIB_LIBS"
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833
10834 #include <glib.h>
10835 #include <stdio.h>
10836
10837 int
10838 main ()
10839 {
10840 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
10841 ;
10842 return 0;
10843 }
10844 _ACEOF
10845 if ac_fn_c_try_link "$LINENO"; then :
10846 echo "*** The test program compiled, but did not run. This usually means"
10847 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
10848 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
10849 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10850 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10851 echo "*** is required on your system"
10852 echo "***"
10853 echo "*** If you have an old version installed, it is best to remove it, although"
10854 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10855 else
10856 echo "*** The test program failed to compile or link. See the file config.log for the"
10857 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
10858 fi
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 CFLAGS="$ac_save_CFLAGS"
10862 LIBS="$ac_save_LIBS"
10863 fi
10864 fi
10865 GLIB_CFLAGS=""
10866 GLIB_LIBS=""
10867 GLIB_GENMARSHAL=""
10868 GOBJECT_QUERY=""
10869 GLIB_MKENUMS=""
10870 :
10871 fi
10872
10873
10874
10875
10876
10877 rm -f conf.glibtest
10878
10879
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10881 $as_echo_n "checking for library containing strerror... " >&6; }
10882 if test "${ac_cv_search_strerror+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 ac_func_search_save_LIBS=$LIBS
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892 #ifdef __cplusplus
10893 extern "C"
10894 #endif
10895 char strerror ();
10896 int
10897 main ()
10898 {
10899 return strerror ();
10900 ;
10901 return 0;
10902 }
10903 _ACEOF
10904 for ac_lib in '' cposix; do
10905 if test -z "$ac_lib"; then
10906 ac_res="none required"
10907 else
10908 ac_res=-l$ac_lib
10909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10910 fi
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_search_strerror=$ac_res
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext
10916 if test "${ac_cv_search_strerror+set}" = set; then :
10917 break
10918 fi
10919 done
10920 if test "${ac_cv_search_strerror+set}" = set; then :
10921
10922 else
10923 ac_cv_search_strerror=no
10924 fi
10925 rm conftest.$ac_ext
10926 LIBS=$ac_func_search_save_LIBS
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10929 $as_echo "$ac_cv_search_strerror" >&6; }
10930 ac_res=$ac_cv_search_strerror
10931 if test "$ac_res" != no; then :
10932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10933
10934 fi
10935
10936 ac_ext=c
10937 ac_cpp='$CPP $CPPFLAGS'
10938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941 if test -n "$ac_tool_prefix"; then
10942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if test "${ac_cv_prog_CC+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 if test -n "$CC"; then
10950 ac_cv_prog_CC="$CC" # Let the user override the test.
10951 else
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10954 do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963 done
10964 done
10965 IFS=$as_save_IFS
10966
10967 fi
10968 fi
10969 CC=$ac_cv_prog_CC
10970 if test -n "$CC"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10972 $as_echo "$CC" >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10976 fi
10977
10978
10979 fi
10980 if test -z "$ac_cv_prog_CC"; then
10981 ac_ct_CC=$CC
10982 # Extract the first word of "gcc", so it can be a program name with args.
10983 set dummy gcc; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 if test -n "$ac_ct_CC"; then
10990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999 ac_cv_prog_ac_ct_CC="gcc"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11002 fi
11003 done
11004 done
11005 IFS=$as_save_IFS
11006
11007 fi
11008 fi
11009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11010 if test -n "$ac_ct_CC"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11012 $as_echo "$ac_ct_CC" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017
11018 if test "x$ac_ct_CC" = x; then
11019 CC=""
11020 else
11021 case $cross_compiling:$ac_tool_warned in
11022 yes:)
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11025 ac_tool_warned=yes ;;
11026 esac
11027 CC=$ac_ct_CC
11028 fi
11029 else
11030 CC="$ac_cv_prog_CC"
11031 fi
11032
11033 if test -z "$CC"; then
11034 if test -n "$ac_tool_prefix"; then
11035 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11036 set dummy ${ac_tool_prefix}cc; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if test "${ac_cv_prog_CC+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 if test -n "$CC"; then
11043 ac_cv_prog_CC="$CC" # Let the user override the test.
11044 else
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11047 do
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11052 ac_cv_prog_CC="${ac_tool_prefix}cc"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056 done
11057 done
11058 IFS=$as_save_IFS
11059
11060 fi
11061 fi
11062 CC=$ac_cv_prog_CC
11063 if test -n "$CC"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11065 $as_echo "$CC" >&6; }
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11069 fi
11070
11071
11072 fi
11073 fi
11074 if test -z "$CC"; then
11075 # Extract the first word of "cc", so it can be a program name with args.
11076 set dummy cc; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if test "${ac_cv_prog_CC+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 if test -n "$CC"; then
11083 ac_cv_prog_CC="$CC" # Let the user override the test.
11084 else
11085 ac_prog_rejected=no
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11094 ac_prog_rejected=yes
11095 continue
11096 fi
11097 ac_cv_prog_CC="cc"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 break 2
11100 fi
11101 done
11102 done
11103 IFS=$as_save_IFS
11104
11105 if test $ac_prog_rejected = yes; then
11106 # We found a bogon in the path, so make sure we never use it.
11107 set dummy $ac_cv_prog_CC
11108 shift
11109 if test $# != 0; then
11110 # We chose a different compiler from the bogus one.
11111 # However, it has the same basename, so the bogon will be chosen
11112 # first if we set CC to just the basename; use the full file name.
11113 shift
11114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11115 fi
11116 fi
11117 fi
11118 fi
11119 CC=$ac_cv_prog_CC
11120 if test -n "$CC"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11122 $as_echo "$CC" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126 fi
11127
11128
11129 fi
11130 if test -z "$CC"; then
11131 if test -n "$ac_tool_prefix"; then
11132 for ac_prog in cl.exe
11133 do
11134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if test "${ac_cv_prog_CC+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test -n "$CC"; then
11142 ac_cv_prog_CC="$CC" # Let the user override the test.
11143 else
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11146 do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11154 fi
11155 done
11156 done
11157 IFS=$as_save_IFS
11158
11159 fi
11160 fi
11161 CC=$ac_cv_prog_CC
11162 if test -n "$CC"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11164 $as_echo "$CC" >&6; }
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11168 fi
11169
11170
11171 test -n "$CC" && break
11172 done
11173 fi
11174 if test -z "$CC"; then
11175 ac_ct_CC=$CC
11176 for ac_prog in cl.exe
11177 do
11178 # Extract the first word of "$ac_prog", so it can be a program name with args.
11179 set dummy $ac_prog; ac_word=$2
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 $as_echo_n "checking for $ac_word... " >&6; }
11182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test -n "$ac_ct_CC"; then
11186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11187 else
11188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189 for as_dir in $PATH
11190 do
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195 ac_cv_prog_ac_ct_CC="$ac_prog"
11196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 break 2
11198 fi
11199 done
11200 done
11201 IFS=$as_save_IFS
11202
11203 fi
11204 fi
11205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11206 if test -n "$ac_ct_CC"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11208 $as_echo "$ac_ct_CC" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11212 fi
11213
11214
11215 test -n "$ac_ct_CC" && break
11216 done
11217
11218 if test "x$ac_ct_CC" = x; then
11219 CC=""
11220 else
11221 case $cross_compiling:$ac_tool_warned in
11222 yes:)
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11225 ac_tool_warned=yes ;;
11226 esac
11227 CC=$ac_ct_CC
11228 fi
11229 fi
11230
11231 fi
11232
11233
11234 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11236 as_fn_error $? "no acceptable C compiler found in \$PATH
11237 See \`config.log' for more details" "$LINENO" 5 ; }
11238
11239 # Provide some information about the compiler.
11240 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11241 set X $ac_compile
11242 ac_compiler=$2
11243 for ac_option in --version -v -V -qversion; do
11244 { { ac_try="$ac_compiler $ac_option >&5"
11245 case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248 esac
11249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11250 $as_echo "$ac_try_echo"; } >&5
11251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11252 ac_status=$?
11253 if test -s conftest.err; then
11254 sed '10a\
11255 ... rest of stderr output deleted ...
11256 10q' conftest.err >conftest.er1
11257 cat conftest.er1 >&5
11258 fi
11259 rm -f conftest.er1 conftest.err
11260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11261 test $ac_status = 0; }
11262 done
11263
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11265 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11266 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11271
11272 int
11273 main ()
11274 {
11275 #ifndef __GNUC__
11276 choke me
11277 #endif
11278
11279 ;
11280 return 0;
11281 }
11282 _ACEOF
11283 if ac_fn_c_try_compile "$LINENO"; then :
11284 ac_compiler_gnu=yes
11285 else
11286 ac_compiler_gnu=no
11287 fi
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11290
11291 fi
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11293 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11294 if test $ac_compiler_gnu = yes; then
11295 GCC=yes
11296 else
11297 GCC=
11298 fi
11299 ac_test_CFLAGS=${CFLAGS+set}
11300 ac_save_CFLAGS=$CFLAGS
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11302 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11303 if test "${ac_cv_prog_cc_g+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 ac_save_c_werror_flag=$ac_c_werror_flag
11307 ac_c_werror_flag=yes
11308 ac_cv_prog_cc_g=no
11309 CFLAGS="-g"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312
11313 int
11314 main ()
11315 {
11316
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_compile "$LINENO"; then :
11322 ac_cv_prog_cc_g=yes
11323 else
11324 CFLAGS=""
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327
11328 int
11329 main ()
11330 {
11331
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 if ac_fn_c_try_compile "$LINENO"; then :
11337
11338 else
11339 ac_c_werror_flag=$ac_save_c_werror_flag
11340 CFLAGS="-g"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343
11344 int
11345 main ()
11346 {
11347
11348 ;
11349 return 0;
11350 }
11351 _ACEOF
11352 if ac_fn_c_try_compile "$LINENO"; then :
11353 ac_cv_prog_cc_g=yes
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 ac_c_werror_flag=$ac_save_c_werror_flag
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11363 $as_echo "$ac_cv_prog_cc_g" >&6; }
11364 if test "$ac_test_CFLAGS" = set; then
11365 CFLAGS=$ac_save_CFLAGS
11366 elif test $ac_cv_prog_cc_g = yes; then
11367 if test "$GCC" = yes; then
11368 CFLAGS="-g -O2"
11369 else
11370 CFLAGS="-g"
11371 fi
11372 else
11373 if test "$GCC" = yes; then
11374 CFLAGS="-O2"
11375 else
11376 CFLAGS=
11377 fi
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11380 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11381 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 ac_cv_prog_cc_c89=no
11385 ac_save_CC=$CC
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388 #include <stdarg.h>
11389 #include <stdio.h>
11390 #include <sys/types.h>
11391 #include <sys/stat.h>
11392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11393 struct buf { int x; };
11394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11395 static char *e (p, i)
11396 char **p;
11397 int i;
11398 {
11399 return p[i];
11400 }
11401 static char *f (char * (*g) (char **, int), char **p, ...)
11402 {
11403 char *s;
11404 va_list v;
11405 va_start (v,p);
11406 s = g (p, va_arg (v,int));
11407 va_end (v);
11408 return s;
11409 }
11410
11411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11412 function prototypes and stuff, but not '\xHH' hex character constants.
11413 These don't provoke an error unfortunately, instead are silently treated
11414 as 'x'. The following induces an error, until -std is added to get
11415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11416 array size at least. It's necessary to write '\x00'==0 to get something
11417 that's true only with -std. */
11418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11419
11420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11421 inside strings and character constants. */
11422 #define FOO(x) 'x'
11423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11424
11425 int test (int i, double x);
11426 struct s1 {int (*f) (int a);};
11427 struct s2 {int (*f) (double a);};
11428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11429 int argc;
11430 char **argv;
11431 int
11432 main ()
11433 {
11434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11441 do
11442 CC="$ac_save_CC $ac_arg"
11443 if ac_fn_c_try_compile "$LINENO"; then :
11444 ac_cv_prog_cc_c89=$ac_arg
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext
11447 test "x$ac_cv_prog_cc_c89" != "xno" && break
11448 done
11449 rm -f conftest.$ac_ext
11450 CC=$ac_save_CC
11451
11452 fi
11453 # AC_CACHE_VAL
11454 case "x$ac_cv_prog_cc_c89" in
11455 x)
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11457 $as_echo "none needed" >&6; } ;;
11458 xno)
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11460 $as_echo "unsupported" >&6; } ;;
11461 *)
11462 CC="$CC $ac_cv_prog_cc_c89"
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11464 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11465 esac
11466 if test "x$ac_cv_prog_cc_c89" != xno; then :
11467
11468 fi
11469
11470 ac_ext=c
11471 ac_cpp='$CPP $CPPFLAGS'
11472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11475
11476 depcc="$CC" am_compiler_list=
11477
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11479 $as_echo_n "checking dependency style of $depcc... " >&6; }
11480 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11484 # We make a subdir and do the tests there. Otherwise we can end up
11485 # making bogus files that we don't know about and never remove. For
11486 # instance it was reported that on HP-UX the gcc test will end up
11487 # making a dummy file named `D' -- because `-MD' means `put the output
11488 # in D'.
11489 mkdir conftest.dir
11490 # Copy depcomp to subdir because otherwise we won't find it if we're
11491 # using a relative directory.
11492 cp "$am_depcomp" conftest.dir
11493 cd conftest.dir
11494 # We will build objects and dependencies in a subdirectory because
11495 # it helps to detect inapplicable dependency modes. For instance
11496 # both Tru64's cc and ICC support -MD to output dependencies as a
11497 # side effect of compilation, but ICC will put the dependencies in
11498 # the current directory while Tru64 will put them in the object
11499 # directory.
11500 mkdir sub
11501
11502 am_cv_CC_dependencies_compiler_type=none
11503 if test "$am_compiler_list" = ""; then
11504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11505 fi
11506 am__universal=false
11507 case " $depcc " in #(
11508 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11509 esac
11510
11511 for depmode in $am_compiler_list; do
11512 # Setup a source with many dependencies, because some compilers
11513 # like to wrap large dependency lists on column 80 (with \), and
11514 # we should not choose a depcomp mode which is confused by this.
11515 #
11516 # We need to recreate these files for each test, as the compiler may
11517 # overwrite some of them when testing with obscure command lines.
11518 # This happens at least with the AIX C compiler.
11519 : > sub/conftest.c
11520 for i in 1 2 3 4 5 6; do
11521 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11522 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11523 # Solaris 8's {/usr,}/bin/sh.
11524 touch sub/conftst$i.h
11525 done
11526 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11527
11528 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11529 # mode. It turns out that the SunPro C++ compiler does not properly
11530 # handle `-M -o', and we need to detect this. Also, some Intel
11531 # versions had trouble with output in subdirs
11532 am__obj=sub/conftest.${OBJEXT-o}
11533 am__minus_obj="-o $am__obj"
11534 case $depmode in
11535 gcc)
11536 # This depmode causes a compiler race in universal mode.
11537 test "$am__universal" = false || continue
11538 ;;
11539 nosideeffect)
11540 # after this tag, mechanisms are not by side-effect, so they'll
11541 # only be used when explicitly requested
11542 if test "x$enable_dependency_tracking" = xyes; then
11543 continue
11544 else
11545 break
11546 fi
11547 ;;
11548 msvisualcpp | msvcmsys)
11549 # This compiler won't grok `-c -o', but also, the minuso test has
11550 # not run yet. These depmodes are late enough in the game, and
11551 # so weak that their functioning should not be impacted.
11552 am__obj=conftest.${OBJEXT-o}
11553 am__minus_obj=
11554 ;;
11555 none) break ;;
11556 esac
11557 if depmode=$depmode \
11558 source=sub/conftest.c object=$am__obj \
11559 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11560 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11561 >/dev/null 2>conftest.err &&
11562 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11564 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11566 # icc doesn't choke on unknown options, it will just issue warnings
11567 # or remarks (even with -Werror). So we grep stderr for any message
11568 # that says an option was ignored or not supported.
11569 # When given -MP, icc 7.0 and 7.1 complain thusly:
11570 # icc: Command line warning: ignoring option '-M'; no argument required
11571 # The diagnosis changed in icc 8.0:
11572 # icc: Command line remark: option '-MP' not supported
11573 if (grep 'ignoring option' conftest.err ||
11574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11575 am_cv_CC_dependencies_compiler_type=$depmode
11576 break
11577 fi
11578 fi
11579 done
11580
11581 cd ..
11582 rm -rf conftest.dir
11583 else
11584 am_cv_CC_dependencies_compiler_type=none
11585 fi
11586
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11589 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11590 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11591
11592 if
11593 test "x$enable_dependency_tracking" != xno \
11594 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11595 am__fastdepCC_TRUE=
11596 am__fastdepCC_FALSE='#'
11597 else
11598 am__fastdepCC_TRUE='#'
11599 am__fastdepCC_FALSE=
11600 fi
11601
11602
11603 ac_ext=c
11604 ac_cpp='$CPP $CPPFLAGS'
11605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11608 if test -n "$ac_tool_prefix"; then
11609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if test "${ac_cv_prog_CC+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 if test -n "$CC"; then
11617 ac_cv_prog_CC="$CC" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11629 fi
11630 done
11631 done
11632 IFS=$as_save_IFS
11633
11634 fi
11635 fi
11636 CC=$ac_cv_prog_CC
11637 if test -n "$CC"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11639 $as_echo "$CC" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643 fi
11644
11645
11646 fi
11647 if test -z "$ac_cv_prog_CC"; then
11648 ac_ct_CC=$CC
11649 # Extract the first word of "gcc", so it can be a program name with args.
11650 set dummy gcc; ac_word=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 if test -n "$ac_ct_CC"; then
11657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11666 ac_cv_prog_ac_ct_CC="gcc"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670 done
11671 done
11672 IFS=$as_save_IFS
11673
11674 fi
11675 fi
11676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11677 if test -n "$ac_ct_CC"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11679 $as_echo "$ac_ct_CC" >&6; }
11680 else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11683 fi
11684
11685 if test "x$ac_ct_CC" = x; then
11686 CC=""
11687 else
11688 case $cross_compiling:$ac_tool_warned in
11689 yes:)
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11692 ac_tool_warned=yes ;;
11693 esac
11694 CC=$ac_ct_CC
11695 fi
11696 else
11697 CC="$ac_cv_prog_CC"
11698 fi
11699
11700 if test -z "$CC"; then
11701 if test -n "$ac_tool_prefix"; then
11702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11703 set dummy ${ac_tool_prefix}cc; ac_word=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if test "${ac_cv_prog_CC+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 if test -n "$CC"; then
11710 ac_cv_prog_CC="$CC" # Let the user override the test.
11711 else
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11714 do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719 ac_cv_prog_CC="${ac_tool_prefix}cc"
11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 break 2
11722 fi
11723 done
11724 done
11725 IFS=$as_save_IFS
11726
11727 fi
11728 fi
11729 CC=$ac_cv_prog_CC
11730 if test -n "$CC"; then
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11732 $as_echo "$CC" >&6; }
11733 else
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735 $as_echo "no" >&6; }
11736 fi
11737
11738
11739 fi
11740 fi
11741 if test -z "$CC"; then
11742 # Extract the first word of "cc", so it can be a program name with args.
11743 set dummy cc; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if test "${ac_cv_prog_CC+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 if test -n "$CC"; then
11750 ac_cv_prog_CC="$CC" # Let the user override the test.
11751 else
11752 ac_prog_rejected=no
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11755 do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11761 ac_prog_rejected=yes
11762 continue
11763 fi
11764 ac_cv_prog_CC="cc"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768 done
11769 done
11770 IFS=$as_save_IFS
11771
11772 if test $ac_prog_rejected = yes; then
11773 # We found a bogon in the path, so make sure we never use it.
11774 set dummy $ac_cv_prog_CC
11775 shift
11776 if test $# != 0; then
11777 # We chose a different compiler from the bogus one.
11778 # However, it has the same basename, so the bogon will be chosen
11779 # first if we set CC to just the basename; use the full file name.
11780 shift
11781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11782 fi
11783 fi
11784 fi
11785 fi
11786 CC=$ac_cv_prog_CC
11787 if test -n "$CC"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11789 $as_echo "$CC" >&6; }
11790 else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11793 fi
11794
11795
11796 fi
11797 if test -z "$CC"; then
11798 if test -n "$ac_tool_prefix"; then
11799 for ac_prog in cl.exe
11800 do
11801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if test "${ac_cv_prog_CC+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 if test -n "$CC"; then
11809 ac_cv_prog_CC="$CC" # Let the user override the test.
11810 else
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822 done
11823 done
11824 IFS=$as_save_IFS
11825
11826 fi
11827 fi
11828 CC=$ac_cv_prog_CC
11829 if test -n "$CC"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11831 $as_echo "$CC" >&6; }
11832 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11835 fi
11836
11837
11838 test -n "$CC" && break
11839 done
11840 fi
11841 if test -z "$CC"; then
11842 ac_ct_CC=$CC
11843 for ac_prog in cl.exe
11844 do
11845 # Extract the first word of "$ac_prog", so it can be a program name with args.
11846 set dummy $ac_prog; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 if test -n "$ac_ct_CC"; then
11853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11854 else
11855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856 for as_dir in $PATH
11857 do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11862 ac_cv_prog_ac_ct_CC="$ac_prog"
11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 break 2
11865 fi
11866 done
11867 done
11868 IFS=$as_save_IFS
11869
11870 fi
11871 fi
11872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11873 if test -n "$ac_ct_CC"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11875 $as_echo "$ac_ct_CC" >&6; }
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880
11881
11882 test -n "$ac_ct_CC" && break
11883 done
11884
11885 if test "x$ac_ct_CC" = x; then
11886 CC=""
11887 else
11888 case $cross_compiling:$ac_tool_warned in
11889 yes:)
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11892 ac_tool_warned=yes ;;
11893 esac
11894 CC=$ac_ct_CC
11895 fi
11896 fi
11897
11898 fi
11899
11900
11901 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11903 as_fn_error $? "no acceptable C compiler found in \$PATH
11904 See \`config.log' for more details" "$LINENO" 5 ; }
11905
11906 # Provide some information about the compiler.
11907 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11908 set X $ac_compile
11909 ac_compiler=$2
11910 for ac_option in --version -v -V -qversion; do
11911 { { ac_try="$ac_compiler $ac_option >&5"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11917 $as_echo "$ac_try_echo"; } >&5
11918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11919 ac_status=$?
11920 if test -s conftest.err; then
11921 sed '10a\
11922 ... rest of stderr output deleted ...
11923 10q' conftest.err >conftest.er1
11924 cat conftest.er1 >&5
11925 fi
11926 rm -f conftest.er1 conftest.err
11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928 test $ac_status = 0; }
11929 done
11930
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11932 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11933 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938
11939 int
11940 main ()
11941 {
11942 #ifndef __GNUC__
11943 choke me
11944 #endif
11945
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 if ac_fn_c_try_compile "$LINENO"; then :
11951 ac_compiler_gnu=yes
11952 else
11953 ac_compiler_gnu=no
11954 fi
11955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11957
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11960 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11961 if test $ac_compiler_gnu = yes; then
11962 GCC=yes
11963 else
11964 GCC=
11965 fi
11966 ac_test_CFLAGS=${CFLAGS+set}
11967 ac_save_CFLAGS=$CFLAGS
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11969 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11970 if test "${ac_cv_prog_cc_g+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 ac_save_c_werror_flag=$ac_c_werror_flag
11974 ac_c_werror_flag=yes
11975 ac_cv_prog_cc_g=no
11976 CFLAGS="-g"
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979
11980 int
11981 main ()
11982 {
11983
11984 ;
11985 return 0;
11986 }
11987 _ACEOF
11988 if ac_fn_c_try_compile "$LINENO"; then :
11989 ac_cv_prog_cc_g=yes
11990 else
11991 CFLAGS=""
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994
11995 int
11996 main ()
11997 {
11998
11999 ;
12000 return 0;
12001 }
12002 _ACEOF
12003 if ac_fn_c_try_compile "$LINENO"; then :
12004
12005 else
12006 ac_c_werror_flag=$ac_save_c_werror_flag
12007 CFLAGS="-g"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010
12011 int
12012 main ()
12013 {
12014
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020 ac_cv_prog_cc_g=yes
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 ac_c_werror_flag=$ac_save_c_werror_flag
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12030 $as_echo "$ac_cv_prog_cc_g" >&6; }
12031 if test "$ac_test_CFLAGS" = set; then
12032 CFLAGS=$ac_save_CFLAGS
12033 elif test $ac_cv_prog_cc_g = yes; then
12034 if test "$GCC" = yes; then
12035 CFLAGS="-g -O2"
12036 else
12037 CFLAGS="-g"
12038 fi
12039 else
12040 if test "$GCC" = yes; then
12041 CFLAGS="-O2"
12042 else
12043 CFLAGS=
12044 fi
12045 fi
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12047 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12048 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 ac_cv_prog_cc_c89=no
12052 ac_save_CC=$CC
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 #include <stdarg.h>
12056 #include <stdio.h>
12057 #include <sys/types.h>
12058 #include <sys/stat.h>
12059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12060 struct buf { int x; };
12061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12062 static char *e (p, i)
12063 char **p;
12064 int i;
12065 {
12066 return p[i];
12067 }
12068 static char *f (char * (*g) (char **, int), char **p, ...)
12069 {
12070 char *s;
12071 va_list v;
12072 va_start (v,p);
12073 s = g (p, va_arg (v,int));
12074 va_end (v);
12075 return s;
12076 }
12077
12078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12079 function prototypes and stuff, but not '\xHH' hex character constants.
12080 These don't provoke an error unfortunately, instead are silently treated
12081 as 'x'. The following induces an error, until -std is added to get
12082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12083 array size at least. It's necessary to write '\x00'==0 to get something
12084 that's true only with -std. */
12085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12086
12087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12088 inside strings and character constants. */
12089 #define FOO(x) 'x'
12090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12091
12092 int test (int i, double x);
12093 struct s1 {int (*f) (int a);};
12094 struct s2 {int (*f) (double a);};
12095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12096 int argc;
12097 char **argv;
12098 int
12099 main ()
12100 {
12101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12108 do
12109 CC="$ac_save_CC $ac_arg"
12110 if ac_fn_c_try_compile "$LINENO"; then :
12111 ac_cv_prog_cc_c89=$ac_arg
12112 fi
12113 rm -f core conftest.err conftest.$ac_objext
12114 test "x$ac_cv_prog_cc_c89" != "xno" && break
12115 done
12116 rm -f conftest.$ac_ext
12117 CC=$ac_save_CC
12118
12119 fi
12120 # AC_CACHE_VAL
12121 case "x$ac_cv_prog_cc_c89" in
12122 x)
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12124 $as_echo "none needed" >&6; } ;;
12125 xno)
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12127 $as_echo "unsupported" >&6; } ;;
12128 *)
12129 CC="$CC $ac_cv_prog_cc_c89"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12131 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12132 esac
12133 if test "x$ac_cv_prog_cc_c89" != xno; then :
12134
12135 fi
12136
12137 ac_ext=c
12138 ac_cpp='$CPP $CPPFLAGS'
12139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12142
12143 depcc="$CC" am_compiler_list=
12144
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12146 $as_echo_n "checking dependency style of $depcc... " >&6; }
12147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12151 # We make a subdir and do the tests there. Otherwise we can end up
12152 # making bogus files that we don't know about and never remove. For
12153 # instance it was reported that on HP-UX the gcc test will end up
12154 # making a dummy file named `D' -- because `-MD' means `put the output
12155 # in D'.
12156 mkdir conftest.dir
12157 # Copy depcomp to subdir because otherwise we won't find it if we're
12158 # using a relative directory.
12159 cp "$am_depcomp" conftest.dir
12160 cd conftest.dir
12161 # We will build objects and dependencies in a subdirectory because
12162 # it helps to detect inapplicable dependency modes. For instance
12163 # both Tru64's cc and ICC support -MD to output dependencies as a
12164 # side effect of compilation, but ICC will put the dependencies in
12165 # the current directory while Tru64 will put them in the object
12166 # directory.
12167 mkdir sub
12168
12169 am_cv_CC_dependencies_compiler_type=none
12170 if test "$am_compiler_list" = ""; then
12171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12172 fi
12173 am__universal=false
12174 case " $depcc " in #(
12175 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12176 esac
12177
12178 for depmode in $am_compiler_list; do
12179 # Setup a source with many dependencies, because some compilers
12180 # like to wrap large dependency lists on column 80 (with \), and
12181 # we should not choose a depcomp mode which is confused by this.
12182 #
12183 # We need to recreate these files for each test, as the compiler may
12184 # overwrite some of them when testing with obscure command lines.
12185 # This happens at least with the AIX C compiler.
12186 : > sub/conftest.c
12187 for i in 1 2 3 4 5 6; do
12188 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12189 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12190 # Solaris 8's {/usr,}/bin/sh.
12191 touch sub/conftst$i.h
12192 done
12193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12194
12195 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12196 # mode. It turns out that the SunPro C++ compiler does not properly
12197 # handle `-M -o', and we need to detect this. Also, some Intel
12198 # versions had trouble with output in subdirs
12199 am__obj=sub/conftest.${OBJEXT-o}
12200 am__minus_obj="-o $am__obj"
12201 case $depmode in
12202 gcc)
12203 # This depmode causes a compiler race in universal mode.
12204 test "$am__universal" = false || continue
12205 ;;
12206 nosideeffect)
12207 # after this tag, mechanisms are not by side-effect, so they'll
12208 # only be used when explicitly requested
12209 if test "x$enable_dependency_tracking" = xyes; then
12210 continue
12211 else
12212 break
12213 fi
12214 ;;
12215 msvisualcpp | msvcmsys)
12216 # This compiler won't grok `-c -o', but also, the minuso test has
12217 # not run yet. These depmodes are late enough in the game, and
12218 # so weak that their functioning should not be impacted.
12219 am__obj=conftest.${OBJEXT-o}
12220 am__minus_obj=
12221 ;;
12222 none) break ;;
12223 esac
12224 if depmode=$depmode \
12225 source=sub/conftest.c object=$am__obj \
12226 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12227 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12228 >/dev/null 2>conftest.err &&
12229 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12231 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12233 # icc doesn't choke on unknown options, it will just issue warnings
12234 # or remarks (even with -Werror). So we grep stderr for any message
12235 # that says an option was ignored or not supported.
12236 # When given -MP, icc 7.0 and 7.1 complain thusly:
12237 # icc: Command line warning: ignoring option '-M'; no argument required
12238 # The diagnosis changed in icc 8.0:
12239 # icc: Command line remark: option '-MP' not supported
12240 if (grep 'ignoring option' conftest.err ||
12241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12242 am_cv_CC_dependencies_compiler_type=$depmode
12243 break
12244 fi
12245 fi
12246 done
12247
12248 cd ..
12249 rm -rf conftest.dir
12250 else
12251 am_cv_CC_dependencies_compiler_type=none
12252 fi
12253
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12256 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12258
12259 if
12260 test "x$enable_dependency_tracking" != xno \
12261 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12262 am__fastdepCC_TRUE=
12263 am__fastdepCC_FALSE='#'
12264 else
12265 am__fastdepCC_TRUE='#'
12266 am__fastdepCC_FALSE=
12267 fi
12268
12269
12270
12271 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
12272
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12274 $as_echo_n "checking for ANSI C header files... " >&6; }
12275 if test "${ac_cv_header_stdc+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <stdlib.h>
12281 #include <stdarg.h>
12282 #include <string.h>
12283 #include <float.h>
12284
12285 int
12286 main ()
12287 {
12288
12289 ;
12290 return 0;
12291 }
12292 _ACEOF
12293 if ac_fn_c_try_compile "$LINENO"; then :
12294 ac_cv_header_stdc=yes
12295 else
12296 ac_cv_header_stdc=no
12297 fi
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299
12300 if test $ac_cv_header_stdc = yes; then
12301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 #include <string.h>
12305
12306 _ACEOF
12307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12308 $EGREP "memchr" >/dev/null 2>&1; then :
12309
12310 else
12311 ac_cv_header_stdc=no
12312 fi
12313 rm -f conftest*
12314
12315 fi
12316
12317 if test $ac_cv_header_stdc = yes; then
12318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 #include <stdlib.h>
12322
12323 _ACEOF
12324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12325 $EGREP "free" >/dev/null 2>&1; then :
12326
12327 else
12328 ac_cv_header_stdc=no
12329 fi
12330 rm -f conftest*
12331
12332 fi
12333
12334 if test $ac_cv_header_stdc = yes; then
12335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12336 if test "$cross_compiling" = yes; then :
12337 :
12338 else
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 #include <ctype.h>
12342 #include <stdlib.h>
12343 #if ((' ' & 0x0FF) == 0x020)
12344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12346 #else
12347 # define ISLOWER(c) \
12348 (('a' <= (c) && (c) <= 'i') \
12349 || ('j' <= (c) && (c) <= 'r') \
12350 || ('s' <= (c) && (c) <= 'z'))
12351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12352 #endif
12353
12354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12355 int
12356 main ()
12357 {
12358 int i;
12359 for (i = 0; i < 256; i++)
12360 if (XOR (islower (i), ISLOWER (i))
12361 || toupper (i) != TOUPPER (i))
12362 return 2;
12363 return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_run "$LINENO"; then :
12367
12368 else
12369 ac_cv_header_stdc=no
12370 fi
12371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12372 conftest.$ac_objext conftest.beam conftest.$ac_ext
12373 fi
12374
12375 fi
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12378 $as_echo "$ac_cv_header_stdc" >&6; }
12379 if test $ac_cv_header_stdc = yes; then
12380
12381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12382
12383 fi
12384
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12387 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12388 set x ${MAKE-make}
12389 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12390 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 cat >conftest.make <<\_ACEOF
12394 SHELL = /bin/sh
12395 all:
12396 @echo '@@@%%%=$(MAKE)=@@@%%%'
12397 _ACEOF
12398 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12399 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12400 *@@@%%%=?*=@@@%%%*)
12401 eval ac_cv_prog_make_${ac_make}_set=yes;;
12402 *)
12403 eval ac_cv_prog_make_${ac_make}_set=no;;
12404 esac
12405 rm -f conftest.make
12406 fi
12407 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12409 $as_echo "yes" >&6; }
12410 SET_MAKE=
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12414 SET_MAKE="MAKE=${MAKE-make}"
12415 fi
12416
12417
12418 # libtool versioning
12419 #
12420 # See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
12421 #
12422 LT_CURRENT=5
12423 LT_REVISION=1
12424 LT_AGE=0
12425
12426
12427
12428
12429 GLIB_REQUIRED=2.14.0
12430 DBUS_REQUIRED=0.70
12431 STB_REQUIRED=2.10.1
12432 HAL_REQUIRED=0.5.9
12433
12434
12435 GETTEXT_PACKAGE=liboobs
12436
12437
12438 cat >>confdefs.h <<_ACEOF
12439 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
12440 _ACEOF
12441
12442
12443
12444
12445 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12446 set dummy gtkdoc-check; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 case $GTKDOC_CHECK in
12453 [\\/]* | ?:[\\/]*)
12454 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12455 ;;
12456 *)
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12459 do
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12464 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 break 2
12467 fi
12468 done
12469 done
12470 IFS=$as_save_IFS
12471
12472 ;;
12473 esac
12474 fi
12475 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12476 if test -n "$GTKDOC_CHECK"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12478 $as_echo "$GTKDOC_CHECK" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483
12484
12485 for ac_prog in gtkdoc-rebase
12486 do
12487 # Extract the first word of "$ac_prog", so it can be a program name with args.
12488 set dummy $ac_prog; ac_word=$2
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490 $as_echo_n "checking for $ac_word... " >&6; }
12491 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 case $GTKDOC_REBASE in
12495 [\\/]* | ?:[\\/]*)
12496 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12497 ;;
12498 *)
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12501 do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12506 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12509 fi
12510 done
12511 done
12512 IFS=$as_save_IFS
12513
12514 ;;
12515 esac
12516 fi
12517 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12518 if test -n "$GTKDOC_REBASE"; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12520 $as_echo "$GTKDOC_REBASE" >&6; }
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12524 fi
12525
12526
12527 test -n "$GTKDOC_REBASE" && break
12528 done
12529 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12530
12531 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12532 set dummy gtkdoc-mkpdf; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 case $GTKDOC_MKPDF in
12539 [\\/]* | ?:[\\/]*)
12540 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12541 ;;
12542 *)
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12553 fi
12554 done
12555 done
12556 IFS=$as_save_IFS
12557
12558 ;;
12559 esac
12560 fi
12561 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12562 if test -n "$GTKDOC_MKPDF"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12564 $as_echo "$GTKDOC_MKPDF" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12568 fi
12569
12570
12571
12572
12573 # Check whether --with-html-dir was given.
12574 if test "${with_html_dir+set}" = set; then :
12575 withval=$with_html_dir;
12576 else
12577 with_html_dir='${datadir}/gtk-doc/html'
12578 fi
12579
12580 HTML_DIR="$with_html_dir"
12581
12582
12583 # Check whether --enable-gtk-doc was given.
12584 if test "${enable_gtk_doc+set}" = set; then :
12585 enableval=$enable_gtk_doc;
12586 else
12587 enable_gtk_doc=no
12588 fi
12589
12590
12591 if test x$enable_gtk_doc = xyes; then
12592 if test -n "$PKG_CONFIG" && \
12593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.9\""; } >&5
12594 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.9") 2>&5
12595 ac_status=$?
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; }; then
12598 :
12599 else
12600 as_fn_error $? "You need to have gtk-doc >= 1.9 installed to build $PACKAGE_NAME" "$LINENO" 5
12601 fi
12602 fi
12603
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12605 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12607 $as_echo "$enable_gtk_doc" >&6; }
12608
12609 # Check whether --enable-gtk-doc-html was given.
12610 if test "${enable_gtk_doc_html+set}" = set; then :
12611 enableval=$enable_gtk_doc_html;
12612 else
12613 enable_gtk_doc_html=yes
12614 fi
12615
12616 # Check whether --enable-gtk-doc-pdf was given.
12617 if test "${enable_gtk_doc_pdf+set}" = set; then :
12618 enableval=$enable_gtk_doc_pdf;
12619 else
12620 enable_gtk_doc_pdf=no
12621 fi
12622
12623
12624 if test -z "$GTKDOC_MKPDF"; then
12625 enable_gtk_doc_pdf=no
12626 fi
12627
12628
12629 if test x$enable_gtk_doc = xyes; then
12630 ENABLE_GTK_DOC_TRUE=
12631 ENABLE_GTK_DOC_FALSE='#'
12632 else
12633 ENABLE_GTK_DOC_TRUE='#'
12634 ENABLE_GTK_DOC_FALSE=
12635 fi
12636
12637 if test x$enable_gtk_doc_html = xyes; then
12638 GTK_DOC_BUILD_HTML_TRUE=
12639 GTK_DOC_BUILD_HTML_FALSE='#'
12640 else
12641 GTK_DOC_BUILD_HTML_TRUE='#'
12642 GTK_DOC_BUILD_HTML_FALSE=
12643 fi
12644
12645 if test x$enable_gtk_doc_pdf = xyes; then
12646 GTK_DOC_BUILD_PDF_TRUE=
12647 GTK_DOC_BUILD_PDF_FALSE='#'
12648 else
12649 GTK_DOC_BUILD_PDF_TRUE='#'
12650 GTK_DOC_BUILD_PDF_FALSE=
12651 fi
12652
12653 if test -n "$LIBTOOL"; then
12654 GTK_DOC_USE_LIBTOOL_TRUE=
12655 GTK_DOC_USE_LIBTOOL_FALSE='#'
12656 else
12657 GTK_DOC_USE_LIBTOOL_TRUE='#'
12658 GTK_DOC_USE_LIBTOOL_FALSE=
12659 fi
12660
12661 if test -n "$GTKDOC_REBASE"; then
12662 GTK_DOC_USE_REBASE_TRUE=
12663 GTK_DOC_USE_REBASE_FALSE='#'
12664 else
12665 GTK_DOC_USE_REBASE_TRUE='#'
12666 GTK_DOC_USE_REBASE_FALSE=
12667 fi
12668
12669
12670
12671
12672 pkg_failed=no
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OOBS" >&5
12674 $as_echo_n "checking for OOBS... " >&6; }
12675
12676 if test -n "$OOBS_CFLAGS"; then
12677 pkg_cv_OOBS_CFLAGS="$OOBS_CFLAGS"
12678 elif test -n "$PKG_CONFIG"; then
12679 if test -n "$PKG_CONFIG" && \
12680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12681 dbus-glib-1 >= \$DBUS_REQUIRED
12682 glib-2.0 >= \$GLIB_REQUIRED
12683 gobject-2.0 >= \$GLIB_REQUIRED
12684 system-tools-backends-2.0 >= \$STB_REQUIRED
12685 \""; } >&5
12686 ($PKG_CONFIG --exists --print-errors "
12687 dbus-glib-1 >= $DBUS_REQUIRED
12688 glib-2.0 >= $GLIB_REQUIRED
12689 gobject-2.0 >= $GLIB_REQUIRED
12690 system-tools-backends-2.0 >= $STB_REQUIRED
12691 ") 2>&5
12692 ac_status=$?
12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12694 test $ac_status = 0; }; then
12695 pkg_cv_OOBS_CFLAGS=`$PKG_CONFIG --cflags "
12696 dbus-glib-1 >= $DBUS_REQUIRED
12697 glib-2.0 >= $GLIB_REQUIRED
12698 gobject-2.0 >= $GLIB_REQUIRED
12699 system-tools-backends-2.0 >= $STB_REQUIRED
12700 " 2>/dev/null`
12701 else
12702 pkg_failed=yes
12703 fi
12704 else
12705 pkg_failed=untried
12706 fi
12707 if test -n "$OOBS_LIBS"; then
12708 pkg_cv_OOBS_LIBS="$OOBS_LIBS"
12709 elif test -n "$PKG_CONFIG"; then
12710 if test -n "$PKG_CONFIG" && \
12711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12712 dbus-glib-1 >= \$DBUS_REQUIRED
12713 glib-2.0 >= \$GLIB_REQUIRED
12714 gobject-2.0 >= \$GLIB_REQUIRED
12715 system-tools-backends-2.0 >= \$STB_REQUIRED
12716 \""; } >&5
12717 ($PKG_CONFIG --exists --print-errors "
12718 dbus-glib-1 >= $DBUS_REQUIRED
12719 glib-2.0 >= $GLIB_REQUIRED
12720 gobject-2.0 >= $GLIB_REQUIRED
12721 system-tools-backends-2.0 >= $STB_REQUIRED
12722 ") 2>&5
12723 ac_status=$?
12724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12725 test $ac_status = 0; }; then
12726 pkg_cv_OOBS_LIBS=`$PKG_CONFIG --libs "
12727 dbus-glib-1 >= $DBUS_REQUIRED
12728 glib-2.0 >= $GLIB_REQUIRED
12729 gobject-2.0 >= $GLIB_REQUIRED
12730 system-tools-backends-2.0 >= $STB_REQUIRED
12731 " 2>/dev/null`
12732 else
12733 pkg_failed=yes
12734 fi
12735 else
12736 pkg_failed=untried
12737 fi
12738
12739
12740
12741 if test $pkg_failed = yes; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12744
12745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12746 _pkg_short_errors_supported=yes
12747 else
12748 _pkg_short_errors_supported=no
12749 fi
12750 if test $_pkg_short_errors_supported = yes; then
12751 OOBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
12752 dbus-glib-1 >= $DBUS_REQUIRED
12753 glib-2.0 >= $GLIB_REQUIRED
12754 gobject-2.0 >= $GLIB_REQUIRED
12755 system-tools-backends-2.0 >= $STB_REQUIRED
12756 " 2>&1`
12757 else
12758 OOBS_PKG_ERRORS=`$PKG_CONFIG --print-errors "
12759 dbus-glib-1 >= $DBUS_REQUIRED
12760 glib-2.0 >= $GLIB_REQUIRED
12761 gobject-2.0 >= $GLIB_REQUIRED
12762 system-tools-backends-2.0 >= $STB_REQUIRED
12763 " 2>&1`
12764 fi
12765 # Put the nasty error message in config.log where it belongs
12766 echo "$OOBS_PKG_ERRORS" >&5
12767
12768 as_fn_error $? "Package requirements (
12769 dbus-glib-1 >= $DBUS_REQUIRED
12770 glib-2.0 >= $GLIB_REQUIRED
12771 gobject-2.0 >= $GLIB_REQUIRED
12772 system-tools-backends-2.0 >= $STB_REQUIRED
12773 ) were not met:
12774
12775 $OOBS_PKG_ERRORS
12776
12777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12778 installed software in a non-standard prefix.
12779
12780 Alternatively, you may set the environment variables OOBS_CFLAGS
12781 and OOBS_LIBS to avoid the need to call pkg-config.
12782 See the pkg-config man page for more details." "$LINENO" 5
12783 elif test $pkg_failed = untried; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12788 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12789 is in your PATH or set the PKG_CONFIG environment variable to the full
12790 path to pkg-config.
12791
12792 Alternatively, you may set the environment variables OOBS_CFLAGS
12793 and OOBS_LIBS to avoid the need to call pkg-config.
12794 See the pkg-config man page for more details.
12795
12796 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12797 See \`config.log' for more details" "$LINENO" 5 ; }
12798 else
12799 OOBS_CFLAGS=$pkg_cv_OOBS_CFLAGS
12800 OOBS_LIBS=$pkg_cv_OOBS_LIBS
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12802 $as_echo "yes" >&6; }
12803
12804 fi
12805
12806 OOBS_CFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE $OOBS_CFLAGS"
12807
12808
12809
12810
12811
12812 pkg_failed=no
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
12814 $as_echo_n "checking for HAL... " >&6; }
12815
12816 if test -n "$HAL_CFLAGS"; then
12817 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
12818 elif test -n "$PKG_CONFIG"; then
12819 if test -n "$PKG_CONFIG" && \
12820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal >= \$HAL_REQUIRED\""; } >&5
12821 ($PKG_CONFIG --exists --print-errors "hal >= $HAL_REQUIRED") 2>&5
12822 ac_status=$?
12823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824 test $ac_status = 0; }; then
12825 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal >= $HAL_REQUIRED" 2>/dev/null`
12826 else
12827 pkg_failed=yes
12828 fi
12829 else
12830 pkg_failed=untried
12831 fi
12832 if test -n "$HAL_LIBS"; then
12833 pkg_cv_HAL_LIBS="$HAL_LIBS"
12834 elif test -n "$PKG_CONFIG"; then
12835 if test -n "$PKG_CONFIG" && \
12836 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal >= \$HAL_REQUIRED\""; } >&5
12837 ($PKG_CONFIG --exists --print-errors "hal >= $HAL_REQUIRED") 2>&5
12838 ac_status=$?
12839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12840 test $ac_status = 0; }; then
12841 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal >= $HAL_REQUIRED" 2>/dev/null`
12842 else
12843 pkg_failed=yes
12844 fi
12845 else
12846 pkg_failed=untried
12847 fi
12848
12849
12850
12851 if test $pkg_failed = yes; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854
12855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12856 _pkg_short_errors_supported=yes
12857 else
12858 _pkg_short_errors_supported=no
12859 fi
12860 if test $_pkg_short_errors_supported = yes; then
12861 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hal >= $HAL_REQUIRED" 2>&1`
12862 else
12863 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hal >= $HAL_REQUIRED" 2>&1`
12864 fi
12865 # Put the nasty error message in config.log where it belongs
12866 echo "$HAL_PKG_ERRORS" >&5
12867
12868 have_hal=no
12869 elif test $pkg_failed = untried; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 $as_echo "no" >&6; }
12872 have_hal=no
12873 else
12874 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
12875 HAL_LIBS=$pkg_cv_HAL_LIBS
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12878 have_hal=yes
12879 fi
12880
12881
12882 # Check whether --with-hal was given.
12883 if test "${with_hal+set}" = set; then :
12884 withval=$with_hal; with_hal="$withval"
12885 else
12886 with_hal="no"
12887 fi
12888
12889
12890 if test x"$have_hal" = x"yes" && test x"$with_hal" = x"yes"; then
12891
12892 $as_echo "#define WITH_HAL /**/" >>confdefs.h
12893
12894 else
12895 if test x"$with_hal" = x"yes"; then
12896 as_fn_error $? "HAL Library requirements ($HAL_REQUIRED)
12897 not met; consider using --with-hal=no option, or adjusting the PKG_CONFIG_PATH
12898 environment variable if your libraries are in a nonstandard prefix so pkg-config
12899 can find them." "$LINENO" 5
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAL Library requirements ($HAL_REQUIRED) not met; disabling HAL support." >&5
12902 $as_echo "$as_me: WARNING: HAL Library requirements ($HAL_REQUIRED) not met; disabling HAL support." >&2;}
12903 fi
12904 fi
12905
12906
12907
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12910 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12911 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 ac_check_lib_save_LIBS=$LIBS
12915 LIBS="-lcrypt $LIBS"
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918
12919 /* Override any GCC internal prototype to avoid an error.
12920 Use char because int might match the return type of a GCC
12921 builtin and then its argument prototype would still apply. */
12922 #ifdef __cplusplus
12923 extern "C"
12924 #endif
12925 char crypt ();
12926 int
12927 main ()
12928 {
12929 return crypt ();
12930 ;
12931 return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_c_try_link "$LINENO"; then :
12935 ac_cv_lib_crypt_crypt=yes
12936 else
12937 ac_cv_lib_crypt_crypt=no
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 LIBS=$ac_check_lib_save_LIBS
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12944 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12945 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_LIBCRYPT 1
12948 _ACEOF
12949
12950 LIBS="-lcrypt $LIBS"
12951
12952 else
12953 as_fn_error $? "crypt library is required." "$LINENO" 5
12954 fi
12955
12956 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12957 if test "x$ac_cv_header_crypt_h" = x""yes; then :
12958
12959 $as_echo "#define HAVE_CRYPT_H \"\"" >>confdefs.h
12960
12961 fi
12962
12963
12964
12965 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
12966 if test "x$ac_cv_header_utmpx_h" = x""yes; then :
12967
12968 else
12969 as_fn_error $? "utmpx.h not found" "$LINENO" 5
12970 fi
12971
12972
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rtnetlink exists" >&5
12975 $as_echo_n "checking whether rtnetlink exists... " >&6; }
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12978
12979 #include <sys/types.h>
12980 #include <sys/socket.h>
12981 #include <linux/netlink.h>
12982 #include <linux/rtnetlink.h>
12983
12984 _ACEOF
12985 if ac_fn_c_try_cpp "$LINENO"; then :
12986 have_rtnetlink=yes
12987 else
12988 have_rtnetlink=no
12989 fi
12990 rm -f conftest.err conftest.i conftest.$ac_ext
12991
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_rtnetlink" >&5
12993 $as_echo "$have_rtnetlink" >&6; }
12994 if test x$have_rtnetlink = xyes; then
12995 HAVE_RTNETLINK_TRUE=
12996 HAVE_RTNETLINK_FALSE='#'
12997 else
12998 HAVE_RTNETLINK_TRUE='#'
12999 HAVE_RTNETLINK_FALSE=
13000 fi
13001
13002
13003 #### gcc warning flags (taken from PolicyKit-gnome)
13004
13005 if test "x$GCC" = "xyes"; then
13006 case " $CFLAGS " in
13007 *[\ \ ]-Wall[\ \ ]*) ;;
13008 *) CFLAGS="$CFLAGS -Wall" ;;
13009 esac
13010
13011 case " $CFLAGS " in
13012 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
13013 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
13014 esac
13015
13016 case " $CFLAGS " in
13017 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
13018 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
13019 esac
13020
13021 case " $CFLAGS " in
13022 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
13023 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
13024 esac
13025
13026 case " $CFLAGS " in
13027 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
13028 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
13029 esac
13030
13031 case " $CFLAGS " in
13032 *[\ \ ]-Wcast-align[\ \ ]*) ;;
13033 *) CFLAGS="$CFLAGS -Wcast-align" ;;
13034 esac
13035
13036 case " $CFLAGS " in
13037 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
13038 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
13039 esac
13040
13041 case " $CFLAGS " in
13042 *[\ \ ]-Wformat[\ \ ]*) ;;
13043 *) CFLAGS="$CFLAGS -Wformat" ;;
13044 esac
13045
13046 case " $CFLAGS " in
13047 *[\ \ ]-Wformat-security[\ \ ]*) ;;
13048 *) CFLAGS="$CFLAGS -Wformat-security" ;;
13049 esac
13050
13051 fi
13052
13053 ac_config_files="$ac_config_files Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml oobs/Makefile liboobs-1.pc"
13054
13055 cat >confcache <<\_ACEOF
13056 # This file is a shell script that caches the results of configure
13057 # tests run on this system so they can be shared between configure
13058 # scripts and configure runs, see configure's option --config-cache.
13059 # It is not useful on other systems. If it contains results you don't
13060 # want to keep, you may remove or edit it.
13061 #
13062 # config.status only pays attention to the cache file if you give it
13063 # the --recheck option to rerun configure.
13064 #
13065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13067 # following values.
13068
13069 _ACEOF
13070
13071 # The following way of writing the cache mishandles newlines in values,
13072 # but we know of no workaround that is simple, portable, and efficient.
13073 # So, we kill variables containing newlines.
13074 # Ultrix sh set writes to stderr and can't be redirected directly,
13075 # and sets the high bit in the cache file unless we assign to the vars.
13076 (
13077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13078 eval ac_val=\$$ac_var
13079 case $ac_val in #(
13080 *${as_nl}*)
13081 case $ac_var in #(
13082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13084 esac
13085 case $ac_var in #(
13086 _ | IFS | as_nl) ;; #(
13087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13088 *) { eval $ac_var=; unset $ac_var;} ;;
13089 esac ;;
13090 esac
13091 done
13092
13093 (set) 2>&1 |
13094 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13095 *${as_nl}ac_space=\ *)
13096 # `set' does not quote correctly, so add quotes: double-quote
13097 # substitution turns \\\\ into \\, and sed turns \\ into \.
13098 sed -n \
13099 "s/'/'\\\\''/g;
13100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13101 ;; #(
13102 *)
13103 # `set' quotes correctly as required by POSIX, so do not add quotes.
13104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13105 ;;
13106 esac |
13107 sort
13108 ) |
13109 sed '
13110 /^ac_cv_env_/b end
13111 t clear
13112 :clear
13113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13114 t end
13115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13116 :end' >>confcache
13117 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13118 if test -w "$cache_file"; then
13119 test "x$cache_file" != "x/dev/null" &&
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13121 $as_echo "$as_me: updating cache $cache_file" >&6;}
13122 cat confcache >$cache_file
13123 else
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13125 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13126 fi
13127 fi
13128 rm -f confcache
13129
13130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13131 # Let make expand exec_prefix.
13132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13133
13134 DEFS=-DHAVE_CONFIG_H
13135
13136 ac_libobjs=
13137 ac_ltlibobjs=
13138 U=
13139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13140 # 1. Remove the extension, and $U if already installed.
13141 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13142 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13144 # will be set to the directory where LIBOBJS objects are built.
13145 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13146 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13147 done
13148 LIBOBJS=$ac_libobjs
13149
13150 LTLIBOBJS=$ac_ltlibobjs
13151
13152
13153 if test -n "$EXEEXT"; then
13154 am__EXEEXT_TRUE=
13155 am__EXEEXT_FALSE='#'
13156 else
13157 am__EXEEXT_TRUE='#'
13158 am__EXEEXT_FALSE=
13159 fi
13160
13161 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13162 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13164 fi
13165 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13166 as_fn_error $? "conditional \"AMDEP\" was never defined.
13167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13168 fi
13169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13170 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13172 fi
13173 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13174 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13176 fi
13177 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13178 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13180 fi
13181 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13182 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13184 fi
13185 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13186 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13188 fi
13189 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13190 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13192 fi
13193 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13194 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13196 fi
13197 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13198 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13200 fi
13201 if test -z "${HAVE_RTNETLINK_TRUE}" && test -z "${HAVE_RTNETLINK_FALSE}"; then
13202 as_fn_error $? "conditional \"HAVE_RTNETLINK\" was never defined.
13203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13204 fi
13205
13206 : ${CONFIG_STATUS=./config.status}
13207 ac_write_fail=0
13208 ac_clean_files_save=$ac_clean_files
13209 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13211 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13212 as_write_fail=0
13213 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13214 #! $SHELL
13215 # Generated by $as_me.
13216 # Run this file to recreate the current configuration.
13217 # Compiler output produced by configure, useful for debugging
13218 # configure, is in config.log if it exists.
13219
13220 debug=false
13221 ac_cs_recheck=false
13222 ac_cs_silent=false
13223
13224 SHELL=\${CONFIG_SHELL-$SHELL}
13225 export SHELL
13226 _ASEOF
13227 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13228 ## -------------------- ##
13229 ## M4sh Initialization. ##
13230 ## -------------------- ##
13231
13232 # Be more Bourne compatible
13233 DUALCASE=1; export DUALCASE # for MKS sh
13234 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13235 emulate sh
13236 NULLCMD=:
13237 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13238 # is contrary to our usage. Disable this feature.
13239 alias -g '${1+"$@"}'='"$@"'
13240 setopt NO_GLOB_SUBST
13241 else
13242 case `(set -o) 2>/dev/null` in #(
13243 *posix*) :
13244 set -o posix ;; #(
13245 *) :
13246 ;;
13247 esac
13248 fi
13249
13250
13251 as_nl='
13252 '
13253 export as_nl
13254 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13255 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13256 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13257 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13258 # Prefer a ksh shell builtin over an external printf program on Solaris,
13259 # but without wasting forks for bash or zsh.
13260 if test -z "$BASH_VERSION$ZSH_VERSION" \
13261 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13262 as_echo='print -r --'
13263 as_echo_n='print -rn --'
13264 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13265 as_echo='printf %s\n'
13266 as_echo_n='printf %s'
13267 else
13268 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13269 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13270 as_echo_n='/usr/ucb/echo -n'
13271 else
13272 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13273 as_echo_n_body='eval
13274 arg=$1;
13275 case $arg in #(
13276 *"$as_nl"*)
13277 expr "X$arg" : "X\\(.*\\)$as_nl";
13278 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13279 esac;
13280 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13281 '
13282 export as_echo_n_body
13283 as_echo_n='sh -c $as_echo_n_body as_echo'
13284 fi
13285 export as_echo_body
13286 as_echo='sh -c $as_echo_body as_echo'
13287 fi
13288
13289 # The user is always right.
13290 if test "${PATH_SEPARATOR+set}" != set; then
13291 PATH_SEPARATOR=:
13292 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13293 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13294 PATH_SEPARATOR=';'
13295 }
13296 fi
13297
13298
13299 # IFS
13300 # We need space, tab and new line, in precisely that order. Quoting is
13301 # there to prevent editors from complaining about space-tab.
13302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13303 # splitting by setting IFS to empty value.)
13304 IFS=" "" $as_nl"
13305
13306 # Find who we are. Look in the path if we contain no directory separator.
13307 case $0 in #((
13308 *[\\/]* ) as_myself=$0 ;;
13309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13315 done
13316 IFS=$as_save_IFS
13317
13318 ;;
13319 esac
13320 # We did not find ourselves, most probably we were run as `sh COMMAND'
13321 # in which case we are not to be found in the path.
13322 if test "x$as_myself" = x; then
13323 as_myself=$0
13324 fi
13325 if test ! -f "$as_myself"; then
13326 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13327 exit 1
13328 fi
13329
13330 # Unset variables that we do not need and which cause bugs (e.g. in
13331 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13332 # suppresses any "Segmentation fault" message there. '((' could
13333 # trigger a bug in pdksh 5.2.14.
13334 for as_var in BASH_ENV ENV MAIL MAILPATH
13335 do eval test x\${$as_var+set} = xset \
13336 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13337 done
13338 PS1='$ '
13339 PS2='> '
13340 PS4='+ '
13341
13342 # NLS nuisances.
13343 LC_ALL=C
13344 export LC_ALL
13345 LANGUAGE=C
13346 export LANGUAGE
13347
13348 # CDPATH.
13349 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13350
13351
13352 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13353 # ----------------------------------------
13354 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13355 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13356 # script with STATUS, using 1 if that was 0.
13357 as_fn_error ()
13358 {
13359 as_status=$1; test $as_status -eq 0 && as_status=1
13360 if test "$4"; then
13361 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13362 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13363 fi
13364 $as_echo "$as_me: error: $2" >&2
13365 as_fn_exit $as_status
13366 } # as_fn_error
13367
13368
13369 # as_fn_set_status STATUS
13370 # -----------------------
13371 # Set $? to STATUS, without forking.
13372 as_fn_set_status ()
13373 {
13374 return $1
13375 } # as_fn_set_status
13376
13377 # as_fn_exit STATUS
13378 # -----------------
13379 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13380 as_fn_exit ()
13381 {
13382 set +e
13383 as_fn_set_status $1
13384 exit $1
13385 } # as_fn_exit
13386
13387 # as_fn_unset VAR
13388 # ---------------
13389 # Portably unset VAR.
13390 as_fn_unset ()
13391 {
13392 { eval $1=; unset $1;}
13393 }
13394 as_unset=as_fn_unset
13395 # as_fn_append VAR VALUE
13396 # ----------------------
13397 # Append the text in VALUE to the end of the definition contained in VAR. Take
13398 # advantage of any shell optimizations that allow amortized linear growth over
13399 # repeated appends, instead of the typical quadratic growth present in naive
13400 # implementations.
13401 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13402 eval 'as_fn_append ()
13403 {
13404 eval $1+=\$2
13405 }'
13406 else
13407 as_fn_append ()
13408 {
13409 eval $1=\$$1\$2
13410 }
13411 fi # as_fn_append
13412
13413 # as_fn_arith ARG...
13414 # ------------------
13415 # Perform arithmetic evaluation on the ARGs, and store the result in the
13416 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13417 # must be portable across $(()) and expr.
13418 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13419 eval 'as_fn_arith ()
13420 {
13421 as_val=$(( $* ))
13422 }'
13423 else
13424 as_fn_arith ()
13425 {
13426 as_val=`expr "$@" || test $? -eq 1`
13427 }
13428 fi # as_fn_arith
13429
13430
13431 if expr a : '\(a\)' >/dev/null 2>&1 &&
13432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13433 as_expr=expr
13434 else
13435 as_expr=false
13436 fi
13437
13438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13439 as_basename=basename
13440 else
13441 as_basename=false
13442 fi
13443
13444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13445 as_dirname=dirname
13446 else
13447 as_dirname=false
13448 fi
13449
13450 as_me=`$as_basename -- "$0" ||
13451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13452 X"$0" : 'X\(//\)$' \| \
13453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13454 $as_echo X/"$0" |
13455 sed '/^.*\/\([^/][^/]*\)\/*$/{
13456 s//\1/
13457 q
13458 }
13459 /^X\/\(\/\/\)$/{
13460 s//\1/
13461 q
13462 }
13463 /^X\/\(\/\).*/{
13464 s//\1/
13465 q
13466 }
13467 s/.*/./; q'`
13468
13469 # Avoid depending upon Character Ranges.
13470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13473 as_cr_digits='0123456789'
13474 as_cr_alnum=$as_cr_Letters$as_cr_digits
13475
13476 ECHO_C= ECHO_N= ECHO_T=
13477 case `echo -n x` in #(((((
13478 -n*)
13479 case `echo 'xy\c'` in
13480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13481 xy) ECHO_C='\c';;
13482 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13483 ECHO_T=' ';;
13484 esac;;
13485 *)
13486 ECHO_N='-n';;
13487 esac
13488
13489 rm -f conf$$ conf$$.exe conf$$.file
13490 if test -d conf$$.dir; then
13491 rm -f conf$$.dir/conf$$.file
13492 else
13493 rm -f conf$$.dir
13494 mkdir conf$$.dir 2>/dev/null
13495 fi
13496 if (echo >conf$$.file) 2>/dev/null; then
13497 if ln -s conf$$.file conf$$ 2>/dev/null; then
13498 as_ln_s='ln -s'
13499 # ... but there are two gotchas:
13500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13502 # In both cases, we have to default to `cp -p'.
13503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13504 as_ln_s='cp -p'
13505 elif ln conf$$.file conf$$ 2>/dev/null; then
13506 as_ln_s=ln
13507 else
13508 as_ln_s='cp -p'
13509 fi
13510 else
13511 as_ln_s='cp -p'
13512 fi
13513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13514 rmdir conf$$.dir 2>/dev/null
13515
13516
13517 # as_fn_mkdir_p
13518 # -------------
13519 # Create "$as_dir" as a directory, including parents if necessary.
13520 as_fn_mkdir_p ()
13521 {
13522
13523 case $as_dir in #(
13524 -*) as_dir=./$as_dir;;
13525 esac
13526 test -d "$as_dir" || eval $as_mkdir_p || {
13527 as_dirs=
13528 while :; do
13529 case $as_dir in #(
13530 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13531 *) as_qdir=$as_dir;;
13532 esac
13533 as_dirs="'$as_qdir' $as_dirs"
13534 as_dir=`$as_dirname -- "$as_dir" ||
13535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13536 X"$as_dir" : 'X\(//\)[^/]' \| \
13537 X"$as_dir" : 'X\(//\)$' \| \
13538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13539 $as_echo X"$as_dir" |
13540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13541 s//\1/
13542 q
13543 }
13544 /^X\(\/\/\)[^/].*/{
13545 s//\1/
13546 q
13547 }
13548 /^X\(\/\/\)$/{
13549 s//\1/
13550 q
13551 }
13552 /^X\(\/\).*/{
13553 s//\1/
13554 q
13555 }
13556 s/.*/./; q'`
13557 test -d "$as_dir" && break
13558 done
13559 test -z "$as_dirs" || eval "mkdir $as_dirs"
13560 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13561
13562
13563 } # as_fn_mkdir_p
13564 if mkdir -p . 2>/dev/null; then
13565 as_mkdir_p='mkdir -p "$as_dir"'
13566 else
13567 test -d ./-p && rmdir ./-p
13568 as_mkdir_p=false
13569 fi
13570
13571 if test -x / >/dev/null 2>&1; then
13572 as_test_x='test -x'
13573 else
13574 if ls -dL / >/dev/null 2>&1; then
13575 as_ls_L_option=L
13576 else
13577 as_ls_L_option=
13578 fi
13579 as_test_x='
13580 eval sh -c '\''
13581 if test -d "$1"; then
13582 test -d "$1/.";
13583 else
13584 case $1 in #(
13585 -*)set "./$1";;
13586 esac;
13587 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13588 ???[sx]*):;;*)false;;esac;fi
13589 '\'' sh
13590 '
13591 fi
13592 as_executable_p=$as_test_x
13593
13594 # Sed expression to map a string onto a valid CPP name.
13595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13596
13597 # Sed expression to map a string onto a valid variable name.
13598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13599
13600
13601 exec 6>&1
13602 ## ----------------------------------- ##
13603 ## Main body of $CONFIG_STATUS script. ##
13604 ## ----------------------------------- ##
13605 _ASEOF
13606 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13607
13608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13609 # Save the log message, to keep $0 and so on meaningful, and to
13610 # report actual input values of CONFIG_FILES etc. instead of their
13611 # values after options handling.
13612 ac_log="
13613 This file was extended by liboobs $as_me 3.0.0, which was
13614 generated by GNU Autoconf 2.67. Invocation command line was
13615
13616 CONFIG_FILES = $CONFIG_FILES
13617 CONFIG_HEADERS = $CONFIG_HEADERS
13618 CONFIG_LINKS = $CONFIG_LINKS
13619 CONFIG_COMMANDS = $CONFIG_COMMANDS
13620 $ $0 $@
13621
13622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13623 "
13624
13625 _ACEOF
13626
13627 case $ac_config_files in *"
13628 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13629 esac
13630
13631 case $ac_config_headers in *"
13632 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13633 esac
13634
13635
13636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13637 # Files that config.status was made for.
13638 config_files="$ac_config_files"
13639 config_headers="$ac_config_headers"
13640 config_commands="$ac_config_commands"
13641
13642 _ACEOF
13643
13644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13645 ac_cs_usage="\
13646 \`$as_me' instantiates files and other configuration actions
13647 from templates according to the current configuration. Unless the files
13648 and actions are specified as TAGs, all are instantiated by default.
13649
13650 Usage: $0 [OPTION]... [TAG]...
13651
13652 -h, --help print this help, then exit
13653 -V, --version print version number and configuration settings, then exit
13654 --config print configuration, then exit
13655 -q, --quiet, --silent
13656 do not print progress messages
13657 -d, --debug don't remove temporary files
13658 --recheck update $as_me by reconfiguring in the same conditions
13659 --file=FILE[:TEMPLATE]
13660 instantiate the configuration file FILE
13661 --header=FILE[:TEMPLATE]
13662 instantiate the configuration header FILE
13663
13664 Configuration files:
13665 $config_files
13666
13667 Configuration headers:
13668 $config_headers
13669
13670 Configuration commands:
13671 $config_commands
13672
13673 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools>."
13674
13675 _ACEOF
13676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13677 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13678 ac_cs_version="\\
13679 liboobs config.status 3.0.0
13680 configured by $0, generated by GNU Autoconf 2.67,
13681 with options \\"\$ac_cs_config\\"
13682
13683 Copyright (C) 2010 Free Software Foundation, Inc.
13684 This config.status script is free software; the Free Software Foundation
13685 gives unlimited permission to copy, distribute and modify it."
13686
13687 ac_pwd='$ac_pwd'
13688 srcdir='$srcdir'
13689 INSTALL='$INSTALL'
13690 MKDIR_P='$MKDIR_P'
13691 AWK='$AWK'
13692 test -n "\$AWK" || AWK=awk
13693 _ACEOF
13694
13695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13696 # The default lists apply if the user does not specify any file.
13697 ac_need_defaults=:
13698 while test $# != 0
13699 do
13700 case $1 in
13701 --*=?*)
13702 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13703 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13704 ac_shift=:
13705 ;;
13706 --*=)
13707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13708 ac_optarg=
13709 ac_shift=:
13710 ;;
13711 *)
13712 ac_option=$1
13713 ac_optarg=$2
13714 ac_shift=shift
13715 ;;
13716 esac
13717
13718 case $ac_option in
13719 # Handling of the options.
13720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13721 ac_cs_recheck=: ;;
13722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13723 $as_echo "$ac_cs_version"; exit ;;
13724 --config | --confi | --conf | --con | --co | --c )
13725 $as_echo "$ac_cs_config"; exit ;;
13726 --debug | --debu | --deb | --de | --d | -d )
13727 debug=: ;;
13728 --file | --fil | --fi | --f )
13729 $ac_shift
13730 case $ac_optarg in
13731 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13732 '') as_fn_error $? "missing file argument" ;;
13733 esac
13734 as_fn_append CONFIG_FILES " '$ac_optarg'"
13735 ac_need_defaults=false;;
13736 --header | --heade | --head | --hea )
13737 $ac_shift
13738 case $ac_optarg in
13739 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13740 esac
13741 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13742 ac_need_defaults=false;;
13743 --he | --h)
13744 # Conflict between --help and --header
13745 as_fn_error $? "ambiguous option: \`$1'
13746 Try \`$0 --help' for more information.";;
13747 --help | --hel | -h )
13748 $as_echo "$ac_cs_usage"; exit ;;
13749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13751 ac_cs_silent=: ;;
13752
13753 # This is an error.
13754 -*) as_fn_error $? "unrecognized option: \`$1'
13755 Try \`$0 --help' for more information." ;;
13756
13757 *) as_fn_append ac_config_targets " $1"
13758 ac_need_defaults=false ;;
13759
13760 esac
13761 shift
13762 done
13763
13764 ac_configure_extra_args=
13765
13766 if $ac_cs_silent; then
13767 exec 6>/dev/null
13768 ac_configure_extra_args="$ac_configure_extra_args --silent"
13769 fi
13770
13771 _ACEOF
13772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13773 if \$ac_cs_recheck; then
13774 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13775 shift
13776 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13777 CONFIG_SHELL='$SHELL'
13778 export CONFIG_SHELL
13779 exec "\$@"
13780 fi
13781
13782 _ACEOF
13783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13784 exec 5>>config.log
13785 {
13786 echo
13787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13788 ## Running $as_me. ##
13789 _ASBOX
13790 $as_echo "$ac_log"
13791 } >&5
13792
13793 _ACEOF
13794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13795 #
13796 # INIT-COMMANDS
13797 #
13798 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13799
13800
13801 # The HP-UX ksh and POSIX shell print the target directory to stdout
13802 # if CDPATH is set.
13803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13804
13805 sed_quote_subst='$sed_quote_subst'
13806 double_quote_subst='$double_quote_subst'
13807 delay_variable_subst='$delay_variable_subst'
13808 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13809 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13810 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13811 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13812 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13813 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13814 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13815 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13816 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13817 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13818 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13819 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13820 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13821 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13822 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13823 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13824 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13825 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13826 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13827 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13828 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13829 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13830 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13831 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13832 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13833 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13834 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13835 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13836 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13837 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13838 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13839 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13840 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13841 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13842 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13843 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13844 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13845 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13846 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13847 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13848 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13849 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13850 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13851 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13852 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13853 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13854 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13855 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13856 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13857 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13858 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13859 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13860 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13861 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13862 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13863 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13864 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13865 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13866 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13867 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13868 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13869 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13870 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13871 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13872 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13873 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13874 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13875 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13876 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13877 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13878 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13879 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13880 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13881 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13882 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13883 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13884 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13885 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13886 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13887 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13888 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13889 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13890 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13891 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13892 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13893 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13894 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13895 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13896 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13897 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13898 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13899 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13900 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13901 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13902 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13903 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13904 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13905 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13906 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13907 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13908 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13909 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13910 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13911 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13912 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13913 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13914 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13915 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13916 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13917 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13918 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13919 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13920 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13921 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13922 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13923 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13924 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13925 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13926
13927 LTCC='$LTCC'
13928 LTCFLAGS='$LTCFLAGS'
13929 compiler='$compiler_DEFAULT'
13930
13931 # Quote evaled strings.
13932 for var in SED \
13933 GREP \
13934 EGREP \
13935 FGREP \
13936 LD \
13937 NM \
13938 LN_S \
13939 lt_SP2NL \
13940 lt_NL2SP \
13941 reload_flag \
13942 OBJDUMP \
13943 deplibs_check_method \
13944 file_magic_cmd \
13945 AR \
13946 AR_FLAGS \
13947 STRIP \
13948 RANLIB \
13949 CC \
13950 CFLAGS \
13951 compiler \
13952 lt_cv_sys_global_symbol_pipe \
13953 lt_cv_sys_global_symbol_to_cdecl \
13954 lt_cv_sys_global_symbol_to_c_name_address \
13955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13956 SHELL \
13957 ECHO \
13958 lt_prog_compiler_no_builtin_flag \
13959 lt_prog_compiler_wl \
13960 lt_prog_compiler_pic \
13961 lt_prog_compiler_static \
13962 lt_cv_prog_compiler_c_o \
13963 need_locks \
13964 DSYMUTIL \
13965 NMEDIT \
13966 LIPO \
13967 OTOOL \
13968 OTOOL64 \
13969 shrext_cmds \
13970 export_dynamic_flag_spec \
13971 whole_archive_flag_spec \
13972 compiler_needs_object \
13973 with_gnu_ld \
13974 allow_undefined_flag \
13975 no_undefined_flag \
13976 hardcode_libdir_flag_spec \
13977 hardcode_libdir_flag_spec_ld \
13978 hardcode_libdir_separator \
13979 fix_srcfile_path \
13980 exclude_expsyms \
13981 include_expsyms \
13982 file_list_spec \
13983 variables_saved_for_relink \
13984 libname_spec \
13985 library_names_spec \
13986 soname_spec \
13987 finish_eval \
13988 old_striplib \
13989 striplib; do
13990 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13991 *[\\\\\\\`\\"\\\$]*)
13992 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13993 ;;
13994 *)
13995 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13996 ;;
13997 esac
13998 done
13999
14000 # Double-quote double-evaled strings.
14001 for var in reload_cmds \
14002 old_postinstall_cmds \
14003 old_postuninstall_cmds \
14004 old_archive_cmds \
14005 extract_expsyms_cmds \
14006 old_archive_from_new_cmds \
14007 old_archive_from_expsyms_cmds \
14008 archive_cmds \
14009 archive_expsym_cmds \
14010 module_cmds \
14011 module_expsym_cmds \
14012 export_symbols_cmds \
14013 prelink_cmds \
14014 postinstall_cmds \
14015 postuninstall_cmds \
14016 finish_cmds \
14017 sys_lib_search_path_spec \
14018 sys_lib_dlsearch_path_spec; do
14019 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14020 *[\\\\\\\`\\"\\\$]*)
14021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14022 ;;
14023 *)
14024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14025 ;;
14026 esac
14027 done
14028
14029 # Fix-up fallback echo if it was mangled by the above quoting rules.
14030 case \$lt_ECHO in
14031 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14032 ;;
14033 esac
14034
14035 ac_aux_dir='$ac_aux_dir'
14036 xsi_shell='$xsi_shell'
14037 lt_shell_append='$lt_shell_append'
14038
14039 # See if we are running on zsh, and set the options which allow our
14040 # commands through without removal of \ escapes INIT.
14041 if test -n "\${ZSH_VERSION+set}" ; then
14042 setopt NO_GLOB_SUBST
14043 fi
14044
14045
14046 PACKAGE='$PACKAGE'
14047 VERSION='$VERSION'
14048 TIMESTAMP='$TIMESTAMP'
14049 RM='$RM'
14050 ofile='$ofile'
14051
14052
14053
14054
14055 _ACEOF
14056
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14058
14059 # Handling of arguments.
14060 for ac_config_target in $ac_config_targets
14061 do
14062 case $ac_config_target in
14063 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14064 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14065 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14067 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14068 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
14069 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
14070 "oobs/Makefile") CONFIG_FILES="$CONFIG_FILES oobs/Makefile" ;;
14071 "liboobs-1.pc") CONFIG_FILES="$CONFIG_FILES liboobs-1.pc" ;;
14072
14073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
14074 esac
14075 done
14076
14077
14078 # If the user did not use the arguments to specify the items to instantiate,
14079 # then the envvar interface is used. Set only those that are not.
14080 # We use the long form for the default assignment because of an extremely
14081 # bizarre bug on SunOS 4.1.3.
14082 if $ac_need_defaults; then
14083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14086 fi
14087
14088 # Have a temporary directory for convenience. Make it in the build tree
14089 # simply because there is no reason against having it here, and in addition,
14090 # creating and moving files from /tmp can sometimes cause problems.
14091 # Hook for its removal unless debugging.
14092 # Note that there is a small window in which the directory will not be cleaned:
14093 # after its creation but before its name has been assigned to `$tmp'.
14094 $debug ||
14095 {
14096 tmp=
14097 trap 'exit_status=$?
14098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14099 ' 0
14100 trap 'as_fn_exit 1' 1 2 13 15
14101 }
14102 # Create a (secure) tmp directory for tmp files.
14103
14104 {
14105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14106 test -n "$tmp" && test -d "$tmp"
14107 } ||
14108 {
14109 tmp=./conf$$-$RANDOM
14110 (umask 077 && mkdir "$tmp")
14111 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14112
14113 # Set up the scripts for CONFIG_FILES section.
14114 # No need to generate them if there are no CONFIG_FILES.
14115 # This happens for instance with `./config.status config.h'.
14116 if test -n "$CONFIG_FILES"; then
14117
14118
14119 ac_cr=`echo X | tr X '\015'`
14120 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14121 # But we know of no other shell where ac_cr would be empty at this
14122 # point, so we can use a bashism as a fallback.
14123 if test "x$ac_cr" = x; then
14124 eval ac_cr=\$\'\\r\'
14125 fi
14126 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14127 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14128 ac_cs_awk_cr='\\r'
14129 else
14130 ac_cs_awk_cr=$ac_cr
14131 fi
14132
14133 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14134 _ACEOF
14135
14136
14137 {
14138 echo "cat >conf$$subs.awk <<_ACEOF" &&
14139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14140 echo "_ACEOF"
14141 } >conf$$subs.sh ||
14142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14144 ac_delim='%!_!# '
14145 for ac_last_try in false false false false false :; do
14146 . ./conf$$subs.sh ||
14147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14148
14149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14150 if test $ac_delim_n = $ac_delim_num; then
14151 break
14152 elif $ac_last_try; then
14153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14154 else
14155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14156 fi
14157 done
14158 rm -f conf$$subs.sh
14159
14160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14161 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14162 _ACEOF
14163 sed -n '
14164 h
14165 s/^/S["/; s/!.*/"]=/
14166 p
14167 g
14168 s/^[^!]*!//
14169 :repl
14170 t repl
14171 s/'"$ac_delim"'$//
14172 t delim
14173 :nl
14174 h
14175 s/\(.\{148\}\)..*/\1/
14176 t more1
14177 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14178 p
14179 n
14180 b repl
14181 :more1
14182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14183 p
14184 g
14185 s/.\{148\}//
14186 t nl
14187 :delim
14188 h
14189 s/\(.\{148\}\)..*/\1/
14190 t more2
14191 s/["\\]/\\&/g; s/^/"/; s/$/"/
14192 p
14193 b
14194 :more2
14195 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14196 p
14197 g
14198 s/.\{148\}//
14199 t delim
14200 ' <conf$$subs.awk | sed '
14201 /^[^""]/{
14202 N
14203 s/\n//
14204 }
14205 ' >>$CONFIG_STATUS || ac_write_fail=1
14206 rm -f conf$$subs.awk
14207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14208 _ACAWK
14209 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14210 for (key in S) S_is_set[key] = 1
14211 FS = ""
14212
14213 }
14214 {
14215 line = $ 0
14216 nfields = split(line, field, "@")
14217 substed = 0
14218 len = length(field[1])
14219 for (i = 2; i < nfields; i++) {
14220 key = field[i]
14221 keylen = length(key)
14222 if (S_is_set[key]) {
14223 value = S[key]
14224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14225 len += length(value) + length(field[++i])
14226 substed = 1
14227 } else
14228 len += 1 + keylen
14229 }
14230
14231 print line
14232 }
14233
14234 _ACAWK
14235 _ACEOF
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14239 else
14240 cat
14241 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14242 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14243 _ACEOF
14244
14245 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14246 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14247 # trailing colons and then remove the whole line if VPATH becomes empty
14248 # (actually we leave an empty line to preserve line numbers).
14249 if test "x$srcdir" = x.; then
14250 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14251 h
14252 s///
14253 s/^/:/
14254 s/[ ]*$/:/
14255 s/:\$(srcdir):/:/g
14256 s/:\${srcdir}:/:/g
14257 s/:@srcdir@:/:/g
14258 s/^:*//
14259 s/:*$//
14260 x
14261 s/\(=[ ]*\).*/\1/
14262 G
14263 s/\n//
14264 s/^[^=]*=[ ]*$//
14265 }'
14266 fi
14267
14268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269 fi # test -n "$CONFIG_FILES"
14270
14271 # Set up the scripts for CONFIG_HEADERS section.
14272 # No need to generate them if there are no CONFIG_HEADERS.
14273 # This happens for instance with `./config.status Makefile'.
14274 if test -n "$CONFIG_HEADERS"; then
14275 cat >"$tmp/defines.awk" <<\_ACAWK ||
14276 BEGIN {
14277 _ACEOF
14278
14279 # Transform confdefs.h into an awk script `defines.awk', embedded as
14280 # here-document in config.status, that substitutes the proper values into
14281 # config.h.in to produce config.h.
14282
14283 # Create a delimiter string that does not exist in confdefs.h, to ease
14284 # handling of long lines.
14285 ac_delim='%!_!# '
14286 for ac_last_try in false false :; do
14287 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14288 if test -z "$ac_t"; then
14289 break
14290 elif $ac_last_try; then
14291 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14292 else
14293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14294 fi
14295 done
14296
14297 # For the awk script, D is an array of macro values keyed by name,
14298 # likewise P contains macro parameters if any. Preserve backslash
14299 # newline sequences.
14300
14301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14302 sed -n '
14303 s/.\{148\}/&'"$ac_delim"'/g
14304 t rset
14305 :rset
14306 s/^[ ]*#[ ]*define[ ][ ]*/ /
14307 t def
14308 d
14309 :def
14310 s/\\$//
14311 t bsnl
14312 s/["\\]/\\&/g
14313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14314 D["\1"]=" \3"/p
14315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14316 d
14317 :bsnl
14318 s/["\\]/\\&/g
14319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14320 D["\1"]=" \3\\\\\\n"\\/p
14321 t cont
14322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14323 t cont
14324 d
14325 :cont
14326 n
14327 s/.\{148\}/&'"$ac_delim"'/g
14328 t clear
14329 :clear
14330 s/\\$//
14331 t bsnlc
14332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14333 d
14334 :bsnlc
14335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14336 b cont
14337 ' <confdefs.h | sed '
14338 s/'"$ac_delim"'/"\\\
14339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14340
14341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14342 for (key in D) D_is_set[key] = 1
14343 FS = ""
14344 }
14345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14346 line = \$ 0
14347 split(line, arg, " ")
14348 if (arg[1] == "#") {
14349 defundef = arg[2]
14350 mac1 = arg[3]
14351 } else {
14352 defundef = substr(arg[1], 2)
14353 mac1 = arg[2]
14354 }
14355 split(mac1, mac2, "(") #)
14356 macro = mac2[1]
14357 prefix = substr(line, 1, index(line, defundef) - 1)
14358 if (D_is_set[macro]) {
14359 # Preserve the white space surrounding the "#".
14360 print prefix "define", macro P[macro] D[macro]
14361 next
14362 } else {
14363 # Replace #undef with comments. This is necessary, for example,
14364 # in the case of _POSIX_SOURCE, which is predefined and required
14365 # on some systems where configure will not decide to define it.
14366 if (defundef == "undef") {
14367 print "/*", prefix defundef, macro, "*/"
14368 next
14369 }
14370 }
14371 }
14372 { print }
14373 _ACAWK
14374 _ACEOF
14375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14376 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14377 fi # test -n "$CONFIG_HEADERS"
14378
14379
14380 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14381 shift
14382 for ac_tag
14383 do
14384 case $ac_tag in
14385 :[FHLC]) ac_mode=$ac_tag; continue;;
14386 esac
14387 case $ac_mode$ac_tag in
14388 :[FHL]*:*);;
14389 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
14390 :[FH]-) ac_tag=-:-;;
14391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14392 esac
14393 ac_save_IFS=$IFS
14394 IFS=:
14395 set x $ac_tag
14396 IFS=$ac_save_IFS
14397 shift
14398 ac_file=$1
14399 shift
14400
14401 case $ac_mode in
14402 :L) ac_source=$1;;
14403 :[FH])
14404 ac_file_inputs=
14405 for ac_f
14406 do
14407 case $ac_f in
14408 -) ac_f="$tmp/stdin";;
14409 *) # Look for the file first in the build tree, then in the source tree
14410 # (if the path is not absolute). The absolute path cannot be DOS-style,
14411 # because $ac_f cannot contain `:'.
14412 test -f "$ac_f" ||
14413 case $ac_f in
14414 [\\/$]*) false;;
14415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14416 esac ||
14417 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
14418 esac
14419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14420 as_fn_append ac_file_inputs " '$ac_f'"
14421 done
14422
14423 # Let's still pretend it is `configure' which instantiates (i.e., don't
14424 # use $as_me), people would be surprised to read:
14425 # /* config.h. Generated by config.status. */
14426 configure_input='Generated from '`
14427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14428 `' by configure.'
14429 if test x"$ac_file" != x-; then
14430 configure_input="$ac_file. $configure_input"
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14432 $as_echo "$as_me: creating $ac_file" >&6;}
14433 fi
14434 # Neutralize special characters interpreted by sed in replacement strings.
14435 case $configure_input in #(
14436 *\&* | *\|* | *\\* )
14437 ac_sed_conf_input=`$as_echo "$configure_input" |
14438 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14439 *) ac_sed_conf_input=$configure_input;;
14440 esac
14441
14442 case $ac_tag in
14443 *:-:* | *:-) cat >"$tmp/stdin" \
14444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14445 esac
14446 ;;
14447 esac
14448
14449 ac_dir=`$as_dirname -- "$ac_file" ||
14450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451 X"$ac_file" : 'X\(//\)[^/]' \| \
14452 X"$ac_file" : 'X\(//\)$' \| \
14453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14454 $as_echo X"$ac_file" |
14455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14456 s//\1/
14457 q
14458 }
14459 /^X\(\/\/\)[^/].*/{
14460 s//\1/
14461 q
14462 }
14463 /^X\(\/\/\)$/{
14464 s//\1/
14465 q
14466 }
14467 /^X\(\/\).*/{
14468 s//\1/
14469 q
14470 }
14471 s/.*/./; q'`
14472 as_dir="$ac_dir"; as_fn_mkdir_p
14473 ac_builddir=.
14474
14475 case "$ac_dir" in
14476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14477 *)
14478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14479 # A ".." for each directory in $ac_dir_suffix.
14480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14481 case $ac_top_builddir_sub in
14482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14484 esac ;;
14485 esac
14486 ac_abs_top_builddir=$ac_pwd
14487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14488 # for backward compatibility:
14489 ac_top_builddir=$ac_top_build_prefix
14490
14491 case $srcdir in
14492 .) # We are building in place.
14493 ac_srcdir=.
14494 ac_top_srcdir=$ac_top_builddir_sub
14495 ac_abs_top_srcdir=$ac_pwd ;;
14496 [\\/]* | ?:[\\/]* ) # Absolute name.
14497 ac_srcdir=$srcdir$ac_dir_suffix;
14498 ac_top_srcdir=$srcdir
14499 ac_abs_top_srcdir=$srcdir ;;
14500 *) # Relative name.
14501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14502 ac_top_srcdir=$ac_top_build_prefix$srcdir
14503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14504 esac
14505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14506
14507
14508 case $ac_mode in
14509 :F)
14510 #
14511 # CONFIG_FILE
14512 #
14513
14514 case $INSTALL in
14515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14517 esac
14518 ac_MKDIR_P=$MKDIR_P
14519 case $MKDIR_P in
14520 [\\/$]* | ?:[\\/]* ) ;;
14521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14522 esac
14523 _ACEOF
14524
14525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14526 # If the template does not know about datarootdir, expand it.
14527 # FIXME: This hack should be removed a few years after 2.60.
14528 ac_datarootdir_hack=; ac_datarootdir_seen=
14529 ac_sed_dataroot='
14530 /datarootdir/ {
14531 p
14532 q
14533 }
14534 /@datadir@/p
14535 /@docdir@/p
14536 /@infodir@/p
14537 /@localedir@/p
14538 /@mandir@/p'
14539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14540 *datarootdir*) ac_datarootdir_seen=yes;;
14541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14544 _ACEOF
14545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14546 ac_datarootdir_hack='
14547 s&@datadir@&$datadir&g
14548 s&@docdir@&$docdir&g
14549 s&@infodir@&$infodir&g
14550 s&@localedir@&$localedir&g
14551 s&@mandir@&$mandir&g
14552 s&\\\${datarootdir}&$datarootdir&g' ;;
14553 esac
14554 _ACEOF
14555
14556 # Neutralize VPATH when `$srcdir' = `.'.
14557 # Shell code in configure.ac might set extrasub.
14558 # FIXME: do we really want to maintain this feature?
14559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14560 ac_sed_extra="$ac_vpsub
14561 $extrasub
14562 _ACEOF
14563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14564 :t
14565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14566 s|@configure_input@|$ac_sed_conf_input|;t t
14567 s&@top_builddir@&$ac_top_builddir_sub&;t t
14568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14569 s&@srcdir@&$ac_srcdir&;t t
14570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14571 s&@top_srcdir@&$ac_top_srcdir&;t t
14572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14573 s&@builddir@&$ac_builddir&;t t
14574 s&@abs_builddir@&$ac_abs_builddir&;t t
14575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14576 s&@INSTALL@&$ac_INSTALL&;t t
14577 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14578 $ac_datarootdir_hack
14579 "
14580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14582
14583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14587 which seems to be undefined. Please make sure it is defined" >&5
14588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14589 which seems to be undefined. Please make sure it is defined" >&2;}
14590
14591 rm -f "$tmp/stdin"
14592 case $ac_file in
14593 -) cat "$tmp/out" && rm -f "$tmp/out";;
14594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14595 esac \
14596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14597 ;;
14598 :H)
14599 #
14600 # CONFIG_HEADER
14601 #
14602 if test x"$ac_file" != x-; then
14603 {
14604 $as_echo "/* $configure_input */" \
14605 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14606 } >"$tmp/config.h" \
14607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14608 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14610 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14611 else
14612 rm -f "$ac_file"
14613 mv "$tmp/config.h" "$ac_file" \
14614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14615 fi
14616 else
14617 $as_echo "/* $configure_input */" \
14618 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14619 || as_fn_error $? "could not create -" "$LINENO" 5
14620 fi
14621 # Compute "$ac_file"'s index in $config_headers.
14622 _am_arg="$ac_file"
14623 _am_stamp_count=1
14624 for _am_header in $config_headers :; do
14625 case $_am_header in
14626 $_am_arg | $_am_arg:* )
14627 break ;;
14628 * )
14629 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14630 esac
14631 done
14632 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14633 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14634 X"$_am_arg" : 'X\(//\)[^/]' \| \
14635 X"$_am_arg" : 'X\(//\)$' \| \
14636 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14637 $as_echo X"$_am_arg" |
14638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14639 s//\1/
14640 q
14641 }
14642 /^X\(\/\/\)[^/].*/{
14643 s//\1/
14644 q
14645 }
14646 /^X\(\/\/\)$/{
14647 s//\1/
14648 q
14649 }
14650 /^X\(\/\).*/{
14651 s//\1/
14652 q
14653 }
14654 s/.*/./; q'`/stamp-h$_am_stamp_count
14655 ;;
14656
14657 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14658 $as_echo "$as_me: executing $ac_file commands" >&6;}
14659 ;;
14660 esac
14661
14662
14663 case $ac_file$ac_mode in
14664 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14665 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14666 # are listed without --file. Let's play safe and only enable the eval
14667 # if we detect the quoting.
14668 case $CONFIG_FILES in
14669 *\'*) eval set x "$CONFIG_FILES" ;;
14670 *) set x $CONFIG_FILES ;;
14671 esac
14672 shift
14673 for mf
14674 do
14675 # Strip MF so we end up with the name of the file.
14676 mf=`echo "$mf" | sed -e 's/:.*$//'`
14677 # Check whether this is an Automake generated Makefile or not.
14678 # We used to match only the files named `Makefile.in', but
14679 # some people rename them; so instead we look at the file content.
14680 # Grep'ing the first line is not enough: some people post-process
14681 # each Makefile.in and add a new line on top of each file to say so.
14682 # Grep'ing the whole file is not good either: AIX grep has a line
14683 # limit of 2048, but all sed's we know have understand at least 4000.
14684 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14685 dirpart=`$as_dirname -- "$mf" ||
14686 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14687 X"$mf" : 'X\(//\)[^/]' \| \
14688 X"$mf" : 'X\(//\)$' \| \
14689 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14690 $as_echo X"$mf" |
14691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14692 s//\1/
14693 q
14694 }
14695 /^X\(\/\/\)[^/].*/{
14696 s//\1/
14697 q
14698 }
14699 /^X\(\/\/\)$/{
14700 s//\1/
14701 q
14702 }
14703 /^X\(\/\).*/{
14704 s//\1/
14705 q
14706 }
14707 s/.*/./; q'`
14708 else
14709 continue
14710 fi
14711 # Extract the definition of DEPDIR, am__include, and am__quote
14712 # from the Makefile without running `make'.
14713 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14714 test -z "$DEPDIR" && continue
14715 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14716 test -z "am__include" && continue
14717 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14718 # When using ansi2knr, U may be empty or an underscore; expand it
14719 U=`sed -n 's/^U = //p' < "$mf"`
14720 # Find all dependency output files, they are included files with
14721 # $(DEPDIR) in their names. We invoke sed twice because it is the
14722 # simplest approach to changing $(DEPDIR) to its actual value in the
14723 # expansion.
14724 for file in `sed -n "
14725 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14726 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14727 # Make sure the directory exists.
14728 test -f "$dirpart/$file" && continue
14729 fdir=`$as_dirname -- "$file" ||
14730 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14731 X"$file" : 'X\(//\)[^/]' \| \
14732 X"$file" : 'X\(//\)$' \| \
14733 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14734 $as_echo X"$file" |
14735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14736 s//\1/
14737 q
14738 }
14739 /^X\(\/\/\)[^/].*/{
14740 s//\1/
14741 q
14742 }
14743 /^X\(\/\/\)$/{
14744 s//\1/
14745 q
14746 }
14747 /^X\(\/\).*/{
14748 s//\1/
14749 q
14750 }
14751 s/.*/./; q'`
14752 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14753 # echo "creating $dirpart/$file"
14754 echo '# dummy' > "$dirpart/$file"
14755 done
14756 done
14757 }
14758 ;;
14759 "libtool":C)
14760
14761 # See if we are running on zsh, and set the options which allow our
14762 # commands through without removal of \ escapes.
14763 if test -n "${ZSH_VERSION+set}" ; then
14764 setopt NO_GLOB_SUBST
14765 fi
14766
14767 cfgfile="${ofile}T"
14768 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14769 $RM "$cfgfile"
14770
14771 cat <<_LT_EOF >> "$cfgfile"
14772 #! $SHELL
14773
14774 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14775 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14777 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14778 #
14779 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14780 # 2006, 2007, 2008 Free Software Foundation, Inc.
14781 # Written by Gordon Matzigkeit, 1996
14782 #
14783 # This file is part of GNU Libtool.
14784 #
14785 # GNU Libtool is free software; you can redistribute it and/or
14786 # modify it under the terms of the GNU General Public License as
14787 # published by the Free Software Foundation; either version 2 of
14788 # the License, or (at your option) any later version.
14789 #
14790 # As a special exception to the GNU General Public License,
14791 # if you distribute this file as part of a program or library that
14792 # is built using GNU Libtool, you may include this file under the
14793 # same distribution terms that you use for the rest of that program.
14794 #
14795 # GNU Libtool is distributed in the hope that it will be useful,
14796 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14797 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14798 # GNU General Public License for more details.
14799 #
14800 # You should have received a copy of the GNU General Public License
14801 # along with GNU Libtool; see the file COPYING. If not, a copy
14802 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14803 # obtained by writing to the Free Software Foundation, Inc.,
14804 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14805
14806
14807 # The names of the tagged configurations supported by this script.
14808 available_tags=""
14809
14810 # ### BEGIN LIBTOOL CONFIG
14811
14812 # Which release of libtool.m4 was used?
14813 macro_version=$macro_version
14814 macro_revision=$macro_revision
14815
14816 # Whether or not to build shared libraries.
14817 build_libtool_libs=$enable_shared
14818
14819 # Whether or not to build static libraries.
14820 build_old_libs=$enable_static
14821
14822 # What type of objects to build.
14823 pic_mode=$pic_mode
14824
14825 # Whether or not to optimize for fast installation.
14826 fast_install=$enable_fast_install
14827
14828 # The host system.
14829 host_alias=$host_alias
14830 host=$host
14831 host_os=$host_os
14832
14833 # The build system.
14834 build_alias=$build_alias
14835 build=$build
14836 build_os=$build_os
14837
14838 # A sed program that does not truncate output.
14839 SED=$lt_SED
14840
14841 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14842 Xsed="\$SED -e 1s/^X//"
14843
14844 # A grep program that handles long lines.
14845 GREP=$lt_GREP
14846
14847 # An ERE matcher.
14848 EGREP=$lt_EGREP
14849
14850 # A literal string matcher.
14851 FGREP=$lt_FGREP
14852
14853 # A BSD- or MS-compatible name lister.
14854 NM=$lt_NM
14855
14856 # Whether we need soft or hard links.
14857 LN_S=$lt_LN_S
14858
14859 # What is the maximum length of a command?
14860 max_cmd_len=$max_cmd_len
14861
14862 # Object file suffix (normally "o").
14863 objext=$ac_objext
14864
14865 # Executable file suffix (normally "").
14866 exeext=$exeext
14867
14868 # whether the shell understands "unset".
14869 lt_unset=$lt_unset
14870
14871 # turn spaces into newlines.
14872 SP2NL=$lt_lt_SP2NL
14873
14874 # turn newlines into spaces.
14875 NL2SP=$lt_lt_NL2SP
14876
14877 # How to create reloadable object files.
14878 reload_flag=$lt_reload_flag
14879 reload_cmds=$lt_reload_cmds
14880
14881 # An object symbol dumper.
14882 OBJDUMP=$lt_OBJDUMP
14883
14884 # Method to check whether dependent libraries are shared objects.
14885 deplibs_check_method=$lt_deplibs_check_method
14886
14887 # Command to use when deplibs_check_method == "file_magic".
14888 file_magic_cmd=$lt_file_magic_cmd
14889
14890 # The archiver.
14891 AR=$lt_AR
14892 AR_FLAGS=$lt_AR_FLAGS
14893
14894 # A symbol stripping program.
14895 STRIP=$lt_STRIP
14896
14897 # Commands used to install an old-style archive.
14898 RANLIB=$lt_RANLIB
14899 old_postinstall_cmds=$lt_old_postinstall_cmds
14900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14901
14902 # A C compiler.
14903 LTCC=$lt_CC
14904
14905 # LTCC compiler flags.
14906 LTCFLAGS=$lt_CFLAGS
14907
14908 # Take the output of nm and produce a listing of raw symbols and C names.
14909 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14910
14911 # Transform the output of nm in a proper C declaration.
14912 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14913
14914 # Transform the output of nm in a C name address pair.
14915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14916
14917 # Transform the output of nm in a C name address pair when lib prefix is needed.
14918 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14919
14920 # The name of the directory that contains temporary libtool files.
14921 objdir=$objdir
14922
14923 # Shell to use when invoking shell scripts.
14924 SHELL=$lt_SHELL
14925
14926 # An echo program that does not interpret backslashes.
14927 ECHO=$lt_ECHO
14928
14929 # Used to examine libraries when file_magic_cmd begins with "file".
14930 MAGIC_CMD=$MAGIC_CMD
14931
14932 # Must we lock files when doing compilation?
14933 need_locks=$lt_need_locks
14934
14935 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14936 DSYMUTIL=$lt_DSYMUTIL
14937
14938 # Tool to change global to local symbols on Mac OS X.
14939 NMEDIT=$lt_NMEDIT
14940
14941 # Tool to manipulate fat objects and archives on Mac OS X.
14942 LIPO=$lt_LIPO
14943
14944 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14945 OTOOL=$lt_OTOOL
14946
14947 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14948 OTOOL64=$lt_OTOOL64
14949
14950 # Old archive suffix (normally "a").
14951 libext=$libext
14952
14953 # Shared library suffix (normally ".so").
14954 shrext_cmds=$lt_shrext_cmds
14955
14956 # The commands to extract the exported symbol list from a shared archive.
14957 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14958
14959 # Variables whose values should be saved in libtool wrapper scripts and
14960 # restored at link time.
14961 variables_saved_for_relink=$lt_variables_saved_for_relink
14962
14963 # Do we need the "lib" prefix for modules?
14964 need_lib_prefix=$need_lib_prefix
14965
14966 # Do we need a version for libraries?
14967 need_version=$need_version
14968
14969 # Library versioning type.
14970 version_type=$version_type
14971
14972 # Shared library runtime path variable.
14973 runpath_var=$runpath_var
14974
14975 # Shared library path variable.
14976 shlibpath_var=$shlibpath_var
14977
14978 # Is shlibpath searched before the hard-coded library search path?
14979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14980
14981 # Format of library name prefix.
14982 libname_spec=$lt_libname_spec
14983
14984 # List of archive names. First name is the real one, the rest are links.
14985 # The last name is the one that the linker finds with -lNAME
14986 library_names_spec=$lt_library_names_spec
14987
14988 # The coded name of the library, if different from the real name.
14989 soname_spec=$lt_soname_spec
14990
14991 # Command to use after installation of a shared archive.
14992 postinstall_cmds=$lt_postinstall_cmds
14993
14994 # Command to use after uninstallation of a shared archive.
14995 postuninstall_cmds=$lt_postuninstall_cmds
14996
14997 # Commands used to finish a libtool library installation in a directory.
14998 finish_cmds=$lt_finish_cmds
14999
15000 # As "finish_cmds", except a single script fragment to be evaled but
15001 # not shown.
15002 finish_eval=$lt_finish_eval
15003
15004 # Whether we should hardcode library paths into libraries.
15005 hardcode_into_libs=$hardcode_into_libs
15006
15007 # Compile-time system search path for libraries.
15008 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15009
15010 # Run-time system search path for libraries.
15011 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15012
15013 # Whether dlopen is supported.
15014 dlopen_support=$enable_dlopen
15015
15016 # Whether dlopen of programs is supported.
15017 dlopen_self=$enable_dlopen_self
15018
15019 # Whether dlopen of statically linked programs is supported.
15020 dlopen_self_static=$enable_dlopen_self_static
15021
15022 # Commands to strip libraries.
15023 old_striplib=$lt_old_striplib
15024 striplib=$lt_striplib
15025
15026
15027 # The linker used to build libraries.
15028 LD=$lt_LD
15029
15030 # Commands used to build an old-style archive.
15031 old_archive_cmds=$lt_old_archive_cmds
15032
15033 # A language specific compiler.
15034 CC=$lt_compiler
15035
15036 # Is the compiler the GNU compiler?
15037 with_gcc=$GCC
15038
15039 # Compiler flag to turn off builtin functions.
15040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15041
15042 # How to pass a linker flag through the compiler.
15043 wl=$lt_lt_prog_compiler_wl
15044
15045 # Additional compiler flags for building library objects.
15046 pic_flag=$lt_lt_prog_compiler_pic
15047
15048 # Compiler flag to prevent dynamic linking.
15049 link_static_flag=$lt_lt_prog_compiler_static
15050
15051 # Does compiler simultaneously support -c and -o options?
15052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15053
15054 # Whether or not to add -lc for building shared libraries.
15055 build_libtool_need_lc=$archive_cmds_need_lc
15056
15057 # Whether or not to disallow shared libs when runtime libs are static.
15058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15059
15060 # Compiler flag to allow reflexive dlopens.
15061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15062
15063 # Compiler flag to generate shared objects directly from archives.
15064 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15065
15066 # Whether the compiler copes with passing no objects directly.
15067 compiler_needs_object=$lt_compiler_needs_object
15068
15069 # Create an old-style archive from a shared archive.
15070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15071
15072 # Create a temporary old-style archive to link instead of a shared archive.
15073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15074
15075 # Commands used to build a shared archive.
15076 archive_cmds=$lt_archive_cmds
15077 archive_expsym_cmds=$lt_archive_expsym_cmds
15078
15079 # Commands used to build a loadable module if different from building
15080 # a shared archive.
15081 module_cmds=$lt_module_cmds
15082 module_expsym_cmds=$lt_module_expsym_cmds
15083
15084 # Whether we are building with GNU ld or not.
15085 with_gnu_ld=$lt_with_gnu_ld
15086
15087 # Flag that allows shared libraries with undefined symbols to be built.
15088 allow_undefined_flag=$lt_allow_undefined_flag
15089
15090 # Flag that enforces no undefined symbols.
15091 no_undefined_flag=$lt_no_undefined_flag
15092
15093 # Flag to hardcode \$libdir into a binary during linking.
15094 # This must work even if \$libdir does not exist
15095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15096
15097 # If ld is used when linking, flag to hardcode \$libdir into a binary
15098 # during linking. This must work even if \$libdir does not exist.
15099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15100
15101 # Whether we need a single "-rpath" flag with a separated argument.
15102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15103
15104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15105 # DIR into the resulting binary.
15106 hardcode_direct=$hardcode_direct
15107
15108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15109 # DIR into the resulting binary and the resulting library dependency is
15110 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15111 # library is relocated.
15112 hardcode_direct_absolute=$hardcode_direct_absolute
15113
15114 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15115 # into the resulting binary.
15116 hardcode_minus_L=$hardcode_minus_L
15117
15118 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15119 # into the resulting binary.
15120 hardcode_shlibpath_var=$hardcode_shlibpath_var
15121
15122 # Set to "yes" if building a shared library automatically hardcodes DIR
15123 # into the library and all subsequent libraries and executables linked
15124 # against it.
15125 hardcode_automatic=$hardcode_automatic
15126
15127 # Set to yes if linker adds runtime paths of dependent libraries
15128 # to runtime path list.
15129 inherit_rpath=$inherit_rpath
15130
15131 # Whether libtool must link a program against all its dependency libraries.
15132 link_all_deplibs=$link_all_deplibs
15133
15134 # Fix the shell variable \$srcfile for the compiler.
15135 fix_srcfile_path=$lt_fix_srcfile_path
15136
15137 # Set to "yes" if exported symbols are required.
15138 always_export_symbols=$always_export_symbols
15139
15140 # The commands to list exported symbols.
15141 export_symbols_cmds=$lt_export_symbols_cmds
15142
15143 # Symbols that should not be listed in the preloaded symbols.
15144 exclude_expsyms=$lt_exclude_expsyms
15145
15146 # Symbols that must always be exported.
15147 include_expsyms=$lt_include_expsyms
15148
15149 # Commands necessary for linking programs (against libraries) with templates.
15150 prelink_cmds=$lt_prelink_cmds
15151
15152 # Specify filename containing input files.
15153 file_list_spec=$lt_file_list_spec
15154
15155 # How to hardcode a shared library path into an executable.
15156 hardcode_action=$hardcode_action
15157
15158 # ### END LIBTOOL CONFIG
15159
15160 _LT_EOF
15161
15162 case $host_os in
15163 aix3*)
15164 cat <<\_LT_EOF >> "$cfgfile"
15165 # AIX sometimes has problems with the GCC collect2 program. For some
15166 # reason, if we set the COLLECT_NAMES environment variable, the problems
15167 # vanish in a puff of smoke.
15168 if test "X${COLLECT_NAMES+set}" != Xset; then
15169 COLLECT_NAMES=
15170 export COLLECT_NAMES
15171 fi
15172 _LT_EOF
15173 ;;
15174 esac
15175
15176
15177 ltmain="$ac_aux_dir/ltmain.sh"
15178
15179
15180 # We use sed instead of cat because bash on DJGPP gets confused if
15181 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15182 # text mode, it properly converts lines to CR/LF. This bash problem
15183 # is reportedly fixed, but why not run on old versions too?
15184 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15185 || (rm -f "$cfgfile"; exit 1)
15186
15187 case $xsi_shell in
15188 yes)
15189 cat << \_LT_EOF >> "$cfgfile"
15190
15191 # func_dirname file append nondir_replacement
15192 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15193 # otherwise set result to NONDIR_REPLACEMENT.
15194 func_dirname ()
15195 {
15196 case ${1} in
15197 */*) func_dirname_result="${1%/*}${2}" ;;
15198 * ) func_dirname_result="${3}" ;;
15199 esac
15200 }
15201
15202 # func_basename file
15203 func_basename ()
15204 {
15205 func_basename_result="${1##*/}"
15206 }
15207
15208 # func_dirname_and_basename file append nondir_replacement
15209 # perform func_basename and func_dirname in a single function
15210 # call:
15211 # dirname: Compute the dirname of FILE. If nonempty,
15212 # add APPEND to the result, otherwise set result
15213 # to NONDIR_REPLACEMENT.
15214 # value returned in "$func_dirname_result"
15215 # basename: Compute filename of FILE.
15216 # value retuned in "$func_basename_result"
15217 # Implementation must be kept synchronized with func_dirname
15218 # and func_basename. For efficiency, we do not delegate to
15219 # those functions but instead duplicate the functionality here.
15220 func_dirname_and_basename ()
15221 {
15222 case ${1} in
15223 */*) func_dirname_result="${1%/*}${2}" ;;
15224 * ) func_dirname_result="${3}" ;;
15225 esac
15226 func_basename_result="${1##*/}"
15227 }
15228
15229 # func_stripname prefix suffix name
15230 # strip PREFIX and SUFFIX off of NAME.
15231 # PREFIX and SUFFIX must not contain globbing or regex special
15232 # characters, hashes, percent signs, but SUFFIX may contain a leading
15233 # dot (in which case that matches only a dot).
15234 func_stripname ()
15235 {
15236 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15237 # positional parameters, so assign one to ordinary parameter first.
15238 func_stripname_result=${3}
15239 func_stripname_result=${func_stripname_result#"${1}"}
15240 func_stripname_result=${func_stripname_result%"${2}"}
15241 }
15242
15243 # func_opt_split
15244 func_opt_split ()
15245 {
15246 func_opt_split_opt=${1%%=*}
15247 func_opt_split_arg=${1#*=}
15248 }
15249
15250 # func_lo2o object
15251 func_lo2o ()
15252 {
15253 case ${1} in
15254 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15255 *) func_lo2o_result=${1} ;;
15256 esac
15257 }
15258
15259 # func_xform libobj-or-source
15260 func_xform ()
15261 {
15262 func_xform_result=${1%.*}.lo
15263 }
15264
15265 # func_arith arithmetic-term...
15266 func_arith ()
15267 {
15268 func_arith_result=$(( $* ))
15269 }
15270
15271 # func_len string
15272 # STRING may not start with a hyphen.
15273 func_len ()
15274 {
15275 func_len_result=${#1}
15276 }
15277
15278 _LT_EOF
15279 ;;
15280 *) # Bourne compatible functions.
15281 cat << \_LT_EOF >> "$cfgfile"
15282
15283 # func_dirname file append nondir_replacement
15284 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15285 # otherwise set result to NONDIR_REPLACEMENT.
15286 func_dirname ()
15287 {
15288 # Extract subdirectory from the argument.
15289 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15290 if test "X$func_dirname_result" = "X${1}"; then
15291 func_dirname_result="${3}"
15292 else
15293 func_dirname_result="$func_dirname_result${2}"
15294 fi
15295 }
15296
15297 # func_basename file
15298 func_basename ()
15299 {
15300 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15301 }
15302
15303
15304 # func_stripname prefix suffix name
15305 # strip PREFIX and SUFFIX off of NAME.
15306 # PREFIX and SUFFIX must not contain globbing or regex special
15307 # characters, hashes, percent signs, but SUFFIX may contain a leading
15308 # dot (in which case that matches only a dot).
15309 # func_strip_suffix prefix name
15310 func_stripname ()
15311 {
15312 case ${2} in
15313 .*) func_stripname_result=`$ECHO "X${3}" \
15314 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15315 *) func_stripname_result=`$ECHO "X${3}" \
15316 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15317 esac
15318 }
15319
15320 # sed scripts:
15321 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15322 my_sed_long_arg='1s/^-[^=]*=//'
15323
15324 # func_opt_split
15325 func_opt_split ()
15326 {
15327 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15328 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15329 }
15330
15331 # func_lo2o object
15332 func_lo2o ()
15333 {
15334 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15335 }
15336
15337 # func_xform libobj-or-source
15338 func_xform ()
15339 {
15340 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15341 }
15342
15343 # func_arith arithmetic-term...
15344 func_arith ()
15345 {
15346 func_arith_result=`expr "$@"`
15347 }
15348
15349 # func_len string
15350 # STRING may not start with a hyphen.
15351 func_len ()
15352 {
15353 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15354 }
15355
15356 _LT_EOF
15357 esac
15358
15359 case $lt_shell_append in
15360 yes)
15361 cat << \_LT_EOF >> "$cfgfile"
15362
15363 # func_append var value
15364 # Append VALUE to the end of shell variable VAR.
15365 func_append ()
15366 {
15367 eval "$1+=\$2"
15368 }
15369 _LT_EOF
15370 ;;
15371 *)
15372 cat << \_LT_EOF >> "$cfgfile"
15373
15374 # func_append var value
15375 # Append VALUE to the end of shell variable VAR.
15376 func_append ()
15377 {
15378 eval "$1=\$$1\$2"
15379 }
15380
15381 _LT_EOF
15382 ;;
15383 esac
15384
15385
15386 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15387 || (rm -f "$cfgfile"; exit 1)
15388
15389 mv -f "$cfgfile" "$ofile" ||
15390 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15391 chmod +x "$ofile"
15392
15393 ;;
15394
15395 esac
15396 done # for ac_tag
15397
15398
15399 as_fn_exit 0
15400 _ACEOF
15401 ac_clean_files=$ac_clean_files_save
15402
15403 test $ac_write_fail = 0 ||
15404 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15405
15406
15407 # configure is writing to config.log, and then calls config.status.
15408 # config.status does its own redirection, appending to config.log.
15409 # Unfortunately, on DOS this fails, as config.log is still kept open
15410 # by configure, so config.status won't be able to write to it; its
15411 # output is simply discarded. So we exec the FD to /dev/null,
15412 # effectively closing config.log, so it can be properly (re)opened and
15413 # appended to by config.status. When coming back to configure, we
15414 # need to make the FD available again.
15415 if test "$no_create" != yes; then
15416 ac_cs_success=:
15417 ac_config_status_args=
15418 test "$silent" = yes &&
15419 ac_config_status_args="$ac_config_status_args --quiet"
15420 exec 5>/dev/null
15421 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15422 exec 5>>config.log
15423 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15424 # would make configure fail if this is the last instruction.
15425 $ac_cs_success || as_fn_exit 1
15426 fi
15427 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15429 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15430 fi
15431
15432
15433 echo "configuration:
15434 use netlink: ${have_rtnetlink}
15435 use HAL: ${have_hal}
15436 doc build: ${enable_gtk_doc}
15437 "