Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libserialport 0.1.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libserialport'
592 PACKAGE_TARNAME='libserialport'
593 PACKAGE_VERSION='0.1.2'
594 PACKAGE_STRING='libserialport 0.1.2'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='http://sigrok.org/wiki/Libserialport'
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 SP_PKGLIBS
639 SP_LIBS
640 FREEBSD_FALSE
641 FREEBSD_TRUE
642 MACOSX_FALSE
643 MACOSX_TRUE
644 WIN32_FALSE
645 WIN32_TRUE
646 LINUX_FALSE
647 LINUX_TRUE
648 SP_LIB_VERSION
649 SP_PACKAGE_VERSION
650 CPP
651 LT_SYS_LIBRARY_PATH
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 DLLTOOL
660 OBJDUMP
661 FILECMD
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 LIBTOOL
679 LN_S
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 ac_ct_AR
697 AR
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 CSCOPE
703 ETAGS
704 CTAGS
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 runstatedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL
767 am__quote'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_aix_soname
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 enable_largefile
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 LT_SYS_LIBRARY_PATH
792 CPP'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 runstatedir='${localstatedir}/run'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
853 fi
854
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
891
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
924
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -runstatedir | --runstatedir | --runstatedi | --runstated \
1085 | --runstate | --runstat | --runsta | --runst | --runs \
1086 | --run | --ru | --r)
1087 ac_prev=runstatedir ;;
1088 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1089 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1090 | --run=* | --ru=* | --r=*)
1091 runstatedir=$ac_optarg ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir runstatedir
1231 do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308 else
1309 ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures libserialport 0.1.2 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/libserialport]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1398
1399 cat <<\_ACEOF
1400
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of libserialport 0.1.2:";;
1415 esac
1416 cat <<\_ACEOF
1417
1418 Optional Features:
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --disable-largefile omit support for large files
1434
1435 Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1439 both]
1440 --with-aix-soname=aix|svr4|both
1441 shared library versioning (aka "SONAME") variant to
1442 provide on AIX, [default=aix].
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1445 compiler's sysroot if not specified).
1446
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 LT_SYS_LIBRARY_PATH
1456 User-defined run-time library search path.
1457 CPP C preprocessor
1458
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to <[email protected]>.
1463 libserialport home page: <http://sigrok.org/wiki/Libserialport>.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 libserialport configure 0.1.2
1527 generated by GNU Autoconf 2.69
1528
1529 Copyright (C) 2012 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_c_try_link LINENO
1579 # -----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_link ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest$ac_exeext
1585 if { { ac_try="$ac_link"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest$ac_exeext && {
1604 test "$cross_compiling" = yes ||
1605 test -x conftest$ac_exeext
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616 # interfere with the next link command; also delete a directory that is
1617 # left behind by Apple's compiler. We do this before executing the actions.
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_link
1623
1624 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625 # -------------------------------------------------------
1626 # Tests whether HEADER exists and can be compiled using the include files in
1627 # INCLUDES, setting the cache variable VAR accordingly.
1628 ac_fn_c_check_header_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634 $as_echo_n "(cached) " >&6
1635 else
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1638 $4
1639 #include <$2>
1640 _ACEOF
1641 if ac_fn_c_try_compile "$LINENO"; then :
1642 eval "$3=yes"
1643 else
1644 eval "$3=no"
1645 fi
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 fi
1648 eval ac_res=\$$3
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653 } # ac_fn_c_check_header_compile
1654
1655 # ac_fn_c_try_cpp LINENO
1656 # ----------------------
1657 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_cpp ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } > conftest.i && {
1677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686 fi
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_cpp
1691
1692 # ac_fn_c_try_run LINENO
1693 # ----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695 # that executables *can* be run.
1696 ac_fn_c_try_run ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710 { { case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_try") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; }; }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: program exited with status $ac_status" >&5
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=$ac_status
1727 fi
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_run
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749 #define $2 innocuous_$2
1750
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1755
1756 #ifdef __STDC__
1757 # include <limits.h>
1758 #else
1759 # include <assert.h>
1760 #endif
1761
1762 #undef $2
1763
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767 #ifdef __cplusplus
1768 extern "C"
1769 #endif
1770 char $2 ();
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1775 choke me
1776 #endif
1777
1778 int
1779 main ()
1780 {
1781 return $2 ();
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"; then :
1787 eval "$3=yes"
1788 else
1789 eval "$3=no"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799 } # ac_fn_c_check_func
1800
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1805 # accordingly.
1806 ac_fn_c_check_header_mongrel ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if eval \${$3+:} false; then :
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 else
1819 # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1829 else
1830 ac_header_compiler=no
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1835
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1845 else
1846 ac_header_preproc=no
1847 fi
1848 rm -f conftest.err conftest.i conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1851
1852 # So? What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 yes:no: )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ;;
1860 no:yes:* )
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ( $as_echo "## -------------------------------------------- ##
1872 ## Report this to [email protected] ##
1873 ## -------------------------------------------- ##"
1874 ) | sed "s/^/$as_me: WARNING: /" >&2
1875 ;;
1876 esac
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 eval "$3=\$ac_header_compiler"
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_header_mongrel
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 eval "$4=yes"
1989 else
1990 eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
2003 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2004 # ---------------------------------------------
2005 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2006 # accordingly.
2007 ac_fn_c_check_decl ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 as_decl_name=`echo $2|sed 's/ *(.*//'`
2011 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2013 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 #ifndef $as_decl_name
2024 #ifdef __cplusplus
2025 (void) $as_decl_use;
2026 #else
2027 (void) $as_decl_name;
2028 #endif
2029 #endif
2030
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$3=yes"
2037 else
2038 eval "$3=no"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047 } # ac_fn_c_check_decl
2048 cat >config.log <<_ACEOF
2049 This file contains any messages produced by compilers while
2050 running configure, to aid debugging if configure makes a mistake.
2051
2052 It was created by libserialport $as_me 0.1.2, which was
2053 generated by GNU Autoconf 2.69. Invocation command line was
2054
2055 $ $0 $@
2056
2057 _ACEOF
2058 exec 5>>config.log
2059 {
2060 cat <<_ASUNAME
2061 ## --------- ##
2062 ## Platform. ##
2063 ## --------- ##
2064
2065 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2066 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2067 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2068 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2069 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2070
2071 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2072 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2073
2074 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2075 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2076 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2077 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2078 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2079 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2080 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2081
2082 _ASUNAME
2083
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 $as_echo "PATH: $as_dir"
2090 done
2091 IFS=$as_save_IFS
2092
2093 } >&5
2094
2095 cat >&5 <<_ACEOF
2096
2097
2098 ## ----------- ##
2099 ## Core tests. ##
2100 ## ----------- ##
2101
2102 _ACEOF
2103
2104
2105 # Keep a trace of the command line.
2106 # Strip out --no-create and --no-recursion so they do not pile up.
2107 # Strip out --silent because we don't want to record it for future runs.
2108 # Also quote any args containing shell meta-characters.
2109 # Make two passes to allow for proper duplicate-argument suppression.
2110 ac_configure_args=
2111 ac_configure_args0=
2112 ac_configure_args1=
2113 ac_must_keep_next=false
2114 for ac_pass in 1 2
2115 do
2116 for ac_arg
2117 do
2118 case $ac_arg in
2119 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2121 | -silent | --silent | --silen | --sile | --sil)
2122 continue ;;
2123 *\'*)
2124 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2125 esac
2126 case $ac_pass in
2127 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2128 2)
2129 as_fn_append ac_configure_args1 " '$ac_arg'"
2130 if test $ac_must_keep_next = true; then
2131 ac_must_keep_next=false # Got value, back to normal.
2132 else
2133 case $ac_arg in
2134 *=* | --config-cache | -C | -disable-* | --disable-* \
2135 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2136 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2137 | -with-* | --with-* | -without-* | --without-* | --x)
2138 case "$ac_configure_args0 " in
2139 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2140 esac
2141 ;;
2142 -* ) ac_must_keep_next=true ;;
2143 esac
2144 fi
2145 as_fn_append ac_configure_args " '$ac_arg'"
2146 ;;
2147 esac
2148 done
2149 done
2150 { ac_configure_args0=; unset ac_configure_args0;}
2151 { ac_configure_args1=; unset ac_configure_args1;}
2152
2153 # When interrupted or exit'd, cleanup temporary files, and complete
2154 # config.log. We remove comments because anyway the quotes in there
2155 # would cause problems or look ugly.
2156 # WARNING: Use '\'' to represent an apostrophe within the trap.
2157 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2158 trap 'exit_status=$?
2159 # Save into config.log some information that might help in debugging.
2160 {
2161 echo
2162
2163 $as_echo "## ---------------- ##
2164 ## Cache variables. ##
2165 ## ---------------- ##"
2166 echo
2167 # The following way of writing the cache mishandles newlines in values,
2168 (
2169 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in #(
2172 *${as_nl}*)
2173 case $ac_var in #(
2174 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2175 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2176 esac
2177 case $ac_var in #(
2178 _ | IFS | as_nl) ;; #(
2179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2180 *) { eval $ac_var=; unset $ac_var;} ;;
2181 esac ;;
2182 esac
2183 done
2184 (set) 2>&1 |
2185 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2186 *${as_nl}ac_space=\ *)
2187 sed -n \
2188 "s/'\''/'\''\\\\'\'''\''/g;
2189 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2190 ;; #(
2191 *)
2192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 ;;
2194 esac |
2195 sort
2196 )
2197 echo
2198
2199 $as_echo "## ----------------- ##
2200 ## Output variables. ##
2201 ## ----------------- ##"
2202 echo
2203 for ac_var in $ac_subst_vars
2204 do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 esac
2209 $as_echo "$ac_var='\''$ac_val'\''"
2210 done | sort
2211 echo
2212
2213 if test -n "$ac_subst_files"; then
2214 $as_echo "## ------------------- ##
2215 ## File substitutions. ##
2216 ## ------------------- ##"
2217 echo
2218 for ac_var in $ac_subst_files
2219 do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in
2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 esac
2224 $as_echo "$ac_var='\''$ac_val'\''"
2225 done | sort
2226 echo
2227 fi
2228
2229 if test -s confdefs.h; then
2230 $as_echo "## ----------- ##
2231 ## confdefs.h. ##
2232 ## ----------- ##"
2233 echo
2234 cat confdefs.h
2235 echo
2236 fi
2237 test "$ac_signal" != 0 &&
2238 $as_echo "$as_me: caught signal $ac_signal"
2239 $as_echo "$as_me: exit $exit_status"
2240 } >&5
2241 rm -f core *.core core.conftest.* &&
2242 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2243 exit $exit_status
2244 ' 0
2245 for ac_signal in 1 2 13 15; do
2246 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2247 done
2248 ac_signal=0
2249
2250 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2251 rm -f -r conftest* confdefs.h
2252
2253 $as_echo "/* confdefs.h */" > confdefs.h
2254
2255 # Predefined preprocessor variables.
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_NAME "$PACKAGE_NAME"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_STRING "$PACKAGE_STRING"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_URL "$PACKAGE_URL"
2279 _ACEOF
2280
2281
2282 # Let the site file select an alternate cache file if it wants to.
2283 # Prefer an explicitly selected file to automatically selected ones.
2284 ac_site_file1=NONE
2285 ac_site_file2=NONE
2286 if test -n "$CONFIG_SITE"; then
2287 # We do not want a PATH search for config.site.
2288 case $CONFIG_SITE in #((
2289 -*) ac_site_file1=./$CONFIG_SITE;;
2290 */*) ac_site_file1=$CONFIG_SITE;;
2291 *) ac_site_file1=./$CONFIG_SITE;;
2292 esac
2293 elif test "x$prefix" != xNONE; then
2294 ac_site_file1=$prefix/share/config.site
2295 ac_site_file2=$prefix/etc/config.site
2296 else
2297 ac_site_file1=$ac_default_prefix/share/config.site
2298 ac_site_file2=$ac_default_prefix/etc/config.site
2299 fi
2300 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2301 do
2302 test "x$ac_site_file" = xNONE && continue
2303 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2305 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2306 sed 's/^/| /' "$ac_site_file" >&5
2307 . "$ac_site_file" \
2308 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 as_fn_error $? "failed to load site script $ac_site_file
2311 See \`config.log' for more details" "$LINENO" 5; }
2312 fi
2313 done
2314
2315 if test -r "$cache_file"; then
2316 # Some versions of bash will fail to source /dev/null (special files
2317 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2318 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2320 $as_echo "$as_me: loading cache $cache_file" >&6;}
2321 case $cache_file in
2322 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2323 *) . "./$cache_file";;
2324 esac
2325 fi
2326 else
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2328 $as_echo "$as_me: creating cache $cache_file" >&6;}
2329 >$cache_file
2330 fi
2331
2332 # Check that the precious variables saved in the cache have kept the same
2333 # value.
2334 ac_cache_corrupted=false
2335 for ac_var in $ac_precious_vars; do
2336 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2337 eval ac_new_set=\$ac_env_${ac_var}_set
2338 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2339 eval ac_new_val=\$ac_env_${ac_var}_value
2340 case $ac_old_set,$ac_new_set in
2341 set,)
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2345 ,set)
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2348 ac_cache_corrupted=: ;;
2349 ,);;
2350 *)
2351 if test "x$ac_old_val" != "x$ac_new_val"; then
2352 # differences in whitespace do not lead to failure.
2353 ac_old_val_w=`echo x $ac_old_val`
2354 ac_new_val_w=`echo x $ac_new_val`
2355 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2357 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2358 ac_cache_corrupted=:
2359 else
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2361 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2362 eval $ac_var=\$ac_old_val
2363 fi
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2365 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2367 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2368 fi;;
2369 esac
2370 # Pass precious variables to config.status.
2371 if test "$ac_new_set" = set; then
2372 case $ac_new_val in
2373 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 *) ac_arg=$ac_var=$ac_new_val ;;
2375 esac
2376 case " $ac_configure_args " in
2377 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2378 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2379 esac
2380 fi
2381 done
2382 if $ac_cache_corrupted; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2386 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2387 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2388 fi
2389 ## -------------------- ##
2390 ## Main body of script. ##
2391 ## -------------------- ##
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398
2399
2400 ac_config_headers="$ac_config_headers config.h"
2401
2402
2403 ac_aux_dir=
2404 for ac_dir in autostuff "$srcdir"/autostuff; do
2405 if test -f "$ac_dir/install-sh"; then
2406 ac_aux_dir=$ac_dir
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2408 break
2409 elif test -f "$ac_dir/install.sh"; then
2410 ac_aux_dir=$ac_dir
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2412 break
2413 elif test -f "$ac_dir/shtool"; then
2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
2416 break
2417 fi
2418 done
2419 if test -z "$ac_aux_dir"; then
2420 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autostuff \"$srcdir\"/autostuff" "$LINENO" 5
2421 fi
2422
2423 # These three variables are undocumented and unsupported,
2424 # and are intended to be withdrawn in a future Autoconf release.
2425 # They can cause serious problems if a builder's source tree is in a directory
2426 # whose full name contains unusual characters.
2427 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2428 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2429 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2430
2431
2432
2433
2434
2435 # We require at least automake 1.11 (needed for 'silent rules').
2436 am__api_version='1.16'
2437
2438 # Find a good install program. We prefer a C program (faster),
2439 # so one script is as good as another. But avoid the broken or
2440 # incompatible versions:
2441 # SysV /etc/install, /usr/sbin/install
2442 # SunOS /usr/etc/install
2443 # IRIX /sbin/install
2444 # AIX /bin/install
2445 # AmigaOS /C/install, which installs bootblocks on floppy discs
2446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449 # OS/2's system install, which has a completely different semantic
2450 # ./install, which can be erroneously created by make from ./install.sh.
2451 # Reject install programs that cannot install multiple files.
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2454 if test -z "$INSTALL"; then
2455 if ${ac_cv_path_install+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 # Account for people who put trailing slashes in PATH elements.
2464 case $as_dir/ in #((
2465 ./ | .// | /[cC]/* | \
2466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2467 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2468 /usr/ucb/* ) ;;
2469 *)
2470 # OSF1 and SCO ODT 3.0 have their own names for install.
2471 # Don't use installbsd from OSF since it installs stuff as root
2472 # by default.
2473 for ac_prog in ginstall scoinst install; do
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2476 if test $ac_prog = install &&
2477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # AIX install. It has an incompatible calling convention.
2479 :
2480 elif test $ac_prog = install &&
2481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # program-specific install script used by HP pwplus--don't use.
2483 :
2484 else
2485 rm -rf conftest.one conftest.two conftest.dir
2486 echo one > conftest.one
2487 echo two > conftest.two
2488 mkdir conftest.dir
2489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2490 test -s conftest.one && test -s conftest.two &&
2491 test -s conftest.dir/conftest.one &&
2492 test -s conftest.dir/conftest.two
2493 then
2494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495 break 3
2496 fi
2497 fi
2498 fi
2499 done
2500 done
2501 ;;
2502 esac
2503
2504 done
2505 IFS=$as_save_IFS
2506
2507 rm -rf conftest.one conftest.two conftest.dir
2508
2509 fi
2510 if test "${ac_cv_path_install+set}" = set; then
2511 INSTALL=$ac_cv_path_install
2512 else
2513 # As a last resort, use the slow shell script. Don't cache a
2514 # value for INSTALL within a source directory, because that will
2515 # break other packages using the cache if that directory is
2516 # removed, or if the value is a relative name.
2517 INSTALL=$ac_install_sh
2518 fi
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2521 $as_echo "$INSTALL" >&6; }
2522
2523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2524 # It thinks the first close brace ends the variable substitution.
2525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526
2527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2528
2529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2532 $as_echo_n "checking whether build environment is sane... " >&6; }
2533 # Reject unsafe characters in $srcdir or the absolute working directory
2534 # name. Accept space and tab only in the latter.
2535 am_lf='
2536 '
2537 case `pwd` in
2538 *[\\\"\#\$\&\'\`$am_lf]*)
2539 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2540 esac
2541 case $srcdir in
2542 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2543 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2544 esac
2545
2546 # Do 'set' in a subshell so we don't clobber the current shell's
2547 # arguments. Must try -L first in case configure is actually a
2548 # symlink; some systems play weird games with the mod time of symlinks
2549 # (eg FreeBSD returns the mod time of the symlink's containing
2550 # directory).
2551 if (
2552 am_has_slept=no
2553 for am_try in 1 2; do
2554 echo "timestamp, slept: $am_has_slept" > conftest.file
2555 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2556 if test "$*" = "X"; then
2557 # -L didn't work.
2558 set X `ls -t "$srcdir/configure" conftest.file`
2559 fi
2560 if test "$*" != "X $srcdir/configure conftest.file" \
2561 && test "$*" != "X conftest.file $srcdir/configure"; then
2562
2563 # If neither matched, then we have a broken ls. This can happen
2564 # if, for instance, CONFIG_SHELL is bash and it inherits a
2565 # broken ls alias from the environment. This has actually
2566 # happened. Such a system could not be considered "sane".
2567 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2568 alias in your environment" "$LINENO" 5
2569 fi
2570 if test "$2" = conftest.file || test $am_try -eq 2; then
2571 break
2572 fi
2573 # Just in case.
2574 sleep 1
2575 am_has_slept=yes
2576 done
2577 test "$2" = conftest.file
2578 )
2579 then
2580 # Ok.
2581 :
2582 else
2583 as_fn_error $? "newly created file is older than distributed files!
2584 Check your system clock" "$LINENO" 5
2585 fi
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2587 $as_echo "yes" >&6; }
2588 # If we didn't sleep, we still need to ensure time stamps of config.status and
2589 # generated files are strictly newer.
2590 am_sleep_pid=
2591 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2592 ( sleep 1 ) &
2593 am_sleep_pid=$!
2594 fi
2595
2596 rm -f conftest.file
2597
2598 test "$program_prefix" != NONE &&
2599 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2600 # Use a double $ so make ignores it.
2601 test "$program_suffix" != NONE &&
2602 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2603 # Double any \ or $.
2604 # By default was `s,x,x', remove it if useless.
2605 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2606 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2607
2608 # Expand $ac_aux_dir to an absolute path.
2609 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2610
2611 if test x"${MISSING+set}" != xset; then
2612 MISSING="\${SHELL} '$am_aux_dir/missing'"
2613 fi
2614 # Use eval to expand $SHELL
2615 if eval "$MISSING --is-lightweight"; then
2616 am_missing_run="$MISSING "
2617 else
2618 am_missing_run=
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2620 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2621 fi
2622
2623 if test x"${install_sh+set}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627 *)
2628 install_sh="\${SHELL} $am_aux_dir/install-sh"
2629 esac
2630 fi
2631
2632 # Installed binaries are usually stripped using 'strip' when the user
2633 # run "make install-strip". However 'strip' might not be the right
2634 # tool to use in cross-compilation environments, therefore Automake
2635 # will honor the 'STRIP' environment variable to overrule this program.
2636 if test "$cross_compiling" != no; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}strip; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if ${ac_cv_prog_STRIP+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$STRIP"; then
2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 STRIP=$ac_cv_prog_STRIP
2666 if test -n "$STRIP"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2668 $as_echo "$STRIP" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675 fi
2676 if test -z "$ac_cv_prog_STRIP"; then
2677 ac_ct_STRIP=$STRIP
2678 # Extract the first word of "strip", so it can be a program name with args.
2679 set dummy strip; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_STRIP"; then
2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_ac_ct_STRIP="strip"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2706 if test -n "$ac_ct_STRIP"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2708 $as_echo "$ac_ct_STRIP" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714 if test "x$ac_ct_STRIP" = x; then
2715 STRIP=":"
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 STRIP=$ac_ct_STRIP
2724 fi
2725 else
2726 STRIP="$ac_cv_prog_STRIP"
2727 fi
2728
2729 fi
2730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2734 if test -z "$MKDIR_P"; then
2735 if ${ac_cv_path_mkdir+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_prog in mkdir gmkdir; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2747 'mkdir (GNU coreutils) '* | \
2748 'mkdir (coreutils) '* | \
2749 'mkdir (fileutils) '4.1*)
2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2751 break 3;;
2752 esac
2753 done
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759
2760 test -d ./--version && rmdir ./--version
2761 if test "${ac_cv_path_mkdir+set}" = set; then
2762 MKDIR_P="$ac_cv_path_mkdir -p"
2763 else
2764 # As a last resort, use the slow shell script. Don't cache a
2765 # value for MKDIR_P within a source directory, because that will
2766 # break other packages using the cache if that directory is
2767 # removed, or if the value is a relative name.
2768 MKDIR_P="$ac_install_sh -d"
2769 fi
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2772 $as_echo "$MKDIR_P" >&6; }
2773
2774 for ac_prog in gawk mawk nawk awk
2775 do
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_AWK+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$AWK"; then
2784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_AWK="$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 AWK=$ac_cv_prog_AWK
2804 if test -n "$AWK"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806 $as_echo "$AWK" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 test -n "$AWK" && break
2814 done
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2818 set x ${MAKE-make}
2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 cat >conftest.make <<\_ACEOF
2824 SHELL = /bin/sh
2825 all:
2826 @echo '@@@%%%=$(MAKE)=@@@%%%'
2827 _ACEOF
2828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2830 *@@@%%%=?*=@@@%%%*)
2831 eval ac_cv_prog_make_${ac_make}_set=yes;;
2832 *)
2833 eval ac_cv_prog_make_${ac_make}_set=no;;
2834 esac
2835 rm -f conftest.make
2836 fi
2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840 SET_MAKE=
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 SET_MAKE="MAKE=${MAKE-make}"
2845 fi
2846
2847 rm -rf .tst 2>/dev/null
2848 mkdir .tst 2>/dev/null
2849 if test -d .tst; then
2850 am__leading_dot=.
2851 else
2852 am__leading_dot=_
2853 fi
2854 rmdir .tst 2>/dev/null
2855
2856 # Check whether --enable-silent-rules was given.
2857 if test "${enable_silent_rules+set}" = set; then :
2858 enableval=$enable_silent_rules;
2859 fi
2860
2861 case $enable_silent_rules in # (((
2862 yes) AM_DEFAULT_VERBOSITY=0;;
2863 no) AM_DEFAULT_VERBOSITY=1;;
2864 *) AM_DEFAULT_VERBOSITY=1;;
2865 esac
2866 am_make=${MAKE-make}
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2868 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2869 if ${am_cv_make_support_nested_variables+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if $as_echo 'TRUE=$(BAR$(V))
2873 BAR0=false
2874 BAR1=true
2875 V=1
2876 am__doit:
2877 @$(TRUE)
2878 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2879 am_cv_make_support_nested_variables=yes
2880 else
2881 am_cv_make_support_nested_variables=no
2882 fi
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2885 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2886 if test $am_cv_make_support_nested_variables = yes; then
2887 AM_V='$(V)'
2888 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2889 else
2890 AM_V=$AM_DEFAULT_VERBOSITY
2891 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2892 fi
2893 AM_BACKSLASH='\'
2894
2895 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897 # is not polluted with repeated "-I."
2898 am__isrc=' -I$(srcdir)'
2899 # test to see if srcdir already configured
2900 if test -f $srcdir/config.status; then
2901 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902 fi
2903 fi
2904
2905 # test whether we have cygpath
2906 if test -z "$CYGPATH_W"; then
2907 if (cygpath --version) >/dev/null 2>/dev/null; then
2908 CYGPATH_W='cygpath -w'
2909 else
2910 CYGPATH_W=echo
2911 fi
2912 fi
2913
2914
2915 # Define the identity of the package.
2916 PACKAGE='libserialport'
2917 VERSION='0.1.2'
2918
2919
2920 # Some tools Automake needs.
2921
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
2936 # For better backward compatibility. To be removed once Automake 1.9.x
2937 # dies out for good. For more background, see:
2938 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2939 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2940 mkdir_p='$(MKDIR_P)'
2941
2942 # We need awk for the "check" target (and possibly the TAP driver). The
2943 # system "awk" is bad on some platforms.
2944 # Always define AMTAR for backward compatibility. Yes, it's still used
2945 # in the wild :-( We should find a proper way to deprecate it ...
2946 AMTAR='$${TAR-tar}'
2947
2948
2949 # We'll loop over all known methods to create a tar archive until one works.
2950 _am_tools='gnutar pax cpio none'
2951
2952 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2953
2954
2955
2956
2957
2958 # Variables for tags utilities; see am/tags.am
2959 if test -z "$CTAGS"; then
2960 CTAGS=ctags
2961 fi
2962
2963 if test -z "$ETAGS"; then
2964 ETAGS=etags
2965 fi
2966
2967 if test -z "$CSCOPE"; then
2968 CSCOPE=cscope
2969 fi
2970
2971
2972
2973 # POSIX will say in a future version that running "rm -f" with no argument
2974 # is OK; and we want to be able to make that assumption in our Makefile
2975 # recipes. So use an aggressive probe to check that the usage we want is
2976 # actually supported "in the wild" to an acceptable degree.
2977 # See automake bug#10828.
2978 # To make any issue more visible, cause the running configure to be aborted
2979 # by default if the 'rm' program in use doesn't match our expectations; the
2980 # user can still override this though.
2981 if rm -f && rm -fr && rm -rf; then : OK; else
2982 cat >&2 <<'END'
2983 Oops!
2984
2985 Your 'rm' program seems unable to run without file operands specified
2986 on the command line, even when the '-f' option is present. This is contrary
2987 to the behaviour of most rm programs out there, and not conforming with
2988 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2989
2990 Please tell [email protected] about your system, including the value
2991 of your $PATH and any error possibly output before this message. This
2992 can help us improve future automake versions.
2993
2994 END
2995 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2996 echo 'Configuration will proceed anyway, since you have set the' >&2
2997 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2998 echo >&2
2999 else
3000 cat >&2 <<'END'
3001 Aborting the configuration process, to ensure you take notice of the issue.
3002
3003 You can download and install GNU coreutils to get an 'rm' implementation
3004 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3005
3006 If you want to complete the configuration process using your problematic
3007 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3008 to "yes", and re-run configure.
3009
3010 END
3011 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3012 fi
3013 fi
3014
3015 # Check whether --enable-silent-rules was given.
3016 if test "${enable_silent_rules+set}" = set; then :
3017 enableval=$enable_silent_rules;
3018 fi
3019
3020 case $enable_silent_rules in # (((
3021 yes) AM_DEFAULT_VERBOSITY=0;;
3022 no) AM_DEFAULT_VERBOSITY=1;;
3023 *) AM_DEFAULT_VERBOSITY=0;;
3024 esac
3025 am_make=${MAKE-make}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3027 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3028 if ${am_cv_make_support_nested_variables+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if $as_echo 'TRUE=$(BAR$(V))
3032 BAR0=false
3033 BAR1=true
3034 V=1
3035 am__doit:
3036 @$(TRUE)
3037 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3038 am_cv_make_support_nested_variables=yes
3039 else
3040 am_cv_make_support_nested_variables=no
3041 fi
3042 fi
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3044 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3045 if test $am_cv_make_support_nested_variables = yes; then
3046 AM_V='$(V)'
3047 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3048 else
3049 AM_V=$AM_DEFAULT_VERBOSITY
3050 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3051 fi
3052 AM_BACKSLASH='\'
3053
3054 DEPDIR="${am__leading_dot}deps"
3055
3056 ac_config_commands="$ac_config_commands depfiles"
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3059 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3060 cat > confinc.mk << 'END'
3061 am__doit:
3062 @echo this is the am__doit target >confinc.out
3063 .PHONY: am__doit
3064 END
3065 am__include="#"
3066 am__quote=
3067 # BSD make does it like this.
3068 echo '.include "confinc.mk" # ignored' > confmf.BSD
3069 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3070 echo 'include confinc.mk # ignored' > confmf.GNU
3071 _am_result=no
3072 for s in GNU BSD; do
3073 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3074 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3078 case $?:`cat confinc.out 2>/dev/null` in #(
3079 '0:this is the am__doit target') :
3080 case $s in #(
3081 BSD) :
3082 am__include='.include' am__quote='"' ;; #(
3083 *) :
3084 am__include='include' am__quote='' ;;
3085 esac ;; #(
3086 *) :
3087 ;;
3088 esac
3089 if test "$am__include" != "#"; then
3090 _am_result="yes ($s style)"
3091 break
3092 fi
3093 done
3094 rm -f confinc.* confmf.*
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3096 $as_echo "${_am_result}" >&6; }
3097
3098 # Check whether --enable-dependency-tracking was given.
3099 if test "${enable_dependency_tracking+set}" = set; then :
3100 enableval=$enable_dependency_tracking;
3101 fi
3102
3103 if test "x$enable_dependency_tracking" != xno; then
3104 am_depcomp="$ac_aux_dir/depcomp"
3105 AMDEPBACKSLASH='\'
3106 am__nodep='_no'
3107 fi
3108 if test "x$enable_dependency_tracking" != xno; then
3109 AMDEP_TRUE=
3110 AMDEP_FALSE='#'
3111 else
3112 AMDEP_TRUE='#'
3113 AMDEP_FALSE=
3114 fi
3115
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 fi
3161 if test -z "$ac_cv_prog_CC"; then
3162 ac_ct_CC=$CC
3163 # Extract the first word of "gcc", so it can be a program name with args.
3164 set dummy gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CC="gcc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208 CC=$ac_ct_CC
3209 fi
3210 else
3211 CC="$ac_cv_prog_CC"
3212 fi
3213
3214 if test -z "$CC"; then
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}cc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_CC="${ac_tool_prefix}cc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 fi
3254 fi
3255 if test -z "$CC"; then
3256 # Extract the first word of "cc", so it can be a program name with args.
3257 set dummy cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 ac_prog_rejected=no
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3275 ac_prog_rejected=yes
3276 continue
3277 fi
3278 ac_cv_prog_CC="cc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 if test $ac_prog_rejected = yes; then
3287 # We found a bogon in the path, so make sure we never use it.
3288 set dummy $ac_cv_prog_CC
3289 shift
3290 if test $# != 0; then
3291 # We chose a different compiler from the bogus one.
3292 # However, it has the same basename, so the bogon will be chosen
3293 # first if we set CC to just the basename; use the full file name.
3294 shift
3295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3296 fi
3297 fi
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 if test -z "$CC"; then
3312 if test -n "$ac_tool_prefix"; then
3313 for ac_prog in cl.exe
3314 do
3315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352 test -n "$CC" && break
3353 done
3354 fi
3355 if test -z "$CC"; then
3356 ac_ct_CC=$CC
3357 for ac_prog in cl.exe
3358 do
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$ac_ct_CC"; then
3367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_ac_ct_CC="$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380 done
3381 done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 $as_echo "$ac_ct_CC" >&6; }
3390 else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396 test -n "$ac_ct_CC" && break
3397 done
3398
3399 if test "x$ac_ct_CC" = x; then
3400 CC=""
3401 else
3402 case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3407 esac
3408 CC=$ac_ct_CC
3409 fi
3410 fi
3411
3412 fi
3413
3414
3415 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details" "$LINENO" 5; }
3419
3420 # Provide some information about the compiler.
3421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3422 set X $ac_compile
3423 ac_compiler=$2
3424 for ac_option in --version -v -V -qversion; do
3425 { { ac_try="$ac_compiler $ac_option >&5"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3433 ac_status=$?
3434 if test -s conftest.err; then
3435 sed '10a\
3436 ... rest of stderr output deleted ...
3437 10q' conftest.err >conftest.er1
3438 cat conftest.er1 >&5
3439 fi
3440 rm -f conftest.er1 conftest.err
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443 done
3444
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447
3448 int
3449 main ()
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3460 # of exeext.
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3462 $as_echo_n "checking whether the C compiler works... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3464
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3467
3468 ac_rmfiles=
3469 for ac_file in $ac_files
3470 do
3471 case $ac_file in
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3474 esac
3475 done
3476 rm -f $ac_rmfiles
3477
3478 if { { ac_try="$ac_link_default"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_link_default") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3493 # Autoconf.
3494 for ac_file in $ac_files ''
3495 do
3496 test -f "$ac_file" || continue
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3499 ;;
3500 [ab].out )
3501 # We found the default executable, but exeext='' is most
3502 # certainly right.
3503 break;;
3504 *.* )
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3506 then :; else
3507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508 fi
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3513 # actually working.
3514 break;;
3515 * )
3516 break;;
3517 esac
3518 done
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3520
3521 else
3522 ac_file=''
3523 fi
3524 if test -z "$ac_file"; then :
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error 77 "C compiler cannot create executables
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3539 $as_echo_n "checking for C compiler default output file name... " >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3541 $as_echo "$ac_file" >&6; }
3542 ac_exeext=$ac_cv_exeext
3543
3544 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3545 ac_clean_files=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3547 $as_echo_n "checking for suffix of executables... " >&6; }
3548 if { { ac_try="$ac_link"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_link") 2>&5
3556 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3560 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3561 # work properly (i.e., refer to `conftest.exe'), while it won't with
3562 # `rm'.
3563 for ac_file in conftest.exe conftest conftest.*; do
3564 test -f "$ac_file" || continue
3565 case $ac_file in
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3568 break;;
3569 * ) break;;
3570 esac
3571 done
3572 else
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3576 See \`config.log' for more details" "$LINENO" 5; }
3577 fi
3578 rm -f conftest conftest$ac_cv_exeext
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3580 $as_echo "$ac_cv_exeext" >&6; }
3581
3582 rm -f conftest.$ac_ext
3583 EXEEXT=$ac_cv_exeext
3584 ac_exeext=$EXEEXT
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdio.h>
3588 int
3589 main ()
3590 {
3591 FILE *f = fopen ("conftest.out", "w");
3592 return ferror (f) || fclose (f) != 0;
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 ac_clean_files="$ac_clean_files conftest.out"
3599 # Check that the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602 $as_echo_n "checking whether we are cross compiling... " >&6; }
3603 if test "$cross_compiling" != yes; then
3604 { { ac_try="$ac_link"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }
3615 if { ac_try='./conftest$ac_cv_exeext'
3616 { { case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_try") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; }; then
3626 cross_compiling=no
3627 else
3628 if test "$cross_compiling" = maybe; then
3629 cross_compiling=yes
3630 else
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 fi
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3641
3642 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3643 ac_clean_files=$ac_clean_files_save
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if ${ac_cv_objext+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 break;;
3678 esac
3679 done
3680 else
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of object files: cannot compile
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3694 ac_objext=$OBJEXT
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if ${ac_cv_c_compiler_gnu+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706 #ifndef __GNUC__
3707 choke me
3708 #endif
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_compiler_gnu=yes
3716 else
3717 ac_compiler_gnu=no
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3726 GCC=yes
3727 else
3728 GCC=
3729 fi
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if ${ac_cv_prog_cc_g+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3739 ac_cv_prog_cc_g=no
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3754 else
3755 CFLAGS=""
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758
3759 int
3760 main ()
3761 {
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768
3769 else
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3799 CFLAGS="-g -O2"
3800 else
3801 CFLAGS="-g"
3802 fi
3803 else
3804 if test "$GCC" = yes; then
3805 CFLAGS="-O2"
3806 else
3807 CFLAGS=
3808 fi
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if ${ac_cv_prog_cc_c89+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 ac_cv_prog_cc_c89=no
3816 ac_save_CC=$CC
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <stdarg.h>
3820 #include <stdio.h>
3821 struct stat;
3822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3823 struct buf { int x; };
3824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3825 static char *e (p, i)
3826 char **p;
3827 int i;
3828 {
3829 return p[i];
3830 }
3831 static char *f (char * (*g) (char **, int), char **p, ...)
3832 {
3833 char *s;
3834 va_list v;
3835 va_start (v,p);
3836 s = g (p, va_arg (v,int));
3837 va_end (v);
3838 return s;
3839 }
3840
3841 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3842 function prototypes and stuff, but not '\xHH' hex character constants.
3843 These don't provoke an error unfortunately, instead are silently treated
3844 as 'x'. The following induces an error, until -std is added to get
3845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3846 array size at least. It's necessary to write '\x00'==0 to get something
3847 that's true only with -std. */
3848 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3849
3850 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3851 inside strings and character constants. */
3852 #define FOO(x) 'x'
3853 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3854
3855 int test (int i, double x);
3856 struct s1 {int (*f) (int a);};
3857 struct s2 {int (*f) (double a);};
3858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3859 int argc;
3860 char **argv;
3861 int
3862 main ()
3863 {
3864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3871 do
3872 CC="$ac_save_CC $ac_arg"
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_cv_prog_cc_c89=$ac_arg
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext
3877 test "x$ac_cv_prog_cc_c89" != "xno" && break
3878 done
3879 rm -f conftest.$ac_ext
3880 CC=$ac_save_CC
3881
3882 fi
3883 # AC_CACHE_VAL
3884 case "x$ac_cv_prog_cc_c89" in
3885 x)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3887 $as_echo "none needed" >&6; } ;;
3888 xno)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3890 $as_echo "unsupported" >&6; } ;;
3891 *)
3892 CC="$CC $ac_cv_prog_cc_c89"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3894 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3895 esac
3896 if test "x$ac_cv_prog_cc_c89" != xno; then :
3897
3898 fi
3899
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3912 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3913 if ${am_cv_prog_cc_c_o+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918
3919 int
3920 main ()
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 # Make sure it works both with $CC and with simple cc.
3928 # Following AC_PROG_CC_C_O, we do the test twice because some
3929 # compilers refuse to overwrite an existing .o file with -o,
3930 # though they will create one.
3931 am_cv_prog_cc_c_o=yes
3932 for am_i in 1 2; do
3933 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3934 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } \
3938 && test -f conftest2.$ac_objext; then
3939 : OK
3940 else
3941 am_cv_prog_cc_c_o=no
3942 break
3943 fi
3944 done
3945 rm -f core conftest*
3946 unset am_i
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3949 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3950 if test "$am_cv_prog_cc_c_o" != yes; then
3951 # Losing compiler, so override with the script.
3952 # FIXME: It is wrong to rewrite CC.
3953 # But if we don't then we get into trouble of one sort or another.
3954 # A longer-term fix would be to have automake use am__CC in this case,
3955 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3956 CC="$am_aux_dir/compile $CC"
3957 fi
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965 depcc="$CC" am_compiler_list=
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3968 $as_echo_n "checking dependency style of $depcc... " >&6; }
3969 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3973 # We make a subdir and do the tests there. Otherwise we can end up
3974 # making bogus files that we don't know about and never remove. For
3975 # instance it was reported that on HP-UX the gcc test will end up
3976 # making a dummy file named 'D' -- because '-MD' means "put the output
3977 # in D".
3978 rm -rf conftest.dir
3979 mkdir conftest.dir
3980 # Copy depcomp to subdir because otherwise we won't find it if we're
3981 # using a relative directory.
3982 cp "$am_depcomp" conftest.dir
3983 cd conftest.dir
3984 # We will build objects and dependencies in a subdirectory because
3985 # it helps to detect inapplicable dependency modes. For instance
3986 # both Tru64's cc and ICC support -MD to output dependencies as a
3987 # side effect of compilation, but ICC will put the dependencies in
3988 # the current directory while Tru64 will put them in the object
3989 # directory.
3990 mkdir sub
3991
3992 am_cv_CC_dependencies_compiler_type=none
3993 if test "$am_compiler_list" = ""; then
3994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3995 fi
3996 am__universal=false
3997 case " $depcc " in #(
3998 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3999 esac
4000
4001 for depmode in $am_compiler_list; do
4002 # Setup a source with many dependencies, because some compilers
4003 # like to wrap large dependency lists on column 80 (with \), and
4004 # we should not choose a depcomp mode which is confused by this.
4005 #
4006 # We need to recreate these files for each test, as the compiler may
4007 # overwrite some of them when testing with obscure command lines.
4008 # This happens at least with the AIX C compiler.
4009 : > sub/conftest.c
4010 for i in 1 2 3 4 5 6; do
4011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4012 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4013 # Solaris 10 /bin/sh.
4014 echo '/* dummy */' > sub/conftst$i.h
4015 done
4016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4017
4018 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4019 # mode. It turns out that the SunPro C++ compiler does not properly
4020 # handle '-M -o', and we need to detect this. Also, some Intel
4021 # versions had trouble with output in subdirs.
4022 am__obj=sub/conftest.${OBJEXT-o}
4023 am__minus_obj="-o $am__obj"
4024 case $depmode in
4025 gcc)
4026 # This depmode causes a compiler race in universal mode.
4027 test "$am__universal" = false || continue
4028 ;;
4029 nosideeffect)
4030 # After this tag, mechanisms are not by side-effect, so they'll
4031 # only be used when explicitly requested.
4032 if test "x$enable_dependency_tracking" = xyes; then
4033 continue
4034 else
4035 break
4036 fi
4037 ;;
4038 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4039 # This compiler won't grok '-c -o', but also, the minuso test has
4040 # not run yet. These depmodes are late enough in the game, and
4041 # so weak that their functioning should not be impacted.
4042 am__obj=conftest.${OBJEXT-o}
4043 am__minus_obj=
4044 ;;
4045 none) break ;;
4046 esac
4047 if depmode=$depmode \
4048 source=sub/conftest.c object=$am__obj \
4049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4050 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4051 >/dev/null 2>conftest.err &&
4052 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4054 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4056 # icc doesn't choke on unknown options, it will just issue warnings
4057 # or remarks (even with -Werror). So we grep stderr for any message
4058 # that says an option was ignored or not supported.
4059 # When given -MP, icc 7.0 and 7.1 complain thusly:
4060 # icc: Command line warning: ignoring option '-M'; no argument required
4061 # The diagnosis changed in icc 8.0:
4062 # icc: Command line remark: option '-MP' not supported
4063 if (grep 'ignoring option' conftest.err ||
4064 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4065 am_cv_CC_dependencies_compiler_type=$depmode
4066 break
4067 fi
4068 fi
4069 done
4070
4071 cd ..
4072 rm -rf conftest.dir
4073 else
4074 am_cv_CC_dependencies_compiler_type=none
4075 fi
4076
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4079 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4080 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4081
4082 if
4083 test "x$enable_dependency_tracking" != xno \
4084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4085 am__fastdepCC_TRUE=
4086 am__fastdepCC_FALSE='#'
4087 else
4088 am__fastdepCC_TRUE='#'
4089 am__fastdepCC_FALSE=
4090 fi
4091
4092
4093
4094 if test -n "$ac_tool_prefix"; then
4095 for ac_prog in ar lib "link -lib"
4096 do
4097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_AR+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if test -n "$AR"; then
4105 ac_cv_prog_AR="$AR" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118 done
4119 done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 AR=$ac_cv_prog_AR
4125 if test -n "$AR"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4127 $as_echo "$AR" >&6; }
4128 else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133
4134 test -n "$AR" && break
4135 done
4136 fi
4137 if test -z "$AR"; then
4138 ac_ct_AR=$AR
4139 for ac_prog in ar lib "link -lib"
4140 do
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$ac_ct_AR"; then
4149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_AR="$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4169 if test -n "$ac_ct_AR"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4171 $as_echo "$ac_ct_AR" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 test -n "$ac_ct_AR" && break
4179 done
4180
4181 if test "x$ac_ct_AR" = x; then
4182 AR="false"
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190 AR=$ac_ct_AR
4191 fi
4192 fi
4193
4194 : ${AR=ar}
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4197 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4198 if ${am_cv_ar_interface+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207 am_cv_ar_interface=ar
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 int some_variable = 0;
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"; then :
4213 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4215 (eval $am_ar_try) 2>&5
4216 ac_status=$?
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }
4219 if test "$ac_status" -eq 0; then
4220 am_cv_ar_interface=ar
4221 else
4222 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4224 (eval $am_ar_try) 2>&5
4225 ac_status=$?
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }
4228 if test "$ac_status" -eq 0; then
4229 am_cv_ar_interface=lib
4230 else
4231 am_cv_ar_interface=unknown
4232 fi
4233 fi
4234 rm -f conftest.lib libconftest.a
4235
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4246 $as_echo "$am_cv_ar_interface" >&6; }
4247
4248 case $am_cv_ar_interface in
4249 ar)
4250 ;;
4251 lib)
4252 # Microsoft lib, so override with the ar-lib wrapper script.
4253 # FIXME: It is wrong to rewrite AR.
4254 # But if we don't then we get into trouble of one sort or another.
4255 # A longer-term fix would be to have automake use am__AR in this case,
4256 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4257 # similar.
4258 AR="$am_aux_dir/ar-lib $AR"
4259 ;;
4260 unknown)
4261 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4262 ;;
4263 esac
4264
4265
4266 # Checks for programs.
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_CC+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4293 fi
4294 done
4295 done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 CC=$ac_cv_prog_CC
4301 if test -n "$CC"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303 $as_echo "$CC" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310 fi
4311 if test -z "$ac_cv_prog_CC"; then
4312 ac_ct_CC=$CC
4313 # Extract the first word of "gcc", so it can be a program name with args.
4314 set dummy gcc; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if test -n "$ac_ct_CC"; then
4321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_ac_ct_CC="gcc"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334 done
4335 done
4336 IFS=$as_save_IFS
4337
4338 fi
4339 fi
4340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4341 if test -n "$ac_ct_CC"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4343 $as_echo "$ac_ct_CC" >&6; }
4344 else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4347 fi
4348
4349 if test "x$ac_ct_CC" = x; then
4350 CC=""
4351 else
4352 case $cross_compiling:$ac_tool_warned in
4353 yes:)
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4356 ac_tool_warned=yes ;;
4357 esac
4358 CC=$ac_ct_CC
4359 fi
4360 else
4361 CC="$ac_cv_prog_CC"
4362 fi
4363
4364 if test -z "$CC"; then
4365 if test -n "$ac_tool_prefix"; then
4366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4367 set dummy ${ac_tool_prefix}cc; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_prog_CC+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -n "$CC"; then
4374 ac_cv_prog_CC="$CC" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383 ac_cv_prog_CC="${ac_tool_prefix}cc"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387 done
4388 done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 CC=$ac_cv_prog_CC
4394 if test -n "$CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396 $as_echo "$CC" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403 fi
4404 fi
4405 if test -z "$CC"; then
4406 # Extract the first word of "cc", so it can be a program name with args.
4407 set dummy cc; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_CC+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$CC"; then
4414 ac_cv_prog_CC="$CC" # Let the user override the test.
4415 else
4416 ac_prog_rejected=no
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4425 ac_prog_rejected=yes
4426 continue
4427 fi
4428 ac_cv_prog_CC="cc"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 if test $ac_prog_rejected = yes; then
4437 # We found a bogon in the path, so make sure we never use it.
4438 set dummy $ac_cv_prog_CC
4439 shift
4440 if test $# != 0; then
4441 # We chose a different compiler from the bogus one.
4442 # However, it has the same basename, so the bogon will be chosen
4443 # first if we set CC to just the basename; use the full file name.
4444 shift
4445 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4446 fi
4447 fi
4448 fi
4449 fi
4450 CC=$ac_cv_prog_CC
4451 if test -n "$CC"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4453 $as_echo "$CC" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459
4460 fi
4461 if test -z "$CC"; then
4462 if test -n "$ac_tool_prefix"; then
4463 for ac_prog in cl.exe
4464 do
4465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if ${ac_cv_prog_CC+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 fi
4491 fi
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495 $as_echo "$CC" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4499 fi
4500
4501
4502 test -n "$CC" && break
4503 done
4504 fi
4505 if test -z "$CC"; then
4506 ac_ct_CC=$CC
4507 for ac_prog in cl.exe
4508 do
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$ac_ct_CC"; then
4517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_ac_ct_CC="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 fi
4535 fi
4536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4537 if test -n "$ac_ct_CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4539 $as_echo "$ac_ct_CC" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545
4546 test -n "$ac_ct_CC" && break
4547 done
4548
4549 if test "x$ac_ct_CC" = x; then
4550 CC=""
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553 yes:)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned=yes ;;
4557 esac
4558 CC=$ac_ct_CC
4559 fi
4560 fi
4561
4562 fi
4563
4564
4565 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4567 as_fn_error $? "no acceptable C compiler found in \$PATH
4568 See \`config.log' for more details" "$LINENO" 5; }
4569
4570 # Provide some information about the compiler.
4571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4572 set X $ac_compile
4573 ac_compiler=$2
4574 for ac_option in --version -v -V -qversion; do
4575 { { ac_try="$ac_compiler $ac_option >&5"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4583 ac_status=$?
4584 if test -s conftest.err; then
4585 sed '10a\
4586 ... rest of stderr output deleted ...
4587 10q' conftest.err >conftest.er1
4588 cat conftest.er1 >&5
4589 fi
4590 rm -f conftest.er1 conftest.err
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }
4593 done
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4596 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4597 if ${ac_cv_c_compiler_gnu+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602
4603 int
4604 main ()
4605 {
4606 #ifndef __GNUC__
4607 choke me
4608 #endif
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_compiler_gnu=yes
4616 else
4617 ac_compiler_gnu=no
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4626 GCC=yes
4627 else
4628 GCC=
4629 fi
4630 ac_test_CFLAGS=${CFLAGS+set}
4631 ac_save_CFLAGS=$CFLAGS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4634 if ${ac_cv_prog_cc_g+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 ac_save_c_werror_flag=$ac_c_werror_flag
4638 ac_c_werror_flag=yes
4639 ac_cv_prog_cc_g=no
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654 else
4655 CFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668
4669 else
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674
4675 int
4676 main ()
4677 {
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_prog_cc_g=yes
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4694 $as_echo "$ac_cv_prog_cc_g" >&6; }
4695 if test "$ac_test_CFLAGS" = set; then
4696 CFLAGS=$ac_save_CFLAGS
4697 elif test $ac_cv_prog_cc_g = yes; then
4698 if test "$GCC" = yes; then
4699 CFLAGS="-g -O2"
4700 else
4701 CFLAGS="-g"
4702 fi
4703 else
4704 if test "$GCC" = yes; then
4705 CFLAGS="-O2"
4706 else
4707 CFLAGS=
4708 fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4711 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4712 if ${ac_cv_prog_cc_c89+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_cv_prog_cc_c89=no
4716 ac_save_CC=$CC
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4719 #include <stdarg.h>
4720 #include <stdio.h>
4721 struct stat;
4722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4723 struct buf { int x; };
4724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4725 static char *e (p, i)
4726 char **p;
4727 int i;
4728 {
4729 return p[i];
4730 }
4731 static char *f (char * (*g) (char **, int), char **p, ...)
4732 {
4733 char *s;
4734 va_list v;
4735 va_start (v,p);
4736 s = g (p, va_arg (v,int));
4737 va_end (v);
4738 return s;
4739 }
4740
4741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4742 function prototypes and stuff, but not '\xHH' hex character constants.
4743 These don't provoke an error unfortunately, instead are silently treated
4744 as 'x'. The following induces an error, until -std is added to get
4745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4746 array size at least. It's necessary to write '\x00'==0 to get something
4747 that's true only with -std. */
4748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4749
4750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4751 inside strings and character constants. */
4752 #define FOO(x) 'x'
4753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4754
4755 int test (int i, double x);
4756 struct s1 {int (*f) (int a);};
4757 struct s2 {int (*f) (double a);};
4758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4759 int argc;
4760 char **argv;
4761 int
4762 main ()
4763 {
4764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771 do
4772 CC="$ac_save_CC $ac_arg"
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_prog_cc_c89=$ac_arg
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext
4777 test "x$ac_cv_prog_cc_c89" != "xno" && break
4778 done
4779 rm -f conftest.$ac_ext
4780 CC=$ac_save_CC
4781
4782 fi
4783 # AC_CACHE_VAL
4784 case "x$ac_cv_prog_cc_c89" in
4785 x)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787 $as_echo "none needed" >&6; } ;;
4788 xno)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790 $as_echo "unsupported" >&6; } ;;
4791 *)
4792 CC="$CC $ac_cv_prog_cc_c89"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4794 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4795 esac
4796 if test "x$ac_cv_prog_cc_c89" != xno; then :
4797
4798 fi
4799
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4812 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4813 if ${am_cv_prog_cc_c_o+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818
4819 int
4820 main ()
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 # Make sure it works both with $CC and with simple cc.
4828 # Following AC_PROG_CC_C_O, we do the test twice because some
4829 # compilers refuse to overwrite an existing .o file with -o,
4830 # though they will create one.
4831 am_cv_prog_cc_c_o=yes
4832 for am_i in 1 2; do
4833 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4834 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } \
4838 && test -f conftest2.$ac_objext; then
4839 : OK
4840 else
4841 am_cv_prog_cc_c_o=no
4842 break
4843 fi
4844 done
4845 rm -f core conftest*
4846 unset am_i
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4849 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4850 if test "$am_cv_prog_cc_c_o" != yes; then
4851 # Losing compiler, so override with the script.
4852 # FIXME: It is wrong to rewrite CC.
4853 # But if we don't then we get into trouble of one sort or another.
4854 # A longer-term fix would be to have automake use am__CC in this case,
4855 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4856 CC="$am_aux_dir/compile $CC"
4857 fi
4858 ac_ext=c
4859 ac_cpp='$CPP $CPPFLAGS'
4860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863
4864
4865 depcc="$CC" am_compiler_list=
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4868 $as_echo_n "checking dependency style of $depcc... " >&6; }
4869 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4873 # We make a subdir and do the tests there. Otherwise we can end up
4874 # making bogus files that we don't know about and never remove. For
4875 # instance it was reported that on HP-UX the gcc test will end up
4876 # making a dummy file named 'D' -- because '-MD' means "put the output
4877 # in D".
4878 rm -rf conftest.dir
4879 mkdir conftest.dir
4880 # Copy depcomp to subdir because otherwise we won't find it if we're
4881 # using a relative directory.
4882 cp "$am_depcomp" conftest.dir
4883 cd conftest.dir
4884 # We will build objects and dependencies in a subdirectory because
4885 # it helps to detect inapplicable dependency modes. For instance
4886 # both Tru64's cc and ICC support -MD to output dependencies as a
4887 # side effect of compilation, but ICC will put the dependencies in
4888 # the current directory while Tru64 will put them in the object
4889 # directory.
4890 mkdir sub
4891
4892 am_cv_CC_dependencies_compiler_type=none
4893 if test "$am_compiler_list" = ""; then
4894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4895 fi
4896 am__universal=false
4897 case " $depcc " in #(
4898 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4899 esac
4900
4901 for depmode in $am_compiler_list; do
4902 # Setup a source with many dependencies, because some compilers
4903 # like to wrap large dependency lists on column 80 (with \), and
4904 # we should not choose a depcomp mode which is confused by this.
4905 #
4906 # We need to recreate these files for each test, as the compiler may
4907 # overwrite some of them when testing with obscure command lines.
4908 # This happens at least with the AIX C compiler.
4909 : > sub/conftest.c
4910 for i in 1 2 3 4 5 6; do
4911 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4912 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4913 # Solaris 10 /bin/sh.
4914 echo '/* dummy */' > sub/conftst$i.h
4915 done
4916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4917
4918 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4919 # mode. It turns out that the SunPro C++ compiler does not properly
4920 # handle '-M -o', and we need to detect this. Also, some Intel
4921 # versions had trouble with output in subdirs.
4922 am__obj=sub/conftest.${OBJEXT-o}
4923 am__minus_obj="-o $am__obj"
4924 case $depmode in
4925 gcc)
4926 # This depmode causes a compiler race in universal mode.
4927 test "$am__universal" = false || continue
4928 ;;
4929 nosideeffect)
4930 # After this tag, mechanisms are not by side-effect, so they'll
4931 # only be used when explicitly requested.
4932 if test "x$enable_dependency_tracking" = xyes; then
4933 continue
4934 else
4935 break
4936 fi
4937 ;;
4938 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4939 # This compiler won't grok '-c -o', but also, the minuso test has
4940 # not run yet. These depmodes are late enough in the game, and
4941 # so weak that their functioning should not be impacted.
4942 am__obj=conftest.${OBJEXT-o}
4943 am__minus_obj=
4944 ;;
4945 none) break ;;
4946 esac
4947 if depmode=$depmode \
4948 source=sub/conftest.c object=$am__obj \
4949 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4950 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4951 >/dev/null 2>conftest.err &&
4952 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4954 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4956 # icc doesn't choke on unknown options, it will just issue warnings
4957 # or remarks (even with -Werror). So we grep stderr for any message
4958 # that says an option was ignored or not supported.
4959 # When given -MP, icc 7.0 and 7.1 complain thusly:
4960 # icc: Command line warning: ignoring option '-M'; no argument required
4961 # The diagnosis changed in icc 8.0:
4962 # icc: Command line remark: option '-MP' not supported
4963 if (grep 'ignoring option' conftest.err ||
4964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4965 am_cv_CC_dependencies_compiler_type=$depmode
4966 break
4967 fi
4968 fi
4969 done
4970
4971 cd ..
4972 rm -rf conftest.dir
4973 else
4974 am_cv_CC_dependencies_compiler_type=none
4975 fi
4976
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4979 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4980 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4981
4982 if
4983 test "x$enable_dependency_tracking" != xno \
4984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4985 am__fastdepCC_TRUE=
4986 am__fastdepCC_FALSE='#'
4987 else
4988 am__fastdepCC_TRUE='#'
4989 am__fastdepCC_FALSE=
4990 fi
4991
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4995 $as_echo_n "checking whether ln -s works... " >&6; }
4996 LN_S=$as_ln_s
4997 if test "$LN_S" = "ln -s"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999 $as_echo "yes" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5002 $as_echo "no, using $LN_S" >&6; }
5003 fi
5004
5005
5006 ## SP_PROG_VERSION(program, sh-var)
5007 ## Obtain the version of <program> and store it in <sh-var>.
5008
5009
5010 sp_prog_ver=`$CC --version 2>&5 | sed 1q 2>&5`
5011 case $?:$sp_prog_ver in #(
5012 0:*[0-9].[0-9]*) :
5013 sp_cc_version=$sp_prog_ver ;; #(
5014 *) :
5015 sp_cc_version=unknown ;;
5016 esac
5017
5018 # Initialize libtool.
5019 case `pwd` in
5020 *\ * | *\ *)
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5022 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5023 esac
5024
5025
5026
5027 macro_version='2.4.7'
5028 macro_revision='2.4.7'
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 ltmain=$ac_aux_dir/ltmain.sh
5043
5044 # Make sure we can run config.sub.
5045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5046 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5049 $as_echo_n "checking build system type... " >&6; }
5050 if ${ac_cv_build+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 ac_build_alias=$build_alias
5054 test "x$ac_build_alias" = x &&
5055 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5056 test "x$ac_build_alias" = x &&
5057 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5060
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5063 $as_echo "$ac_cv_build" >&6; }
5064 case $ac_cv_build in
5065 *-*-*) ;;
5066 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5067 esac
5068 build=$ac_cv_build
5069 ac_save_IFS=$IFS; IFS='-'
5070 set x $ac_cv_build
5071 shift
5072 build_cpu=$1
5073 build_vendor=$2
5074 shift; shift
5075 # Remember, the first character of IFS is used to create $*,
5076 # except with old shells:
5077 build_os=$*
5078 IFS=$ac_save_IFS
5079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5080
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5083 $as_echo_n "checking host system type... " >&6; }
5084 if ${ac_cv_host+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test "x$host_alias" = x; then
5088 ac_cv_host=$ac_cv_build
5089 else
5090 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5091 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5092 fi
5093
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5096 $as_echo "$ac_cv_host" >&6; }
5097 case $ac_cv_host in
5098 *-*-*) ;;
5099 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5100 esac
5101 host=$ac_cv_host
5102 ac_save_IFS=$IFS; IFS='-'
5103 set x $ac_cv_host
5104 shift
5105 host_cpu=$1
5106 host_vendor=$2
5107 shift; shift
5108 # Remember, the first character of IFS is used to create $*,
5109 # except with old shells:
5110 host_os=$*
5111 IFS=$ac_save_IFS
5112 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5113
5114
5115 # Backslashify metacharacters that are still active within
5116 # double-quoted strings.
5117 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5118
5119 # Same as above, but do not quote variable references.
5120 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5121
5122 # Sed substitution to delay expansion of an escaped shell variable in a
5123 # double_quote_subst'ed string.
5124 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5125
5126 # Sed substitution to delay expansion of an escaped single quote.
5127 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5128
5129 # Sed substitution to avoid accidental globbing in evaled expressions
5130 no_glob_subst='s/\*/\\\*/g'
5131
5132 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5133 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5134 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5137 $as_echo_n "checking how to print strings... " >&6; }
5138 # Test print first, because it will be a builtin if present.
5139 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5140 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5141 ECHO='print -r --'
5142 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5143 ECHO='printf %s\n'
5144 else
5145 # Use this function as a fallback that always works.
5146 func_fallback_echo ()
5147 {
5148 eval 'cat <<_LTECHO_EOF
5149 $1
5150 _LTECHO_EOF'
5151 }
5152 ECHO='func_fallback_echo'
5153 fi
5154
5155 # func_echo_all arg...
5156 # Invoke $ECHO with all args, space-separated.
5157 func_echo_all ()
5158 {
5159 $ECHO ""
5160 }
5161
5162 case $ECHO in
5163 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5164 $as_echo "printf" >&6; } ;;
5165 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5166 $as_echo "print -r" >&6; } ;;
5167 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5168 $as_echo "cat" >&6; } ;;
5169 esac
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5185 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5186 if ${ac_cv_path_SED+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5190 for ac_i in 1 2 3 4 5 6 7; do
5191 ac_script="$ac_script$as_nl$ac_script"
5192 done
5193 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5194 { ac_script=; unset ac_script;}
5195 if test -z "$SED"; then
5196 ac_path_SED_found=false
5197 # Loop through the user's path and test for each of PROGNAME-LIST
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_prog in sed gsed; do
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5206 as_fn_executable_p "$ac_path_SED" || continue
5207 # Check for GNU ac_path_SED and select it if it is found.
5208 # Check for GNU $ac_path_SED
5209 case `"$ac_path_SED" --version 2>&1` in
5210 *GNU*)
5211 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5212 *)
5213 ac_count=0
5214 $as_echo_n 0123456789 >"conftest.in"
5215 while :
5216 do
5217 cat "conftest.in" "conftest.in" >"conftest.tmp"
5218 mv "conftest.tmp" "conftest.in"
5219 cp "conftest.in" "conftest.nl"
5220 $as_echo '' >> "conftest.nl"
5221 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223 as_fn_arith $ac_count + 1 && ac_count=$as_val
5224 if test $ac_count -gt ${ac_path_SED_max-0}; then
5225 # Best one so far, save it but keep looking for a better one
5226 ac_cv_path_SED="$ac_path_SED"
5227 ac_path_SED_max=$ac_count
5228 fi
5229 # 10*(2^10) chars as input seems more than enough
5230 test $ac_count -gt 10 && break
5231 done
5232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233 esac
5234
5235 $ac_path_SED_found && break 3
5236 done
5237 done
5238 done
5239 IFS=$as_save_IFS
5240 if test -z "$ac_cv_path_SED"; then
5241 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5242 fi
5243 else
5244 ac_cv_path_SED=$SED
5245 fi
5246
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5249 $as_echo "$ac_cv_path_SED" >&6; }
5250 SED="$ac_cv_path_SED"
5251 rm -f conftest.sed
5252
5253 test -z "$SED" && SED=sed
5254 Xsed="$SED -e 1s/^X//"
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5268 if ${ac_cv_path_GREP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -z "$GREP"; then
5272 ac_path_GREP_found=false
5273 # Loop through the user's path and test for each of PROGNAME-LIST
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_prog in grep ggrep; do
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5282 as_fn_executable_p "$ac_path_GREP" || continue
5283 # Check for GNU ac_path_GREP and select it if it is found.
5284 # Check for GNU $ac_path_GREP
5285 case `"$ac_path_GREP" --version 2>&1` in
5286 *GNU*)
5287 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5288 *)
5289 ac_count=0
5290 $as_echo_n 0123456789 >"conftest.in"
5291 while :
5292 do
5293 cat "conftest.in" "conftest.in" >"conftest.tmp"
5294 mv "conftest.tmp" "conftest.in"
5295 cp "conftest.in" "conftest.nl"
5296 $as_echo 'GREP' >> "conftest.nl"
5297 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299 as_fn_arith $ac_count + 1 && ac_count=$as_val
5300 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5301 # Best one so far, save it but keep looking for a better one
5302 ac_cv_path_GREP="$ac_path_GREP"
5303 ac_path_GREP_max=$ac_count
5304 fi
5305 # 10*(2^10) chars as input seems more than enough
5306 test $ac_count -gt 10 && break
5307 done
5308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309 esac
5310
5311 $ac_path_GREP_found && break 3
5312 done
5313 done
5314 done
5315 IFS=$as_save_IFS
5316 if test -z "$ac_cv_path_GREP"; then
5317 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318 fi
5319 else
5320 ac_cv_path_GREP=$GREP
5321 fi
5322
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5325 $as_echo "$ac_cv_path_GREP" >&6; }
5326 GREP="$ac_cv_path_GREP"
5327
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5330 $as_echo_n "checking for egrep... " >&6; }
5331 if ${ac_cv_path_EGREP+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5335 then ac_cv_path_EGREP="$GREP -E"
5336 else
5337 if test -z "$EGREP"; then
5338 ac_path_EGREP_found=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342 do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_prog in egrep; do
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5348 as_fn_executable_p "$ac_path_EGREP" || continue
5349 # Check for GNU ac_path_EGREP and select it if it is found.
5350 # Check for GNU $ac_path_EGREP
5351 case `"$ac_path_EGREP" --version 2>&1` in
5352 *GNU*)
5353 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5354 *)
5355 ac_count=0
5356 $as_echo_n 0123456789 >"conftest.in"
5357 while :
5358 do
5359 cat "conftest.in" "conftest.in" >"conftest.tmp"
5360 mv "conftest.tmp" "conftest.in"
5361 cp "conftest.in" "conftest.nl"
5362 $as_echo 'EGREP' >> "conftest.nl"
5363 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5365 as_fn_arith $ac_count + 1 && ac_count=$as_val
5366 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5367 # Best one so far, save it but keep looking for a better one
5368 ac_cv_path_EGREP="$ac_path_EGREP"
5369 ac_path_EGREP_max=$ac_count
5370 fi
5371 # 10*(2^10) chars as input seems more than enough
5372 test $ac_count -gt 10 && break
5373 done
5374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5375 esac
5376
5377 $ac_path_EGREP_found && break 3
5378 done
5379 done
5380 done
5381 IFS=$as_save_IFS
5382 if test -z "$ac_cv_path_EGREP"; then
5383 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5384 fi
5385 else
5386 ac_cv_path_EGREP=$EGREP
5387 fi
5388
5389 fi
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5392 $as_echo "$ac_cv_path_EGREP" >&6; }
5393 EGREP="$ac_cv_path_EGREP"
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5397 $as_echo_n "checking for fgrep... " >&6; }
5398 if ${ac_cv_path_FGREP+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5402 then ac_cv_path_FGREP="$GREP -F"
5403 else
5404 if test -z "$FGREP"; then
5405 ac_path_FGREP_found=false
5406 # Loop through the user's path and test for each of PROGNAME-LIST
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_prog in fgrep; do
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5415 as_fn_executable_p "$ac_path_FGREP" || continue
5416 # Check for GNU ac_path_FGREP and select it if it is found.
5417 # Check for GNU $ac_path_FGREP
5418 case `"$ac_path_FGREP" --version 2>&1` in
5419 *GNU*)
5420 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5421 *)
5422 ac_count=0
5423 $as_echo_n 0123456789 >"conftest.in"
5424 while :
5425 do
5426 cat "conftest.in" "conftest.in" >"conftest.tmp"
5427 mv "conftest.tmp" "conftest.in"
5428 cp "conftest.in" "conftest.nl"
5429 $as_echo 'FGREP' >> "conftest.nl"
5430 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5432 as_fn_arith $ac_count + 1 && ac_count=$as_val
5433 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5434 # Best one so far, save it but keep looking for a better one
5435 ac_cv_path_FGREP="$ac_path_FGREP"
5436 ac_path_FGREP_max=$ac_count
5437 fi
5438 # 10*(2^10) chars as input seems more than enough
5439 test $ac_count -gt 10 && break
5440 done
5441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5442 esac
5443
5444 $ac_path_FGREP_found && break 3
5445 done
5446 done
5447 done
5448 IFS=$as_save_IFS
5449 if test -z "$ac_cv_path_FGREP"; then
5450 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5451 fi
5452 else
5453 ac_cv_path_FGREP=$FGREP
5454 fi
5455
5456 fi
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5459 $as_echo "$ac_cv_path_FGREP" >&6; }
5460 FGREP="$ac_cv_path_FGREP"
5461
5462
5463 test -z "$GREP" && GREP=grep
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 # Check whether --with-gnu-ld was given.
5484 if test "${with_gnu_ld+set}" = set; then :
5485 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5486 else
5487 with_gnu_ld=no
5488 fi
5489
5490 ac_prog=ld
5491 if test yes = "$GCC"; then
5492 # Check if gcc -print-prog-name=ld gives a path.
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5494 $as_echo_n "checking for ld used by $CC... " >&6; }
5495 case $host in
5496 *-*-mingw*)
5497 # gcc leaves a trailing carriage return, which upsets mingw
5498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5499 *)
5500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5501 esac
5502 case $ac_prog in
5503 # Accept absolute paths.
5504 [\\/]* | ?:[\\/]*)
5505 re_direlt='/[^/][^/]*/\.\./'
5506 # Canonicalize the pathname of ld
5507 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5508 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5509 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5510 done
5511 test -z "$LD" && LD=$ac_prog
5512 ;;
5513 "")
5514 # If it fails, then pretend we aren't using GCC.
5515 ac_prog=ld
5516 ;;
5517 *)
5518 # If it is relative, then search for the first ld in PATH.
5519 with_gnu_ld=unknown
5520 ;;
5521 esac
5522 elif test yes = "$with_gnu_ld"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5524 $as_echo_n "checking for GNU ld... " >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5527 $as_echo_n "checking for non-GNU ld... " >&6; }
5528 fi
5529 if ${lt_cv_path_LD+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -z "$LD"; then
5533 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5534 for ac_dir in $PATH; do
5535 IFS=$lt_save_ifs
5536 test -z "$ac_dir" && ac_dir=.
5537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5538 lt_cv_path_LD=$ac_dir/$ac_prog
5539 # Check to see if the program is GNU ld. I'd rather use --version,
5540 # but apparently some variants of GNU ld only accept -v.
5541 # Break only if it was the GNU/non-GNU ld that we prefer.
5542 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5543 *GNU* | *'with BFD'*)
5544 test no != "$with_gnu_ld" && break
5545 ;;
5546 *)
5547 test yes != "$with_gnu_ld" && break
5548 ;;
5549 esac
5550 fi
5551 done
5552 IFS=$lt_save_ifs
5553 else
5554 lt_cv_path_LD=$LD # Let the user override the test with a path.
5555 fi
5556 fi
5557
5558 LD=$lt_cv_path_LD
5559 if test -n "$LD"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5561 $as_echo "$LD" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5568 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5569 if ${lt_cv_prog_gnu_ld+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5573 case `$LD -v 2>&1 </dev/null` in
5574 *GNU* | *'with BFD'*)
5575 lt_cv_prog_gnu_ld=yes
5576 ;;
5577 *)
5578 lt_cv_prog_gnu_ld=no
5579 ;;
5580 esac
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5583 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5584 with_gnu_ld=$lt_cv_prog_gnu_ld
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5595 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5596 if ${lt_cv_path_NM+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$NM"; then
5600 # Let the user override the test.
5601 lt_cv_path_NM=$NM
5602 else
5603 lt_nm_to_check=${ac_tool_prefix}nm
5604 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5605 lt_nm_to_check="$lt_nm_to_check nm"
5606 fi
5607 for lt_tmp_nm in $lt_nm_to_check; do
5608 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5609 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5610 IFS=$lt_save_ifs
5611 test -z "$ac_dir" && ac_dir=.
5612 tmp_nm=$ac_dir/$lt_tmp_nm
5613 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5614 # Check to see if the nm accepts a BSD-compat flag.
5615 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5616 # nm: unknown option "B" ignored
5617 # Tru64's nm complains that /dev/null is an invalid object file
5618 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5619 case $build_os in
5620 mingw*) lt_bad_file=conftest.nm/nofile ;;
5621 *) lt_bad_file=/dev/null ;;
5622 esac
5623 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5624 *$lt_bad_file* | *'Invalid file or object type'*)
5625 lt_cv_path_NM="$tmp_nm -B"
5626 break 2
5627 ;;
5628 *)
5629 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5630 */dev/null*)
5631 lt_cv_path_NM="$tmp_nm -p"
5632 break 2
5633 ;;
5634 *)
5635 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5636 continue # so that we can try to find one that supports BSD flags
5637 ;;
5638 esac
5639 ;;
5640 esac
5641 fi
5642 done
5643 IFS=$lt_save_ifs
5644 done
5645 : ${lt_cv_path_NM=no}
5646 fi
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5649 $as_echo "$lt_cv_path_NM" >&6; }
5650 if test no != "$lt_cv_path_NM"; then
5651 NM=$lt_cv_path_NM
5652 else
5653 # Didn't find any BSD compatible name lister, look for dumpbin.
5654 if test -n "$DUMPBIN"; then :
5655 # Let the user override the test.
5656 else
5657 if test -n "$ac_tool_prefix"; then
5658 for ac_prog in dumpbin "link -dump"
5659 do
5660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_DUMPBIN+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$DUMPBIN"; then
5668 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 DUMPBIN=$ac_cv_prog_DUMPBIN
5688 if test -n "$DUMPBIN"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5690 $as_echo "$DUMPBIN" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696
5697 test -n "$DUMPBIN" && break
5698 done
5699 fi
5700 if test -z "$DUMPBIN"; then
5701 ac_ct_DUMPBIN=$DUMPBIN
5702 for ac_prog in dumpbin "link -dump"
5703 do
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$ac_ct_DUMPBIN"; then
5712 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5732 if test -n "$ac_ct_DUMPBIN"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5734 $as_echo "$ac_ct_DUMPBIN" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740
5741 test -n "$ac_ct_DUMPBIN" && break
5742 done
5743
5744 if test "x$ac_ct_DUMPBIN" = x; then
5745 DUMPBIN=":"
5746 else
5747 case $cross_compiling:$ac_tool_warned in
5748 yes:)
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5751 ac_tool_warned=yes ;;
5752 esac
5753 DUMPBIN=$ac_ct_DUMPBIN
5754 fi
5755 fi
5756
5757 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5758 *COFF*)
5759 DUMPBIN="$DUMPBIN -symbols -headers"
5760 ;;
5761 *)
5762 DUMPBIN=:
5763 ;;
5764 esac
5765 fi
5766
5767 if test : != "$DUMPBIN"; then
5768 NM=$DUMPBIN
5769 fi
5770 fi
5771 test -z "$NM" && NM=nm
5772
5773
5774
5775
5776
5777
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5779 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5780 if ${lt_cv_nm_interface+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 lt_cv_nm_interface="BSD nm"
5784 echo "int some_variable = 0;" > conftest.$ac_ext
5785 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5786 (eval "$ac_compile" 2>conftest.err)
5787 cat conftest.err >&5
5788 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5789 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5790 cat conftest.err >&5
5791 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5792 cat conftest.out >&5
5793 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5794 lt_cv_nm_interface="MS dumpbin"
5795 fi
5796 rm -f conftest*
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5799 $as_echo "$lt_cv_nm_interface" >&6; }
5800
5801 # find the maximum length of command line arguments
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5803 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5804 if ${lt_cv_sys_max_cmd_len+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 i=0
5808 teststring=ABCD
5809
5810 case $build_os in
5811 msdosdjgpp*)
5812 # On DJGPP, this test can blow up pretty badly due to problems in libc
5813 # (any single argument exceeding 2000 bytes causes a buffer overrun
5814 # during glob expansion). Even if it were fixed, the result of this
5815 # check would be larger than it should be.
5816 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5817 ;;
5818
5819 gnu*)
5820 # Under GNU Hurd, this test is not required because there is
5821 # no limit to the length of command line arguments.
5822 # Libtool will interpret -1 as no limit whatsoever
5823 lt_cv_sys_max_cmd_len=-1;
5824 ;;
5825
5826 cygwin* | mingw* | cegcc*)
5827 # On Win9x/ME, this test blows up -- it succeeds, but takes
5828 # about 5 minutes as the teststring grows exponentially.
5829 # Worse, since 9x/ME are not pre-emptively multitasking,
5830 # you end up with a "frozen" computer, even though with patience
5831 # the test eventually succeeds (with a max line length of 256k).
5832 # Instead, let's just punt: use the minimum linelength reported by
5833 # all of the supported platforms: 8192 (on NT/2K/XP).
5834 lt_cv_sys_max_cmd_len=8192;
5835 ;;
5836
5837 mint*)
5838 # On MiNT this can take a long time and run out of memory.
5839 lt_cv_sys_max_cmd_len=8192;
5840 ;;
5841
5842 amigaos*)
5843 # On AmigaOS with pdksh, this test takes hours, literally.
5844 # So we just punt and use a minimum line length of 8192.
5845 lt_cv_sys_max_cmd_len=8192;
5846 ;;
5847
5848 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5849 # This has been around since 386BSD, at least. Likely further.
5850 if test -x /sbin/sysctl; then
5851 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5852 elif test -x /usr/sbin/sysctl; then
5853 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5854 else
5855 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5856 fi
5857 # And add a safety zone
5858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5860 ;;
5861
5862 interix*)
5863 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5864 lt_cv_sys_max_cmd_len=196608
5865 ;;
5866
5867 os2*)
5868 # The test takes a long time on OS/2.
5869 lt_cv_sys_max_cmd_len=8192
5870 ;;
5871
5872 osf*)
5873 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5874 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5875 # nice to cause kernel panics so lets avoid the loop below.
5876 # First set a reasonable default.
5877 lt_cv_sys_max_cmd_len=16384
5878 #
5879 if test -x /sbin/sysconfig; then
5880 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5881 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5882 esac
5883 fi
5884 ;;
5885 sco3.2v5*)
5886 lt_cv_sys_max_cmd_len=102400
5887 ;;
5888 sysv5* | sco5v6* | sysv4.2uw2*)
5889 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5890 if test -n "$kargmax"; then
5891 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5892 else
5893 lt_cv_sys_max_cmd_len=32768
5894 fi
5895 ;;
5896 *)
5897 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5898 if test -n "$lt_cv_sys_max_cmd_len" && \
5899 test undefined != "$lt_cv_sys_max_cmd_len"; then
5900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5902 else
5903 # Make teststring a little bigger before we do anything with it.
5904 # a 1K string should be a reasonable start.
5905 for i in 1 2 3 4 5 6 7 8; do
5906 teststring=$teststring$teststring
5907 done
5908 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5909 # If test is not a shell built-in, we'll probably end up computing a
5910 # maximum length that is only half of the actual maximum length, but
5911 # we can't tell.
5912 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5913 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5914 test 17 != "$i" # 1/2 MB should be enough
5915 do
5916 i=`expr $i + 1`
5917 teststring=$teststring$teststring
5918 done
5919 # Only check the string length outside the loop.
5920 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5921 teststring=
5922 # Add a significant safety factor because C++ compilers can tack on
5923 # massive amounts of additional arguments before passing them to the
5924 # linker. It appears as though 1/2 is a usable value.
5925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5926 fi
5927 ;;
5928 esac
5929
5930 fi
5931
5932 if test -n "$lt_cv_sys_max_cmd_len"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5934 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5937 $as_echo "none" >&6; }
5938 fi
5939 max_cmd_len=$lt_cv_sys_max_cmd_len
5940
5941
5942
5943
5944
5945
5946 : ${CP="cp -f"}
5947 : ${MV="mv -f"}
5948 : ${RM="rm -f"}
5949
5950 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5951 lt_unset=unset
5952 else
5953 lt_unset=false
5954 fi
5955
5956
5957
5958
5959
5960 # test EBCDIC or ASCII
5961 case `echo X|tr X '\101'` in
5962 A) # ASCII based system
5963 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5964 lt_SP2NL='tr \040 \012'
5965 lt_NL2SP='tr \015\012 \040\040'
5966 ;;
5967 *) # EBCDIC based system
5968 lt_SP2NL='tr \100 \n'
5969 lt_NL2SP='tr \r\n \100\100'
5970 ;;
5971 esac
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5982 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5983 if ${lt_cv_to_host_file_cmd+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 case $host in
5987 *-*-mingw* )
5988 case $build in
5989 *-*-mingw* ) # actually msys
5990 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5991 ;;
5992 *-*-cygwin* )
5993 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5994 ;;
5995 * ) # otherwise, assume *nix
5996 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5997 ;;
5998 esac
5999 ;;
6000 *-*-cygwin* )
6001 case $build in
6002 *-*-mingw* ) # actually msys
6003 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6004 ;;
6005 *-*-cygwin* )
6006 lt_cv_to_host_file_cmd=func_convert_file_noop
6007 ;;
6008 * ) # otherwise, assume *nix
6009 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6010 ;;
6011 esac
6012 ;;
6013 * ) # unhandled hosts (and "normal" native builds)
6014 lt_cv_to_host_file_cmd=func_convert_file_noop
6015 ;;
6016 esac
6017
6018 fi
6019
6020 to_host_file_cmd=$lt_cv_to_host_file_cmd
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6022 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6023
6024
6025
6026
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6029 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6030 if ${lt_cv_to_tool_file_cmd+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 #assume ordinary cross tools, or native build.
6034 lt_cv_to_tool_file_cmd=func_convert_file_noop
6035 case $host in
6036 *-*-mingw* )
6037 case $build in
6038 *-*-mingw* ) # actually msys
6039 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6040 ;;
6041 esac
6042 ;;
6043 esac
6044
6045 fi
6046
6047 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6049 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6056 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6057 if ${lt_cv_ld_reload_flag+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 lt_cv_ld_reload_flag='-r'
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6063 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6064 reload_flag=$lt_cv_ld_reload_flag
6065 case $reload_flag in
6066 "" | " "*) ;;
6067 *) reload_flag=" $reload_flag" ;;
6068 esac
6069 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6070 case $host_os in
6071 cygwin* | mingw* | pw32* | cegcc*)
6072 if test yes != "$GCC"; then
6073 reload_cmds=false
6074 fi
6075 ;;
6076 darwin*)
6077 if test yes = "$GCC"; then
6078 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6079 else
6080 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6081 fi
6082 ;;
6083 esac
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}file; ac_word=$2
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if ${ac_cv_prog_FILECMD+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 if test -n "$FILECMD"; then
6102 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 FILECMD=$ac_cv_prog_FILECMD
6122 if test -n "$FILECMD"; then
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6124 $as_echo "$FILECMD" >&6; }
6125 else
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_FILECMD"; then
6133 ac_ct_FILECMD=$FILECMD
6134 # Extract the first word of "file", so it can be a program name with args.
6135 set dummy file; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_ac_ct_FILECMD+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -n "$ac_ct_FILECMD"; then
6142 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_ac_ct_FILECMD="file"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6162 if test -n "$ac_ct_FILECMD"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6164 $as_echo "$ac_ct_FILECMD" >&6; }
6165 else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170 if test "x$ac_ct_FILECMD" = x; then
6171 FILECMD=":"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179 FILECMD=$ac_ct_FILECMD
6180 fi
6181 else
6182 FILECMD="$ac_cv_prog_FILECMD"
6183 fi
6184
6185
6186
6187
6188
6189
6190
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_OBJDUMP+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 if test -n "$OBJDUMP"; then
6200 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 OBJDUMP=$ac_cv_prog_OBJDUMP
6220 if test -n "$OBJDUMP"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6222 $as_echo "$OBJDUMP" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_OBJDUMP"; then
6231 ac_ct_OBJDUMP=$OBJDUMP
6232 # Extract the first word of "objdump", so it can be a program name with args.
6233 set dummy objdump; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if test -n "$ac_ct_OBJDUMP"; then
6240 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6260 if test -n "$ac_ct_OBJDUMP"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6262 $as_echo "$ac_ct_OBJDUMP" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268 if test "x$ac_ct_OBJDUMP" = x; then
6269 OBJDUMP="false"
6270 else
6271 case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277 OBJDUMP=$ac_ct_OBJDUMP
6278 fi
6279 else
6280 OBJDUMP="$ac_cv_prog_OBJDUMP"
6281 fi
6282
6283 test -z "$OBJDUMP" && OBJDUMP=objdump
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6294 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6295 if ${lt_cv_deplibs_check_method+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 lt_cv_file_magic_cmd='$MAGIC_CMD'
6299 lt_cv_file_magic_test_file=
6300 lt_cv_deplibs_check_method='unknown'
6301 # Need to set the preceding variable on all platforms that support
6302 # interlibrary dependencies.
6303 # 'none' -- dependencies not supported.
6304 # 'unknown' -- same as none, but documents that we really don't know.
6305 # 'pass_all' -- all dependencies passed with no checks.
6306 # 'test_compile' -- check by making test program.
6307 # 'file_magic [[regex]]' -- check by looking for files in library path
6308 # that responds to the $file_magic_cmd with a given extended regex.
6309 # If you have 'file' or equivalent on your system and you're not sure
6310 # whether 'pass_all' will *always* work, you probably want this one.
6311
6312 case $host_os in
6313 aix[4-9]*)
6314 lt_cv_deplibs_check_method=pass_all
6315 ;;
6316
6317 beos*)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320
6321 bsdi[45]*)
6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6323 lt_cv_file_magic_cmd='$FILECMD -L'
6324 lt_cv_file_magic_test_file=/shlib/libc.so
6325 ;;
6326
6327 cygwin*)
6328 # func_win32_libid is a shell function defined in ltmain.sh
6329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330 lt_cv_file_magic_cmd='func_win32_libid'
6331 ;;
6332
6333 mingw* | pw32*)
6334 # Base MSYS/MinGW do not provide the 'file' command needed by
6335 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6336 # unless we find 'file', for example because we are cross-compiling.
6337 if ( file / ) >/dev/null 2>&1; then
6338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339 lt_cv_file_magic_cmd='func_win32_libid'
6340 else
6341 # Keep this pattern in sync with the one in func_win32_libid.
6342 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6343 lt_cv_file_magic_cmd='$OBJDUMP -f'
6344 fi
6345 ;;
6346
6347 cegcc*)
6348 # use the weaker test based on 'objdump'. See mingw*.
6349 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6350 lt_cv_file_magic_cmd='$OBJDUMP -f'
6351 ;;
6352
6353 darwin* | rhapsody*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356
6357 freebsd* | dragonfly* | midnightbsd*)
6358 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6359 case $host_cpu in
6360 i*86 )
6361 # Not sure whether the presence of OpenBSD here was a mistake.
6362 # Let's accept both of them until this is cleared up.
6363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6364 lt_cv_file_magic_cmd=$FILECMD
6365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6366 ;;
6367 esac
6368 else
6369 lt_cv_deplibs_check_method=pass_all
6370 fi
6371 ;;
6372
6373 haiku*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377 hpux10.20* | hpux11*)
6378 lt_cv_file_magic_cmd=$FILECMD
6379 case $host_cpu in
6380 ia64*)
6381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6382 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6383 ;;
6384 hppa*64*)
6385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6386 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6387 ;;
6388 *)
6389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6390 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6391 ;;
6392 esac
6393 ;;
6394
6395 interix[3-9]*)
6396 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6398 ;;
6399
6400 irix5* | irix6* | nonstopux*)
6401 case $LD in
6402 *-32|*"-32 ") libmagic=32-bit;;
6403 *-n32|*"-n32 ") libmagic=N32;;
6404 *-64|*"-64 ") libmagic=64-bit;;
6405 *) libmagic=never-match;;
6406 esac
6407 lt_cv_deplibs_check_method=pass_all
6408 ;;
6409
6410 # This must be glibc/ELF.
6411 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6412 lt_cv_deplibs_check_method=pass_all
6413 ;;
6414
6415 netbsd*)
6416 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6418 else
6419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6420 fi
6421 ;;
6422
6423 newos6*)
6424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6425 lt_cv_file_magic_cmd=$FILECMD
6426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6427 ;;
6428
6429 *nto* | *qnx*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
6432
6433 openbsd* | bitrig*)
6434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6436 else
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6438 fi
6439 ;;
6440
6441 osf3* | osf4* | osf5*)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
6444
6445 rdos*)
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448
6449 solaris*)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452
6453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456
6457 sysv4 | sysv4.3*)
6458 case $host_vendor in
6459 motorola)
6460 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]'
6461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6462 ;;
6463 ncr)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466 sequent)
6467 lt_cv_file_magic_cmd='/bin/file'
6468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6469 ;;
6470 sni)
6471 lt_cv_file_magic_cmd='/bin/file'
6472 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6473 lt_cv_file_magic_test_file=/lib/libc.so
6474 ;;
6475 siemens)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478 pc)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481 esac
6482 ;;
6483
6484 tpf*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487 os2*)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490 esac
6491
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6494 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6495
6496 file_magic_glob=
6497 want_nocaseglob=no
6498 if test "$build" = "$host"; then
6499 case $host_os in
6500 mingw* | pw32*)
6501 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6502 want_nocaseglob=yes
6503 else
6504 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6505 fi
6506 ;;
6507 esac
6508 fi
6509
6510 file_magic_cmd=$lt_cv_file_magic_cmd
6511 deplibs_check_method=$lt_cv_deplibs_check_method
6512 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535 if test -n "$ac_tool_prefix"; then
6536 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6537 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if ${ac_cv_prog_DLLTOOL+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 if test -n "$DLLTOOL"; then
6544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 fi
6562 fi
6563 DLLTOOL=$ac_cv_prog_DLLTOOL
6564 if test -n "$DLLTOOL"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6566 $as_echo "$DLLTOOL" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571
6572
6573 fi
6574 if test -z "$ac_cv_prog_DLLTOOL"; then
6575 ac_ct_DLLTOOL=$DLLTOOL
6576 # Extract the first word of "dlltool", so it can be a program name with args.
6577 set dummy dlltool; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 if test -n "$ac_ct_DLLTOOL"; then
6584 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6604 if test -n "$ac_ct_DLLTOOL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6606 $as_echo "$ac_ct_DLLTOOL" >&6; }
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612 if test "x$ac_ct_DLLTOOL" = x; then
6613 DLLTOOL="false"
6614 else
6615 case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621 DLLTOOL=$ac_ct_DLLTOOL
6622 fi
6623 else
6624 DLLTOOL="$ac_cv_prog_DLLTOOL"
6625 fi
6626
6627 test -z "$DLLTOOL" && DLLTOOL=dlltool
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6639 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6640 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 lt_cv_sharedlib_from_linklib_cmd='unknown'
6644
6645 case $host_os in
6646 cygwin* | mingw* | pw32* | cegcc*)
6647 # two different shell functions defined in ltmain.sh;
6648 # decide which one to use based on capabilities of $DLLTOOL
6649 case `$DLLTOOL --help 2>&1` in
6650 *--identify-strict*)
6651 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6652 ;;
6653 *)
6654 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6655 ;;
6656 esac
6657 ;;
6658 *)
6659 # fallback: assume linklib IS sharedlib
6660 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6661 ;;
6662 esac
6663
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6666 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6667 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6668 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6669
6670
6671
6672
6673
6674
6675
6676 if test -n "$ac_tool_prefix"; then
6677 for ac_prog in ar
6678 do
6679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_AR+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 if test -n "$AR"; then
6687 ac_cv_prog_AR="$AR" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 AR=$ac_cv_prog_AR
6707 if test -n "$AR"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6709 $as_echo "$AR" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715
6716 test -n "$AR" && break
6717 done
6718 fi
6719 if test -z "$AR"; then
6720 ac_ct_AR=$AR
6721 for ac_prog in ar
6722 do
6723 # Extract the first word of "$ac_prog", so it can be a program name with args.
6724 set dummy $ac_prog; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$ac_ct_AR"; then
6731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_ac_ct_AR="$ac_prog"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6751 if test -n "$ac_ct_AR"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6753 $as_echo "$ac_ct_AR" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759
6760 test -n "$ac_ct_AR" && break
6761 done
6762
6763 if test "x$ac_ct_AR" = x; then
6764 AR="false"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767 yes:)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772 AR=$ac_ct_AR
6773 fi
6774 fi
6775
6776 : ${AR=ar}
6777
6778
6779
6780
6781
6782
6783 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6784 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6785 # higher priority because thats what people were doing historically (setting
6786 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6787 # variable obsoleted/removed.
6788
6789 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6790 lt_ar_flags=$AR_FLAGS
6791
6792
6793
6794
6795
6796
6797 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6798 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6799
6800
6801
6802
6803
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6806 $as_echo_n "checking for archiver @FILE support... " >&6; }
6807 if ${lt_cv_ar_at_file+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 lt_cv_ar_at_file=no
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813
6814 int
6815 main ()
6816 {
6817
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 if ac_fn_c_try_compile "$LINENO"; then :
6823 echo conftest.$ac_objext > conftest.lst
6824 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6826 (eval $lt_ar_try) 2>&5
6827 ac_status=$?
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }
6830 if test 0 -eq "$ac_status"; then
6831 # Ensure the archiver fails upon bogus file names.
6832 rm -f conftest.$ac_objext libconftest.a
6833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6834 (eval $lt_ar_try) 2>&5
6835 ac_status=$?
6836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }
6838 if test 0 -ne "$ac_status"; then
6839 lt_cv_ar_at_file=@
6840 fi
6841 fi
6842 rm -f conftest.* libconftest.a
6843
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6849 $as_echo "$lt_cv_ar_at_file" >&6; }
6850
6851 if test no = "$lt_cv_ar_at_file"; then
6852 archiver_list_spec=
6853 else
6854 archiver_list_spec=$lt_cv_ar_at_file
6855 fi
6856
6857
6858
6859
6860
6861
6862
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}strip; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_STRIP+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$STRIP"; then
6872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 STRIP=$ac_cv_prog_STRIP
6892 if test -n "$STRIP"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6894 $as_echo "$STRIP" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_STRIP"; then
6903 ac_ct_STRIP=$STRIP
6904 # Extract the first word of "strip", so it can be a program name with args.
6905 set dummy strip; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$ac_ct_STRIP"; then
6912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_STRIP="strip"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6932 if test -n "$ac_ct_STRIP"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6934 $as_echo "$ac_ct_STRIP" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940 if test "x$ac_ct_STRIP" = x; then
6941 STRIP=":"
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 STRIP=$ac_ct_STRIP
6950 fi
6951 else
6952 STRIP="$ac_cv_prog_STRIP"
6953 fi
6954
6955 test -z "$STRIP" && STRIP=:
6956
6957
6958
6959
6960
6961
6962 if test -n "$ac_tool_prefix"; then
6963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_RANLIB+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$RANLIB"; then
6971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 RANLIB=$ac_cv_prog_RANLIB
6991 if test -n "$RANLIB"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6993 $as_echo "$RANLIB" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999
7000 fi
7001 if test -z "$ac_cv_prog_RANLIB"; then
7002 ac_ct_RANLIB=$RANLIB
7003 # Extract the first word of "ranlib", so it can be a program name with args.
7004 set dummy ranlib; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 if test -n "$ac_ct_RANLIB"; then
7011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020 ac_cv_prog_ac_ct_RANLIB="ranlib"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024 done
7025 done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7031 if test -n "$ac_ct_RANLIB"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7033 $as_echo "$ac_ct_RANLIB" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038
7039 if test "x$ac_ct_RANLIB" = x; then
7040 RANLIB=":"
7041 else
7042 case $cross_compiling:$ac_tool_warned in
7043 yes:)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046 ac_tool_warned=yes ;;
7047 esac
7048 RANLIB=$ac_ct_RANLIB
7049 fi
7050 else
7051 RANLIB="$ac_cv_prog_RANLIB"
7052 fi
7053
7054 test -z "$RANLIB" && RANLIB=:
7055
7056
7057
7058
7059
7060
7061 # Determine commands to create old-style static archives.
7062 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7063 old_postinstall_cmds='chmod 644 $oldlib'
7064 old_postuninstall_cmds=
7065
7066 if test -n "$RANLIB"; then
7067 case $host_os in
7068 bitrig* | openbsd*)
7069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7070 ;;
7071 *)
7072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7073 ;;
7074 esac
7075 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7076 fi
7077
7078 case $host_os in
7079 darwin*)
7080 lock_old_archive_extraction=yes ;;
7081 *)
7082 lock_old_archive_extraction=no ;;
7083 esac
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123 # If no C compiler was specified, use CC.
7124 LTCC=${LTCC-"$CC"}
7125
7126 # If no C compiler flags were specified, use CFLAGS.
7127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7128
7129 # Allow CC to be a program name with arguments.
7130 compiler=$CC
7131
7132
7133 # Check for command to grab the raw symbol name followed by C symbol from nm.
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7135 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7136 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139
7140 # These are sane defaults that work on at least a few old systems.
7141 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7142
7143 # Character class describing NM global symbol codes.
7144 symcode='[BCDEGRST]'
7145
7146 # Regexp to match symbols that can be accessed directly from C.
7147 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7148
7149 # Define system-specific variables.
7150 case $host_os in
7151 aix*)
7152 symcode='[BCDT]'
7153 ;;
7154 cygwin* | mingw* | pw32* | cegcc*)
7155 symcode='[ABCDGISTW]'
7156 ;;
7157 hpux*)
7158 if test ia64 = "$host_cpu"; then
7159 symcode='[ABCDEGRST]'
7160 fi
7161 ;;
7162 irix* | nonstopux*)
7163 symcode='[BCDEGRST]'
7164 ;;
7165 osf*)
7166 symcode='[BCDEGQRST]'
7167 ;;
7168 solaris*)
7169 symcode='[BDRT]'
7170 ;;
7171 sco3.2v5*)
7172 symcode='[DT]'
7173 ;;
7174 sysv4.2uw2*)
7175 symcode='[DT]'
7176 ;;
7177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7178 symcode='[ABDT]'
7179 ;;
7180 sysv4)
7181 symcode='[DFNSTU]'
7182 ;;
7183 esac
7184
7185 # If we're using GNU nm, then use its standard symbol codes.
7186 case `$NM -V 2>&1` in
7187 *GNU* | *'with BFD'*)
7188 symcode='[ABCDGIRSTW]' ;;
7189 esac
7190
7191 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7192 # Gets list of data symbols to import.
7193 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7194 # Adjust the below global symbol transforms to fixup imported variables.
7195 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7196 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7197 lt_c_name_lib_hook="\
7198 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7199 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7200 else
7201 # Disable hooks by default.
7202 lt_cv_sys_global_symbol_to_import=
7203 lt_cdecl_hook=
7204 lt_c_name_hook=
7205 lt_c_name_lib_hook=
7206 fi
7207
7208 # Transform an extracted symbol line into a proper C declaration.
7209 # Some systems (esp. on ia64) link data and code symbols differently,
7210 # so use this general approach.
7211 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7212 $lt_cdecl_hook\
7213 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7214 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7215
7216 # Transform an extracted symbol line into symbol name and symbol address
7217 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7218 $lt_c_name_hook\
7219 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7220 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7221
7222 # Transform an extracted symbol line into symbol name with lib prefix and
7223 # symbol address.
7224 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7225 $lt_c_name_lib_hook\
7226 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7227 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7228 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7229
7230 # Handle CRLF in mingw tool chain
7231 opt_cr=
7232 case $build_os in
7233 mingw*)
7234 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7235 ;;
7236 esac
7237
7238 # Try without a prefix underscore, then with it.
7239 for ac_symprfx in "" "_"; do
7240
7241 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7242 symxfrm="\\1 $ac_symprfx\\2 \\2"
7243
7244 # Write the raw and C identifiers.
7245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7246 # Fake it for dumpbin and say T for any non-static function,
7247 # D for any global variable and I for any imported variable.
7248 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7249 # which start with @ or ?.
7250 lt_cv_sys_global_symbol_pipe="$AWK '"\
7251 " {last_section=section; section=\$ 3};"\
7252 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7253 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7254 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7255 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7256 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7257 " \$ 0!~/External *\|/{next};"\
7258 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7259 " {if(hide[section]) next};"\
7260 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7261 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7262 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7263 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7264 " ' prfx=^$ac_symprfx"
7265 else
7266 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7267 fi
7268 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7269
7270 # Check to see that the pipe works correctly.
7271 pipe_works=no
7272
7273 rm -f conftest*
7274 cat > conftest.$ac_ext <<_LT_EOF
7275 #ifdef __cplusplus
7276 extern "C" {
7277 #endif
7278 char nm_test_var;
7279 void nm_test_func(void);
7280 void nm_test_func(void){}
7281 #ifdef __cplusplus
7282 }
7283 #endif
7284 int main(){nm_test_var='a';nm_test_func();return(0);}
7285 _LT_EOF
7286
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288 (eval $ac_compile) 2>&5
7289 ac_status=$?
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 # Now try to grab the symbols.
7293 nlist=conftest.nm
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7295 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; } && test -s "$nlist"; then
7299 # Try sorting and uniquifying the output.
7300 if sort "$nlist" | uniq > "$nlist"T; then
7301 mv -f "$nlist"T "$nlist"
7302 else
7303 rm -f "$nlist"T
7304 fi
7305
7306 # Make sure that we snagged all the symbols we need.
7307 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7308 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7309 cat <<_LT_EOF > conftest.$ac_ext
7310 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7311 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7312 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7313 relocations are performed -- see ld's documentation on pseudo-relocs. */
7314 # define LT_DLSYM_CONST
7315 #elif defined __osf__
7316 /* This system does not cope well with relocations in const data. */
7317 # define LT_DLSYM_CONST
7318 #else
7319 # define LT_DLSYM_CONST const
7320 #endif
7321
7322 #ifdef __cplusplus
7323 extern "C" {
7324 #endif
7325
7326 _LT_EOF
7327 # Now generate the symbol file.
7328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7329
7330 cat <<_LT_EOF >> conftest.$ac_ext
7331
7332 /* The mapping between symbol names and symbols. */
7333 LT_DLSYM_CONST struct {
7334 const char *name;
7335 void *address;
7336 }
7337 lt__PROGRAM__LTX_preloaded_symbols[] =
7338 {
7339 { "@PROGRAM@", (void *) 0 },
7340 _LT_EOF
7341 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7342 cat <<\_LT_EOF >> conftest.$ac_ext
7343 {0, (void *) 0}
7344 };
7345
7346 /* This works around a problem in FreeBSD linker */
7347 #ifdef FREEBSD_WORKAROUND
7348 static const void *lt_preloaded_setup() {
7349 return lt__PROGRAM__LTX_preloaded_symbols;
7350 }
7351 #endif
7352
7353 #ifdef __cplusplus
7354 }
7355 #endif
7356 _LT_EOF
7357 # Now try linking the two files.
7358 mv conftest.$ac_objext conftstm.$ac_objext
7359 lt_globsym_save_LIBS=$LIBS
7360 lt_globsym_save_CFLAGS=$CFLAGS
7361 LIBS=conftstm.$ac_objext
7362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7364 (eval $ac_link) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7368 pipe_works=yes
7369 fi
7370 LIBS=$lt_globsym_save_LIBS
7371 CFLAGS=$lt_globsym_save_CFLAGS
7372 else
7373 echo "cannot find nm_test_func in $nlist" >&5
7374 fi
7375 else
7376 echo "cannot find nm_test_var in $nlist" >&5
7377 fi
7378 else
7379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7380 fi
7381 else
7382 echo "$progname: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7384 fi
7385 rm -rf conftest* conftst*
7386
7387 # Do not use the global_symbol_pipe unless it works.
7388 if test yes = "$pipe_works"; then
7389 break
7390 else
7391 lt_cv_sys_global_symbol_pipe=
7392 fi
7393 done
7394
7395 fi
7396
7397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7398 lt_cv_sys_global_symbol_to_cdecl=
7399 fi
7400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7402 $as_echo "failed" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7405 $as_echo "ok" >&6; }
7406 fi
7407
7408 # Response file support.
7409 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7410 nm_file_list_spec='@'
7411 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7412 nm_file_list_spec='@'
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7452 $as_echo_n "checking for sysroot... " >&6; }
7453
7454 # Check whether --with-sysroot was given.
7455 if test "${with_sysroot+set}" = set; then :
7456 withval=$with_sysroot;
7457 else
7458 with_sysroot=no
7459 fi
7460
7461
7462 lt_sysroot=
7463 case $with_sysroot in #(
7464 yes)
7465 if test yes = "$GCC"; then
7466 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7467 fi
7468 ;; #(
7469 /*)
7470 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7471 ;; #(
7472 no|'')
7473 ;; #(
7474 *)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7476 $as_echo "$with_sysroot" >&6; }
7477 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7478 ;;
7479 esac
7480
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7482 $as_echo "${lt_sysroot:-no}" >&6; }
7483
7484
7485
7486
7487
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7489 $as_echo_n "checking for a working dd... " >&6; }
7490 if ${ac_cv_path_lt_DD+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 printf 0123456789abcdef0123456789abcdef >conftest.i
7494 cat conftest.i conftest.i >conftest2.i
7495 : ${lt_DD:=$DD}
7496 if test -z "$lt_DD"; then
7497 ac_path_lt_DD_found=false
7498 # Loop through the user's path and test for each of PROGNAME-LIST
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_prog in dd; do
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7507 as_fn_executable_p "$ac_path_lt_DD" || continue
7508 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7509 cmp -s conftest.i conftest.out \
7510 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7511 fi
7512 $ac_path_lt_DD_found && break 3
7513 done
7514 done
7515 done
7516 IFS=$as_save_IFS
7517 if test -z "$ac_cv_path_lt_DD"; then
7518 :
7519 fi
7520 else
7521 ac_cv_path_lt_DD=$lt_DD
7522 fi
7523
7524 rm -f conftest.i conftest2.i conftest.out
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7527 $as_echo "$ac_cv_path_lt_DD" >&6; }
7528
7529
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7531 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7532 if ${lt_cv_truncate_bin+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 printf 0123456789abcdef0123456789abcdef >conftest.i
7536 cat conftest.i conftest.i >conftest2.i
7537 lt_cv_truncate_bin=
7538 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7539 cmp -s conftest.i conftest.out \
7540 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7541 fi
7542 rm -f conftest.i conftest2.i conftest.out
7543 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7546 $as_echo "$lt_cv_truncate_bin" >&6; }
7547
7548
7549
7550
7551
7552
7553
7554 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7555 func_cc_basename ()
7556 {
7557 for cc_temp in $*""; do
7558 case $cc_temp in
7559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7561 \-*) ;;
7562 *) break;;
7563 esac
7564 done
7565 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7566 }
7567
7568 # Check whether --enable-libtool-lock was given.
7569 if test "${enable_libtool_lock+set}" = set; then :
7570 enableval=$enable_libtool_lock;
7571 fi
7572
7573 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7574
7575 # Some flags need to be propagated to the compiler or linker for good
7576 # libtool support.
7577 case $host in
7578 ia64-*-hpux*)
7579 # Find out what ABI is being produced by ac_compile, and set mode
7580 # options accordingly.
7581 echo 'int i;' > conftest.$ac_ext
7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7583 (eval $ac_compile) 2>&5
7584 ac_status=$?
7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586 test $ac_status = 0; }; then
7587 case `$FILECMD conftest.$ac_objext` in
7588 *ELF-32*)
7589 HPUX_IA64_MODE=32
7590 ;;
7591 *ELF-64*)
7592 HPUX_IA64_MODE=64
7593 ;;
7594 esac
7595 fi
7596 rm -rf conftest*
7597 ;;
7598 *-*-irix6*)
7599 # Find out what ABI is being produced by ac_compile, and set linker
7600 # options accordingly.
7601 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7603 (eval $ac_compile) 2>&5
7604 ac_status=$?
7605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7606 test $ac_status = 0; }; then
7607 if test yes = "$lt_cv_prog_gnu_ld"; then
7608 case `$FILECMD conftest.$ac_objext` in
7609 *32-bit*)
7610 LD="${LD-ld} -melf32bsmip"
7611 ;;
7612 *N32*)
7613 LD="${LD-ld} -melf32bmipn32"
7614 ;;
7615 *64-bit*)
7616 LD="${LD-ld} -melf64bmip"
7617 ;;
7618 esac
7619 else
7620 case `$FILECMD conftest.$ac_objext` in
7621 *32-bit*)
7622 LD="${LD-ld} -32"
7623 ;;
7624 *N32*)
7625 LD="${LD-ld} -n32"
7626 ;;
7627 *64-bit*)
7628 LD="${LD-ld} -64"
7629 ;;
7630 esac
7631 fi
7632 fi
7633 rm -rf conftest*
7634 ;;
7635
7636 mips64*-*linux*)
7637 # Find out what ABI is being produced by ac_compile, and set linker
7638 # options accordingly.
7639 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7641 (eval $ac_compile) 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }; then
7645 emul=elf
7646 case `$FILECMD conftest.$ac_objext` in
7647 *32-bit*)
7648 emul="${emul}32"
7649 ;;
7650 *64-bit*)
7651 emul="${emul}64"
7652 ;;
7653 esac
7654 case `$FILECMD conftest.$ac_objext` in
7655 *MSB*)
7656 emul="${emul}btsmip"
7657 ;;
7658 *LSB*)
7659 emul="${emul}ltsmip"
7660 ;;
7661 esac
7662 case `$FILECMD conftest.$ac_objext` in
7663 *N32*)
7664 emul="${emul}n32"
7665 ;;
7666 esac
7667 LD="${LD-ld} -m $emul"
7668 fi
7669 rm -rf conftest*
7670 ;;
7671
7672 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7673 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7674 # Find out what ABI is being produced by ac_compile, and set linker
7675 # options accordingly. Note that the listed cases only cover the
7676 # situations where additional linker options are needed (such as when
7677 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7678 # vice versa); the common cases where no linker options are needed do
7679 # not appear in the list.
7680 echo 'int i;' > conftest.$ac_ext
7681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7682 (eval $ac_compile) 2>&5
7683 ac_status=$?
7684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; }; then
7686 case `$FILECMD conftest.o` in
7687 *32-bit*)
7688 case $host in
7689 x86_64-*kfreebsd*-gnu)
7690 LD="${LD-ld} -m elf_i386_fbsd"
7691 ;;
7692 x86_64-*linux*)
7693 case `$FILECMD conftest.o` in
7694 *x86-64*)
7695 LD="${LD-ld} -m elf32_x86_64"
7696 ;;
7697 *)
7698 LD="${LD-ld} -m elf_i386"
7699 ;;
7700 esac
7701 ;;
7702 powerpc64le-*linux*)
7703 LD="${LD-ld} -m elf32lppclinux"
7704 ;;
7705 powerpc64-*linux*)
7706 LD="${LD-ld} -m elf32ppclinux"
7707 ;;
7708 s390x-*linux*)
7709 LD="${LD-ld} -m elf_s390"
7710 ;;
7711 sparc64-*linux*)
7712 LD="${LD-ld} -m elf32_sparc"
7713 ;;
7714 esac
7715 ;;
7716 *64-bit*)
7717 case $host in
7718 x86_64-*kfreebsd*-gnu)
7719 LD="${LD-ld} -m elf_x86_64_fbsd"
7720 ;;
7721 x86_64-*linux*)
7722 LD="${LD-ld} -m elf_x86_64"
7723 ;;
7724 powerpcle-*linux*|powerpc64le-*linux*)
7725 LD="${LD-ld} -m elf64lppc"
7726 ;;
7727 powerpc-*linux*|powerpc64-*linux*)
7728 LD="${LD-ld} -m elf64ppc"
7729 ;;
7730 s390*-*linux*|s390*-*tpf*)
7731 LD="${LD-ld} -m elf64_s390"
7732 ;;
7733 sparc*-*linux*)
7734 LD="${LD-ld} -m elf64_sparc"
7735 ;;
7736 esac
7737 ;;
7738 esac
7739 fi
7740 rm -rf conftest*
7741 ;;
7742
7743 *-*-sco3.2v5*)
7744 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7745 SAVE_CFLAGS=$CFLAGS
7746 CFLAGS="$CFLAGS -belf"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7748 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7749 if ${lt_cv_cc_needs_belf+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 ac_ext=c
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760
7761 int
7762 main ()
7763 {
7764
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770 lt_cv_cc_needs_belf=yes
7771 else
7772 lt_cv_cc_needs_belf=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7784 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7785 if test yes != "$lt_cv_cc_needs_belf"; then
7786 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7787 CFLAGS=$SAVE_CFLAGS
7788 fi
7789 ;;
7790 *-*solaris*)
7791 # Find out what ABI is being produced by ac_compile, and set linker
7792 # options accordingly.
7793 echo 'int i;' > conftest.$ac_ext
7794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7795 (eval $ac_compile) 2>&5
7796 ac_status=$?
7797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 case `$FILECMD conftest.o` in
7800 *64-bit*)
7801 case $lt_cv_prog_gnu_ld in
7802 yes*)
7803 case $host in
7804 i?86-*-solaris*|x86_64-*-solaris*)
7805 LD="${LD-ld} -m elf_x86_64"
7806 ;;
7807 sparc*-*-solaris*)
7808 LD="${LD-ld} -m elf64_sparc"
7809 ;;
7810 esac
7811 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7812 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7813 LD=${LD-ld}_sol2
7814 fi
7815 ;;
7816 *)
7817 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7818 LD="${LD-ld} -64"
7819 fi
7820 ;;
7821 esac
7822 ;;
7823 esac
7824 fi
7825 rm -rf conftest*
7826 ;;
7827 esac
7828
7829 need_locks=$enable_libtool_lock
7830
7831 if test -n "$ac_tool_prefix"; then
7832 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7833 set dummy ${ac_tool_prefix}mt; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 if test -n "$MANIFEST_TOOL"; then
7840 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7860 if test -n "$MANIFEST_TOOL"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7862 $as_echo "$MANIFEST_TOOL" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868
7869 fi
7870 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7871 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7872 # Extract the first word of "mt", so it can be a program name with args.
7873 set dummy mt; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$ac_ct_MANIFEST_TOOL"; then
7880 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7900 if test -n "$ac_ct_MANIFEST_TOOL"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7902 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7909 MANIFEST_TOOL=":"
7910 else
7911 case $cross_compiling:$ac_tool_warned in
7912 yes:)
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7915 ac_tool_warned=yes ;;
7916 esac
7917 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7918 fi
7919 else
7920 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7921 fi
7922
7923 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7925 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7926 if ${lt_cv_path_mainfest_tool+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 lt_cv_path_mainfest_tool=no
7930 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7931 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7932 cat conftest.err >&5
7933 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7934 lt_cv_path_mainfest_tool=yes
7935 fi
7936 rm -f conftest*
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7939 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7940 if test yes != "$lt_cv_path_mainfest_tool"; then
7941 MANIFEST_TOOL=:
7942 fi
7943
7944
7945
7946
7947
7948
7949 case $host_os in
7950 rhapsody* | darwin*)
7951 if test -n "$ac_tool_prefix"; then
7952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 if test -n "$DSYMUTIL"; then
7960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7980 if test -n "$DSYMUTIL"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7982 $as_echo "$DSYMUTIL" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988
7989 fi
7990 if test -z "$ac_cv_prog_DSYMUTIL"; then
7991 ac_ct_DSYMUTIL=$DSYMUTIL
7992 # Extract the first word of "dsymutil", so it can be a program name with args.
7993 set dummy dsymutil; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$ac_ct_DSYMUTIL"; then
8000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8020 if test -n "$ac_ct_DSYMUTIL"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028 if test "x$ac_ct_DSYMUTIL" = x; then
8029 DSYMUTIL=":"
8030 else
8031 case $cross_compiling:$ac_tool_warned in
8032 yes:)
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8035 ac_tool_warned=yes ;;
8036 esac
8037 DSYMUTIL=$ac_ct_DSYMUTIL
8038 fi
8039 else
8040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8041 fi
8042
8043 if test -n "$ac_tool_prefix"; then
8044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_prog_NMEDIT+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 if test -n "$NMEDIT"; then
8052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 NMEDIT=$ac_cv_prog_NMEDIT
8072 if test -n "$NMEDIT"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8074 $as_echo "$NMEDIT" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079
8080
8081 fi
8082 if test -z "$ac_cv_prog_NMEDIT"; then
8083 ac_ct_NMEDIT=$NMEDIT
8084 # Extract the first word of "nmedit", so it can be a program name with args.
8085 set dummy nmedit; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 if test -n "$ac_ct_NMEDIT"; then
8092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8112 if test -n "$ac_ct_NMEDIT"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8114 $as_echo "$ac_ct_NMEDIT" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120 if test "x$ac_ct_NMEDIT" = x; then
8121 NMEDIT=":"
8122 else
8123 case $cross_compiling:$ac_tool_warned in
8124 yes:)
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8127 ac_tool_warned=yes ;;
8128 esac
8129 NMEDIT=$ac_ct_NMEDIT
8130 fi
8131 else
8132 NMEDIT="$ac_cv_prog_NMEDIT"
8133 fi
8134
8135 if test -n "$ac_tool_prefix"; then
8136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 $as_echo_n "checking for $ac_word... " >&6; }
8140 if ${ac_cv_prog_LIPO+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 if test -n "$LIPO"; then
8144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8145 else
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8148 do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157 done
8158 done
8159 IFS=$as_save_IFS
8160
8161 fi
8162 fi
8163 LIPO=$ac_cv_prog_LIPO
8164 if test -n "$LIPO"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8166 $as_echo "$LIPO" >&6; }
8167 else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 $as_echo "no" >&6; }
8170 fi
8171
8172
8173 fi
8174 if test -z "$ac_cv_prog_LIPO"; then
8175 ac_ct_LIPO=$LIPO
8176 # Extract the first word of "lipo", so it can be a program name with args.
8177 set dummy lipo; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 if test -n "$ac_ct_LIPO"; then
8184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193 ac_cv_prog_ac_ct_LIPO="lipo"
8194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 break 2
8196 fi
8197 done
8198 done
8199 IFS=$as_save_IFS
8200
8201 fi
8202 fi
8203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8204 if test -n "$ac_ct_LIPO"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8206 $as_echo "$ac_ct_LIPO" >&6; }
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211
8212 if test "x$ac_ct_LIPO" = x; then
8213 LIPO=":"
8214 else
8215 case $cross_compiling:$ac_tool_warned in
8216 yes:)
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8219 ac_tool_warned=yes ;;
8220 esac
8221 LIPO=$ac_ct_LIPO
8222 fi
8223 else
8224 LIPO="$ac_cv_prog_LIPO"
8225 fi
8226
8227 if test -n "$ac_tool_prefix"; then
8228 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8229 set dummy ${ac_tool_prefix}otool; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if ${ac_cv_prog_OTOOL+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 if test -n "$OTOOL"; then
8236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8248 fi
8249 done
8250 done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 OTOOL=$ac_cv_prog_OTOOL
8256 if test -n "$OTOOL"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8258 $as_echo "$OTOOL" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265 fi
8266 if test -z "$ac_cv_prog_OTOOL"; then
8267 ac_ct_OTOOL=$OTOOL
8268 # Extract the first word of "otool", so it can be a program name with args.
8269 set dummy otool; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$ac_ct_OTOOL"; then
8276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_ac_ct_OTOOL="otool"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289 done
8290 done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8296 if test -n "$ac_ct_OTOOL"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8298 $as_echo "$ac_ct_OTOOL" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304 if test "x$ac_ct_OTOOL" = x; then
8305 OTOOL=":"
8306 else
8307 case $cross_compiling:$ac_tool_warned in
8308 yes:)
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311 ac_tool_warned=yes ;;
8312 esac
8313 OTOOL=$ac_ct_OTOOL
8314 fi
8315 else
8316 OTOOL="$ac_cv_prog_OTOOL"
8317 fi
8318
8319 if test -n "$ac_tool_prefix"; then
8320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_prog_OTOOL64+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 if test -n "$OTOOL64"; then
8328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi
8346 fi
8347 OTOOL64=$ac_cv_prog_OTOOL64
8348 if test -n "$OTOOL64"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8350 $as_echo "$OTOOL64" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 fi
8355
8356
8357 fi
8358 if test -z "$ac_cv_prog_OTOOL64"; then
8359 ac_ct_OTOOL64=$OTOOL64
8360 # Extract the first word of "otool64", so it can be a program name with args.
8361 set dummy otool64; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 if test -n "$ac_ct_OTOOL64"; then
8368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_ac_ct_OTOOL64="otool64"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8388 if test -n "$ac_ct_OTOOL64"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8390 $as_echo "$ac_ct_OTOOL64" >&6; }
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8394 fi
8395
8396 if test "x$ac_ct_OTOOL64" = x; then
8397 OTOOL64=":"
8398 else
8399 case $cross_compiling:$ac_tool_warned in
8400 yes:)
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8403 ac_tool_warned=yes ;;
8404 esac
8405 OTOOL64=$ac_ct_OTOOL64
8406 fi
8407 else
8408 OTOOL64="$ac_cv_prog_OTOOL64"
8409 fi
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8438 $as_echo_n "checking for -single_module linker flag... " >&6; }
8439 if ${lt_cv_apple_cc_single_mod+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 lt_cv_apple_cc_single_mod=no
8443 if test -z "$LT_MULTI_MODULE"; then
8444 # By default we will add the -single_module flag. You can override
8445 # by either setting the environment variable LT_MULTI_MODULE
8446 # non-empty at configure time, or by adding -multi_module to the
8447 # link flags.
8448 rm -rf libconftest.dylib*
8449 echo "int foo(void){return 1;}" > conftest.c
8450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8451 -dynamiclib -Wl,-single_module conftest.c" >&5
8452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8454 _lt_result=$?
8455 # If there is a non-empty error log, and "single_module"
8456 # appears in it, assume the flag caused a linker warning
8457 if test -s conftest.err && $GREP single_module conftest.err; then
8458 cat conftest.err >&5
8459 # Otherwise, if the output was created with a 0 exit code from
8460 # the compiler, it worked.
8461 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8462 lt_cv_apple_cc_single_mod=yes
8463 else
8464 cat conftest.err >&5
8465 fi
8466 rm -rf libconftest.dylib*
8467 rm -f conftest.*
8468 fi
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8471 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8474 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8475 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_ld_exported_symbols_list=no
8479 save_LDFLAGS=$LDFLAGS
8480 echo "_main" > conftest.sym
8481 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484
8485 int
8486 main ()
8487 {
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494 lt_cv_ld_exported_symbols_list=yes
8495 else
8496 lt_cv_ld_exported_symbols_list=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500 LDFLAGS=$save_LDFLAGS
8501
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8504 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8507 $as_echo_n "checking for -force_load linker flag... " >&6; }
8508 if ${lt_cv_ld_force_load+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 lt_cv_ld_force_load=no
8512 cat > conftest.c << _LT_EOF
8513 int forced_loaded() { return 2;}
8514 _LT_EOF
8515 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8516 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8517 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8518 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8519 echo "$RANLIB libconftest.a" >&5
8520 $RANLIB libconftest.a 2>&5
8521 cat > conftest.c << _LT_EOF
8522 int main() { return 0;}
8523 _LT_EOF
8524 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8525 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8526 _lt_result=$?
8527 if test -s conftest.err && $GREP force_load conftest.err; then
8528 cat conftest.err >&5
8529 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8530 lt_cv_ld_force_load=yes
8531 else
8532 cat conftest.err >&5
8533 fi
8534 rm -f conftest.err libconftest.a conftest conftest.c
8535 rm -rf conftest.dSYM
8536
8537 fi
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8539 $as_echo "$lt_cv_ld_force_load" >&6; }
8540 case $host_os in
8541 rhapsody* | darwin1.[012])
8542 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8543 darwin1.*)
8544 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8545 darwin*)
8546 case $MACOSX_DEPLOYMENT_TARGET,$host in
8547 10.[012],*|,*powerpc*-darwin[5-8]*)
8548 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8549 *)
8550 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8551 esac
8552 ;;
8553 esac
8554 if test yes = "$lt_cv_apple_cc_single_mod"; then
8555 _lt_dar_single_mod='$single_module'
8556 fi
8557 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8558 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8559 else
8560 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8561 fi
8562 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8563 _lt_dsymutil='~$DSYMUTIL $lib || :'
8564 else
8565 _lt_dsymutil=
8566 fi
8567 ;;
8568 esac
8569
8570 # func_munge_path_list VARIABLE PATH
8571 # -----------------------------------
8572 # VARIABLE is name of variable containing _space_ separated list of
8573 # directories to be munged by the contents of PATH, which is string
8574 # having a format:
8575 # "DIR[:DIR]:"
8576 # string "DIR[ DIR]" will be prepended to VARIABLE
8577 # ":DIR[:DIR]"
8578 # string "DIR[ DIR]" will be appended to VARIABLE
8579 # "DIRP[:DIRP]::[DIRA:]DIRA"
8580 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8581 # "DIRA[ DIRA]" will be appended to VARIABLE
8582 # "DIR[:DIR]"
8583 # VARIABLE will be replaced by "DIR[ DIR]"
8584 func_munge_path_list ()
8585 {
8586 case x$2 in
8587 x)
8588 ;;
8589 *:)
8590 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8591 ;;
8592 x:*)
8593 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8594 ;;
8595 *::*)
8596 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8597 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8598 ;;
8599 *)
8600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8601 ;;
8602 esac
8603 }
8604
8605 ac_ext=c
8606 ac_cpp='$CPP $CPPFLAGS'
8607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8611 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8612 # On Suns, sometimes $CPP names a directory.
8613 if test -n "$CPP" && test -d "$CPP"; then
8614 CPP=
8615 fi
8616 if test -z "$CPP"; then
8617 if ${ac_cv_prog_CPP+:} false; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 # Double quotes because CPP needs to be expanded
8621 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8622 do
8623 ac_preproc_ok=false
8624 for ac_c_preproc_warn_flag in '' yes
8625 do
8626 # Use a header file that comes with gcc, so configuring glibc
8627 # with a fresh cross-compiler works.
8628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 # <limits.h> exists even on freestanding compilers.
8630 # On the NeXT, cc -E runs the code through the compiler's parser,
8631 # not just through cpp. "Syntax error" is here to catch this case.
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 #ifdef __STDC__
8635 # include <limits.h>
8636 #else
8637 # include <assert.h>
8638 #endif
8639 Syntax error
8640 _ACEOF
8641 if ac_fn_c_try_cpp "$LINENO"; then :
8642
8643 else
8644 # Broken: fails on valid input.
8645 continue
8646 fi
8647 rm -f conftest.err conftest.i conftest.$ac_ext
8648
8649 # OK, works on sane cases. Now check whether nonexistent headers
8650 # can be detected and how.
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <ac_nonexistent.h>
8654 _ACEOF
8655 if ac_fn_c_try_cpp "$LINENO"; then :
8656 # Broken: success on invalid input.
8657 continue
8658 else
8659 # Passes both tests.
8660 ac_preproc_ok=:
8661 break
8662 fi
8663 rm -f conftest.err conftest.i conftest.$ac_ext
8664
8665 done
8666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8667 rm -f conftest.i conftest.err conftest.$ac_ext
8668 if $ac_preproc_ok; then :
8669 break
8670 fi
8671
8672 done
8673 ac_cv_prog_CPP=$CPP
8674
8675 fi
8676 CPP=$ac_cv_prog_CPP
8677 else
8678 ac_cv_prog_CPP=$CPP
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8681 $as_echo "$CPP" >&6; }
8682 ac_preproc_ok=false
8683 for ac_c_preproc_warn_flag in '' yes
8684 do
8685 # Use a header file that comes with gcc, so configuring glibc
8686 # with a fresh cross-compiler works.
8687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8688 # <limits.h> exists even on freestanding compilers.
8689 # On the NeXT, cc -E runs the code through the compiler's parser,
8690 # not just through cpp. "Syntax error" is here to catch this case.
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 #ifdef __STDC__
8694 # include <limits.h>
8695 #else
8696 # include <assert.h>
8697 #endif
8698 Syntax error
8699 _ACEOF
8700 if ac_fn_c_try_cpp "$LINENO"; then :
8701
8702 else
8703 # Broken: fails on valid input.
8704 continue
8705 fi
8706 rm -f conftest.err conftest.i conftest.$ac_ext
8707
8708 # OK, works on sane cases. Now check whether nonexistent headers
8709 # can be detected and how.
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 #include <ac_nonexistent.h>
8713 _ACEOF
8714 if ac_fn_c_try_cpp "$LINENO"; then :
8715 # Broken: success on invalid input.
8716 continue
8717 else
8718 # Passes both tests.
8719 ac_preproc_ok=:
8720 break
8721 fi
8722 rm -f conftest.err conftest.i conftest.$ac_ext
8723
8724 done
8725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8726 rm -f conftest.i conftest.err conftest.$ac_ext
8727 if $ac_preproc_ok; then :
8728
8729 else
8730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8732 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8733 See \`config.log' for more details" "$LINENO" 5; }
8734 fi
8735
8736 ac_ext=c
8737 ac_cpp='$CPP $CPPFLAGS'
8738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8744 $as_echo_n "checking for ANSI C header files... " >&6; }
8745 if ${ac_cv_header_stdc+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 #include <stdlib.h>
8751 #include <stdarg.h>
8752 #include <string.h>
8753 #include <float.h>
8754
8755 int
8756 main ()
8757 {
8758
8759 ;
8760 return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764 ac_cv_header_stdc=yes
8765 else
8766 ac_cv_header_stdc=no
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769
8770 if test $ac_cv_header_stdc = yes; then
8771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774 #include <string.h>
8775
8776 _ACEOF
8777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8778 $EGREP "memchr" >/dev/null 2>&1; then :
8779
8780 else
8781 ac_cv_header_stdc=no
8782 fi
8783 rm -f conftest*
8784
8785 fi
8786
8787 if test $ac_cv_header_stdc = yes; then
8788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <stdlib.h>
8792
8793 _ACEOF
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795 $EGREP "free" >/dev/null 2>&1; then :
8796
8797 else
8798 ac_cv_header_stdc=no
8799 fi
8800 rm -f conftest*
8801
8802 fi
8803
8804 if test $ac_cv_header_stdc = yes; then
8805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8806 if test "$cross_compiling" = yes; then :
8807 :
8808 else
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #include <ctype.h>
8812 #include <stdlib.h>
8813 #if ((' ' & 0x0FF) == 0x020)
8814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8816 #else
8817 # define ISLOWER(c) \
8818 (('a' <= (c) && (c) <= 'i') \
8819 || ('j' <= (c) && (c) <= 'r') \
8820 || ('s' <= (c) && (c) <= 'z'))
8821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8822 #endif
8823
8824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8825 int
8826 main ()
8827 {
8828 int i;
8829 for (i = 0; i < 256; i++)
8830 if (XOR (islower (i), ISLOWER (i))
8831 || toupper (i) != TOUPPER (i))
8832 return 2;
8833 return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_run "$LINENO"; then :
8837
8838 else
8839 ac_cv_header_stdc=no
8840 fi
8841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8842 conftest.$ac_objext conftest.beam conftest.$ac_ext
8843 fi
8844
8845 fi
8846 fi
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8848 $as_echo "$ac_cv_header_stdc" >&6; }
8849 if test $ac_cv_header_stdc = yes; then
8850
8851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8852
8853 fi
8854
8855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8857 inttypes.h stdint.h unistd.h
8858 do :
8859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8861 "
8862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8863 cat >>confdefs.h <<_ACEOF
8864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8865 _ACEOF
8866
8867 fi
8868
8869 done
8870
8871
8872 for ac_header in dlfcn.h
8873 do :
8874 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8875 "
8876 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8877 cat >>confdefs.h <<_ACEOF
8878 #define HAVE_DLFCN_H 1
8879 _ACEOF
8880
8881 fi
8882
8883 done
8884
8885
8886
8887
8888
8889 # Set options
8890
8891
8892
8893 enable_dlopen=no
8894
8895
8896 enable_win32_dll=no
8897
8898
8899 # Check whether --enable-shared was given.
8900 if test "${enable_shared+set}" = set; then :
8901 enableval=$enable_shared; p=${PACKAGE-default}
8902 case $enableval in
8903 yes) enable_shared=yes ;;
8904 no) enable_shared=no ;;
8905 *)
8906 enable_shared=no
8907 # Look at the argument we got. We use all the common list separators.
8908 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8909 for pkg in $enableval; do
8910 IFS=$lt_save_ifs
8911 if test "X$pkg" = "X$p"; then
8912 enable_shared=yes
8913 fi
8914 done
8915 IFS=$lt_save_ifs
8916 ;;
8917 esac
8918 else
8919 enable_shared=yes
8920 fi
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930 # Check whether --enable-static was given.
8931 if test "${enable_static+set}" = set; then :
8932 enableval=$enable_static; p=${PACKAGE-default}
8933 case $enableval in
8934 yes) enable_static=yes ;;
8935 no) enable_static=no ;;
8936 *)
8937 enable_static=no
8938 # Look at the argument we got. We use all the common list separators.
8939 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8940 for pkg in $enableval; do
8941 IFS=$lt_save_ifs
8942 if test "X$pkg" = "X$p"; then
8943 enable_static=yes
8944 fi
8945 done
8946 IFS=$lt_save_ifs
8947 ;;
8948 esac
8949 else
8950 enable_static=yes
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962 # Check whether --with-pic was given.
8963 if test "${with_pic+set}" = set; then :
8964 withval=$with_pic; lt_p=${PACKAGE-default}
8965 case $withval in
8966 yes|no) pic_mode=$withval ;;
8967 *)
8968 pic_mode=default
8969 # Look at the argument we got. We use all the common list separators.
8970 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8971 for lt_pkg in $withval; do
8972 IFS=$lt_save_ifs
8973 if test "X$lt_pkg" = "X$lt_p"; then
8974 pic_mode=yes
8975 fi
8976 done
8977 IFS=$lt_save_ifs
8978 ;;
8979 esac
8980 else
8981 pic_mode=default
8982 fi
8983
8984
8985
8986
8987
8988
8989
8990
8991 # Check whether --enable-fast-install was given.
8992 if test "${enable_fast_install+set}" = set; then :
8993 enableval=$enable_fast_install; p=${PACKAGE-default}
8994 case $enableval in
8995 yes) enable_fast_install=yes ;;
8996 no) enable_fast_install=no ;;
8997 *)
8998 enable_fast_install=no
8999 # Look at the argument we got. We use all the common list separators.
9000 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9001 for pkg in $enableval; do
9002 IFS=$lt_save_ifs
9003 if test "X$pkg" = "X$p"; then
9004 enable_fast_install=yes
9005 fi
9006 done
9007 IFS=$lt_save_ifs
9008 ;;
9009 esac
9010 else
9011 enable_fast_install=yes
9012 fi
9013
9014
9015
9016
9017
9018
9019
9020
9021 shared_archive_member_spec=
9022 case $host,$enable_shared in
9023 power*-*-aix[5-9]*,yes)
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9025 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9026
9027 # Check whether --with-aix-soname was given.
9028 if test "${with_aix_soname+set}" = set; then :
9029 withval=$with_aix_soname; case $withval in
9030 aix|svr4|both)
9031 ;;
9032 *)
9033 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9034 ;;
9035 esac
9036 lt_cv_with_aix_soname=$with_aix_soname
9037 else
9038 if ${lt_cv_with_aix_soname+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 lt_cv_with_aix_soname=aix
9042 fi
9043
9044 with_aix_soname=$lt_cv_with_aix_soname
9045 fi
9046
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9048 $as_echo "$with_aix_soname" >&6; }
9049 if test aix != "$with_aix_soname"; then
9050 # For the AIX way of multilib, we name the shared archive member
9051 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9052 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9053 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9054 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9055 if test 64 = "${OBJECT_MODE-32}"; then
9056 shared_archive_member_spec=shr_64
9057 else
9058 shared_archive_member_spec=shr
9059 fi
9060 fi
9061 ;;
9062 *)
9063 with_aix_soname=aix
9064 ;;
9065 esac
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 # This can be used to rebuild libtool when needed
9077 LIBTOOL_DEPS=$ltmain
9078
9079 # Always use our own libtool.
9080 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
9108
9109
9110
9111 test -z "$LN_S" && LN_S="ln -s"
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126 if test -n "${ZSH_VERSION+set}"; then
9127 setopt NO_GLOB_SUBST
9128 fi
9129
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9131 $as_echo_n "checking for objdir... " >&6; }
9132 if ${lt_cv_objdir+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 rm -f .libs 2>/dev/null
9136 mkdir .libs 2>/dev/null
9137 if test -d .libs; then
9138 lt_cv_objdir=.libs
9139 else
9140 # MS-DOS does not allow filenames that begin with a dot.
9141 lt_cv_objdir=_libs
9142 fi
9143 rmdir .libs 2>/dev/null
9144 fi
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9146 $as_echo "$lt_cv_objdir" >&6; }
9147 objdir=$lt_cv_objdir
9148
9149
9150
9151
9152
9153 cat >>confdefs.h <<_ACEOF
9154 #define LT_OBJDIR "$lt_cv_objdir/"
9155 _ACEOF
9156
9157
9158
9159
9160 case $host_os in
9161 aix3*)
9162 # AIX sometimes has problems with the GCC collect2 program. For some
9163 # reason, if we set the COLLECT_NAMES environment variable, the problems
9164 # vanish in a puff of smoke.
9165 if test set != "${COLLECT_NAMES+set}"; then
9166 COLLECT_NAMES=
9167 export COLLECT_NAMES
9168 fi
9169 ;;
9170 esac
9171
9172 # Global variables:
9173 ofile=libtool
9174 can_build_shared=yes
9175
9176 # All known linkers require a '.a' archive for static linking (except MSVC and
9177 # ICC, which need '.lib').
9178 libext=a
9179
9180 with_gnu_ld=$lt_cv_prog_gnu_ld
9181
9182 old_CC=$CC
9183 old_CFLAGS=$CFLAGS
9184
9185 # Set sane defaults for various variables
9186 test -z "$CC" && CC=cc
9187 test -z "$LTCC" && LTCC=$CC
9188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9189 test -z "$LD" && LD=ld
9190 test -z "$ac_objext" && ac_objext=o
9191
9192 func_cc_basename $compiler
9193 cc_basename=$func_cc_basename_result
9194
9195
9196 # Only perform the check for file, if the check method requires it
9197 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9198 case $deplibs_check_method in
9199 file_magic*)
9200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9202 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9203 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 case $MAGIC_CMD in
9207 [\\/*] | ?:[\\/]*)
9208 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9209 ;;
9210 *)
9211 lt_save_MAGIC_CMD=$MAGIC_CMD
9212 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9214 for ac_dir in $ac_dummy; do
9215 IFS=$lt_save_ifs
9216 test -z "$ac_dir" && ac_dir=.
9217 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9218 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9219 if test -n "$file_magic_test_file"; then
9220 case $deplibs_check_method in
9221 "file_magic "*)
9222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9223 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9225 $EGREP "$file_magic_regex" > /dev/null; then
9226 :
9227 else
9228 cat <<_LT_EOF 1>&2
9229
9230 *** Warning: the command libtool uses to detect shared libraries,
9231 *** $file_magic_cmd, produces output that libtool cannot recognize.
9232 *** The result is that libtool may fail to recognize shared libraries
9233 *** as such. This will affect the creation of libtool libraries that
9234 *** depend on shared libraries, but programs linked with such libtool
9235 *** libraries will work regardless of this problem. Nevertheless, you
9236 *** may want to report the problem to your system manager and/or to
9237 *** [email protected]
9238
9239 _LT_EOF
9240 fi ;;
9241 esac
9242 fi
9243 break
9244 fi
9245 done
9246 IFS=$lt_save_ifs
9247 MAGIC_CMD=$lt_save_MAGIC_CMD
9248 ;;
9249 esac
9250 fi
9251
9252 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9253 if test -n "$MAGIC_CMD"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9255 $as_echo "$MAGIC_CMD" >&6; }
9256 else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9259 fi
9260
9261
9262
9263
9264
9265 if test -z "$lt_cv_path_MAGIC_CMD"; then
9266 if test -n "$ac_tool_prefix"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9268 $as_echo_n "checking for file... " >&6; }
9269 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 case $MAGIC_CMD in
9273 [\\/*] | ?:[\\/]*)
9274 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9275 ;;
9276 *)
9277 lt_save_MAGIC_CMD=$MAGIC_CMD
9278 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9280 for ac_dir in $ac_dummy; do
9281 IFS=$lt_save_ifs
9282 test -z "$ac_dir" && ac_dir=.
9283 if test -f "$ac_dir/file"; then
9284 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9285 if test -n "$file_magic_test_file"; then
9286 case $deplibs_check_method in
9287 "file_magic "*)
9288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9289 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9291 $EGREP "$file_magic_regex" > /dev/null; then
9292 :
9293 else
9294 cat <<_LT_EOF 1>&2
9295
9296 *** Warning: the command libtool uses to detect shared libraries,
9297 *** $file_magic_cmd, produces output that libtool cannot recognize.
9298 *** The result is that libtool may fail to recognize shared libraries
9299 *** as such. This will affect the creation of libtool libraries that
9300 *** depend on shared libraries, but programs linked with such libtool
9301 *** libraries will work regardless of this problem. Nevertheless, you
9302 *** may want to report the problem to your system manager and/or to
9303 *** [email protected]
9304
9305 _LT_EOF
9306 fi ;;
9307 esac
9308 fi
9309 break
9310 fi
9311 done
9312 IFS=$lt_save_ifs
9313 MAGIC_CMD=$lt_save_MAGIC_CMD
9314 ;;
9315 esac
9316 fi
9317
9318 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9319 if test -n "$MAGIC_CMD"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9321 $as_echo "$MAGIC_CMD" >&6; }
9322 else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9325 fi
9326
9327
9328 else
9329 MAGIC_CMD=:
9330 fi
9331 fi
9332
9333 fi
9334 ;;
9335 esac
9336
9337 # Use C for the default configuration in the libtool script
9338
9339 lt_save_CC=$CC
9340 ac_ext=c
9341 ac_cpp='$CPP $CPPFLAGS'
9342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9345
9346
9347 # Source file extension for C test sources.
9348 ac_ext=c
9349
9350 # Object file extension for compiled C test sources.
9351 objext=o
9352 objext=$objext
9353
9354 # Code to be used in simple compile tests
9355 lt_simple_compile_test_code="int some_variable = 0;"
9356
9357 # Code to be used in simple link tests
9358 lt_simple_link_test_code='int main(){return(0);}'
9359
9360
9361
9362
9363
9364
9365
9366 # If no C compiler was specified, use CC.
9367 LTCC=${LTCC-"$CC"}
9368
9369 # If no C compiler flags were specified, use CFLAGS.
9370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9371
9372 # Allow CC to be a program name with arguments.
9373 compiler=$CC
9374
9375 # Save the default compiler, since it gets overwritten when the other
9376 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9377 compiler_DEFAULT=$CC
9378
9379 # save warnings/boilerplate of simple test code
9380 ac_outfile=conftest.$ac_objext
9381 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9382 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9383 _lt_compiler_boilerplate=`cat conftest.err`
9384 $RM conftest*
9385
9386 ac_outfile=conftest.$ac_objext
9387 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9388 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9389 _lt_linker_boilerplate=`cat conftest.err`
9390 $RM -r conftest*
9391
9392
9393 ## CAVEAT EMPTOR:
9394 ## There is no encapsulation within the following macros, do not change
9395 ## the running order or otherwise move them around unless you know exactly
9396 ## what you are doing...
9397 if test -n "$compiler"; then
9398
9399 lt_prog_compiler_no_builtin_flag=
9400
9401 if test yes = "$GCC"; then
9402 case $cc_basename in
9403 nvcc*)
9404 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9405 *)
9406 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9407 esac
9408
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9410 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9411 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 lt_cv_prog_compiler_rtti_exceptions=no
9415 ac_outfile=conftest.$ac_objext
9416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9418 # Insert the option either (1) after the last *FLAGS variable, or
9419 # (2) before a word containing "conftest.", or (3) at the end.
9420 # Note that $ac_compile itself does not contain backslashes and begins
9421 # with a dollar sign (not a hyphen), so the echo should work correctly.
9422 # The option is referenced via a variable to avoid confusing sed.
9423 lt_compile=`echo "$ac_compile" | $SED \
9424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9426 -e 's:$: $lt_compiler_flag:'`
9427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9428 (eval "$lt_compile" 2>conftest.err)
9429 ac_status=$?
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 if (exit $ac_status) && test -s "$ac_outfile"; then
9433 # The compiler can only warn and ignore the option if not recognized
9434 # So say no if there are warnings other than the usual output.
9435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9438 lt_cv_prog_compiler_rtti_exceptions=yes
9439 fi
9440 fi
9441 $RM conftest*
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9445 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9446
9447 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9449 else
9450 :
9451 fi
9452
9453 fi
9454
9455
9456
9457
9458
9459
9460 lt_prog_compiler_wl=
9461 lt_prog_compiler_pic=
9462 lt_prog_compiler_static=
9463
9464
9465 if test yes = "$GCC"; then
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_static='-static'
9468
9469 case $host_os in
9470 aix*)
9471 # All AIX code is PIC.
9472 if test ia64 = "$host_cpu"; then
9473 # AIX 5 now supports IA64 processor
9474 lt_prog_compiler_static='-Bstatic'
9475 fi
9476 lt_prog_compiler_pic='-fPIC'
9477 ;;
9478
9479 amigaos*)
9480 case $host_cpu in
9481 powerpc)
9482 # see comment about AmigaOS4 .so support
9483 lt_prog_compiler_pic='-fPIC'
9484 ;;
9485 m68k)
9486 # FIXME: we need at least 68020 code to build shared libraries, but
9487 # adding the '-m68020' flag to GCC prevents building anything better,
9488 # like '-m68040'.
9489 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9490 ;;
9491 esac
9492 ;;
9493
9494 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9495 # PIC is the default for these OSes.
9496 ;;
9497
9498 mingw* | cygwin* | pw32* | os2* | cegcc*)
9499 # This hack is so that the source file can tell whether it is being
9500 # built for inclusion in a dll (and should export symbols for example).
9501 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9502 # (--disable-auto-import) libraries
9503 lt_prog_compiler_pic='-DDLL_EXPORT'
9504 case $host_os in
9505 os2*)
9506 lt_prog_compiler_static='$wl-static'
9507 ;;
9508 esac
9509 ;;
9510
9511 darwin* | rhapsody*)
9512 # PIC is the default on this platform
9513 # Common symbols not allowed in MH_DYLIB files
9514 lt_prog_compiler_pic='-fno-common'
9515 ;;
9516
9517 haiku*)
9518 # PIC is the default for Haiku.
9519 # The "-static" flag exists, but is broken.
9520 lt_prog_compiler_static=
9521 ;;
9522
9523 hpux*)
9524 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9525 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9526 # sets the default TLS model and affects inlining.
9527 case $host_cpu in
9528 hppa*64*)
9529 # +Z the default
9530 ;;
9531 *)
9532 lt_prog_compiler_pic='-fPIC'
9533 ;;
9534 esac
9535 ;;
9536
9537 interix[3-9]*)
9538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9539 # Instead, we relocate shared libraries at runtime.
9540 ;;
9541
9542 msdosdjgpp*)
9543 # Just because we use GCC doesn't mean we suddenly get shared libraries
9544 # on systems that don't support them.
9545 lt_prog_compiler_can_build_shared=no
9546 enable_shared=no
9547 ;;
9548
9549 *nto* | *qnx*)
9550 # QNX uses GNU C++, but need to define -shared option too, otherwise
9551 # it will coredump.
9552 lt_prog_compiler_pic='-fPIC -shared'
9553 ;;
9554
9555 sysv4*MP*)
9556 if test -d /usr/nec; then
9557 lt_prog_compiler_pic=-Kconform_pic
9558 fi
9559 ;;
9560
9561 *)
9562 lt_prog_compiler_pic='-fPIC'
9563 ;;
9564 esac
9565
9566 case $cc_basename in
9567 nvcc*) # Cuda Compiler Driver 2.2
9568 lt_prog_compiler_wl='-Xlinker '
9569 if test -n "$lt_prog_compiler_pic"; then
9570 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9571 fi
9572 ;;
9573 esac
9574 else
9575 # PORTME Check for flag to pass linker flags through the system compiler.
9576 case $host_os in
9577 aix*)
9578 lt_prog_compiler_wl='-Wl,'
9579 if test ia64 = "$host_cpu"; then
9580 # AIX 5 now supports IA64 processor
9581 lt_prog_compiler_static='-Bstatic'
9582 else
9583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9584 fi
9585 ;;
9586
9587 darwin* | rhapsody*)
9588 # PIC is the default on this platform
9589 # Common symbols not allowed in MH_DYLIB files
9590 lt_prog_compiler_pic='-fno-common'
9591 case $cc_basename in
9592 nagfor*)
9593 # NAG Fortran compiler
9594 lt_prog_compiler_wl='-Wl,-Wl,,'
9595 lt_prog_compiler_pic='-PIC'
9596 lt_prog_compiler_static='-Bstatic'
9597 ;;
9598 esac
9599 ;;
9600
9601 mingw* | cygwin* | pw32* | os2* | cegcc*)
9602 # This hack is so that the source file can tell whether it is being
9603 # built for inclusion in a dll (and should export symbols for example).
9604 lt_prog_compiler_pic='-DDLL_EXPORT'
9605 case $host_os in
9606 os2*)
9607 lt_prog_compiler_static='$wl-static'
9608 ;;
9609 esac
9610 ;;
9611
9612 hpux9* | hpux10* | hpux11*)
9613 lt_prog_compiler_wl='-Wl,'
9614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9615 # not for PA HP-UX.
9616 case $host_cpu in
9617 hppa*64*|ia64*)
9618 # +Z the default
9619 ;;
9620 *)
9621 lt_prog_compiler_pic='+Z'
9622 ;;
9623 esac
9624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9625 lt_prog_compiler_static='$wl-a ${wl}archive'
9626 ;;
9627
9628 irix5* | irix6* | nonstopux*)
9629 lt_prog_compiler_wl='-Wl,'
9630 # PIC (with -KPIC) is the default.
9631 lt_prog_compiler_static='-non_shared'
9632 ;;
9633
9634 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9635 case $cc_basename in
9636 # old Intel for x86_64, which still supported -KPIC.
9637 ecc*)
9638 lt_prog_compiler_wl='-Wl,'
9639 lt_prog_compiler_pic='-KPIC'
9640 lt_prog_compiler_static='-static'
9641 ;;
9642 # icc used to be incompatible with GCC.
9643 # ICC 10 doesn't accept -KPIC any more.
9644 icc* | ifort*)
9645 lt_prog_compiler_wl='-Wl,'
9646 lt_prog_compiler_pic='-fPIC'
9647 lt_prog_compiler_static='-static'
9648 ;;
9649 # Lahey Fortran 8.1.
9650 lf95*)
9651 lt_prog_compiler_wl='-Wl,'
9652 lt_prog_compiler_pic='--shared'
9653 lt_prog_compiler_static='--static'
9654 ;;
9655 nagfor*)
9656 # NAG Fortran compiler
9657 lt_prog_compiler_wl='-Wl,-Wl,,'
9658 lt_prog_compiler_pic='-PIC'
9659 lt_prog_compiler_static='-Bstatic'
9660 ;;
9661 tcc*)
9662 # Fabrice Bellard et al's Tiny C Compiler
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_pic='-fPIC'
9665 lt_prog_compiler_static='-static'
9666 ;;
9667 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9668 # Portland Group compilers (*not* the Pentium gcc compiler,
9669 # which looks to be a dead project)
9670 lt_prog_compiler_wl='-Wl,'
9671 lt_prog_compiler_pic='-fpic'
9672 lt_prog_compiler_static='-Bstatic'
9673 ;;
9674 ccc*)
9675 lt_prog_compiler_wl='-Wl,'
9676 # All Alpha code is PIC.
9677 lt_prog_compiler_static='-non_shared'
9678 ;;
9679 xl* | bgxl* | bgf* | mpixl*)
9680 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9681 lt_prog_compiler_wl='-Wl,'
9682 lt_prog_compiler_pic='-qpic'
9683 lt_prog_compiler_static='-qstaticlink'
9684 ;;
9685 *)
9686 case `$CC -V 2>&1 | $SED 5q` in
9687 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9688 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9689 lt_prog_compiler_pic='-KPIC'
9690 lt_prog_compiler_static='-Bstatic'
9691 lt_prog_compiler_wl=''
9692 ;;
9693 *Sun\ F* | *Sun*Fortran*)
9694 lt_prog_compiler_pic='-KPIC'
9695 lt_prog_compiler_static='-Bstatic'
9696 lt_prog_compiler_wl='-Qoption ld '
9697 ;;
9698 *Sun\ C*)
9699 # Sun C 5.9
9700 lt_prog_compiler_pic='-KPIC'
9701 lt_prog_compiler_static='-Bstatic'
9702 lt_prog_compiler_wl='-Wl,'
9703 ;;
9704 *Intel*\ [CF]*Compiler*)
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-fPIC'
9707 lt_prog_compiler_static='-static'
9708 ;;
9709 *Portland\ Group*)
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_pic='-fpic'
9712 lt_prog_compiler_static='-Bstatic'
9713 ;;
9714 esac
9715 ;;
9716 esac
9717 ;;
9718
9719 newsos6)
9720 lt_prog_compiler_pic='-KPIC'
9721 lt_prog_compiler_static='-Bstatic'
9722 ;;
9723
9724 *nto* | *qnx*)
9725 # QNX uses GNU C++, but need to define -shared option too, otherwise
9726 # it will coredump.
9727 lt_prog_compiler_pic='-fPIC -shared'
9728 ;;
9729
9730 osf3* | osf4* | osf5*)
9731 lt_prog_compiler_wl='-Wl,'
9732 # All OSF/1 code is PIC.
9733 lt_prog_compiler_static='-non_shared'
9734 ;;
9735
9736 rdos*)
9737 lt_prog_compiler_static='-non_shared'
9738 ;;
9739
9740 solaris*)
9741 lt_prog_compiler_pic='-KPIC'
9742 lt_prog_compiler_static='-Bstatic'
9743 case $cc_basename in
9744 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9745 lt_prog_compiler_wl='-Qoption ld ';;
9746 *)
9747 lt_prog_compiler_wl='-Wl,';;
9748 esac
9749 ;;
9750
9751 sunos4*)
9752 lt_prog_compiler_wl='-Qoption ld '
9753 lt_prog_compiler_pic='-PIC'
9754 lt_prog_compiler_static='-Bstatic'
9755 ;;
9756
9757 sysv4 | sysv4.2uw2* | sysv4.3*)
9758 lt_prog_compiler_wl='-Wl,'
9759 lt_prog_compiler_pic='-KPIC'
9760 lt_prog_compiler_static='-Bstatic'
9761 ;;
9762
9763 sysv4*MP*)
9764 if test -d /usr/nec; then
9765 lt_prog_compiler_pic='-Kconform_pic'
9766 lt_prog_compiler_static='-Bstatic'
9767 fi
9768 ;;
9769
9770 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9771 lt_prog_compiler_wl='-Wl,'
9772 lt_prog_compiler_pic='-KPIC'
9773 lt_prog_compiler_static='-Bstatic'
9774 ;;
9775
9776 unicos*)
9777 lt_prog_compiler_wl='-Wl,'
9778 lt_prog_compiler_can_build_shared=no
9779 ;;
9780
9781 uts4*)
9782 lt_prog_compiler_pic='-pic'
9783 lt_prog_compiler_static='-Bstatic'
9784 ;;
9785
9786 *)
9787 lt_prog_compiler_can_build_shared=no
9788 ;;
9789 esac
9790 fi
9791
9792 case $host_os in
9793 # For platforms that do not support PIC, -DPIC is meaningless:
9794 *djgpp*)
9795 lt_prog_compiler_pic=
9796 ;;
9797 *)
9798 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9799 ;;
9800 esac
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9803 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9804 if ${lt_cv_prog_compiler_pic+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9810 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9811 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9812
9813 #
9814 # Check to make sure the PIC flag actually works.
9815 #
9816 if test -n "$lt_prog_compiler_pic"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9818 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9819 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 lt_cv_prog_compiler_pic_works=no
9823 ac_outfile=conftest.$ac_objext
9824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9825 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9826 # Insert the option either (1) after the last *FLAGS variable, or
9827 # (2) before a word containing "conftest.", or (3) at the end.
9828 # Note that $ac_compile itself does not contain backslashes and begins
9829 # with a dollar sign (not a hyphen), so the echo should work correctly.
9830 # The option is referenced via a variable to avoid confusing sed.
9831 lt_compile=`echo "$ac_compile" | $SED \
9832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9834 -e 's:$: $lt_compiler_flag:'`
9835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9836 (eval "$lt_compile" 2>conftest.err)
9837 ac_status=$?
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 if (exit $ac_status) && test -s "$ac_outfile"; then
9841 # The compiler can only warn and ignore the option if not recognized
9842 # So say no if there are warnings other than the usual output.
9843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9846 lt_cv_prog_compiler_pic_works=yes
9847 fi
9848 fi
9849 $RM conftest*
9850
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9853 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9854
9855 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9856 case $lt_prog_compiler_pic in
9857 "" | " "*) ;;
9858 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9859 esac
9860 else
9861 lt_prog_compiler_pic=
9862 lt_prog_compiler_can_build_shared=no
9863 fi
9864
9865 fi
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 #
9878 # Check to make sure the static flag actually works.
9879 #
9880 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9882 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9883 if ${lt_cv_prog_compiler_static_works+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 lt_cv_prog_compiler_static_works=no
9887 save_LDFLAGS=$LDFLAGS
9888 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9889 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9891 # The linker can only warn and ignore the option if not recognized
9892 # So say no if there are warnings
9893 if test -s conftest.err; then
9894 # Append any errors to the config.log.
9895 cat conftest.err 1>&5
9896 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9898 if diff conftest.exp conftest.er2 >/dev/null; then
9899 lt_cv_prog_compiler_static_works=yes
9900 fi
9901 else
9902 lt_cv_prog_compiler_static_works=yes
9903 fi
9904 fi
9905 $RM -r conftest*
9906 LDFLAGS=$save_LDFLAGS
9907
9908 fi
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9910 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9911
9912 if test yes = "$lt_cv_prog_compiler_static_works"; then
9913 :
9914 else
9915 lt_prog_compiler_static=
9916 fi
9917
9918
9919
9920
9921
9922
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9926 if ${lt_cv_prog_compiler_c_o+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 lt_cv_prog_compiler_c_o=no
9930 $RM -r conftest 2>/dev/null
9931 mkdir conftest
9932 cd conftest
9933 mkdir out
9934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9935
9936 lt_compiler_flag="-o out/conftest2.$ac_objext"
9937 # Insert the option either (1) after the last *FLAGS variable, or
9938 # (2) before a word containing "conftest.", or (3) at the end.
9939 # Note that $ac_compile itself does not contain backslashes and begins
9940 # with a dollar sign (not a hyphen), so the echo should work correctly.
9941 lt_compile=`echo "$ac_compile" | $SED \
9942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9944 -e 's:$: $lt_compiler_flag:'`
9945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9946 (eval "$lt_compile" 2>out/conftest.err)
9947 ac_status=$?
9948 cat out/conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9951 then
9952 # The compiler can only warn and ignore the option if not recognized
9953 # So say no if there are warnings
9954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9957 lt_cv_prog_compiler_c_o=yes
9958 fi
9959 fi
9960 chmod u+w . 2>&5
9961 $RM conftest*
9962 # SGI C++ compiler will create directory out/ii_files/ for
9963 # template instantiation
9964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9965 $RM out/* && rmdir out
9966 cd ..
9967 $RM -r conftest
9968 $RM conftest*
9969
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9973
9974
9975
9976
9977
9978
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9980 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9981 if ${lt_cv_prog_compiler_c_o+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 lt_cv_prog_compiler_c_o=no
9985 $RM -r conftest 2>/dev/null
9986 mkdir conftest
9987 cd conftest
9988 mkdir out
9989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9990
9991 lt_compiler_flag="-o out/conftest2.$ac_objext"
9992 # Insert the option either (1) after the last *FLAGS variable, or
9993 # (2) before a word containing "conftest.", or (3) at the end.
9994 # Note that $ac_compile itself does not contain backslashes and begins
9995 # with a dollar sign (not a hyphen), so the echo should work correctly.
9996 lt_compile=`echo "$ac_compile" | $SED \
9997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9999 -e 's:$: $lt_compiler_flag:'`
10000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10001 (eval "$lt_compile" 2>out/conftest.err)
10002 ac_status=$?
10003 cat out/conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10006 then
10007 # The compiler can only warn and ignore the option if not recognized
10008 # So say no if there are warnings
10009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10012 lt_cv_prog_compiler_c_o=yes
10013 fi
10014 fi
10015 chmod u+w . 2>&5
10016 $RM conftest*
10017 # SGI C++ compiler will create directory out/ii_files/ for
10018 # template instantiation
10019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10020 $RM out/* && rmdir out
10021 cd ..
10022 $RM -r conftest
10023 $RM conftest*
10024
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10027 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10028
10029
10030
10031
10032 hard_links=nottested
10033 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10034 # do not overwrite the value of need_locks provided by the user
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10036 $as_echo_n "checking if we can lock with hard links... " >&6; }
10037 hard_links=yes
10038 $RM conftest*
10039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10040 touch conftest.a
10041 ln conftest.a conftest.b 2>&5 || hard_links=no
10042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10044 $as_echo "$hard_links" >&6; }
10045 if test no = "$hard_links"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10047 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10048 need_locks=warn
10049 fi
10050 else
10051 need_locks=no
10052 fi
10053
10054
10055
10056
10057
10058
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10060 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10061
10062 runpath_var=
10063 allow_undefined_flag=
10064 always_export_symbols=no
10065 archive_cmds=
10066 archive_expsym_cmds=
10067 compiler_needs_object=no
10068 enable_shared_with_static_runtimes=no
10069 export_dynamic_flag_spec=
10070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10071 hardcode_automatic=no
10072 hardcode_direct=no
10073 hardcode_direct_absolute=no
10074 hardcode_libdir_flag_spec=
10075 hardcode_libdir_separator=
10076 hardcode_minus_L=no
10077 hardcode_shlibpath_var=unsupported
10078 inherit_rpath=no
10079 link_all_deplibs=unknown
10080 module_cmds=
10081 module_expsym_cmds=
10082 old_archive_from_new_cmds=
10083 old_archive_from_expsyms_cmds=
10084 thread_safe_flag_spec=
10085 whole_archive_flag_spec=
10086 # include_expsyms should be a list of space-separated symbols to be *always*
10087 # included in the symbol list
10088 include_expsyms=
10089 # exclude_expsyms can be an extended regexp of symbols to exclude
10090 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10091 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10092 # as well as any symbol that contains 'd'.
10093 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10095 # platforms (ab)use it in PIC code, but their linkers get confused if
10096 # the symbol is explicitly referenced. Since portable code cannot
10097 # rely on this symbol name, it's probably fine to never include it in
10098 # preloaded symbol tables.
10099 # Exclude shared library initialization/finalization symbols.
10100 extract_expsyms_cmds=
10101
10102 case $host_os in
10103 cygwin* | mingw* | pw32* | cegcc*)
10104 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10105 # When not using gcc, we currently assume that we are using
10106 # Microsoft Visual C++ or Intel C++ Compiler.
10107 if test yes != "$GCC"; then
10108 with_gnu_ld=no
10109 fi
10110 ;;
10111 interix*)
10112 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10113 with_gnu_ld=yes
10114 ;;
10115 openbsd* | bitrig*)
10116 with_gnu_ld=no
10117 ;;
10118 esac
10119
10120 ld_shlibs=yes
10121
10122 # On some targets, GNU ld is compatible enough with the native linker
10123 # that we're better off using the native interface for both.
10124 lt_use_gnu_ld_interface=no
10125 if test yes = "$with_gnu_ld"; then
10126 case $host_os in
10127 aix*)
10128 # The AIX port of GNU ld has always aspired to compatibility
10129 # with the native linker. However, as the warning in the GNU ld
10130 # block says, versions before 2.19.5* couldn't really create working
10131 # shared libraries, regardless of the interface used.
10132 case `$LD -v 2>&1` in
10133 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10134 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10135 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10136 *)
10137 lt_use_gnu_ld_interface=yes
10138 ;;
10139 esac
10140 ;;
10141 *)
10142 lt_use_gnu_ld_interface=yes
10143 ;;
10144 esac
10145 fi
10146
10147 if test yes = "$lt_use_gnu_ld_interface"; then
10148 # If archive_cmds runs LD, not CC, wlarc should be empty
10149 wlarc='$wl'
10150
10151 # Set some defaults for GNU ld with shared library support. These
10152 # are reset later if shared libraries are not supported. Putting them
10153 # here allows them to be overridden if necessary.
10154 runpath_var=LD_RUN_PATH
10155 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10156 export_dynamic_flag_spec='$wl--export-dynamic'
10157 # ancient GNU ld didn't support --whole-archive et. al.
10158 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10159 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10160 else
10161 whole_archive_flag_spec=
10162 fi
10163 supports_anon_versioning=no
10164 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10165 *GNU\ gold*) supports_anon_versioning=yes ;;
10166 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10167 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10168 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10169 *\ 2.11.*) ;; # other 2.11 versions
10170 *) supports_anon_versioning=yes ;;
10171 esac
10172
10173 # See if GNU ld supports shared libraries.
10174 case $host_os in
10175 aix[3-9]*)
10176 # On AIX/PPC, the GNU linker is very broken
10177 if test ia64 != "$host_cpu"; then
10178 ld_shlibs=no
10179 cat <<_LT_EOF 1>&2
10180
10181 *** Warning: the GNU linker, at least up to release 2.19, is reported
10182 *** to be unable to reliably create shared libraries on AIX.
10183 *** Therefore, libtool is disabling shared libraries support. If you
10184 *** really care for shared libraries, you may want to install binutils
10185 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10186 *** You will then need to restart the configuration process.
10187
10188 _LT_EOF
10189 fi
10190 ;;
10191
10192 amigaos*)
10193 case $host_cpu in
10194 powerpc)
10195 # see comment about AmigaOS4 .so support
10196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10197 archive_expsym_cmds=''
10198 ;;
10199 m68k)
10200 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)'
10201 hardcode_libdir_flag_spec='-L$libdir'
10202 hardcode_minus_L=yes
10203 ;;
10204 esac
10205 ;;
10206
10207 beos*)
10208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10209 allow_undefined_flag=unsupported
10210 # Joseph Beckenbach <[email protected]> says some releases of gcc
10211 # support --undefined. This deserves some investigation. FIXME
10212 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10213 else
10214 ld_shlibs=no
10215 fi
10216 ;;
10217
10218 cygwin* | mingw* | pw32* | cegcc*)
10219 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10220 # as there is no search path for DLLs.
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 export_dynamic_flag_spec='$wl--export-all-symbols'
10223 allow_undefined_flag=unsupported
10224 always_export_symbols=no
10225 enable_shared_with_static_runtimes=yes
10226 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10227 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10228
10229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10231 # If the export-symbols file already is a .def file, use it as
10232 # is; otherwise, prepend EXPORTS...
10233 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10234 cp $export_symbols $output_objdir/$soname.def;
10235 else
10236 echo EXPORTS > $output_objdir/$soname.def;
10237 cat $export_symbols >> $output_objdir/$soname.def;
10238 fi~
10239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10240 else
10241 ld_shlibs=no
10242 fi
10243 ;;
10244
10245 haiku*)
10246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10247 link_all_deplibs=yes
10248 ;;
10249
10250 os2*)
10251 hardcode_libdir_flag_spec='-L$libdir'
10252 hardcode_minus_L=yes
10253 allow_undefined_flag=unsupported
10254 shrext_cmds=.dll
10255 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10258 $ECHO EXPORTS >> $output_objdir/$libname.def~
10259 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10260 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10261 emximp -o $lib $output_objdir/$libname.def'
10262 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10263 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10264 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10265 $ECHO EXPORTS >> $output_objdir/$libname.def~
10266 prefix_cmds="$SED"~
10267 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10268 prefix_cmds="$prefix_cmds -e 1d";
10269 fi~
10270 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10271 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10272 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10273 emximp -o $lib $output_objdir/$libname.def'
10274 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10275 enable_shared_with_static_runtimes=yes
10276 file_list_spec='@'
10277 ;;
10278
10279 interix[3-9]*)
10280 hardcode_direct=no
10281 hardcode_shlibpath_var=no
10282 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10283 export_dynamic_flag_spec='$wl-E'
10284 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10285 # Instead, shared libraries are loaded at an image base (0x10000000 by
10286 # default) and relocated if they conflict, which is a slow very memory
10287 # consuming and fragmenting process. To avoid this, we pick a random,
10288 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10289 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10291 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'
10292 ;;
10293
10294 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10295 tmp_diet=no
10296 if test linux-dietlibc = "$host_os"; then
10297 case $cc_basename in
10298 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10299 esac
10300 fi
10301 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10302 && test no = "$tmp_diet"
10303 then
10304 tmp_addflag=' $pic_flag'
10305 tmp_sharedflag='-shared'
10306 case $cc_basename,$host_cpu in
10307 pgcc*) # Portland Group C compiler
10308 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10309 tmp_addflag=' $pic_flag'
10310 ;;
10311 pgf77* | pgf90* | pgf95* | pgfortran*)
10312 # Portland Group f77 and f90 compilers
10313 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10314 tmp_addflag=' $pic_flag -Mnomain' ;;
10315 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10316 tmp_addflag=' -i_dynamic' ;;
10317 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10318 tmp_addflag=' -i_dynamic -nofor_main' ;;
10319 ifc* | ifort*) # Intel Fortran compiler
10320 tmp_addflag=' -nofor_main' ;;
10321 lf95*) # Lahey Fortran 8.1
10322 whole_archive_flag_spec=
10323 tmp_sharedflag='--shared' ;;
10324 nagfor*) # NAGFOR 5.3
10325 tmp_sharedflag='-Wl,-shared' ;;
10326 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10327 tmp_sharedflag='-qmkshrobj'
10328 tmp_addflag= ;;
10329 nvcc*) # Cuda Compiler Driver 2.2
10330 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10331 compiler_needs_object=yes
10332 ;;
10333 esac
10334 case `$CC -V 2>&1 | $SED 5q` in
10335 *Sun\ C*) # Sun C 5.9
10336 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10337 compiler_needs_object=yes
10338 tmp_sharedflag='-G' ;;
10339 *Sun\ F*) # Sun Fortran 8.3
10340 tmp_sharedflag='-G' ;;
10341 esac
10342 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10343
10344 if test yes = "$supports_anon_versioning"; then
10345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10346 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10347 echo "local: *; };" >> $output_objdir/$libname.ver~
10348 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10349 fi
10350
10351 case $cc_basename in
10352 tcc*)
10353 export_dynamic_flag_spec='-rdynamic'
10354 ;;
10355 xlf* | bgf* | bgxlf* | mpixlf*)
10356 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10357 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10359 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10360 if test yes = "$supports_anon_versioning"; then
10361 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10362 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10363 echo "local: *; };" >> $output_objdir/$libname.ver~
10364 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10365 fi
10366 ;;
10367 esac
10368 else
10369 ld_shlibs=no
10370 fi
10371 ;;
10372
10373 netbsd*)
10374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10375 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10376 wlarc=
10377 else
10378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10379 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10380 fi
10381 ;;
10382
10383 solaris*)
10384 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10385 ld_shlibs=no
10386 cat <<_LT_EOF 1>&2
10387
10388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10389 *** create shared libraries on Solaris systems. Therefore, libtool
10390 *** is disabling shared libraries support. We urge you to upgrade GNU
10391 *** binutils to release 2.9.1 or newer. Another option is to modify
10392 *** your PATH or compiler configuration so that the native linker is
10393 *** used, and then restart.
10394
10395 _LT_EOF
10396 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10399 else
10400 ld_shlibs=no
10401 fi
10402 ;;
10403
10404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10405 case `$LD -v 2>&1` in
10406 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10407 ld_shlibs=no
10408 cat <<_LT_EOF 1>&2
10409
10410 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10411 *** reliably create shared libraries on SCO systems. Therefore, libtool
10412 *** is disabling shared libraries support. We urge you to upgrade GNU
10413 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10414 *** your PATH or compiler configuration so that the native linker is
10415 *** used, and then restart.
10416
10417 _LT_EOF
10418 ;;
10419 *)
10420 # For security reasons, it is highly recommended that you always
10421 # use absolute paths for naming shared libraries, and exclude the
10422 # DT_RUNPATH tag from executables and libraries. But doing so
10423 # requires that you compile everything twice, which is a pain.
10424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10425 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10428 else
10429 ld_shlibs=no
10430 fi
10431 ;;
10432 esac
10433 ;;
10434
10435 sunos4*)
10436 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10437 wlarc=
10438 hardcode_direct=yes
10439 hardcode_shlibpath_var=no
10440 ;;
10441
10442 *)
10443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10445 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10446 else
10447 ld_shlibs=no
10448 fi
10449 ;;
10450 esac
10451
10452 if test no = "$ld_shlibs"; then
10453 runpath_var=
10454 hardcode_libdir_flag_spec=
10455 export_dynamic_flag_spec=
10456 whole_archive_flag_spec=
10457 fi
10458 else
10459 # PORTME fill in a description of your system's linker (not GNU ld)
10460 case $host_os in
10461 aix3*)
10462 allow_undefined_flag=unsupported
10463 always_export_symbols=yes
10464 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'
10465 # Note: this linker hardcodes the directories in LIBPATH if there
10466 # are no directories specified by -L.
10467 hardcode_minus_L=yes
10468 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10469 # Neither direct hardcoding nor static linking is supported with a
10470 # broken collect2.
10471 hardcode_direct=unsupported
10472 fi
10473 ;;
10474
10475 aix[4-9]*)
10476 if test ia64 = "$host_cpu"; then
10477 # On IA64, the linker does run time linking by default, so we don't
10478 # have to do anything special.
10479 aix_use_runtimelinking=no
10480 exp_sym_flag='-Bexport'
10481 no_entry_flag=
10482 else
10483 # If we're using GNU nm, then we don't want the "-C" option.
10484 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10485 # Without the "-l" option, or with the "-B" option, AIX nm treats
10486 # weak defined symbols like other global defined symbols, whereas
10487 # GNU nm marks them as "W".
10488 # While the 'weak' keyword is ignored in the Export File, we need
10489 # it in the Import File for the 'aix-soname' feature, so we have
10490 # to replace the "-B" option with "-P" for AIX nm.
10491 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10492 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10493 else
10494 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10495 fi
10496 aix_use_runtimelinking=no
10497
10498 # Test if we are trying to use run time linking or normal
10499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10500 # have runtime linking enabled, and use it for executables.
10501 # For shared libraries, we enable/disable runtime linking
10502 # depending on the kind of the shared library created -
10503 # when "with_aix_soname,aix_use_runtimelinking" is:
10504 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10505 # "aix,yes" lib.so shared, rtl:yes, for executables
10506 # lib.a static archive
10507 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10508 # lib.a(lib.so.V) shared, rtl:no, for executables
10509 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10510 # lib.a(lib.so.V) shared, rtl:no
10511 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10512 # lib.a static archive
10513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10514 for ld_flag in $LDFLAGS; do
10515 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10516 aix_use_runtimelinking=yes
10517 break
10518 fi
10519 done
10520 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10521 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10522 # so we don't have lib.a shared libs to link our executables.
10523 # We have to force runtime linking in this case.
10524 aix_use_runtimelinking=yes
10525 LDFLAGS="$LDFLAGS -Wl,-brtl"
10526 fi
10527 ;;
10528 esac
10529
10530 exp_sym_flag='-bexport'
10531 no_entry_flag='-bnoentry'
10532 fi
10533
10534 # When large executables or shared objects are built, AIX ld can
10535 # have problems creating the table of contents. If linking a library
10536 # or program results in "error TOC overflow" add -mminimal-toc to
10537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10539
10540 archive_cmds=''
10541 hardcode_direct=yes
10542 hardcode_direct_absolute=yes
10543 hardcode_libdir_separator=':'
10544 link_all_deplibs=yes
10545 file_list_spec='$wl-f,'
10546 case $with_aix_soname,$aix_use_runtimelinking in
10547 aix,*) ;; # traditional, no import file
10548 svr4,* | *,yes) # use import file
10549 # The Import File defines what to hardcode.
10550 hardcode_direct=no
10551 hardcode_direct_absolute=no
10552 ;;
10553 esac
10554
10555 if test yes = "$GCC"; then
10556 case $host_os in aix4.[012]|aix4.[012].*)
10557 # We only want to do this on AIX 4.2 and lower, the check
10558 # below for broken collect2 doesn't work under 4.3+
10559 collect2name=`$CC -print-prog-name=collect2`
10560 if test -f "$collect2name" &&
10561 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10562 then
10563 # We have reworked collect2
10564 :
10565 else
10566 # We have old collect2
10567 hardcode_direct=unsupported
10568 # It fails to find uninstalled libraries when the uninstalled
10569 # path is not listed in the libpath. Setting hardcode_minus_L
10570 # to unsupported forces relinking
10571 hardcode_minus_L=yes
10572 hardcode_libdir_flag_spec='-L$libdir'
10573 hardcode_libdir_separator=
10574 fi
10575 ;;
10576 esac
10577 shared_flag='-shared'
10578 if test yes = "$aix_use_runtimelinking"; then
10579 shared_flag="$shared_flag "'$wl-G'
10580 fi
10581 # Need to ensure runtime linking is disabled for the traditional
10582 # shared library, or the linker may eventually find shared libraries
10583 # /with/ Import File - we do not want to mix them.
10584 shared_flag_aix='-shared'
10585 shared_flag_svr4='-shared $wl-G'
10586 else
10587 # not using gcc
10588 if test ia64 = "$host_cpu"; then
10589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10590 # chokes on -Wl,-G. The following line is correct:
10591 shared_flag='-G'
10592 else
10593 if test yes = "$aix_use_runtimelinking"; then
10594 shared_flag='$wl-G'
10595 else
10596 shared_flag='$wl-bM:SRE'
10597 fi
10598 shared_flag_aix='$wl-bM:SRE'
10599 shared_flag_svr4='$wl-G'
10600 fi
10601 fi
10602
10603 export_dynamic_flag_spec='$wl-bexpall'
10604 # It seems that -bexpall does not export symbols beginning with
10605 # underscore (_), so it is better to generate a list of symbols to export.
10606 always_export_symbols=yes
10607 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10608 # Warning - without using the other runtime loading flags (-brtl),
10609 # -berok will link without error, but may produce a broken library.
10610 allow_undefined_flag='-berok'
10611 # Determine the default libpath from the value encoded in an
10612 # empty executable.
10613 if test set = "${lt_cv_aix_libpath+set}"; then
10614 aix_libpath=$lt_cv_aix_libpath
10615 else
10616 if ${lt_cv_aix_libpath_+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621
10622 int
10623 main ()
10624 {
10625
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 if ac_fn_c_try_link "$LINENO"; then :
10631
10632 lt_aix_libpath_sed='
10633 /Import File Strings/,/^$/ {
10634 /^0/ {
10635 s/^0 *\([^ ]*\) *$/\1/
10636 p
10637 }
10638 }'
10639 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10640 # Check for a 64-bit object if we didn't find anything.
10641 if test -z "$lt_cv_aix_libpath_"; then
10642 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10643 fi
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 if test -z "$lt_cv_aix_libpath_"; then
10648 lt_cv_aix_libpath_=/usr/lib:/lib
10649 fi
10650
10651 fi
10652
10653 aix_libpath=$lt_cv_aix_libpath_
10654 fi
10655
10656 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10657 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10658 else
10659 if test ia64 = "$host_cpu"; then
10660 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10661 allow_undefined_flag="-z nodefs"
10662 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"
10663 else
10664 # Determine the default libpath from the value encoded in an
10665 # empty executable.
10666 if test set = "${lt_cv_aix_libpath+set}"; then
10667 aix_libpath=$lt_cv_aix_libpath
10668 else
10669 if ${lt_cv_aix_libpath_+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674
10675 int
10676 main ()
10677 {
10678
10679 ;
10680 return 0;
10681 }
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684
10685 lt_aix_libpath_sed='
10686 /Import File Strings/,/^$/ {
10687 /^0/ {
10688 s/^0 *\([^ ]*\) *$/\1/
10689 p
10690 }
10691 }'
10692 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10693 # Check for a 64-bit object if we didn't find anything.
10694 if test -z "$lt_cv_aix_libpath_"; then
10695 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10696 fi
10697 fi
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 if test -z "$lt_cv_aix_libpath_"; then
10701 lt_cv_aix_libpath_=/usr/lib:/lib
10702 fi
10703
10704 fi
10705
10706 aix_libpath=$lt_cv_aix_libpath_
10707 fi
10708
10709 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10710 # Warning - without using the other run time loading flags,
10711 # -berok will link without error, but may produce a broken library.
10712 no_undefined_flag=' $wl-bernotok'
10713 allow_undefined_flag=' $wl-berok'
10714 if test yes = "$with_gnu_ld"; then
10715 # We only use this code for GNU lds that support --whole-archive.
10716 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10717 else
10718 # Exported symbols can be pulled into shared objects from archives
10719 whole_archive_flag_spec='$convenience'
10720 fi
10721 archive_cmds_need_lc=yes
10722 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10723 # -brtl affects multiple linker settings, -berok does not and is overridden later
10724 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10725 if test svr4 != "$with_aix_soname"; then
10726 # This is similar to how AIX traditionally builds its shared libraries.
10727 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10728 fi
10729 if test aix != "$with_aix_soname"; then
10730 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10731 else
10732 # used by -dlpreopen to get the symbols
10733 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10734 fi
10735 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10736 fi
10737 fi
10738 ;;
10739
10740 amigaos*)
10741 case $host_cpu in
10742 powerpc)
10743 # see comment about AmigaOS4 .so support
10744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10745 archive_expsym_cmds=''
10746 ;;
10747 m68k)
10748 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)'
10749 hardcode_libdir_flag_spec='-L$libdir'
10750 hardcode_minus_L=yes
10751 ;;
10752 esac
10753 ;;
10754
10755 bsdi[45]*)
10756 export_dynamic_flag_spec=-rdynamic
10757 ;;
10758
10759 cygwin* | mingw* | pw32* | cegcc*)
10760 # When not using gcc, we currently assume that we are using
10761 # Microsoft Visual C++ or Intel C++ Compiler.
10762 # hardcode_libdir_flag_spec is actually meaningless, as there is
10763 # no search path for DLLs.
10764 case $cc_basename in
10765 cl* | icl*)
10766 # Native MSVC or ICC
10767 hardcode_libdir_flag_spec=' '
10768 allow_undefined_flag=unsupported
10769 always_export_symbols=yes
10770 file_list_spec='@'
10771 # Tell ltmain to make .lib files, not .a files.
10772 libext=lib
10773 # Tell ltmain to make .dll files, not .so files.
10774 shrext_cmds=.dll
10775 # FIXME: Setting linknames here is a bad hack.
10776 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10777 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10778 cp "$export_symbols" "$output_objdir/$soname.def";
10779 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10780 else
10781 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10782 fi~
10783 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10784 linknames='
10785 # The linker will not automatically build a static lib if we build a DLL.
10786 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10787 enable_shared_with_static_runtimes=yes
10788 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10790 # Don't use ranlib
10791 old_postinstall_cmds='chmod 644 $oldlib'
10792 postlink_cmds='lt_outputfile="@OUTPUT@"~
10793 lt_tool_outputfile="@TOOL_OUTPUT@"~
10794 case $lt_outputfile in
10795 *.exe|*.EXE) ;;
10796 *)
10797 lt_outputfile=$lt_outputfile.exe
10798 lt_tool_outputfile=$lt_tool_outputfile.exe
10799 ;;
10800 esac~
10801 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10802 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10803 $RM "$lt_outputfile.manifest";
10804 fi'
10805 ;;
10806 *)
10807 # Assume MSVC and ICC wrapper
10808 hardcode_libdir_flag_spec=' '
10809 allow_undefined_flag=unsupported
10810 # Tell ltmain to make .lib files, not .a files.
10811 libext=lib
10812 # Tell ltmain to make .dll files, not .so files.
10813 shrext_cmds=.dll
10814 # FIXME: Setting linknames here is a bad hack.
10815 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10816 # The linker will automatically build a .lib file if we build a DLL.
10817 old_archive_from_new_cmds='true'
10818 # FIXME: Should let the user specify the lib program.
10819 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10820 enable_shared_with_static_runtimes=yes
10821 ;;
10822 esac
10823 ;;
10824
10825 darwin* | rhapsody*)
10826
10827
10828 archive_cmds_need_lc=no
10829 hardcode_direct=no
10830 hardcode_automatic=yes
10831 hardcode_shlibpath_var=unsupported
10832 if test yes = "$lt_cv_ld_force_load"; then
10833 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10834
10835 else
10836 whole_archive_flag_spec=''
10837 fi
10838 link_all_deplibs=yes
10839 allow_undefined_flag=$_lt_dar_allow_undefined
10840 case $cc_basename in
10841 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10842 *) _lt_dar_can_shared=$GCC ;;
10843 esac
10844 if test yes = "$_lt_dar_can_shared"; then
10845 output_verbose_link_cmd=func_echo_all
10846 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10847 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10848 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"
10849 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"
10850
10851 else
10852 ld_shlibs=no
10853 fi
10854
10855 ;;
10856
10857 dgux*)
10858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10859 hardcode_libdir_flag_spec='-L$libdir'
10860 hardcode_shlibpath_var=no
10861 ;;
10862
10863 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10864 # support. Future versions do this automatically, but an explicit c++rt0.o
10865 # does not break anything, and helps significantly (at the cost of a little
10866 # extra space).
10867 freebsd2.2*)
10868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10869 hardcode_libdir_flag_spec='-R$libdir'
10870 hardcode_direct=yes
10871 hardcode_shlibpath_var=no
10872 ;;
10873
10874 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10875 freebsd2.*)
10876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=yes
10878 hardcode_minus_L=yes
10879 hardcode_shlibpath_var=no
10880 ;;
10881
10882 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10883 freebsd* | dragonfly* | midnightbsd*)
10884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10885 hardcode_libdir_flag_spec='-R$libdir'
10886 hardcode_direct=yes
10887 hardcode_shlibpath_var=no
10888 ;;
10889
10890 hpux9*)
10891 if test yes = "$GCC"; then
10892 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10893 else
10894 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10895 fi
10896 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10897 hardcode_libdir_separator=:
10898 hardcode_direct=yes
10899
10900 # hardcode_minus_L: Not really in the search PATH,
10901 # but as the default location of the library.
10902 hardcode_minus_L=yes
10903 export_dynamic_flag_spec='$wl-E'
10904 ;;
10905
10906 hpux10*)
10907 if test yes,no = "$GCC,$with_gnu_ld"; then
10908 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10909 else
10910 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10911 fi
10912 if test no = "$with_gnu_ld"; then
10913 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10914 hardcode_libdir_separator=:
10915 hardcode_direct=yes
10916 hardcode_direct_absolute=yes
10917 export_dynamic_flag_spec='$wl-E'
10918 # hardcode_minus_L: Not really in the search PATH,
10919 # but as the default location of the library.
10920 hardcode_minus_L=yes
10921 fi
10922 ;;
10923
10924 hpux11*)
10925 if test yes,no = "$GCC,$with_gnu_ld"; then
10926 case $host_cpu in
10927 hppa*64*)
10928 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10929 ;;
10930 ia64*)
10931 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10932 ;;
10933 *)
10934 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10935 ;;
10936 esac
10937 else
10938 case $host_cpu in
10939 hppa*64*)
10940 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 ;;
10942 ia64*)
10943 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10944 ;;
10945 *)
10946
10947 # Older versions of the 11.00 compiler do not understand -b yet
10948 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10950 $as_echo_n "checking if $CC understands -b... " >&6; }
10951 if ${lt_cv_prog_compiler__b+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 lt_cv_prog_compiler__b=no
10955 save_LDFLAGS=$LDFLAGS
10956 LDFLAGS="$LDFLAGS -b"
10957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10959 # The linker can only warn and ignore the option if not recognized
10960 # So say no if there are warnings
10961 if test -s conftest.err; then
10962 # Append any errors to the config.log.
10963 cat conftest.err 1>&5
10964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10966 if diff conftest.exp conftest.er2 >/dev/null; then
10967 lt_cv_prog_compiler__b=yes
10968 fi
10969 else
10970 lt_cv_prog_compiler__b=yes
10971 fi
10972 fi
10973 $RM -r conftest*
10974 LDFLAGS=$save_LDFLAGS
10975
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10978 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10979
10980 if test yes = "$lt_cv_prog_compiler__b"; then
10981 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10982 else
10983 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10984 fi
10985
10986 ;;
10987 esac
10988 fi
10989 if test no = "$with_gnu_ld"; then
10990 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10991 hardcode_libdir_separator=:
10992
10993 case $host_cpu in
10994 hppa*64*|ia64*)
10995 hardcode_direct=no
10996 hardcode_shlibpath_var=no
10997 ;;
10998 *)
10999 hardcode_direct=yes
11000 hardcode_direct_absolute=yes
11001 export_dynamic_flag_spec='$wl-E'
11002
11003 # hardcode_minus_L: Not really in the search PATH,
11004 # but as the default location of the library.
11005 hardcode_minus_L=yes
11006 ;;
11007 esac
11008 fi
11009 ;;
11010
11011 irix5* | irix6* | nonstopux*)
11012 if test yes = "$GCC"; then
11013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11014 # Try to use the -exported_symbol ld option, if it does not
11015 # work, assume that -exports_file does not work either and
11016 # implicitly export all symbols.
11017 # This should be the same for all languages, so no per-tag cache variable.
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11019 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11020 if ${lt_cv_irix_exported_symbol+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 save_LDFLAGS=$LDFLAGS
11024 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 int foo (void) { return 0; }
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 lt_cv_irix_exported_symbol=yes
11031 else
11032 lt_cv_irix_exported_symbol=no
11033 fi
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LDFLAGS=$save_LDFLAGS
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11039 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11040 if test yes = "$lt_cv_irix_exported_symbol"; then
11041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11042 fi
11043 else
11044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11046 fi
11047 archive_cmds_need_lc='no'
11048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11049 hardcode_libdir_separator=:
11050 inherit_rpath=yes
11051 link_all_deplibs=yes
11052 ;;
11053
11054 linux*)
11055 case $cc_basename in
11056 tcc*)
11057 # Fabrice Bellard et al's Tiny C Compiler
11058 ld_shlibs=yes
11059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11060 ;;
11061 esac
11062 ;;
11063
11064 netbsd*)
11065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11067 else
11068 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11069 fi
11070 hardcode_libdir_flag_spec='-R$libdir'
11071 hardcode_direct=yes
11072 hardcode_shlibpath_var=no
11073 ;;
11074
11075 newsos6)
11076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11077 hardcode_direct=yes
11078 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11079 hardcode_libdir_separator=:
11080 hardcode_shlibpath_var=no
11081 ;;
11082
11083 *nto* | *qnx*)
11084 ;;
11085
11086 openbsd* | bitrig*)
11087 if test -f /usr/libexec/ld.so; then
11088 hardcode_direct=yes
11089 hardcode_shlibpath_var=no
11090 hardcode_direct_absolute=yes
11091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11094 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11095 export_dynamic_flag_spec='$wl-E'
11096 else
11097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11098 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11099 fi
11100 else
11101 ld_shlibs=no
11102 fi
11103 ;;
11104
11105 os2*)
11106 hardcode_libdir_flag_spec='-L$libdir'
11107 hardcode_minus_L=yes
11108 allow_undefined_flag=unsupported
11109 shrext_cmds=.dll
11110 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11111 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11112 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11113 $ECHO EXPORTS >> $output_objdir/$libname.def~
11114 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11115 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11116 emximp -o $lib $output_objdir/$libname.def'
11117 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11118 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11119 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11120 $ECHO EXPORTS >> $output_objdir/$libname.def~
11121 prefix_cmds="$SED"~
11122 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11123 prefix_cmds="$prefix_cmds -e 1d";
11124 fi~
11125 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11126 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11127 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11128 emximp -o $lib $output_objdir/$libname.def'
11129 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11130 enable_shared_with_static_runtimes=yes
11131 file_list_spec='@'
11132 ;;
11133
11134 osf3*)
11135 if test yes = "$GCC"; then
11136 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11137 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11138 else
11139 allow_undefined_flag=' -expect_unresolved \*'
11140 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11141 fi
11142 archive_cmds_need_lc='no'
11143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11144 hardcode_libdir_separator=:
11145 ;;
11146
11147 osf4* | osf5*) # as osf3* with the addition of -msym flag
11148 if test yes = "$GCC"; then
11149 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11150 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11152 else
11153 allow_undefined_flag=' -expect_unresolved \*'
11154 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11155 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~
11156 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11157
11158 # Both c and cxx compiler support -rpath directly
11159 hardcode_libdir_flag_spec='-rpath $libdir'
11160 fi
11161 archive_cmds_need_lc='no'
11162 hardcode_libdir_separator=:
11163 ;;
11164
11165 solaris*)
11166 no_undefined_flag=' -z defs'
11167 if test yes = "$GCC"; then
11168 wlarc='$wl'
11169 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11171 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11172 else
11173 case `$CC -V 2>&1` in
11174 *"Compilers 5.0"*)
11175 wlarc=''
11176 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11178 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11179 ;;
11180 *)
11181 wlarc='$wl'
11182 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11184 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11185 ;;
11186 esac
11187 fi
11188 hardcode_libdir_flag_spec='-R$libdir'
11189 hardcode_shlibpath_var=no
11190 case $host_os in
11191 solaris2.[0-5] | solaris2.[0-5].*) ;;
11192 *)
11193 # The compiler driver will combine and reorder linker options,
11194 # but understands '-z linker_flag'. GCC discards it without '$wl',
11195 # but is careful enough not to reorder.
11196 # Supported since Solaris 2.6 (maybe 2.5.1?)
11197 if test yes = "$GCC"; then
11198 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11199 else
11200 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11201 fi
11202 ;;
11203 esac
11204 link_all_deplibs=yes
11205 ;;
11206
11207 sunos4*)
11208 if test sequent = "$host_vendor"; then
11209 # Use $CC to link under sequent, because it throws in some extra .o
11210 # files that make .init and .fini sections work.
11211 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11212 else
11213 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11214 fi
11215 hardcode_libdir_flag_spec='-L$libdir'
11216 hardcode_direct=yes
11217 hardcode_minus_L=yes
11218 hardcode_shlibpath_var=no
11219 ;;
11220
11221 sysv4)
11222 case $host_vendor in
11223 sni)
11224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11225 hardcode_direct=yes # is this really true???
11226 ;;
11227 siemens)
11228 ## LD is ld it makes a PLAMLIB
11229 ## CC just makes a GrossModule.
11230 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11231 reload_cmds='$CC -r -o $output$reload_objs'
11232 hardcode_direct=no
11233 ;;
11234 motorola)
11235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11236 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11237 ;;
11238 esac
11239 runpath_var='LD_RUN_PATH'
11240 hardcode_shlibpath_var=no
11241 ;;
11242
11243 sysv4.3*)
11244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11245 hardcode_shlibpath_var=no
11246 export_dynamic_flag_spec='-Bexport'
11247 ;;
11248
11249 sysv4*MP*)
11250 if test -d /usr/nec; then
11251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_shlibpath_var=no
11253 runpath_var=LD_RUN_PATH
11254 hardcode_runpath_var=yes
11255 ld_shlibs=yes
11256 fi
11257 ;;
11258
11259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11260 no_undefined_flag='$wl-z,text'
11261 archive_cmds_need_lc=no
11262 hardcode_shlibpath_var=no
11263 runpath_var='LD_RUN_PATH'
11264
11265 if test yes = "$GCC"; then
11266 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11267 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11268 else
11269 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11270 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11271 fi
11272 ;;
11273
11274 sysv5* | sco3.2v5* | sco5v6*)
11275 # Note: We CANNOT use -z defs as we might desire, because we do not
11276 # link with -lc, and that would cause any symbols used from libc to
11277 # always be unresolved, which means just about no library would
11278 # ever link correctly. If we're not using GNU ld we use -z text
11279 # though, which does catch some bad symbols but isn't as heavy-handed
11280 # as -z defs.
11281 no_undefined_flag='$wl-z,text'
11282 allow_undefined_flag='$wl-z,nodefs'
11283 archive_cmds_need_lc=no
11284 hardcode_shlibpath_var=no
11285 hardcode_libdir_flag_spec='$wl-R,$libdir'
11286 hardcode_libdir_separator=':'
11287 link_all_deplibs=yes
11288 export_dynamic_flag_spec='$wl-Bexport'
11289 runpath_var='LD_RUN_PATH'
11290
11291 if test yes = "$GCC"; then
11292 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 else
11295 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11296 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 fi
11298 ;;
11299
11300 uts4*)
11301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302 hardcode_libdir_flag_spec='-L$libdir'
11303 hardcode_shlibpath_var=no
11304 ;;
11305
11306 *)
11307 ld_shlibs=no
11308 ;;
11309 esac
11310
11311 if test sni = "$host_vendor"; then
11312 case $host in
11313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11314 export_dynamic_flag_spec='$wl-Blargedynsym'
11315 ;;
11316 esac
11317 fi
11318 fi
11319
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11321 $as_echo "$ld_shlibs" >&6; }
11322 test no = "$ld_shlibs" && can_build_shared=no
11323
11324 with_gnu_ld=$with_gnu_ld
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340 #
11341 # Do we need to explicitly link libc?
11342 #
11343 case "x$archive_cmds_need_lc" in
11344 x|xyes)
11345 # Assume -lc should be added
11346 archive_cmds_need_lc=yes
11347
11348 if test yes,yes = "$GCC,$enable_shared"; then
11349 case $archive_cmds in
11350 *'~'*)
11351 # FIXME: we may have to deal with multi-command sequences.
11352 ;;
11353 '$CC '*)
11354 # Test whether the compiler implicitly links with -lc since on some
11355 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11356 # to ld, don't add -lc before -lgcc.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11358 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11359 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 $RM conftest*
11363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11364
11365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11366 (eval $ac_compile) 2>&5
11367 ac_status=$?
11368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369 test $ac_status = 0; } 2>conftest.err; then
11370 soname=conftest
11371 lib=conftest
11372 libobjs=conftest.$ac_objext
11373 deplibs=
11374 wl=$lt_prog_compiler_wl
11375 pic_flag=$lt_prog_compiler_pic
11376 compiler_flags=-v
11377 linker_flags=-v
11378 verstring=
11379 output_objdir=.
11380 libname=conftest
11381 lt_save_allow_undefined_flag=$allow_undefined_flag
11382 allow_undefined_flag=
11383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11384 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11385 ac_status=$?
11386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11387 test $ac_status = 0; }
11388 then
11389 lt_cv_archive_cmds_need_lc=no
11390 else
11391 lt_cv_archive_cmds_need_lc=yes
11392 fi
11393 allow_undefined_flag=$lt_save_allow_undefined_flag
11394 else
11395 cat conftest.err 1>&5
11396 fi
11397 $RM conftest*
11398
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11401 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11402 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11403 ;;
11404 esac
11405 fi
11406 ;;
11407 esac
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11562
11563 if test yes = "$GCC"; then
11564 case $host_os in
11565 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11566 *) lt_awk_arg='/^libraries:/' ;;
11567 esac
11568 case $host_os in
11569 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11570 *) lt_sed_strip_eq='s|=/|/|g' ;;
11571 esac
11572 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11573 case $lt_search_path_spec in
11574 *\;*)
11575 # if the path contains ";" then we assume it to be the separator
11576 # otherwise default to the standard path separator (i.e. ":") - it is
11577 # assumed that no part of a normal pathname contains ";" but that should
11578 # okay in the real world where ";" in dirpaths is itself problematic.
11579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11580 ;;
11581 *)
11582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11583 ;;
11584 esac
11585 # Ok, now we have the path, separated by spaces, we can step through it
11586 # and add multilib dir if necessary...
11587 lt_tmp_lt_search_path_spec=
11588 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11589 # ...but if some path component already ends with the multilib dir we assume
11590 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11591 case "$lt_multi_os_dir; $lt_search_path_spec " in
11592 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11593 lt_multi_os_dir=
11594 ;;
11595 esac
11596 for lt_sys_path in $lt_search_path_spec; do
11597 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11599 elif test -n "$lt_multi_os_dir"; then
11600 test -d "$lt_sys_path" && \
11601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11602 fi
11603 done
11604 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11605 BEGIN {RS = " "; FS = "/|\n";} {
11606 lt_foo = "";
11607 lt_count = 0;
11608 for (lt_i = NF; lt_i > 0; lt_i--) {
11609 if ($lt_i != "" && $lt_i != ".") {
11610 if ($lt_i == "..") {
11611 lt_count++;
11612 } else {
11613 if (lt_count == 0) {
11614 lt_foo = "/" $lt_i lt_foo;
11615 } else {
11616 lt_count--;
11617 }
11618 }
11619 }
11620 }
11621 if (lt_foo != "") { lt_freq[lt_foo]++; }
11622 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11623 }'`
11624 # AWK program above erroneously prepends '/' to C:/dos/paths
11625 # for these hosts.
11626 case $host_os in
11627 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11628 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11629 esac
11630 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11631 else
11632 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11633 fi
11634 library_names_spec=
11635 libname_spec='lib$name'
11636 soname_spec=
11637 shrext_cmds=.so
11638 postinstall_cmds=
11639 postuninstall_cmds=
11640 finish_cmds=
11641 finish_eval=
11642 shlibpath_var=
11643 shlibpath_overrides_runpath=unknown
11644 version_type=none
11645 dynamic_linker="$host_os ld.so"
11646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11647 need_lib_prefix=unknown
11648 hardcode_into_libs=no
11649
11650 # when you set need_version to no, make sure it does not cause -set_version
11651 # flags to be left without arguments
11652 need_version=unknown
11653
11654
11655
11656 case $host_os in
11657 aix3*)
11658 version_type=linux # correct to gnu/linux during the next big refactor
11659 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11660 shlibpath_var=LIBPATH
11661
11662 # AIX 3 has no versioning support, so we append a major version to the name.
11663 soname_spec='$libname$release$shared_ext$major'
11664 ;;
11665
11666 aix[4-9]*)
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 need_lib_prefix=no
11669 need_version=no
11670 hardcode_into_libs=yes
11671 if test ia64 = "$host_cpu"; then
11672 # AIX 5 supports IA64
11673 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 else
11676 # With GCC up to 2.95.x, collect2 would create an import file
11677 # for dependence libraries. The import file would start with
11678 # the line '#! .'. This would cause the generated library to
11679 # depend on '.', always an invalid library. This was fixed in
11680 # development snapshots of GCC prior to 3.0.
11681 case $host_os in
11682 aix4 | aix4.[01] | aix4.[01].*)
11683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11684 echo ' yes '
11685 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11686 :
11687 else
11688 can_build_shared=no
11689 fi
11690 ;;
11691 esac
11692 # Using Import Files as archive members, it is possible to support
11693 # filename-based versioning of shared library archives on AIX. While
11694 # this would work for both with and without runtime linking, it will
11695 # prevent static linking of such archives. So we do filename-based
11696 # shared library versioning with .so extension only, which is used
11697 # when both runtime linking and shared linking is enabled.
11698 # Unfortunately, runtime linking may impact performance, so we do
11699 # not want this to be the default eventually. Also, we use the
11700 # versioned .so libs for executables only if there is the -brtl
11701 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11702 # To allow for filename-based versioning support, we need to create
11703 # libNAME.so.V as an archive file, containing:
11704 # *) an Import File, referring to the versioned filename of the
11705 # archive as well as the shared archive member, telling the
11706 # bitwidth (32 or 64) of that shared object, and providing the
11707 # list of exported symbols of that shared object, eventually
11708 # decorated with the 'weak' keyword
11709 # *) the shared object with the F_LOADONLY flag set, to really avoid
11710 # it being seen by the linker.
11711 # At run time we better use the real file rather than another symlink,
11712 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11713
11714 case $with_aix_soname,$aix_use_runtimelinking in
11715 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11716 # soname into executable. Probably we can add versioning support to
11717 # collect2, so additional links can be useful in future.
11718 aix,yes) # traditional libtool
11719 dynamic_linker='AIX unversionable lib.so'
11720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11721 # instead of lib<name>.a to let people know that these are not
11722 # typical AIX shared libraries.
11723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11724 ;;
11725 aix,no) # traditional AIX only
11726 dynamic_linker='AIX lib.a(lib.so.V)'
11727 # We preserve .a as extension for shared libraries through AIX4.2
11728 # and later when we are not doing run time linking.
11729 library_names_spec='$libname$release.a $libname.a'
11730 soname_spec='$libname$release$shared_ext$major'
11731 ;;
11732 svr4,*) # full svr4 only
11733 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11734 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11735 # We do not specify a path in Import Files, so LIBPATH fires.
11736 shlibpath_overrides_runpath=yes
11737 ;;
11738 *,yes) # both, prefer svr4
11739 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11740 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11741 # unpreferred sharedlib libNAME.a needs extra handling
11742 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11743 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11744 # We do not specify a path in Import Files, so LIBPATH fires.
11745 shlibpath_overrides_runpath=yes
11746 ;;
11747 *,no) # both, prefer aix
11748 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11749 library_names_spec='$libname$release.a $libname.a'
11750 soname_spec='$libname$release$shared_ext$major'
11751 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11752 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11753 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11754 ;;
11755 esac
11756 shlibpath_var=LIBPATH
11757 fi
11758 ;;
11759
11760 amigaos*)
11761 case $host_cpu in
11762 powerpc)
11763 # Since July 2007 AmigaOS4 officially supports .so libraries.
11764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11766 ;;
11767 m68k)
11768 library_names_spec='$libname.ixlibrary $libname.a'
11769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11770 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11771 ;;
11772 esac
11773 ;;
11774
11775 beos*)
11776 library_names_spec='$libname$shared_ext'
11777 dynamic_linker="$host_os ld.so"
11778 shlibpath_var=LIBRARY_PATH
11779 ;;
11780
11781 bsdi[45]*)
11782 version_type=linux # correct to gnu/linux during the next big refactor
11783 need_version=no
11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11785 soname_spec='$libname$release$shared_ext$major'
11786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11790 # the default ld.so.conf also contains /usr/contrib/lib and
11791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11792 # libtool to hard-code these into programs
11793 ;;
11794
11795 cygwin* | mingw* | pw32* | cegcc*)
11796 version_type=windows
11797 shrext_cmds=.dll
11798 need_version=no
11799 need_lib_prefix=no
11800
11801 case $GCC,$cc_basename in
11802 yes,*)
11803 # gcc
11804 library_names_spec='$libname.dll.a'
11805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11806 postinstall_cmds='base_file=`basename \$file`~
11807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11808 dldir=$destdir/`dirname \$dlpath`~
11809 test -d \$dldir || mkdir -p \$dldir~
11810 $install_prog $dir/$dlname \$dldir/$dlname~
11811 chmod a+x \$dldir/$dlname~
11812 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11813 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11814 fi'
11815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11816 dlpath=$dir/\$dldll~
11817 $RM \$dlpath'
11818 shlibpath_overrides_runpath=yes
11819
11820 case $host_os in
11821 cygwin*)
11822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11823 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11824
11825 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11826 ;;
11827 mingw* | cegcc*)
11828 # MinGW DLLs use traditional 'lib' prefix
11829 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11830 ;;
11831 pw32*)
11832 # pw32 DLLs use 'pw' prefix rather than 'lib'
11833 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11834 ;;
11835 esac
11836 dynamic_linker='Win32 ld.exe'
11837 ;;
11838
11839 *,cl* | *,icl*)
11840 # Native MSVC or ICC
11841 libname_spec='$name'
11842 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11843 library_names_spec='$libname.dll.lib'
11844
11845 case $build_os in
11846 mingw*)
11847 sys_lib_search_path_spec=
11848 lt_save_ifs=$IFS
11849 IFS=';'
11850 for lt_path in $LIB
11851 do
11852 IFS=$lt_save_ifs
11853 # Let DOS variable expansion print the short 8.3 style file name.
11854 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11855 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11856 done
11857 IFS=$lt_save_ifs
11858 # Convert to MSYS style.
11859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11860 ;;
11861 cygwin*)
11862 # Convert to unix form, then to dos form, then back to unix form
11863 # but this time dos style (no spaces!) so that the unix form looks
11864 # like /cygdrive/c/PROGRA~1:/cygdr...
11865 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11866 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11867 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11868 ;;
11869 *)
11870 sys_lib_search_path_spec=$LIB
11871 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11872 # It is most probably a Windows format PATH.
11873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11874 else
11875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11876 fi
11877 # FIXME: find the short name or the path components, as spaces are
11878 # common. (e.g. "Program Files" -> "PROGRA~1")
11879 ;;
11880 esac
11881
11882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11883 postinstall_cmds='base_file=`basename \$file`~
11884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11885 dldir=$destdir/`dirname \$dlpath`~
11886 test -d \$dldir || mkdir -p \$dldir~
11887 $install_prog $dir/$dlname \$dldir/$dlname'
11888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11889 dlpath=$dir/\$dldll~
11890 $RM \$dlpath'
11891 shlibpath_overrides_runpath=yes
11892 dynamic_linker='Win32 link.exe'
11893 ;;
11894
11895 *)
11896 # Assume MSVC and ICC wrapper
11897 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11898 dynamic_linker='Win32 ld.exe'
11899 ;;
11900 esac
11901 # FIXME: first we should search . and the directory the executable is in
11902 shlibpath_var=PATH
11903 ;;
11904
11905 darwin* | rhapsody*)
11906 dynamic_linker="$host_os dyld"
11907 version_type=darwin
11908 need_lib_prefix=no
11909 need_version=no
11910 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11911 soname_spec='$libname$release$major$shared_ext'
11912 shlibpath_overrides_runpath=yes
11913 shlibpath_var=DYLD_LIBRARY_PATH
11914 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11915
11916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11918 ;;
11919
11920 dgux*)
11921 version_type=linux # correct to gnu/linux during the next big refactor
11922 need_lib_prefix=no
11923 need_version=no
11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11925 soname_spec='$libname$release$shared_ext$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 ;;
11928
11929 freebsd* | dragonfly* | midnightbsd*)
11930 # DragonFly does not have aout. When/if they implement a new
11931 # versioning mechanism, adjust this.
11932 if test -x /usr/bin/objformat; then
11933 objformat=`/usr/bin/objformat`
11934 else
11935 case $host_os in
11936 freebsd[23].*) objformat=aout ;;
11937 *) objformat=elf ;;
11938 esac
11939 fi
11940 # Handle Gentoo/FreeBSD as it was Linux
11941 case $host_vendor in
11942 gentoo)
11943 version_type=linux ;;
11944 *)
11945 version_type=freebsd-$objformat ;;
11946 esac
11947
11948 case $version_type in
11949 freebsd-elf*)
11950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11951 soname_spec='$libname$release$shared_ext$major'
11952 need_version=no
11953 need_lib_prefix=no
11954 ;;
11955 freebsd-*)
11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11957 need_version=yes
11958 ;;
11959 linux)
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11961 soname_spec='${libname}${release}${shared_ext}$major'
11962 need_lib_prefix=no
11963 need_version=no
11964 ;;
11965 esac
11966 shlibpath_var=LD_LIBRARY_PATH
11967 case $host_os in
11968 freebsd2.*)
11969 shlibpath_overrides_runpath=yes
11970 ;;
11971 freebsd3.[01]* | freebsdelf3.[01]*)
11972 shlibpath_overrides_runpath=yes
11973 hardcode_into_libs=yes
11974 ;;
11975 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11976 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11977 shlibpath_overrides_runpath=no
11978 hardcode_into_libs=yes
11979 ;;
11980 *) # from 4.6 on, and DragonFly
11981 shlibpath_overrides_runpath=yes
11982 hardcode_into_libs=yes
11983 ;;
11984 esac
11985 ;;
11986
11987 haiku*)
11988 version_type=linux # correct to gnu/linux during the next big refactor
11989 need_lib_prefix=no
11990 need_version=no
11991 dynamic_linker="$host_os runtime_loader"
11992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11993 soname_spec='$libname$release$shared_ext$major'
11994 shlibpath_var=LIBRARY_PATH
11995 shlibpath_overrides_runpath=no
11996 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11997 hardcode_into_libs=yes
11998 ;;
11999
12000 hpux9* | hpux10* | hpux11*)
12001 # Give a soname corresponding to the major version so that dld.sl refuses to
12002 # link against other versions.
12003 version_type=sunos
12004 need_lib_prefix=no
12005 need_version=no
12006 case $host_cpu in
12007 ia64*)
12008 shrext_cmds='.so'
12009 hardcode_into_libs=yes
12010 dynamic_linker="$host_os dld.so"
12011 shlibpath_var=LD_LIBRARY_PATH
12012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014 soname_spec='$libname$release$shared_ext$major'
12015 if test 32 = "$HPUX_IA64_MODE"; then
12016 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12017 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12018 else
12019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12020 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12021 fi
12022 ;;
12023 hppa*64*)
12024 shrext_cmds='.sl'
12025 hardcode_into_libs=yes
12026 dynamic_linker="$host_os dld.sl"
12027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030 soname_spec='$libname$release$shared_ext$major'
12031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12033 ;;
12034 *)
12035 shrext_cmds='.sl'
12036 dynamic_linker="$host_os dld.sl"
12037 shlibpath_var=SHLIB_PATH
12038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040 soname_spec='$libname$release$shared_ext$major'
12041 ;;
12042 esac
12043 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12044 postinstall_cmds='chmod 555 $lib'
12045 # or fails outright, so override atomically:
12046 install_override_mode=555
12047 ;;
12048
12049 interix[3-9]*)
12050 version_type=linux # correct to gnu/linux during the next big refactor
12051 need_lib_prefix=no
12052 need_version=no
12053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054 soname_spec='$libname$release$shared_ext$major'
12055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 shlibpath_overrides_runpath=no
12058 hardcode_into_libs=yes
12059 ;;
12060
12061 irix5* | irix6* | nonstopux*)
12062 case $host_os in
12063 nonstopux*) version_type=nonstopux ;;
12064 *)
12065 if test yes = "$lt_cv_prog_gnu_ld"; then
12066 version_type=linux # correct to gnu/linux during the next big refactor
12067 else
12068 version_type=irix
12069 fi ;;
12070 esac
12071 need_lib_prefix=no
12072 need_version=no
12073 soname_spec='$libname$release$shared_ext$major'
12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12075 case $host_os in
12076 irix5* | nonstopux*)
12077 libsuff= shlibsuff=
12078 ;;
12079 *)
12080 case $LD in # libtool.m4 will add one of these switches to LD
12081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12082 libsuff= shlibsuff= libmagic=32-bit;;
12083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12084 libsuff=32 shlibsuff=N32 libmagic=N32;;
12085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12087 *) libsuff= shlibsuff= libmagic=never-match;;
12088 esac
12089 ;;
12090 esac
12091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12092 shlibpath_overrides_runpath=no
12093 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12094 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12095 hardcode_into_libs=yes
12096 ;;
12097
12098 # No shared lib support for Linux oldld, aout, or coff.
12099 linux*oldld* | linux*aout* | linux*coff*)
12100 dynamic_linker=no
12101 ;;
12102
12103 linux*android*)
12104 version_type=none # Android doesn't support versioned libraries.
12105 need_lib_prefix=no
12106 need_version=no
12107 library_names_spec='$libname$release$shared_ext'
12108 soname_spec='$libname$release$shared_ext'
12109 finish_cmds=
12110 shlibpath_var=LD_LIBRARY_PATH
12111 shlibpath_overrides_runpath=yes
12112
12113 # This implies no fast_install, which is unacceptable.
12114 # Some rework will be needed to allow for fast_install
12115 # before this can be enabled.
12116 hardcode_into_libs=yes
12117
12118 dynamic_linker='Android linker'
12119 # Don't embed -rpath directories since the linker doesn't support them.
12120 hardcode_libdir_flag_spec='-L$libdir'
12121 ;;
12122
12123 # This must be glibc/ELF.
12124 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12125 version_type=linux # correct to gnu/linux during the next big refactor
12126 need_lib_prefix=no
12127 need_version=no
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129 soname_spec='$libname$release$shared_ext$major'
12130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12131 shlibpath_var=LD_LIBRARY_PATH
12132 shlibpath_overrides_runpath=no
12133
12134 # Some binutils ld are patched to set DT_RUNPATH
12135 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 lt_cv_shlibpath_overrides_runpath=no
12139 save_LDFLAGS=$LDFLAGS
12140 save_libdir=$libdir
12141 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12142 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145
12146 int
12147 main ()
12148 {
12149
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 if ac_fn_c_try_link "$LINENO"; then :
12155 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12156 lt_cv_shlibpath_overrides_runpath=yes
12157 fi
12158 fi
12159 rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12161 LDFLAGS=$save_LDFLAGS
12162 libdir=$save_libdir
12163
12164 fi
12165
12166 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12167
12168 # This implies no fast_install, which is unacceptable.
12169 # Some rework will be needed to allow for fast_install
12170 # before this can be enabled.
12171 hardcode_into_libs=yes
12172
12173 # Ideally, we could use ldconfig to report *all* directores which are
12174 # searched for libraries, however this is still not possible. Aside from not
12175 # being certain /sbin/ldconfig is available, command
12176 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12177 # even though it is searched at run-time. Try to do the best guess by
12178 # appending ld.so.conf contents (and includes) to the search path.
12179 if test -f /etc/ld.so.conf; then
12180 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12181 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12182 fi
12183
12184 # We used to test for /lib/ld.so.1 and disable shared libraries on
12185 # powerpc, because MkLinux only supported shared libraries with the
12186 # GNU dynamic linker. Since this was broken with cross compilers,
12187 # most powerpc-linux boxes support dynamic linking these days and
12188 # people can always --disable-shared, the test was removed, and we
12189 # assume the GNU/Linux dynamic linker is in use.
12190 dynamic_linker='GNU/Linux ld.so'
12191 ;;
12192
12193 netbsd*)
12194 version_type=sunos
12195 need_lib_prefix=no
12196 need_version=no
12197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12200 dynamic_linker='NetBSD (a.out) ld.so'
12201 else
12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12203 soname_spec='$libname$release$shared_ext$major'
12204 dynamic_linker='NetBSD ld.elf_so'
12205 fi
12206 shlibpath_var=LD_LIBRARY_PATH
12207 shlibpath_overrides_runpath=yes
12208 hardcode_into_libs=yes
12209 ;;
12210
12211 newsos6)
12212 version_type=linux # correct to gnu/linux during the next big refactor
12213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214 shlibpath_var=LD_LIBRARY_PATH
12215 shlibpath_overrides_runpath=yes
12216 ;;
12217
12218 *nto* | *qnx*)
12219 version_type=qnx
12220 need_lib_prefix=no
12221 need_version=no
12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12223 soname_spec='$libname$release$shared_ext$major'
12224 shlibpath_var=LD_LIBRARY_PATH
12225 shlibpath_overrides_runpath=no
12226 hardcode_into_libs=yes
12227 dynamic_linker='ldqnx.so'
12228 ;;
12229
12230 openbsd* | bitrig*)
12231 version_type=sunos
12232 sys_lib_dlsearch_path_spec=/usr/lib
12233 need_lib_prefix=no
12234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12235 need_version=no
12236 else
12237 need_version=yes
12238 fi
12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=yes
12243 ;;
12244
12245 os2*)
12246 libname_spec='$name'
12247 version_type=windows
12248 shrext_cmds=.dll
12249 need_version=no
12250 need_lib_prefix=no
12251 # OS/2 can only load a DLL with a base name of 8 characters or less.
12252 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12253 v=$($ECHO $release$versuffix | tr -d .-);
12254 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12255 $ECHO $n$v`$shared_ext'
12256 library_names_spec='${libname}_dll.$libext'
12257 dynamic_linker='OS/2 ld.exe'
12258 shlibpath_var=BEGINLIBPATH
12259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12261 postinstall_cmds='base_file=`basename \$file`~
12262 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12263 dldir=$destdir/`dirname \$dlpath`~
12264 test -d \$dldir || mkdir -p \$dldir~
12265 $install_prog $dir/$dlname \$dldir/$dlname~
12266 chmod a+x \$dldir/$dlname~
12267 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12268 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12269 fi'
12270 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12271 dlpath=$dir/\$dldll~
12272 $RM \$dlpath'
12273 ;;
12274
12275 osf3* | osf4* | osf5*)
12276 version_type=osf
12277 need_lib_prefix=no
12278 need_version=no
12279 soname_spec='$libname$release$shared_ext$major'
12280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12281 shlibpath_var=LD_LIBRARY_PATH
12282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12284 ;;
12285
12286 rdos*)
12287 dynamic_linker=no
12288 ;;
12289
12290 solaris*)
12291 version_type=linux # correct to gnu/linux during the next big refactor
12292 need_lib_prefix=no
12293 need_version=no
12294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12295 soname_spec='$libname$release$shared_ext$major'
12296 shlibpath_var=LD_LIBRARY_PATH
12297 shlibpath_overrides_runpath=yes
12298 hardcode_into_libs=yes
12299 # ldd complains unless libraries are executable
12300 postinstall_cmds='chmod +x $lib'
12301 ;;
12302
12303 sunos4*)
12304 version_type=sunos
12305 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 shlibpath_overrides_runpath=yes
12309 if test yes = "$with_gnu_ld"; then
12310 need_lib_prefix=no
12311 fi
12312 need_version=yes
12313 ;;
12314
12315 sysv4 | sysv4.3*)
12316 version_type=linux # correct to gnu/linux during the next big refactor
12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318 soname_spec='$libname$release$shared_ext$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 case $host_vendor in
12321 sni)
12322 shlibpath_overrides_runpath=no
12323 need_lib_prefix=no
12324 runpath_var=LD_RUN_PATH
12325 ;;
12326 siemens)
12327 need_lib_prefix=no
12328 ;;
12329 motorola)
12330 need_lib_prefix=no
12331 need_version=no
12332 shlibpath_overrides_runpath=no
12333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12334 ;;
12335 esac
12336 ;;
12337
12338 sysv4*MP*)
12339 if test -d /usr/nec; then
12340 version_type=linux # correct to gnu/linux during the next big refactor
12341 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12342 soname_spec='$libname$shared_ext.$major'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 fi
12345 ;;
12346
12347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12348 version_type=sco
12349 need_lib_prefix=no
12350 need_version=no
12351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12352 soname_spec='$libname$release$shared_ext$major'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 shlibpath_overrides_runpath=yes
12355 hardcode_into_libs=yes
12356 if test yes = "$with_gnu_ld"; then
12357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12358 else
12359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12360 case $host_os in
12361 sco3.2v5*)
12362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12363 ;;
12364 esac
12365 fi
12366 sys_lib_dlsearch_path_spec='/usr/lib'
12367 ;;
12368
12369 tpf*)
12370 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12371 version_type=linux # correct to gnu/linux during the next big refactor
12372 need_lib_prefix=no
12373 need_version=no
12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 shlibpath_overrides_runpath=no
12377 hardcode_into_libs=yes
12378 ;;
12379
12380 uts4*)
12381 version_type=linux # correct to gnu/linux during the next big refactor
12382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12383 soname_spec='$libname$release$shared_ext$major'
12384 shlibpath_var=LD_LIBRARY_PATH
12385 ;;
12386
12387 *)
12388 dynamic_linker=no
12389 ;;
12390 esac
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12392 $as_echo "$dynamic_linker" >&6; }
12393 test no = "$dynamic_linker" && can_build_shared=no
12394
12395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12396 if test yes = "$GCC"; then
12397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12398 fi
12399
12400 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12401 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12402 fi
12403
12404 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12405 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12406 fi
12407
12408 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12409 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12410
12411 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12412 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12413
12414 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12415 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12514 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12515 hardcode_action=
12516 if test -n "$hardcode_libdir_flag_spec" ||
12517 test -n "$runpath_var" ||
12518 test yes = "$hardcode_automatic"; then
12519
12520 # We can hardcode non-existent directories.
12521 if test no != "$hardcode_direct" &&
12522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12523 # have to relink, otherwise we might link with an installed library
12524 # when we should be linking with a yet-to-be-installed one
12525 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12526 test no != "$hardcode_minus_L"; then
12527 # Linking always hardcodes the temporary library directory.
12528 hardcode_action=relink
12529 else
12530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12531 hardcode_action=immediate
12532 fi
12533 else
12534 # We cannot hardcode anything, or else we can only hardcode existing
12535 # directories.
12536 hardcode_action=unsupported
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12539 $as_echo "$hardcode_action" >&6; }
12540
12541 if test relink = "$hardcode_action" ||
12542 test yes = "$inherit_rpath"; then
12543 # Fast installation is not supported
12544 enable_fast_install=no
12545 elif test yes = "$shlibpath_overrides_runpath" ||
12546 test no = "$enable_shared"; then
12547 # Fast installation is not necessary
12548 enable_fast_install=needless
12549 fi
12550
12551
12552
12553
12554
12555
12556 if test yes != "$enable_dlopen"; then
12557 enable_dlopen=unknown
12558 enable_dlopen_self=unknown
12559 enable_dlopen_self_static=unknown
12560 else
12561 lt_cv_dlopen=no
12562 lt_cv_dlopen_libs=
12563
12564 case $host_os in
12565 beos*)
12566 lt_cv_dlopen=load_add_on
12567 lt_cv_dlopen_libs=
12568 lt_cv_dlopen_self=yes
12569 ;;
12570
12571 mingw* | pw32* | cegcc*)
12572 lt_cv_dlopen=LoadLibrary
12573 lt_cv_dlopen_libs=
12574 ;;
12575
12576 cygwin*)
12577 lt_cv_dlopen=dlopen
12578 lt_cv_dlopen_libs=
12579 ;;
12580
12581 darwin*)
12582 # if libdl is installed we need to link against it
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12585 if ${ac_cv_lib_dl_dlopen+:} false; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldl $LIBS"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char dlopen ();
12600 int
12601 main ()
12602 {
12603 return dlopen ();
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12609 ac_cv_lib_dl_dlopen=yes
12610 else
12611 ac_cv_lib_dl_dlopen=no
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12618 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12619 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12620 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12621 else
12622
12623 lt_cv_dlopen=dyld
12624 lt_cv_dlopen_libs=
12625 lt_cv_dlopen_self=yes
12626
12627 fi
12628
12629 ;;
12630
12631 tpf*)
12632 # Don't try to run any link tests for TPF. We know it's impossible
12633 # because TPF is a cross-compiler, and we know how we open DSOs.
12634 lt_cv_dlopen=dlopen
12635 lt_cv_dlopen_libs=
12636 lt_cv_dlopen_self=no
12637 ;;
12638
12639 *)
12640 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12641 if test "x$ac_cv_func_shl_load" = xyes; then :
12642 lt_cv_dlopen=shl_load
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12645 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12646 if ${ac_cv_lib_dld_shl_load+:} false; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 ac_check_lib_save_LIBS=$LIBS
12650 LIBS="-ldld $LIBS"
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12657 #ifdef __cplusplus
12658 extern "C"
12659 #endif
12660 char shl_load ();
12661 int
12662 main ()
12663 {
12664 return shl_load ();
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 if ac_fn_c_try_link "$LINENO"; then :
12670 ac_cv_lib_dld_shl_load=yes
12671 else
12672 ac_cv_lib_dld_shl_load=no
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 LIBS=$ac_check_lib_save_LIBS
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12679 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12680 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12681 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12682 else
12683 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12684 if test "x$ac_cv_func_dlopen" = xyes; then :
12685 lt_cv_dlopen=dlopen
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12688 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12689 if ${ac_cv_lib_dl_dlopen+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 ac_check_lib_save_LIBS=$LIBS
12693 LIBS="-ldl $LIBS"
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 char dlopen ();
12704 int
12705 main ()
12706 {
12707 return dlopen ();
12708 ;
12709 return 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_link "$LINENO"; then :
12713 ac_cv_lib_dl_dlopen=yes
12714 else
12715 ac_cv_lib_dl_dlopen=no
12716 fi
12717 rm -f core conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12720 fi
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12723 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12724 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12727 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12728 if ${ac_cv_lib_svld_dlopen+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-lsvld $LIBS"
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12739 #ifdef __cplusplus
12740 extern "C"
12741 #endif
12742 char dlopen ();
12743 int
12744 main ()
12745 {
12746 return dlopen ();
12747 ;
12748 return 0;
12749 }
12750 _ACEOF
12751 if ac_fn_c_try_link "$LINENO"; then :
12752 ac_cv_lib_svld_dlopen=yes
12753 else
12754 ac_cv_lib_svld_dlopen=no
12755 fi
12756 rm -f core conftest.err conftest.$ac_objext \
12757 conftest$ac_exeext conftest.$ac_ext
12758 LIBS=$ac_check_lib_save_LIBS
12759 fi
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12761 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12762 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12763 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12766 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12767 if ${ac_cv_lib_dld_dld_link+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-ldld $LIBS"
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774
12775 /* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 char dld_link ();
12782 int
12783 main ()
12784 {
12785 return dld_link ();
12786 ;
12787 return 0;
12788 }
12789 _ACEOF
12790 if ac_fn_c_try_link "$LINENO"; then :
12791 ac_cv_lib_dld_dld_link=yes
12792 else
12793 ac_cv_lib_dld_dld_link=no
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS
12798 fi
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12800 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12801 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12802 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12803 fi
12804
12805
12806 fi
12807
12808
12809 fi
12810
12811
12812 fi
12813
12814
12815 fi
12816
12817
12818 fi
12819
12820 ;;
12821 esac
12822
12823 if test no = "$lt_cv_dlopen"; then
12824 enable_dlopen=no
12825 else
12826 enable_dlopen=yes
12827 fi
12828
12829 case $lt_cv_dlopen in
12830 dlopen)
12831 save_CPPFLAGS=$CPPFLAGS
12832 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12833
12834 save_LDFLAGS=$LDFLAGS
12835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12836
12837 save_LIBS=$LIBS
12838 LIBS="$lt_cv_dlopen_libs $LIBS"
12839
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12841 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12842 if ${lt_cv_dlopen_self+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 if test yes = "$cross_compiling"; then :
12846 lt_cv_dlopen_self=cross
12847 else
12848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12849 lt_status=$lt_dlunknown
12850 cat > conftest.$ac_ext <<_LT_EOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12853
12854 #if HAVE_DLFCN_H
12855 #include <dlfcn.h>
12856 #endif
12857
12858 #include <stdio.h>
12859
12860 #ifdef RTLD_GLOBAL
12861 # define LT_DLGLOBAL RTLD_GLOBAL
12862 #else
12863 # ifdef DL_GLOBAL
12864 # define LT_DLGLOBAL DL_GLOBAL
12865 # else
12866 # define LT_DLGLOBAL 0
12867 # endif
12868 #endif
12869
12870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12871 find out it does not work in some platform. */
12872 #ifndef LT_DLLAZY_OR_NOW
12873 # ifdef RTLD_LAZY
12874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12875 # else
12876 # ifdef DL_LAZY
12877 # define LT_DLLAZY_OR_NOW DL_LAZY
12878 # else
12879 # ifdef RTLD_NOW
12880 # define LT_DLLAZY_OR_NOW RTLD_NOW
12881 # else
12882 # ifdef DL_NOW
12883 # define LT_DLLAZY_OR_NOW DL_NOW
12884 # else
12885 # define LT_DLLAZY_OR_NOW 0
12886 # endif
12887 # endif
12888 # endif
12889 # endif
12890 #endif
12891
12892 /* When -fvisibility=hidden is used, assume the code has been annotated
12893 correspondingly for the symbols needed. */
12894 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12895 int fnord () __attribute__((visibility("default")));
12896 #endif
12897
12898 int fnord () { return 42; }
12899 int main ()
12900 {
12901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12902 int status = $lt_dlunknown;
12903
12904 if (self)
12905 {
12906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12907 else
12908 {
12909 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12910 else puts (dlerror ());
12911 }
12912 /* dlclose (self); */
12913 }
12914 else
12915 puts (dlerror ());
12916
12917 return status;
12918 }
12919 _LT_EOF
12920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12921 (eval $ac_link) 2>&5
12922 ac_status=$?
12923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12924 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12925 (./conftest; exit; ) >&5 2>/dev/null
12926 lt_status=$?
12927 case x$lt_status in
12928 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12929 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12930 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12931 esac
12932 else :
12933 # compilation failed
12934 lt_cv_dlopen_self=no
12935 fi
12936 fi
12937 rm -fr conftest*
12938
12939
12940 fi
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12942 $as_echo "$lt_cv_dlopen_self" >&6; }
12943
12944 if test yes = "$lt_cv_dlopen_self"; then
12945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12947 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12948 if ${lt_cv_dlopen_self_static+:} false; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 if test yes = "$cross_compiling"; then :
12952 lt_cv_dlopen_self_static=cross
12953 else
12954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12955 lt_status=$lt_dlunknown
12956 cat > conftest.$ac_ext <<_LT_EOF
12957 #line $LINENO "configure"
12958 #include "confdefs.h"
12959
12960 #if HAVE_DLFCN_H
12961 #include <dlfcn.h>
12962 #endif
12963
12964 #include <stdio.h>
12965
12966 #ifdef RTLD_GLOBAL
12967 # define LT_DLGLOBAL RTLD_GLOBAL
12968 #else
12969 # ifdef DL_GLOBAL
12970 # define LT_DLGLOBAL DL_GLOBAL
12971 # else
12972 # define LT_DLGLOBAL 0
12973 # endif
12974 #endif
12975
12976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12977 find out it does not work in some platform. */
12978 #ifndef LT_DLLAZY_OR_NOW
12979 # ifdef RTLD_LAZY
12980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12981 # else
12982 # ifdef DL_LAZY
12983 # define LT_DLLAZY_OR_NOW DL_LAZY
12984 # else
12985 # ifdef RTLD_NOW
12986 # define LT_DLLAZY_OR_NOW RTLD_NOW
12987 # else
12988 # ifdef DL_NOW
12989 # define LT_DLLAZY_OR_NOW DL_NOW
12990 # else
12991 # define LT_DLLAZY_OR_NOW 0
12992 # endif
12993 # endif
12994 # endif
12995 # endif
12996 #endif
12997
12998 /* When -fvisibility=hidden is used, assume the code has been annotated
12999 correspondingly for the symbols needed. */
13000 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13001 int fnord () __attribute__((visibility("default")));
13002 #endif
13003
13004 int fnord () { return 42; }
13005 int main ()
13006 {
13007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13008 int status = $lt_dlunknown;
13009
13010 if (self)
13011 {
13012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13013 else
13014 {
13015 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13016 else puts (dlerror ());
13017 }
13018 /* dlclose (self); */
13019 }
13020 else
13021 puts (dlerror ());
13022
13023 return status;
13024 }
13025 _LT_EOF
13026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13027 (eval $ac_link) 2>&5
13028 ac_status=$?
13029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13030 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13031 (./conftest; exit; ) >&5 2>/dev/null
13032 lt_status=$?
13033 case x$lt_status in
13034 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13035 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13036 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13037 esac
13038 else :
13039 # compilation failed
13040 lt_cv_dlopen_self_static=no
13041 fi
13042 fi
13043 rm -fr conftest*
13044
13045
13046 fi
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13048 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13049 fi
13050
13051 CPPFLAGS=$save_CPPFLAGS
13052 LDFLAGS=$save_LDFLAGS
13053 LIBS=$save_LIBS
13054 ;;
13055 esac
13056
13057 case $lt_cv_dlopen_self in
13058 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13059 *) enable_dlopen_self=unknown ;;
13060 esac
13061
13062 case $lt_cv_dlopen_self_static in
13063 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13064 *) enable_dlopen_self_static=unknown ;;
13065 esac
13066 fi
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084 striplib=
13085 old_striplib=
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13087 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13088 if test -z "$STRIP"; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13091 else
13092 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13093 old_striplib="$STRIP --strip-debug"
13094 striplib="$STRIP --strip-unneeded"
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13096 $as_echo "yes" >&6; }
13097 else
13098 case $host_os in
13099 darwin*)
13100 # FIXME - insert some real tests, host_os isn't really good enough
13101 striplib="$STRIP -x"
13102 old_striplib="$STRIP -S"
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; }
13105 ;;
13106 freebsd*)
13107 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13108 old_striplib="$STRIP --strip-debug"
13109 striplib="$STRIP --strip-unneeded"
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13111 $as_echo "yes" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116 ;;
13117 *)
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13120 ;;
13121 esac
13122 fi
13123 fi
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136 # Report what library types will actually be built
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13138 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13140 $as_echo "$can_build_shared" >&6; }
13141
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13143 $as_echo_n "checking whether to build shared libraries... " >&6; }
13144 test no = "$can_build_shared" && enable_shared=no
13145
13146 # On AIX, shared libraries and static libraries use the same namespace, and
13147 # are all built from PIC.
13148 case $host_os in
13149 aix3*)
13150 test yes = "$enable_shared" && enable_static=no
13151 if test -n "$RANLIB"; then
13152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13153 postinstall_cmds='$RANLIB $lib'
13154 fi
13155 ;;
13156
13157 aix[4-9]*)
13158 if test ia64 != "$host_cpu"; then
13159 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13160 yes,aix,yes) ;; # shared object as lib.so file only
13161 yes,svr4,*) ;; # shared object as lib.so archive member only
13162 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13163 esac
13164 fi
13165 ;;
13166 esac
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13168 $as_echo "$enable_shared" >&6; }
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13171 $as_echo_n "checking whether to build static libraries... " >&6; }
13172 # Make sure either enable_shared or enable_static is yes.
13173 test yes = "$enable_shared" || enable_static=yes
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13175 $as_echo "$enable_static" >&6; }
13176
13177
13178
13179
13180 fi
13181 ac_ext=c
13182 ac_cpp='$CPP $CPPFLAGS'
13183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
13187 CC=$lt_save_CC
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203 ac_config_commands="$ac_config_commands libtool"
13204
13205
13206
13207
13208 # Only expand once:
13209
13210
13211
13212
13213 $as_echo "#define SP_PACKAGE_VERSION_MAJOR 0" >>confdefs.h
13214
13215
13216 $as_echo "#define SP_PACKAGE_VERSION_MINOR 1" >>confdefs.h
13217
13218
13219 $as_echo "#define SP_PACKAGE_VERSION_MICRO 2" >>confdefs.h
13220
13221
13222 $as_echo "#define SP_PACKAGE_VERSION_STRING \"0.1.2\"" >>confdefs.h
13223
13224 SP_PACKAGE_VERSION=0.1.2
13225
13226
13227 # Library version for libserialport (NOT the same as the package version).
13228 # Carefully read the libtool docs before updating these numbers!
13229 # The algorithm for determining which number to change (and how) is nontrivial!
13230 # http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
13231 SP_LIB_VERSION_CURRENT=1
13232 SP_LIB_VERSION_REVISION=1
13233 SP_LIB_VERSION_AGE=1
13234 SP_LIB_VERSION="$SP_LIB_VERSION_CURRENT:$SP_LIB_VERSION_REVISION:$SP_LIB_VERSION_AGE"
13235
13236
13237
13238 cat >>confdefs.h <<_ACEOF
13239 #define SP_LIB_VERSION_CURRENT $SP_LIB_VERSION_CURRENT
13240 _ACEOF
13241
13242
13243 cat >>confdefs.h <<_ACEOF
13244 #define SP_LIB_VERSION_REVISION $SP_LIB_VERSION_REVISION
13245 _ACEOF
13246
13247
13248 cat >>confdefs.h <<_ACEOF
13249 #define SP_LIB_VERSION_AGE $SP_LIB_VERSION_AGE
13250 _ACEOF
13251
13252
13253 cat >>confdefs.h <<_ACEOF
13254 #define SP_LIB_VERSION_STRING "$SP_LIB_VERSION"
13255 _ACEOF
13256
13257
13258 if test -z "${host_os##linux*}" || test -z "${host_os##uclinux*}"; then
13259 LINUX_TRUE=
13260 LINUX_FALSE='#'
13261 else
13262 LINUX_TRUE='#'
13263 LINUX_FALSE=
13264 fi
13265
13266 if test -z "${host_os##mingw*}"; then
13267 WIN32_TRUE=
13268 WIN32_FALSE='#'
13269 else
13270 WIN32_TRUE='#'
13271 WIN32_FALSE=
13272 fi
13273
13274 if test -z "${host_os##darwin*}"; then
13275 MACOSX_TRUE=
13276 MACOSX_FALSE='#'
13277 else
13278 MACOSX_TRUE='#'
13279 MACOSX_FALSE=
13280 fi
13281
13282 if test -z "${host_os##freebsd*}"; then
13283 FREEBSD_TRUE=
13284 FREEBSD_FALSE='#'
13285 else
13286 FREEBSD_TRUE='#'
13287 FREEBSD_FALSE=
13288 fi
13289
13290
13291 if test -z "$WIN32_TRUE"; then :
13292 SP_LIBS='-lsetupapi'
13293 else
13294 SP_LIBS=
13295 fi
13296
13297
13298 if test -z "$FREEBSD_TRUE"; then :
13299 SP_PKGLIBS='libusb-2.0'
13300 else
13301 SP_PKGLIBS=
13302 fi
13303
13304
13305 if test -z "$MACOSX_TRUE"; then :
13306 ac_fn_c_check_header_mongrel "$LINENO" "IOKit/IOKitLib.h" "ac_cv_header_IOKit_IOKitLib_h" "$ac_includes_default"
13307 if test "x$ac_cv_header_IOKit_IOKitLib_h" = xyes; then :
13308
13309 else
13310 as_fn_error $? "IOKit/IOKitLib.h not found" "$LINENO" 5
13311 fi
13312
13313
13314 fi
13315
13316 case $host_os in #(
13317 linux*|darwin*|mingw*|freebsd*) :
13318 ;; #(
13319 *) :
13320
13321
13322 $as_echo "#define NO_ENUMERATION 1" >>confdefs.h
13323
13324
13325 $as_echo "#define NO_PORT_METADATA 1" >>confdefs.h
13326
13327 ;;
13328 esac
13329
13330 # Check whether --enable-largefile was given.
13331 if test "${enable_largefile+set}" = set; then :
13332 enableval=$enable_largefile;
13333 fi
13334
13335 if test "$enable_largefile" != no; then
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13338 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13339 if ${ac_cv_sys_largefile_CC+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 ac_cv_sys_largefile_CC=no
13343 if test "$GCC" != yes; then
13344 ac_save_CC=$CC
13345 while :; do
13346 # IRIX 6.2 and later do not support large files by default,
13347 # so use the C compiler's -n32 option if that helps.
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350 #include <sys/types.h>
13351 /* Check that off_t can represent 2**63 - 1 correctly.
13352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13353 since some C++ compilers masquerading as C compilers
13354 incorrectly reject 9223372036854775807. */
13355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13357 && LARGE_OFF_T % 2147483647 == 1)
13358 ? 1 : -1];
13359 int
13360 main ()
13361 {
13362
13363 ;
13364 return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_compile "$LINENO"; then :
13368 break
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext
13371 CC="$CC -n32"
13372 if ac_fn_c_try_compile "$LINENO"; then :
13373 ac_cv_sys_largefile_CC=' -n32'; break
13374 fi
13375 rm -f core conftest.err conftest.$ac_objext
13376 break
13377 done
13378 CC=$ac_save_CC
13379 rm -f conftest.$ac_ext
13380 fi
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13383 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13384 if test "$ac_cv_sys_largefile_CC" != no; then
13385 CC=$CC$ac_cv_sys_largefile_CC
13386 fi
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13389 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13390 if ${ac_cv_sys_file_offset_bits+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 while :; do
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 #include <sys/types.h>
13397 /* Check that off_t can represent 2**63 - 1 correctly.
13398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13399 since some C++ compilers masquerading as C compilers
13400 incorrectly reject 9223372036854775807. */
13401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13403 && LARGE_OFF_T % 2147483647 == 1)
13404 ? 1 : -1];
13405 int
13406 main ()
13407 {
13408
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"; then :
13414 ac_cv_sys_file_offset_bits=no; break
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 #define _FILE_OFFSET_BITS 64
13420 #include <sys/types.h>
13421 /* Check that off_t can represent 2**63 - 1 correctly.
13422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13423 since some C++ compilers masquerading as C compilers
13424 incorrectly reject 9223372036854775807. */
13425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13427 && LARGE_OFF_T % 2147483647 == 1)
13428 ? 1 : -1];
13429 int
13430 main ()
13431 {
13432
13433 ;
13434 return 0;
13435 }
13436 _ACEOF
13437 if ac_fn_c_try_compile "$LINENO"; then :
13438 ac_cv_sys_file_offset_bits=64; break
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 ac_cv_sys_file_offset_bits=unknown
13442 break
13443 done
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13446 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13447 case $ac_cv_sys_file_offset_bits in #(
13448 no | unknown) ;;
13449 *)
13450 cat >>confdefs.h <<_ACEOF
13451 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13452 _ACEOF
13453 ;;
13454 esac
13455 rm -rf conftest*
13456 if test $ac_cv_sys_file_offset_bits = unknown; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13458 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13459 if ${ac_cv_sys_large_files+:} false; then :
13460 $as_echo_n "(cached) " >&6
13461 else
13462 while :; do
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <sys/types.h>
13466 /* Check that off_t can represent 2**63 - 1 correctly.
13467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13468 since some C++ compilers masquerading as C compilers
13469 incorrectly reject 9223372036854775807. */
13470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13472 && LARGE_OFF_T % 2147483647 == 1)
13473 ? 1 : -1];
13474 int
13475 main ()
13476 {
13477
13478 ;
13479 return 0;
13480 }
13481 _ACEOF
13482 if ac_fn_c_try_compile "$LINENO"; then :
13483 ac_cv_sys_large_files=no; break
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #define _LARGE_FILES 1
13489 #include <sys/types.h>
13490 /* Check that off_t can represent 2**63 - 1 correctly.
13491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13492 since some C++ compilers masquerading as C compilers
13493 incorrectly reject 9223372036854775807. */
13494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13496 && LARGE_OFF_T % 2147483647 == 1)
13497 ? 1 : -1];
13498 int
13499 main ()
13500 {
13501
13502 ;
13503 return 0;
13504 }
13505 _ACEOF
13506 if ac_fn_c_try_compile "$LINENO"; then :
13507 ac_cv_sys_large_files=1; break
13508 fi
13509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510 ac_cv_sys_large_files=unknown
13511 break
13512 done
13513 fi
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13515 $as_echo "$ac_cv_sys_large_files" >&6; }
13516 case $ac_cv_sys_large_files in #(
13517 no | unknown) ;;
13518 *)
13519 cat >>confdefs.h <<_ACEOF
13520 #define _LARGE_FILES $ac_cv_sys_large_files
13521 _ACEOF
13522 ;;
13523 esac
13524 rm -rf conftest*
13525 fi
13526
13527
13528 fi
13529
13530
13531 # Define size_t if not defined as standard.
13532 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13533 if test "x$ac_cv_type_size_t" = xyes; then :
13534
13535 else
13536
13537 cat >>confdefs.h <<_ACEOF
13538 #define size_t unsigned int
13539 _ACEOF
13540
13541 fi
13542
13543
13544 # Check for specific termios structures.
13545 ac_fn_c_check_type "$LINENO" "struct termios2" "ac_cv_type_struct_termios2" "#include <linux/termios.h>
13546 "
13547 if test "x$ac_cv_type_struct_termios2" = xyes; then :
13548
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_STRUCT_TERMIOS2 1
13551 _ACEOF
13552
13553
13554 fi
13555
13556 ac_fn_c_check_member "$LINENO" "struct termios" "c_ispeed" "ac_cv_member_struct_termios_c_ispeed" "#include <linux/termios.h>
13557 "
13558 if test "x$ac_cv_member_struct_termios_c_ispeed" = xyes; then :
13559
13560 cat >>confdefs.h <<_ACEOF
13561 #define HAVE_STRUCT_TERMIOS_C_ISPEED 1
13562 _ACEOF
13563
13564
13565 fi
13566 ac_fn_c_check_member "$LINENO" "struct termios" "c_ospeed" "ac_cv_member_struct_termios_c_ospeed" "#include <linux/termios.h>
13567 "
13568 if test "x$ac_cv_member_struct_termios_c_ospeed" = xyes; then :
13569
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_STRUCT_TERMIOS_C_OSPEED 1
13572 _ACEOF
13573
13574
13575 fi
13576 ac_fn_c_check_member "$LINENO" "struct termios2" "c_ispeed" "ac_cv_member_struct_termios2_c_ispeed" "#include <linux/termios.h>
13577 "
13578 if test "x$ac_cv_member_struct_termios2_c_ispeed" = xyes; then :
13579
13580 cat >>confdefs.h <<_ACEOF
13581 #define HAVE_STRUCT_TERMIOS2_C_ISPEED 1
13582 _ACEOF
13583
13584
13585 fi
13586 ac_fn_c_check_member "$LINENO" "struct termios2" "c_ospeed" "ac_cv_member_struct_termios2_c_ospeed" "#include <linux/termios.h>
13587 "
13588 if test "x$ac_cv_member_struct_termios2_c_ospeed" = xyes; then :
13589
13590 cat >>confdefs.h <<_ACEOF
13591 #define HAVE_STRUCT_TERMIOS2_C_OSPEED 1
13592 _ACEOF
13593
13594
13595 fi
13596
13597
13598 # Check for the BOTHER definition, needed for setting arbitrary baud rates.
13599 # We can't just #ifdef BOTHER in the code, because of the separation between
13600 # code using libc headers and code using kernel termios.h headers.
13601 ac_fn_c_check_decl "$LINENO" "BOTHER" "ac_cv_have_decl_BOTHER" "#include <linux/termios.h>
13602 "
13603 if test "x$ac_cv_have_decl_BOTHER" = xyes; then :
13604 ac_have_decl=1
13605 else
13606 ac_have_decl=0
13607 fi
13608
13609 cat >>confdefs.h <<_ACEOF
13610 #define HAVE_DECL_BOTHER $ac_have_decl
13611 _ACEOF
13612
13613
13614 # Check for serial_struct.
13615 ac_fn_c_check_type "$LINENO" "struct serial_struct" "ac_cv_type_struct_serial_struct" "#include <linux/serial.h>
13616 "
13617 if test "x$ac_cv_type_struct_serial_struct" = xyes; then :
13618
13619 cat >>confdefs.h <<_ACEOF
13620 #define HAVE_STRUCT_SERIAL_STRUCT 1
13621 _ACEOF
13622
13623
13624 fi
13625
13626
13627 # Check for realpath().
13628 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
13629 if test "x$ac_cv_func_realpath" = xyes; then :
13630
13631 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
13632
13633 fi
13634
13635
13636 # Check for flock().
13637 ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
13638 if test "x$ac_cv_header_sys_file_h" = xyes; then :
13639
13640 $as_echo "#define HAVE_SYS_FILE_H 1" >>confdefs.h
13641
13642 fi
13643
13644
13645 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
13646 if test "x$ac_cv_func_flock" = xyes; then :
13647
13648 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
13649
13650 fi
13651
13652
13653 # Check for clock_gettime().
13654 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13655 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13656
13657 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13658
13659 fi
13660
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility control" >&5
13663 $as_echo_n "checking for visibility control... " >&6; }
13664 if ${sp_cv_visibility_control+:} false; then :
13665 $as_echo_n "(cached) " >&6
13666 else
13667
13668 sp_saved_CFLAGS=$CFLAGS
13669 CFLAGS="$CFLAGS -Werror"
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 __attribute__((visibility("hidden"))) void foo(void) {}
13673 _ACEOF
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675 sp_cv_visibility_control=attribute
13676 else
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 __declspec(dllexport) void foo(void) {}
13680 _ACEOF
13681 if ac_fn_c_try_compile "$LINENO"; then :
13682 sp_cv_visibility_control=declspec
13683 else
13684 sp_cv_visibility_control=none
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 CFLAGS=$sp_saved_CFLAGS
13690
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sp_cv_visibility_control" >&5
13693 $as_echo "$sp_cv_visibility_control" >&6; }
13694 case $sp_cv_visibility_control in #(
13695 attribute) :
13696 SP_API='__attribute__((visibility("default")))'
13697 SP_PRIV='__attribute__((visibility("hidden")))' ;; #(
13698 declspec) :
13699 SP_API='__declspec(dllexport)' SP_PRIV= ;; #(
13700 *) :
13701 SP_API= SP_PRIV= ;;
13702 esac
13703
13704 cat >>confdefs.h <<_ACEOF
13705 #define SP_API $SP_API
13706 _ACEOF
13707
13708
13709 cat >>confdefs.h <<_ACEOF
13710 #define SP_PRIV $SP_PRIV
13711 _ACEOF
13712
13713
13714 ac_config_files="$ac_config_files Makefile libserialport.pc"
13715
13716
13717 cat >confcache <<\_ACEOF
13718 # This file is a shell script that caches the results of configure
13719 # tests run on this system so they can be shared between configure
13720 # scripts and configure runs, see configure's option --config-cache.
13721 # It is not useful on other systems. If it contains results you don't
13722 # want to keep, you may remove or edit it.
13723 #
13724 # config.status only pays attention to the cache file if you give it
13725 # the --recheck option to rerun configure.
13726 #
13727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13729 # following values.
13730
13731 _ACEOF
13732
13733 # The following way of writing the cache mishandles newlines in values,
13734 # but we know of no workaround that is simple, portable, and efficient.
13735 # So, we kill variables containing newlines.
13736 # Ultrix sh set writes to stderr and can't be redirected directly,
13737 # and sets the high bit in the cache file unless we assign to the vars.
13738 (
13739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13740 eval ac_val=\$$ac_var
13741 case $ac_val in #(
13742 *${as_nl}*)
13743 case $ac_var in #(
13744 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13745 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13746 esac
13747 case $ac_var in #(
13748 _ | IFS | as_nl) ;; #(
13749 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13750 *) { eval $ac_var=; unset $ac_var;} ;;
13751 esac ;;
13752 esac
13753 done
13754
13755 (set) 2>&1 |
13756 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13757 *${as_nl}ac_space=\ *)
13758 # `set' does not quote correctly, so add quotes: double-quote
13759 # substitution turns \\\\ into \\, and sed turns \\ into \.
13760 sed -n \
13761 "s/'/'\\\\''/g;
13762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13763 ;; #(
13764 *)
13765 # `set' quotes correctly as required by POSIX, so do not add quotes.
13766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13767 ;;
13768 esac |
13769 sort
13770 ) |
13771 sed '
13772 /^ac_cv_env_/b end
13773 t clear
13774 :clear
13775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13776 t end
13777 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13778 :end' >>confcache
13779 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13780 if test -w "$cache_file"; then
13781 if test "x$cache_file" != "x/dev/null"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13783 $as_echo "$as_me: updating cache $cache_file" >&6;}
13784 if test ! -f "$cache_file" || test -h "$cache_file"; then
13785 cat confcache >"$cache_file"
13786 else
13787 case $cache_file in #(
13788 */* | ?:*)
13789 mv -f confcache "$cache_file"$$ &&
13790 mv -f "$cache_file"$$ "$cache_file" ;; #(
13791 *)
13792 mv -f confcache "$cache_file" ;;
13793 esac
13794 fi
13795 fi
13796 else
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13798 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13799 fi
13800 fi
13801 rm -f confcache
13802
13803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13804 # Let make expand exec_prefix.
13805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13806
13807 DEFS=-DHAVE_CONFIG_H
13808
13809 ac_libobjs=
13810 ac_ltlibobjs=
13811 U=
13812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13813 # 1. Remove the extension, and $U if already installed.
13814 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13815 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13817 # will be set to the directory where LIBOBJS objects are built.
13818 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13819 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13820 done
13821 LIBOBJS=$ac_libobjs
13822
13823 LTLIBOBJS=$ac_ltlibobjs
13824
13825
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13827 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13828 if test -n "$am_sleep_pid"; then
13829 # Hide warnings about reused PIDs.
13830 wait $am_sleep_pid 2>/dev/null
13831 fi
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13833 $as_echo "done" >&6; }
13834 if test -n "$EXEEXT"; then
13835 am__EXEEXT_TRUE=
13836 am__EXEEXT_FALSE='#'
13837 else
13838 am__EXEEXT_TRUE='#'
13839 am__EXEEXT_FALSE=
13840 fi
13841
13842 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13843 as_fn_error $? "conditional \"AMDEP\" was never defined.
13844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13845 fi
13846 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13847 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13849 fi
13850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13851 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13853 fi
13854 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
13855 as_fn_error $? "conditional \"LINUX\" was never defined.
13856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13857 fi
13858 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
13859 as_fn_error $? "conditional \"WIN32\" was never defined.
13860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13861 fi
13862 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
13863 as_fn_error $? "conditional \"MACOSX\" was never defined.
13864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13865 fi
13866 if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
13867 as_fn_error $? "conditional \"FREEBSD\" was never defined.
13868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13869 fi
13870
13871 : "${CONFIG_STATUS=./config.status}"
13872 ac_write_fail=0
13873 ac_clean_files_save=$ac_clean_files
13874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13876 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13877 as_write_fail=0
13878 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13879 #! $SHELL
13880 # Generated by $as_me.
13881 # Run this file to recreate the current configuration.
13882 # Compiler output produced by configure, useful for debugging
13883 # configure, is in config.log if it exists.
13884
13885 debug=false
13886 ac_cs_recheck=false
13887 ac_cs_silent=false
13888
13889 SHELL=\${CONFIG_SHELL-$SHELL}
13890 export SHELL
13891 _ASEOF
13892 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13893 ## -------------------- ##
13894 ## M4sh Initialization. ##
13895 ## -------------------- ##
13896
13897 # Be more Bourne compatible
13898 DUALCASE=1; export DUALCASE # for MKS sh
13899 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13900 emulate sh
13901 NULLCMD=:
13902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13903 # is contrary to our usage. Disable this feature.
13904 alias -g '${1+"$@"}'='"$@"'
13905 setopt NO_GLOB_SUBST
13906 else
13907 case `(set -o) 2>/dev/null` in #(
13908 *posix*) :
13909 set -o posix ;; #(
13910 *) :
13911 ;;
13912 esac
13913 fi
13914
13915
13916 as_nl='
13917 '
13918 export as_nl
13919 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13920 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13923 # Prefer a ksh shell builtin over an external printf program on Solaris,
13924 # but without wasting forks for bash or zsh.
13925 if test -z "$BASH_VERSION$ZSH_VERSION" \
13926 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13927 as_echo='print -r --'
13928 as_echo_n='print -rn --'
13929 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13930 as_echo='printf %s\n'
13931 as_echo_n='printf %s'
13932 else
13933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13934 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13935 as_echo_n='/usr/ucb/echo -n'
13936 else
13937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13938 as_echo_n_body='eval
13939 arg=$1;
13940 case $arg in #(
13941 *"$as_nl"*)
13942 expr "X$arg" : "X\\(.*\\)$as_nl";
13943 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13944 esac;
13945 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13946 '
13947 export as_echo_n_body
13948 as_echo_n='sh -c $as_echo_n_body as_echo'
13949 fi
13950 export as_echo_body
13951 as_echo='sh -c $as_echo_body as_echo'
13952 fi
13953
13954 # The user is always right.
13955 if test "${PATH_SEPARATOR+set}" != set; then
13956 PATH_SEPARATOR=:
13957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13959 PATH_SEPARATOR=';'
13960 }
13961 fi
13962
13963
13964 # IFS
13965 # We need space, tab and new line, in precisely that order. Quoting is
13966 # there to prevent editors from complaining about space-tab.
13967 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13968 # splitting by setting IFS to empty value.)
13969 IFS=" "" $as_nl"
13970
13971 # Find who we are. Look in the path if we contain no directory separator.
13972 as_myself=
13973 case $0 in #((
13974 *[\\/]* ) as_myself=$0 ;;
13975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13981 done
13982 IFS=$as_save_IFS
13983
13984 ;;
13985 esac
13986 # We did not find ourselves, most probably we were run as `sh COMMAND'
13987 # in which case we are not to be found in the path.
13988 if test "x$as_myself" = x; then
13989 as_myself=$0
13990 fi
13991 if test ! -f "$as_myself"; then
13992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13993 exit 1
13994 fi
13995
13996 # Unset variables that we do not need and which cause bugs (e.g. in
13997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13998 # suppresses any "Segmentation fault" message there. '((' could
13999 # trigger a bug in pdksh 5.2.14.
14000 for as_var in BASH_ENV ENV MAIL MAILPATH
14001 do eval test x\${$as_var+set} = xset \
14002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14003 done
14004 PS1='$ '
14005 PS2='> '
14006 PS4='+ '
14007
14008 # NLS nuisances.
14009 LC_ALL=C
14010 export LC_ALL
14011 LANGUAGE=C
14012 export LANGUAGE
14013
14014 # CDPATH.
14015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14016
14017
14018 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14019 # ----------------------------------------
14020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14022 # script with STATUS, using 1 if that was 0.
14023 as_fn_error ()
14024 {
14025 as_status=$1; test $as_status -eq 0 && as_status=1
14026 if test "$4"; then
14027 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14029 fi
14030 $as_echo "$as_me: error: $2" >&2
14031 as_fn_exit $as_status
14032 } # as_fn_error
14033
14034
14035 # as_fn_set_status STATUS
14036 # -----------------------
14037 # Set $? to STATUS, without forking.
14038 as_fn_set_status ()
14039 {
14040 return $1
14041 } # as_fn_set_status
14042
14043 # as_fn_exit STATUS
14044 # -----------------
14045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14046 as_fn_exit ()
14047 {
14048 set +e
14049 as_fn_set_status $1
14050 exit $1
14051 } # as_fn_exit
14052
14053 # as_fn_unset VAR
14054 # ---------------
14055 # Portably unset VAR.
14056 as_fn_unset ()
14057 {
14058 { eval $1=; unset $1;}
14059 }
14060 as_unset=as_fn_unset
14061 # as_fn_append VAR VALUE
14062 # ----------------------
14063 # Append the text in VALUE to the end of the definition contained in VAR. Take
14064 # advantage of any shell optimizations that allow amortized linear growth over
14065 # repeated appends, instead of the typical quadratic growth present in naive
14066 # implementations.
14067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14068 eval 'as_fn_append ()
14069 {
14070 eval $1+=\$2
14071 }'
14072 else
14073 as_fn_append ()
14074 {
14075 eval $1=\$$1\$2
14076 }
14077 fi # as_fn_append
14078
14079 # as_fn_arith ARG...
14080 # ------------------
14081 # Perform arithmetic evaluation on the ARGs, and store the result in the
14082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14083 # must be portable across $(()) and expr.
14084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14085 eval 'as_fn_arith ()
14086 {
14087 as_val=$(( $* ))
14088 }'
14089 else
14090 as_fn_arith ()
14091 {
14092 as_val=`expr "$@" || test $? -eq 1`
14093 }
14094 fi # as_fn_arith
14095
14096
14097 if expr a : '\(a\)' >/dev/null 2>&1 &&
14098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14099 as_expr=expr
14100 else
14101 as_expr=false
14102 fi
14103
14104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14105 as_basename=basename
14106 else
14107 as_basename=false
14108 fi
14109
14110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14111 as_dirname=dirname
14112 else
14113 as_dirname=false
14114 fi
14115
14116 as_me=`$as_basename -- "$0" ||
14117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14118 X"$0" : 'X\(//\)$' \| \
14119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14120 $as_echo X/"$0" |
14121 sed '/^.*\/\([^/][^/]*\)\/*$/{
14122 s//\1/
14123 q
14124 }
14125 /^X\/\(\/\/\)$/{
14126 s//\1/
14127 q
14128 }
14129 /^X\/\(\/\).*/{
14130 s//\1/
14131 q
14132 }
14133 s/.*/./; q'`
14134
14135 # Avoid depending upon Character Ranges.
14136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14139 as_cr_digits='0123456789'
14140 as_cr_alnum=$as_cr_Letters$as_cr_digits
14141
14142 ECHO_C= ECHO_N= ECHO_T=
14143 case `echo -n x` in #(((((
14144 -n*)
14145 case `echo 'xy\c'` in
14146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14147 xy) ECHO_C='\c';;
14148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14149 ECHO_T=' ';;
14150 esac;;
14151 *)
14152 ECHO_N='-n';;
14153 esac
14154
14155 rm -f conf$$ conf$$.exe conf$$.file
14156 if test -d conf$$.dir; then
14157 rm -f conf$$.dir/conf$$.file
14158 else
14159 rm -f conf$$.dir
14160 mkdir conf$$.dir 2>/dev/null
14161 fi
14162 if (echo >conf$$.file) 2>/dev/null; then
14163 if ln -s conf$$.file conf$$ 2>/dev/null; then
14164 as_ln_s='ln -s'
14165 # ... but there are two gotchas:
14166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14168 # In both cases, we have to default to `cp -pR'.
14169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14170 as_ln_s='cp -pR'
14171 elif ln conf$$.file conf$$ 2>/dev/null; then
14172 as_ln_s=ln
14173 else
14174 as_ln_s='cp -pR'
14175 fi
14176 else
14177 as_ln_s='cp -pR'
14178 fi
14179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14180 rmdir conf$$.dir 2>/dev/null
14181
14182
14183 # as_fn_mkdir_p
14184 # -------------
14185 # Create "$as_dir" as a directory, including parents if necessary.
14186 as_fn_mkdir_p ()
14187 {
14188
14189 case $as_dir in #(
14190 -*) as_dir=./$as_dir;;
14191 esac
14192 test -d "$as_dir" || eval $as_mkdir_p || {
14193 as_dirs=
14194 while :; do
14195 case $as_dir in #(
14196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14197 *) as_qdir=$as_dir;;
14198 esac
14199 as_dirs="'$as_qdir' $as_dirs"
14200 as_dir=`$as_dirname -- "$as_dir" ||
14201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14202 X"$as_dir" : 'X\(//\)[^/]' \| \
14203 X"$as_dir" : 'X\(//\)$' \| \
14204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14205 $as_echo X"$as_dir" |
14206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14207 s//\1/
14208 q
14209 }
14210 /^X\(\/\/\)[^/].*/{
14211 s//\1/
14212 q
14213 }
14214 /^X\(\/\/\)$/{
14215 s//\1/
14216 q
14217 }
14218 /^X\(\/\).*/{
14219 s//\1/
14220 q
14221 }
14222 s/.*/./; q'`
14223 test -d "$as_dir" && break
14224 done
14225 test -z "$as_dirs" || eval "mkdir $as_dirs"
14226 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14227
14228
14229 } # as_fn_mkdir_p
14230 if mkdir -p . 2>/dev/null; then
14231 as_mkdir_p='mkdir -p "$as_dir"'
14232 else
14233 test -d ./-p && rmdir ./-p
14234 as_mkdir_p=false
14235 fi
14236
14237
14238 # as_fn_executable_p FILE
14239 # -----------------------
14240 # Test if FILE is an executable regular file.
14241 as_fn_executable_p ()
14242 {
14243 test -f "$1" && test -x "$1"
14244 } # as_fn_executable_p
14245 as_test_x='test -x'
14246 as_executable_p=as_fn_executable_p
14247
14248 # Sed expression to map a string onto a valid CPP name.
14249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14250
14251 # Sed expression to map a string onto a valid variable name.
14252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14253
14254
14255 exec 6>&1
14256 ## ----------------------------------- ##
14257 ## Main body of $CONFIG_STATUS script. ##
14258 ## ----------------------------------- ##
14259 _ASEOF
14260 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14261
14262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14263 # Save the log message, to keep $0 and so on meaningful, and to
14264 # report actual input values of CONFIG_FILES etc. instead of their
14265 # values after options handling.
14266 ac_log="
14267 This file was extended by libserialport $as_me 0.1.2, which was
14268 generated by GNU Autoconf 2.69. Invocation command line was
14269
14270 CONFIG_FILES = $CONFIG_FILES
14271 CONFIG_HEADERS = $CONFIG_HEADERS
14272 CONFIG_LINKS = $CONFIG_LINKS
14273 CONFIG_COMMANDS = $CONFIG_COMMANDS
14274 $ $0 $@
14275
14276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14277 "
14278
14279 _ACEOF
14280
14281 case $ac_config_files in *"
14282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14283 esac
14284
14285 case $ac_config_headers in *"
14286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14287 esac
14288
14289
14290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14291 # Files that config.status was made for.
14292 config_files="$ac_config_files"
14293 config_headers="$ac_config_headers"
14294 config_commands="$ac_config_commands"
14295
14296 _ACEOF
14297
14298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14299 ac_cs_usage="\
14300 \`$as_me' instantiates files and other configuration actions
14301 from templates according to the current configuration. Unless the files
14302 and actions are specified as TAGs, all are instantiated by default.
14303
14304 Usage: $0 [OPTION]... [TAG]...
14305
14306 -h, --help print this help, then exit
14307 -V, --version print version number and configuration settings, then exit
14308 --config print configuration, then exit
14309 -q, --quiet, --silent
14310 do not print progress messages
14311 -d, --debug don't remove temporary files
14312 --recheck update $as_me by reconfiguring in the same conditions
14313 --file=FILE[:TEMPLATE]
14314 instantiate the configuration file FILE
14315 --header=FILE[:TEMPLATE]
14316 instantiate the configuration header FILE
14317
14318 Configuration files:
14319 $config_files
14320
14321 Configuration headers:
14322 $config_headers
14323
14324 Configuration commands:
14325 $config_commands
14326
14327 Report bugs to <[email protected]>.
14328 libserialport home page: <http://sigrok.org/wiki/Libserialport>."
14329
14330 _ACEOF
14331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14332 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14333 ac_cs_version="\\
14334 libserialport config.status 0.1.2
14335 configured by $0, generated by GNU Autoconf 2.69,
14336 with options \\"\$ac_cs_config\\"
14337
14338 Copyright (C) 2012 Free Software Foundation, Inc.
14339 This config.status script is free software; the Free Software Foundation
14340 gives unlimited permission to copy, distribute and modify it."
14341
14342 ac_pwd='$ac_pwd'
14343 srcdir='$srcdir'
14344 INSTALL='$INSTALL'
14345 MKDIR_P='$MKDIR_P'
14346 AWK='$AWK'
14347 test -n "\$AWK" || AWK=awk
14348 _ACEOF
14349
14350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351 # The default lists apply if the user does not specify any file.
14352 ac_need_defaults=:
14353 while test $# != 0
14354 do
14355 case $1 in
14356 --*=?*)
14357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14359 ac_shift=:
14360 ;;
14361 --*=)
14362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14363 ac_optarg=
14364 ac_shift=:
14365 ;;
14366 *)
14367 ac_option=$1
14368 ac_optarg=$2
14369 ac_shift=shift
14370 ;;
14371 esac
14372
14373 case $ac_option in
14374 # Handling of the options.
14375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14376 ac_cs_recheck=: ;;
14377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14378 $as_echo "$ac_cs_version"; exit ;;
14379 --config | --confi | --conf | --con | --co | --c )
14380 $as_echo "$ac_cs_config"; exit ;;
14381 --debug | --debu | --deb | --de | --d | -d )
14382 debug=: ;;
14383 --file | --fil | --fi | --f )
14384 $ac_shift
14385 case $ac_optarg in
14386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14387 '') as_fn_error $? "missing file argument" ;;
14388 esac
14389 as_fn_append CONFIG_FILES " '$ac_optarg'"
14390 ac_need_defaults=false;;
14391 --header | --heade | --head | --hea )
14392 $ac_shift
14393 case $ac_optarg in
14394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14395 esac
14396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14397 ac_need_defaults=false;;
14398 --he | --h)
14399 # Conflict between --help and --header
14400 as_fn_error $? "ambiguous option: \`$1'
14401 Try \`$0 --help' for more information.";;
14402 --help | --hel | -h )
14403 $as_echo "$ac_cs_usage"; exit ;;
14404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14406 ac_cs_silent=: ;;
14407
14408 # This is an error.
14409 -*) as_fn_error $? "unrecognized option: \`$1'
14410 Try \`$0 --help' for more information." ;;
14411
14412 *) as_fn_append ac_config_targets " $1"
14413 ac_need_defaults=false ;;
14414
14415 esac
14416 shift
14417 done
14418
14419 ac_configure_extra_args=
14420
14421 if $ac_cs_silent; then
14422 exec 6>/dev/null
14423 ac_configure_extra_args="$ac_configure_extra_args --silent"
14424 fi
14425
14426 _ACEOF
14427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14428 if \$ac_cs_recheck; then
14429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14430 shift
14431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14432 CONFIG_SHELL='$SHELL'
14433 export CONFIG_SHELL
14434 exec "\$@"
14435 fi
14436
14437 _ACEOF
14438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14439 exec 5>>config.log
14440 {
14441 echo
14442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14443 ## Running $as_me. ##
14444 _ASBOX
14445 $as_echo "$ac_log"
14446 } >&5
14447
14448 _ACEOF
14449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450 #
14451 # INIT-COMMANDS
14452 #
14453 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14454
14455
14456 # The HP-UX ksh and POSIX shell print the target directory to stdout
14457 # if CDPATH is set.
14458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14459
14460 sed_quote_subst='$sed_quote_subst'
14461 double_quote_subst='$double_quote_subst'
14462 delay_variable_subst='$delay_variable_subst'
14463 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14464 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14465 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14466 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14467 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14468 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14469 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14470 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14471 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14472 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14473 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14474 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14475 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14476 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14477 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14478 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14479 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14480 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14481 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14482 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14483 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14484 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14485 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14486 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14487 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14488 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14489 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14490 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14491 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14492 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14493 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14494 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14495 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14496 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14497 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14498 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14499 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14500 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14501 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14502 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14503 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14504 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14505 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14506 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14507 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14508 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14509 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14510 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14511 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14512 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14513 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14514 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14515 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14516 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14517 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14518 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14519 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14520 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14521 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14522 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14523 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14524 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14525 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14526 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14527 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14528 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14529 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14530 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14531 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14532 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14533 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14534 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14535 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14536 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14537 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14538 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14539 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14540 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14541 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14542 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14543 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14544 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14545 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14546 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14547 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14548 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14549 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14550 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14551 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14552 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14553 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14554 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14555 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14556 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14557 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14558 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14559 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14560 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14561 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14562 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14563 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14564 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14565 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14566 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14567 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14568 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14569 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14570 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14571 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14572 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14573 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14574 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14575 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14576 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14577 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14578 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14579 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14580 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14581 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14582 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14583 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14584 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14585 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14586 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14587 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14588 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14589 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14590 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14591 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14592 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14593 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14594 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14595 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14596 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14597 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14598 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14599 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14600
14601 LTCC='$LTCC'
14602 LTCFLAGS='$LTCFLAGS'
14603 compiler='$compiler_DEFAULT'
14604
14605 # A function that is used when there is no print builtin or printf.
14606 func_fallback_echo ()
14607 {
14608 eval 'cat <<_LTECHO_EOF
14609 \$1
14610 _LTECHO_EOF'
14611 }
14612
14613 # Quote evaled strings.
14614 for var in SHELL \
14615 ECHO \
14616 PATH_SEPARATOR \
14617 SED \
14618 GREP \
14619 EGREP \
14620 FGREP \
14621 LD \
14622 NM \
14623 LN_S \
14624 lt_SP2NL \
14625 lt_NL2SP \
14626 reload_flag \
14627 FILECMD \
14628 OBJDUMP \
14629 deplibs_check_method \
14630 file_magic_cmd \
14631 file_magic_glob \
14632 want_nocaseglob \
14633 DLLTOOL \
14634 sharedlib_from_linklib_cmd \
14635 AR \
14636 archiver_list_spec \
14637 STRIP \
14638 RANLIB \
14639 CC \
14640 CFLAGS \
14641 compiler \
14642 lt_cv_sys_global_symbol_pipe \
14643 lt_cv_sys_global_symbol_to_cdecl \
14644 lt_cv_sys_global_symbol_to_import \
14645 lt_cv_sys_global_symbol_to_c_name_address \
14646 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14647 lt_cv_nm_interface \
14648 nm_file_list_spec \
14649 lt_cv_truncate_bin \
14650 lt_prog_compiler_no_builtin_flag \
14651 lt_prog_compiler_pic \
14652 lt_prog_compiler_wl \
14653 lt_prog_compiler_static \
14654 lt_cv_prog_compiler_c_o \
14655 need_locks \
14656 MANIFEST_TOOL \
14657 DSYMUTIL \
14658 NMEDIT \
14659 LIPO \
14660 OTOOL \
14661 OTOOL64 \
14662 shrext_cmds \
14663 export_dynamic_flag_spec \
14664 whole_archive_flag_spec \
14665 compiler_needs_object \
14666 with_gnu_ld \
14667 allow_undefined_flag \
14668 no_undefined_flag \
14669 hardcode_libdir_flag_spec \
14670 hardcode_libdir_separator \
14671 exclude_expsyms \
14672 include_expsyms \
14673 file_list_spec \
14674 variables_saved_for_relink \
14675 libname_spec \
14676 library_names_spec \
14677 soname_spec \
14678 install_override_mode \
14679 finish_eval \
14680 old_striplib \
14681 striplib; do
14682 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14683 *[\\\\\\\`\\"\\\$]*)
14684 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14685 ;;
14686 *)
14687 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14688 ;;
14689 esac
14690 done
14691
14692 # Double-quote double-evaled strings.
14693 for var in reload_cmds \
14694 old_postinstall_cmds \
14695 old_postuninstall_cmds \
14696 old_archive_cmds \
14697 extract_expsyms_cmds \
14698 old_archive_from_new_cmds \
14699 old_archive_from_expsyms_cmds \
14700 archive_cmds \
14701 archive_expsym_cmds \
14702 module_cmds \
14703 module_expsym_cmds \
14704 export_symbols_cmds \
14705 prelink_cmds \
14706 postlink_cmds \
14707 postinstall_cmds \
14708 postuninstall_cmds \
14709 finish_cmds \
14710 sys_lib_search_path_spec \
14711 configure_time_dlsearch_path \
14712 configure_time_lt_sys_library_path; do
14713 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14714 *[\\\\\\\`\\"\\\$]*)
14715 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14716 ;;
14717 *)
14718 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14719 ;;
14720 esac
14721 done
14722
14723 ac_aux_dir='$ac_aux_dir'
14724
14725 # See if we are running on zsh, and set the options that allow our
14726 # commands through without removal of \ escapes INIT.
14727 if test -n "\${ZSH_VERSION+set}"; then
14728 setopt NO_GLOB_SUBST
14729 fi
14730
14731
14732 PACKAGE='$PACKAGE'
14733 VERSION='$VERSION'
14734 RM='$RM'
14735 ofile='$ofile'
14736
14737
14738
14739
14740 _ACEOF
14741
14742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14743
14744 # Handling of arguments.
14745 for ac_config_target in $ac_config_targets
14746 do
14747 case $ac_config_target in
14748 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14749 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14750 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14752 "libserialport.pc") CONFIG_FILES="$CONFIG_FILES libserialport.pc" ;;
14753
14754 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14755 esac
14756 done
14757
14758
14759 # If the user did not use the arguments to specify the items to instantiate,
14760 # then the envvar interface is used. Set only those that are not.
14761 # We use the long form for the default assignment because of an extremely
14762 # bizarre bug on SunOS 4.1.3.
14763 if $ac_need_defaults; then
14764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14767 fi
14768
14769 # Have a temporary directory for convenience. Make it in the build tree
14770 # simply because there is no reason against having it here, and in addition,
14771 # creating and moving files from /tmp can sometimes cause problems.
14772 # Hook for its removal unless debugging.
14773 # Note that there is a small window in which the directory will not be cleaned:
14774 # after its creation but before its name has been assigned to `$tmp'.
14775 $debug ||
14776 {
14777 tmp= ac_tmp=
14778 trap 'exit_status=$?
14779 : "${ac_tmp:=$tmp}"
14780 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14781 ' 0
14782 trap 'as_fn_exit 1' 1 2 13 15
14783 }
14784 # Create a (secure) tmp directory for tmp files.
14785
14786 {
14787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14788 test -d "$tmp"
14789 } ||
14790 {
14791 tmp=./conf$$-$RANDOM
14792 (umask 077 && mkdir "$tmp")
14793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14794 ac_tmp=$tmp
14795
14796 # Set up the scripts for CONFIG_FILES section.
14797 # No need to generate them if there are no CONFIG_FILES.
14798 # This happens for instance with `./config.status config.h'.
14799 if test -n "$CONFIG_FILES"; then
14800
14801
14802 ac_cr=`echo X | tr X '\015'`
14803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14804 # But we know of no other shell where ac_cr would be empty at this
14805 # point, so we can use a bashism as a fallback.
14806 if test "x$ac_cr" = x; then
14807 eval ac_cr=\$\'\\r\'
14808 fi
14809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14811 ac_cs_awk_cr='\\r'
14812 else
14813 ac_cs_awk_cr=$ac_cr
14814 fi
14815
14816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14817 _ACEOF
14818
14819
14820 {
14821 echo "cat >conf$$subs.awk <<_ACEOF" &&
14822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14823 echo "_ACEOF"
14824 } >conf$$subs.sh ||
14825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14827 ac_delim='%!_!# '
14828 for ac_last_try in false false false false false :; do
14829 . ./conf$$subs.sh ||
14830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14831
14832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14833 if test $ac_delim_n = $ac_delim_num; then
14834 break
14835 elif $ac_last_try; then
14836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14837 else
14838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14839 fi
14840 done
14841 rm -f conf$$subs.sh
14842
14843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14845 _ACEOF
14846 sed -n '
14847 h
14848 s/^/S["/; s/!.*/"]=/
14849 p
14850 g
14851 s/^[^!]*!//
14852 :repl
14853 t repl
14854 s/'"$ac_delim"'$//
14855 t delim
14856 :nl
14857 h
14858 s/\(.\{148\}\)..*/\1/
14859 t more1
14860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14861 p
14862 n
14863 b repl
14864 :more1
14865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14866 p
14867 g
14868 s/.\{148\}//
14869 t nl
14870 :delim
14871 h
14872 s/\(.\{148\}\)..*/\1/
14873 t more2
14874 s/["\\]/\\&/g; s/^/"/; s/$/"/
14875 p
14876 b
14877 :more2
14878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14879 p
14880 g
14881 s/.\{148\}//
14882 t delim
14883 ' <conf$$subs.awk | sed '
14884 /^[^""]/{
14885 N
14886 s/\n//
14887 }
14888 ' >>$CONFIG_STATUS || ac_write_fail=1
14889 rm -f conf$$subs.awk
14890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14891 _ACAWK
14892 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14893 for (key in S) S_is_set[key] = 1
14894 FS = ""
14895
14896 }
14897 {
14898 line = $ 0
14899 nfields = split(line, field, "@")
14900 substed = 0
14901 len = length(field[1])
14902 for (i = 2; i < nfields; i++) {
14903 key = field[i]
14904 keylen = length(key)
14905 if (S_is_set[key]) {
14906 value = S[key]
14907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14908 len += length(value) + length(field[++i])
14909 substed = 1
14910 } else
14911 len += 1 + keylen
14912 }
14913
14914 print line
14915 }
14916
14917 _ACAWK
14918 _ACEOF
14919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14922 else
14923 cat
14924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14926 _ACEOF
14927
14928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14930 # trailing colons and then remove the whole line if VPATH becomes empty
14931 # (actually we leave an empty line to preserve line numbers).
14932 if test "x$srcdir" = x.; then
14933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14934 h
14935 s///
14936 s/^/:/
14937 s/[ ]*$/:/
14938 s/:\$(srcdir):/:/g
14939 s/:\${srcdir}:/:/g
14940 s/:@srcdir@:/:/g
14941 s/^:*//
14942 s/:*$//
14943 x
14944 s/\(=[ ]*\).*/\1/
14945 G
14946 s/\n//
14947 s/^[^=]*=[ ]*$//
14948 }'
14949 fi
14950
14951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14952 fi # test -n "$CONFIG_FILES"
14953
14954 # Set up the scripts for CONFIG_HEADERS section.
14955 # No need to generate them if there are no CONFIG_HEADERS.
14956 # This happens for instance with `./config.status Makefile'.
14957 if test -n "$CONFIG_HEADERS"; then
14958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14959 BEGIN {
14960 _ACEOF
14961
14962 # Transform confdefs.h into an awk script `defines.awk', embedded as
14963 # here-document in config.status, that substitutes the proper values into
14964 # config.h.in to produce config.h.
14965
14966 # Create a delimiter string that does not exist in confdefs.h, to ease
14967 # handling of long lines.
14968 ac_delim='%!_!# '
14969 for ac_last_try in false false :; do
14970 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14971 if test -z "$ac_tt"; then
14972 break
14973 elif $ac_last_try; then
14974 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14975 else
14976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14977 fi
14978 done
14979
14980 # For the awk script, D is an array of macro values keyed by name,
14981 # likewise P contains macro parameters if any. Preserve backslash
14982 # newline sequences.
14983
14984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14985 sed -n '
14986 s/.\{148\}/&'"$ac_delim"'/g
14987 t rset
14988 :rset
14989 s/^[ ]*#[ ]*define[ ][ ]*/ /
14990 t def
14991 d
14992 :def
14993 s/\\$//
14994 t bsnl
14995 s/["\\]/\\&/g
14996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14997 D["\1"]=" \3"/p
14998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14999 d
15000 :bsnl
15001 s/["\\]/\\&/g
15002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15003 D["\1"]=" \3\\\\\\n"\\/p
15004 t cont
15005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15006 t cont
15007 d
15008 :cont
15009 n
15010 s/.\{148\}/&'"$ac_delim"'/g
15011 t clear
15012 :clear
15013 s/\\$//
15014 t bsnlc
15015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15016 d
15017 :bsnlc
15018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15019 b cont
15020 ' <confdefs.h | sed '
15021 s/'"$ac_delim"'/"\\\
15022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15023
15024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15025 for (key in D) D_is_set[key] = 1
15026 FS = ""
15027 }
15028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15029 line = \$ 0
15030 split(line, arg, " ")
15031 if (arg[1] == "#") {
15032 defundef = arg[2]
15033 mac1 = arg[3]
15034 } else {
15035 defundef = substr(arg[1], 2)
15036 mac1 = arg[2]
15037 }
15038 split(mac1, mac2, "(") #)
15039 macro = mac2[1]
15040 prefix = substr(line, 1, index(line, defundef) - 1)
15041 if (D_is_set[macro]) {
15042 # Preserve the white space surrounding the "#".
15043 print prefix "define", macro P[macro] D[macro]
15044 next
15045 } else {
15046 # Replace #undef with comments. This is necessary, for example,
15047 # in the case of _POSIX_SOURCE, which is predefined and required
15048 # on some systems where configure will not decide to define it.
15049 if (defundef == "undef") {
15050 print "/*", prefix defundef, macro, "*/"
15051 next
15052 }
15053 }
15054 }
15055 { print }
15056 _ACAWK
15057 _ACEOF
15058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15060 fi # test -n "$CONFIG_HEADERS"
15061
15062
15063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15064 shift
15065 for ac_tag
15066 do
15067 case $ac_tag in
15068 :[FHLC]) ac_mode=$ac_tag; continue;;
15069 esac
15070 case $ac_mode$ac_tag in
15071 :[FHL]*:*);;
15072 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15073 :[FH]-) ac_tag=-:-;;
15074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15075 esac
15076 ac_save_IFS=$IFS
15077 IFS=:
15078 set x $ac_tag
15079 IFS=$ac_save_IFS
15080 shift
15081 ac_file=$1
15082 shift
15083
15084 case $ac_mode in
15085 :L) ac_source=$1;;
15086 :[FH])
15087 ac_file_inputs=
15088 for ac_f
15089 do
15090 case $ac_f in
15091 -) ac_f="$ac_tmp/stdin";;
15092 *) # Look for the file first in the build tree, then in the source tree
15093 # (if the path is not absolute). The absolute path cannot be DOS-style,
15094 # because $ac_f cannot contain `:'.
15095 test -f "$ac_f" ||
15096 case $ac_f in
15097 [\\/$]*) false;;
15098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15099 esac ||
15100 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15101 esac
15102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15103 as_fn_append ac_file_inputs " '$ac_f'"
15104 done
15105
15106 # Let's still pretend it is `configure' which instantiates (i.e., don't
15107 # use $as_me), people would be surprised to read:
15108 # /* config.h. Generated by config.status. */
15109 configure_input='Generated from '`
15110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15111 `' by configure.'
15112 if test x"$ac_file" != x-; then
15113 configure_input="$ac_file. $configure_input"
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15115 $as_echo "$as_me: creating $ac_file" >&6;}
15116 fi
15117 # Neutralize special characters interpreted by sed in replacement strings.
15118 case $configure_input in #(
15119 *\&* | *\|* | *\\* )
15120 ac_sed_conf_input=`$as_echo "$configure_input" |
15121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15122 *) ac_sed_conf_input=$configure_input;;
15123 esac
15124
15125 case $ac_tag in
15126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15128 esac
15129 ;;
15130 esac
15131
15132 ac_dir=`$as_dirname -- "$ac_file" ||
15133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15134 X"$ac_file" : 'X\(//\)[^/]' \| \
15135 X"$ac_file" : 'X\(//\)$' \| \
15136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15137 $as_echo X"$ac_file" |
15138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15139 s//\1/
15140 q
15141 }
15142 /^X\(\/\/\)[^/].*/{
15143 s//\1/
15144 q
15145 }
15146 /^X\(\/\/\)$/{
15147 s//\1/
15148 q
15149 }
15150 /^X\(\/\).*/{
15151 s//\1/
15152 q
15153 }
15154 s/.*/./; q'`
15155 as_dir="$ac_dir"; as_fn_mkdir_p
15156 ac_builddir=.
15157
15158 case "$ac_dir" in
15159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15160 *)
15161 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15162 # A ".." for each directory in $ac_dir_suffix.
15163 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15164 case $ac_top_builddir_sub in
15165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15167 esac ;;
15168 esac
15169 ac_abs_top_builddir=$ac_pwd
15170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15171 # for backward compatibility:
15172 ac_top_builddir=$ac_top_build_prefix
15173
15174 case $srcdir in
15175 .) # We are building in place.
15176 ac_srcdir=.
15177 ac_top_srcdir=$ac_top_builddir_sub
15178 ac_abs_top_srcdir=$ac_pwd ;;
15179 [\\/]* | ?:[\\/]* ) # Absolute name.
15180 ac_srcdir=$srcdir$ac_dir_suffix;
15181 ac_top_srcdir=$srcdir
15182 ac_abs_top_srcdir=$srcdir ;;
15183 *) # Relative name.
15184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15185 ac_top_srcdir=$ac_top_build_prefix$srcdir
15186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15187 esac
15188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15189
15190
15191 case $ac_mode in
15192 :F)
15193 #
15194 # CONFIG_FILE
15195 #
15196
15197 case $INSTALL in
15198 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15199 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15200 esac
15201 ac_MKDIR_P=$MKDIR_P
15202 case $MKDIR_P in
15203 [\\/$]* | ?:[\\/]* ) ;;
15204 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15205 esac
15206 _ACEOF
15207
15208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15209 # If the template does not know about datarootdir, expand it.
15210 # FIXME: This hack should be removed a few years after 2.60.
15211 ac_datarootdir_hack=; ac_datarootdir_seen=
15212 ac_sed_dataroot='
15213 /datarootdir/ {
15214 p
15215 q
15216 }
15217 /@datadir@/p
15218 /@docdir@/p
15219 /@infodir@/p
15220 /@localedir@/p
15221 /@mandir@/p'
15222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15223 *datarootdir*) ac_datarootdir_seen=yes;;
15224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15226 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15227 _ACEOF
15228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15229 ac_datarootdir_hack='
15230 s&@datadir@&$datadir&g
15231 s&@docdir@&$docdir&g
15232 s&@infodir@&$infodir&g
15233 s&@localedir@&$localedir&g
15234 s&@mandir@&$mandir&g
15235 s&\\\${datarootdir}&$datarootdir&g' ;;
15236 esac
15237 _ACEOF
15238
15239 # Neutralize VPATH when `$srcdir' = `.'.
15240 # Shell code in configure.ac might set extrasub.
15241 # FIXME: do we really want to maintain this feature?
15242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15243 ac_sed_extra="$ac_vpsub
15244 $extrasub
15245 _ACEOF
15246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15247 :t
15248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15249 s|@configure_input@|$ac_sed_conf_input|;t t
15250 s&@top_builddir@&$ac_top_builddir_sub&;t t
15251 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15252 s&@srcdir@&$ac_srcdir&;t t
15253 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15254 s&@top_srcdir@&$ac_top_srcdir&;t t
15255 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15256 s&@builddir@&$ac_builddir&;t t
15257 s&@abs_builddir@&$ac_abs_builddir&;t t
15258 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15259 s&@INSTALL@&$ac_INSTALL&;t t
15260 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15261 $ac_datarootdir_hack
15262 "
15263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15264 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15265
15266 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15267 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15268 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15269 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15271 which seems to be undefined. Please make sure it is defined" >&5
15272 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15273 which seems to be undefined. Please make sure it is defined" >&2;}
15274
15275 rm -f "$ac_tmp/stdin"
15276 case $ac_file in
15277 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15278 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15279 esac \
15280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15281 ;;
15282 :H)
15283 #
15284 # CONFIG_HEADER
15285 #
15286 if test x"$ac_file" != x-; then
15287 {
15288 $as_echo "/* $configure_input */" \
15289 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15290 } >"$ac_tmp/config.h" \
15291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15292 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15294 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15295 else
15296 rm -f "$ac_file"
15297 mv "$ac_tmp/config.h" "$ac_file" \
15298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15299 fi
15300 else
15301 $as_echo "/* $configure_input */" \
15302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15303 || as_fn_error $? "could not create -" "$LINENO" 5
15304 fi
15305 # Compute "$ac_file"'s index in $config_headers.
15306 _am_arg="$ac_file"
15307 _am_stamp_count=1
15308 for _am_header in $config_headers :; do
15309 case $_am_header in
15310 $_am_arg | $_am_arg:* )
15311 break ;;
15312 * )
15313 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15314 esac
15315 done
15316 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15317 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15318 X"$_am_arg" : 'X\(//\)[^/]' \| \
15319 X"$_am_arg" : 'X\(//\)$' \| \
15320 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15321 $as_echo X"$_am_arg" |
15322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15323 s//\1/
15324 q
15325 }
15326 /^X\(\/\/\)[^/].*/{
15327 s//\1/
15328 q
15329 }
15330 /^X\(\/\/\)$/{
15331 s//\1/
15332 q
15333 }
15334 /^X\(\/\).*/{
15335 s//\1/
15336 q
15337 }
15338 s/.*/./; q'`/stamp-h$_am_stamp_count
15339 ;;
15340
15341 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15342 $as_echo "$as_me: executing $ac_file commands" >&6;}
15343 ;;
15344 esac
15345
15346
15347 case $ac_file$ac_mode in
15348 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15349 # Older Autoconf quotes --file arguments for eval, but not when files
15350 # are listed without --file. Let's play safe and only enable the eval
15351 # if we detect the quoting.
15352 # TODO: see whether this extra hack can be removed once we start
15353 # requiring Autoconf 2.70 or later.
15354 case $CONFIG_FILES in #(
15355 *\'*) :
15356 eval set x "$CONFIG_FILES" ;; #(
15357 *) :
15358 set x $CONFIG_FILES ;; #(
15359 *) :
15360 ;;
15361 esac
15362 shift
15363 # Used to flag and report bootstrapping failures.
15364 am_rc=0
15365 for am_mf
15366 do
15367 # Strip MF so we end up with the name of the file.
15368 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15369 # Check whether this is an Automake generated Makefile which includes
15370 # dependency-tracking related rules and includes.
15371 # Grep'ing the whole file directly is not great: AIX grep has a line
15372 # limit of 2048, but all sed's we know have understand at least 4000.
15373 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15374 || continue
15375 am_dirpart=`$as_dirname -- "$am_mf" ||
15376 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15377 X"$am_mf" : 'X\(//\)[^/]' \| \
15378 X"$am_mf" : 'X\(//\)$' \| \
15379 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15380 $as_echo X"$am_mf" |
15381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15382 s//\1/
15383 q
15384 }
15385 /^X\(\/\/\)[^/].*/{
15386 s//\1/
15387 q
15388 }
15389 /^X\(\/\/\)$/{
15390 s//\1/
15391 q
15392 }
15393 /^X\(\/\).*/{
15394 s//\1/
15395 q
15396 }
15397 s/.*/./; q'`
15398 am_filepart=`$as_basename -- "$am_mf" ||
15399 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15400 X"$am_mf" : 'X\(//\)$' \| \
15401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15402 $as_echo X/"$am_mf" |
15403 sed '/^.*\/\([^/][^/]*\)\/*$/{
15404 s//\1/
15405 q
15406 }
15407 /^X\/\(\/\/\)$/{
15408 s//\1/
15409 q
15410 }
15411 /^X\/\(\/\).*/{
15412 s//\1/
15413 q
15414 }
15415 s/.*/./; q'`
15416 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15417 && sed -e '/# am--include-marker/d' "$am_filepart" \
15418 | $MAKE -f - am--depfiles" >&5
15419 (cd "$am_dirpart" \
15420 && sed -e '/# am--include-marker/d' "$am_filepart" \
15421 | $MAKE -f - am--depfiles) >&5 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } || am_rc=$?
15425 done
15426 if test $am_rc -ne 0; then
15427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15429 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15430 for automatic dependency tracking. If GNU make was not used, consider
15431 re-running the configure script with MAKE=\"gmake\" (or whatever is
15432 necessary). You can also try re-running configure with the
15433 '--disable-dependency-tracking' option to at least be able to build
15434 the package (albeit without support for automatic dependency tracking).
15435 See \`config.log' for more details" "$LINENO" 5; }
15436 fi
15437 { am_dirpart=; unset am_dirpart;}
15438 { am_filepart=; unset am_filepart;}
15439 { am_mf=; unset am_mf;}
15440 { am_rc=; unset am_rc;}
15441 rm -f conftest-deps.mk
15442 }
15443 ;;
15444 "libtool":C)
15445
15446 # See if we are running on zsh, and set the options that allow our
15447 # commands through without removal of \ escapes.
15448 if test -n "${ZSH_VERSION+set}"; then
15449 setopt NO_GLOB_SUBST
15450 fi
15451
15452 cfgfile=${ofile}T
15453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15454 $RM "$cfgfile"
15455
15456 cat <<_LT_EOF >> "$cfgfile"
15457 #! $SHELL
15458 # Generated automatically by $as_me ($PACKAGE) $VERSION
15459 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15460 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15461
15462 # Provide generalized library-building support services.
15463 # Written by Gordon Matzigkeit, 1996
15464
15465 # Copyright (C) 2014 Free Software Foundation, Inc.
15466 # This is free software; see the source for copying conditions. There is NO
15467 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15468
15469 # GNU Libtool is free software; you can redistribute it and/or modify
15470 # it under the terms of the GNU General Public License as published by
15471 # the Free Software Foundation; either version 2 of of the License, or
15472 # (at your option) any later version.
15473 #
15474 # As a special exception to the GNU General Public License, if you
15475 # distribute this file as part of a program or library that is built
15476 # using GNU Libtool, you may include this file under the same
15477 # distribution terms that you use for the rest of that program.
15478 #
15479 # GNU Libtool is distributed in the hope that it will be useful, but
15480 # WITHOUT ANY WARRANTY; without even the implied warranty of
15481 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15482 # GNU General Public License for more details.
15483 #
15484 # You should have received a copy of the GNU General Public License
15485 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15486
15487
15488 # The names of the tagged configurations supported by this script.
15489 available_tags=''
15490
15491 # Configured defaults for sys_lib_dlsearch_path munging.
15492 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15493
15494 # ### BEGIN LIBTOOL CONFIG
15495
15496 # Which release of libtool.m4 was used?
15497 macro_version=$macro_version
15498 macro_revision=$macro_revision
15499
15500 # Whether or not to build shared libraries.
15501 build_libtool_libs=$enable_shared
15502
15503 # Whether or not to build static libraries.
15504 build_old_libs=$enable_static
15505
15506 # What type of objects to build.
15507 pic_mode=$pic_mode
15508
15509 # Whether or not to optimize for fast installation.
15510 fast_install=$enable_fast_install
15511
15512 # Shared archive member basename,for filename based shared library versioning on AIX.
15513 shared_archive_member_spec=$shared_archive_member_spec
15514
15515 # Shell to use when invoking shell scripts.
15516 SHELL=$lt_SHELL
15517
15518 # An echo program that protects backslashes.
15519 ECHO=$lt_ECHO
15520
15521 # The PATH separator for the build system.
15522 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15523
15524 # The host system.
15525 host_alias=$host_alias
15526 host=$host
15527 host_os=$host_os
15528
15529 # The build system.
15530 build_alias=$build_alias
15531 build=$build
15532 build_os=$build_os
15533
15534 # A sed program that does not truncate output.
15535 SED=$lt_SED
15536
15537 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15538 Xsed="\$SED -e 1s/^X//"
15539
15540 # A grep program that handles long lines.
15541 GREP=$lt_GREP
15542
15543 # An ERE matcher.
15544 EGREP=$lt_EGREP
15545
15546 # A literal string matcher.
15547 FGREP=$lt_FGREP
15548
15549 # A BSD- or MS-compatible name lister.
15550 NM=$lt_NM
15551
15552 # Whether we need soft or hard links.
15553 LN_S=$lt_LN_S
15554
15555 # What is the maximum length of a command?
15556 max_cmd_len=$max_cmd_len
15557
15558 # Object file suffix (normally "o").
15559 objext=$ac_objext
15560
15561 # Executable file suffix (normally "").
15562 exeext=$exeext
15563
15564 # whether the shell understands "unset".
15565 lt_unset=$lt_unset
15566
15567 # turn spaces into newlines.
15568 SP2NL=$lt_lt_SP2NL
15569
15570 # turn newlines into spaces.
15571 NL2SP=$lt_lt_NL2SP
15572
15573 # convert \$build file names to \$host format.
15574 to_host_file_cmd=$lt_cv_to_host_file_cmd
15575
15576 # convert \$build files to toolchain format.
15577 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15578
15579 # A file(cmd) program that detects file types.
15580 FILECMD=$lt_FILECMD
15581
15582 # An object symbol dumper.
15583 OBJDUMP=$lt_OBJDUMP
15584
15585 # Method to check whether dependent libraries are shared objects.
15586 deplibs_check_method=$lt_deplibs_check_method
15587
15588 # Command to use when deplibs_check_method = "file_magic".
15589 file_magic_cmd=$lt_file_magic_cmd
15590
15591 # How to find potential files when deplibs_check_method = "file_magic".
15592 file_magic_glob=$lt_file_magic_glob
15593
15594 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15595 want_nocaseglob=$lt_want_nocaseglob
15596
15597 # DLL creation program.
15598 DLLTOOL=$lt_DLLTOOL
15599
15600 # Command to associate shared and link libraries.
15601 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15602
15603 # The archiver.
15604 AR=$lt_AR
15605
15606 # Flags to create an archive (by configure).
15607 lt_ar_flags=$lt_ar_flags
15608
15609 # Flags to create an archive.
15610 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15611
15612 # How to feed a file listing to the archiver.
15613 archiver_list_spec=$lt_archiver_list_spec
15614
15615 # A symbol stripping program.
15616 STRIP=$lt_STRIP
15617
15618 # Commands used to install an old-style archive.
15619 RANLIB=$lt_RANLIB
15620 old_postinstall_cmds=$lt_old_postinstall_cmds
15621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15622
15623 # Whether to use a lock for old archive extraction.
15624 lock_old_archive_extraction=$lock_old_archive_extraction
15625
15626 # A C compiler.
15627 LTCC=$lt_CC
15628
15629 # LTCC compiler flags.
15630 LTCFLAGS=$lt_CFLAGS
15631
15632 # Take the output of nm and produce a listing of raw symbols and C names.
15633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15634
15635 # Transform the output of nm in a proper C declaration.
15636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15637
15638 # Transform the output of nm into a list of symbols to manually relocate.
15639 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15640
15641 # Transform the output of nm in a C name address pair.
15642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15643
15644 # Transform the output of nm in a C name address pair when lib prefix is needed.
15645 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15646
15647 # The name lister interface.
15648 nm_interface=$lt_lt_cv_nm_interface
15649
15650 # Specify filename containing input files for \$NM.
15651 nm_file_list_spec=$lt_nm_file_list_spec
15652
15653 # The root where to search for dependent libraries,and where our libraries should be installed.
15654 lt_sysroot=$lt_sysroot
15655
15656 # Command to truncate a binary pipe.
15657 lt_truncate_bin=$lt_lt_cv_truncate_bin
15658
15659 # The name of the directory that contains temporary libtool files.
15660 objdir=$objdir
15661
15662 # Used to examine libraries when file_magic_cmd begins with "file".
15663 MAGIC_CMD=$MAGIC_CMD
15664
15665 # Must we lock files when doing compilation?
15666 need_locks=$lt_need_locks
15667
15668 # Manifest tool.
15669 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15670
15671 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15672 DSYMUTIL=$lt_DSYMUTIL
15673
15674 # Tool to change global to local symbols on Mac OS X.
15675 NMEDIT=$lt_NMEDIT
15676
15677 # Tool to manipulate fat objects and archives on Mac OS X.
15678 LIPO=$lt_LIPO
15679
15680 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15681 OTOOL=$lt_OTOOL
15682
15683 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15684 OTOOL64=$lt_OTOOL64
15685
15686 # Old archive suffix (normally "a").
15687 libext=$libext
15688
15689 # Shared library suffix (normally ".so").
15690 shrext_cmds=$lt_shrext_cmds
15691
15692 # The commands to extract the exported symbol list from a shared archive.
15693 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15694
15695 # Variables whose values should be saved in libtool wrapper scripts and
15696 # restored at link time.
15697 variables_saved_for_relink=$lt_variables_saved_for_relink
15698
15699 # Do we need the "lib" prefix for modules?
15700 need_lib_prefix=$need_lib_prefix
15701
15702 # Do we need a version for libraries?
15703 need_version=$need_version
15704
15705 # Library versioning type.
15706 version_type=$version_type
15707
15708 # Shared library runtime path variable.
15709 runpath_var=$runpath_var
15710
15711 # Shared library path variable.
15712 shlibpath_var=$shlibpath_var
15713
15714 # Is shlibpath searched before the hard-coded library search path?
15715 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15716
15717 # Format of library name prefix.
15718 libname_spec=$lt_libname_spec
15719
15720 # List of archive names. First name is the real one, the rest are links.
15721 # The last name is the one that the linker finds with -lNAME
15722 library_names_spec=$lt_library_names_spec
15723
15724 # The coded name of the library, if different from the real name.
15725 soname_spec=$lt_soname_spec
15726
15727 # Permission mode override for installation of shared libraries.
15728 install_override_mode=$lt_install_override_mode
15729
15730 # Command to use after installation of a shared archive.
15731 postinstall_cmds=$lt_postinstall_cmds
15732
15733 # Command to use after uninstallation of a shared archive.
15734 postuninstall_cmds=$lt_postuninstall_cmds
15735
15736 # Commands used to finish a libtool library installation in a directory.
15737 finish_cmds=$lt_finish_cmds
15738
15739 # As "finish_cmds", except a single script fragment to be evaled but
15740 # not shown.
15741 finish_eval=$lt_finish_eval
15742
15743 # Whether we should hardcode library paths into libraries.
15744 hardcode_into_libs=$hardcode_into_libs
15745
15746 # Compile-time system search path for libraries.
15747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15748
15749 # Detected run-time system search path for libraries.
15750 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15751
15752 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15753 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15754
15755 # Whether dlopen is supported.
15756 dlopen_support=$enable_dlopen
15757
15758 # Whether dlopen of programs is supported.
15759 dlopen_self=$enable_dlopen_self
15760
15761 # Whether dlopen of statically linked programs is supported.
15762 dlopen_self_static=$enable_dlopen_self_static
15763
15764 # Commands to strip libraries.
15765 old_striplib=$lt_old_striplib
15766 striplib=$lt_striplib
15767
15768
15769 # The linker used to build libraries.
15770 LD=$lt_LD
15771
15772 # How to create reloadable object files.
15773 reload_flag=$lt_reload_flag
15774 reload_cmds=$lt_reload_cmds
15775
15776 # Commands used to build an old-style archive.
15777 old_archive_cmds=$lt_old_archive_cmds
15778
15779 # A language specific compiler.
15780 CC=$lt_compiler
15781
15782 # Is the compiler the GNU compiler?
15783 with_gcc=$GCC
15784
15785 # Compiler flag to turn off builtin functions.
15786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15787
15788 # Additional compiler flags for building library objects.
15789 pic_flag=$lt_lt_prog_compiler_pic
15790
15791 # How to pass a linker flag through the compiler.
15792 wl=$lt_lt_prog_compiler_wl
15793
15794 # Compiler flag to prevent dynamic linking.
15795 link_static_flag=$lt_lt_prog_compiler_static
15796
15797 # Does compiler simultaneously support -c and -o options?
15798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15799
15800 # Whether or not to add -lc for building shared libraries.
15801 build_libtool_need_lc=$archive_cmds_need_lc
15802
15803 # Whether or not to disallow shared libs when runtime libs are static.
15804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15805
15806 # Compiler flag to allow reflexive dlopens.
15807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15808
15809 # Compiler flag to generate shared objects directly from archives.
15810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15811
15812 # Whether the compiler copes with passing no objects directly.
15813 compiler_needs_object=$lt_compiler_needs_object
15814
15815 # Create an old-style archive from a shared archive.
15816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15817
15818 # Create a temporary old-style archive to link instead of a shared archive.
15819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15820
15821 # Commands used to build a shared archive.
15822 archive_cmds=$lt_archive_cmds
15823 archive_expsym_cmds=$lt_archive_expsym_cmds
15824
15825 # Commands used to build a loadable module if different from building
15826 # a shared archive.
15827 module_cmds=$lt_module_cmds
15828 module_expsym_cmds=$lt_module_expsym_cmds
15829
15830 # Whether we are building with GNU ld or not.
15831 with_gnu_ld=$lt_with_gnu_ld
15832
15833 # Flag that allows shared libraries with undefined symbols to be built.
15834 allow_undefined_flag=$lt_allow_undefined_flag
15835
15836 # Flag that enforces no undefined symbols.
15837 no_undefined_flag=$lt_no_undefined_flag
15838
15839 # Flag to hardcode \$libdir into a binary during linking.
15840 # This must work even if \$libdir does not exist
15841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15842
15843 # Whether we need a single "-rpath" flag with a separated argument.
15844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15845
15846 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15847 # DIR into the resulting binary.
15848 hardcode_direct=$hardcode_direct
15849
15850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15851 # DIR into the resulting binary and the resulting library dependency is
15852 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15853 # library is relocated.
15854 hardcode_direct_absolute=$hardcode_direct_absolute
15855
15856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15857 # into the resulting binary.
15858 hardcode_minus_L=$hardcode_minus_L
15859
15860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15861 # into the resulting binary.
15862 hardcode_shlibpath_var=$hardcode_shlibpath_var
15863
15864 # Set to "yes" if building a shared library automatically hardcodes DIR
15865 # into the library and all subsequent libraries and executables linked
15866 # against it.
15867 hardcode_automatic=$hardcode_automatic
15868
15869 # Set to yes if linker adds runtime paths of dependent libraries
15870 # to runtime path list.
15871 inherit_rpath=$inherit_rpath
15872
15873 # Whether libtool must link a program against all its dependency libraries.
15874 link_all_deplibs=$link_all_deplibs
15875
15876 # Set to "yes" if exported symbols are required.
15877 always_export_symbols=$always_export_symbols
15878
15879 # The commands to list exported symbols.
15880 export_symbols_cmds=$lt_export_symbols_cmds
15881
15882 # Symbols that should not be listed in the preloaded symbols.
15883 exclude_expsyms=$lt_exclude_expsyms
15884
15885 # Symbols that must always be exported.
15886 include_expsyms=$lt_include_expsyms
15887
15888 # Commands necessary for linking programs (against libraries) with templates.
15889 prelink_cmds=$lt_prelink_cmds
15890
15891 # Commands necessary for finishing linking programs.
15892 postlink_cmds=$lt_postlink_cmds
15893
15894 # Specify filename containing input files.
15895 file_list_spec=$lt_file_list_spec
15896
15897 # How to hardcode a shared library path into an executable.
15898 hardcode_action=$hardcode_action
15899
15900 # ### END LIBTOOL CONFIG
15901
15902 _LT_EOF
15903
15904 cat <<'_LT_EOF' >> "$cfgfile"
15905
15906 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15907
15908 # func_munge_path_list VARIABLE PATH
15909 # -----------------------------------
15910 # VARIABLE is name of variable containing _space_ separated list of
15911 # directories to be munged by the contents of PATH, which is string
15912 # having a format:
15913 # "DIR[:DIR]:"
15914 # string "DIR[ DIR]" will be prepended to VARIABLE
15915 # ":DIR[:DIR]"
15916 # string "DIR[ DIR]" will be appended to VARIABLE
15917 # "DIRP[:DIRP]::[DIRA:]DIRA"
15918 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15919 # "DIRA[ DIRA]" will be appended to VARIABLE
15920 # "DIR[:DIR]"
15921 # VARIABLE will be replaced by "DIR[ DIR]"
15922 func_munge_path_list ()
15923 {
15924 case x$2 in
15925 x)
15926 ;;
15927 *:)
15928 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15929 ;;
15930 x:*)
15931 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15932 ;;
15933 *::*)
15934 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15935 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15936 ;;
15937 *)
15938 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15939 ;;
15940 esac
15941 }
15942
15943
15944 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15945 func_cc_basename ()
15946 {
15947 for cc_temp in $*""; do
15948 case $cc_temp in
15949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15951 \-*) ;;
15952 *) break;;
15953 esac
15954 done
15955 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15956 }
15957
15958
15959 # ### END FUNCTIONS SHARED WITH CONFIGURE
15960
15961 _LT_EOF
15962
15963 case $host_os in
15964 aix3*)
15965 cat <<\_LT_EOF >> "$cfgfile"
15966 # AIX sometimes has problems with the GCC collect2 program. For some
15967 # reason, if we set the COLLECT_NAMES environment variable, the problems
15968 # vanish in a puff of smoke.
15969 if test set != "${COLLECT_NAMES+set}"; then
15970 COLLECT_NAMES=
15971 export COLLECT_NAMES
15972 fi
15973 _LT_EOF
15974 ;;
15975 esac
15976
15977
15978 ltmain=$ac_aux_dir/ltmain.sh
15979
15980
15981 # We use sed instead of cat because bash on DJGPP gets confused if
15982 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15983 # text mode, it properly converts lines to CR/LF. This bash problem
15984 # is reportedly fixed, but why not run on old versions too?
15985 $SED '$q' "$ltmain" >> "$cfgfile" \
15986 || (rm -f "$cfgfile"; exit 1)
15987
15988 mv -f "$cfgfile" "$ofile" ||
15989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15990 chmod +x "$ofile"
15991
15992 ;;
15993
15994 esac
15995 done # for ac_tag
15996
15997
15998 as_fn_exit 0
15999 _ACEOF
16000 ac_clean_files=$ac_clean_files_save
16001
16002 test $ac_write_fail = 0 ||
16003 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16004
16005
16006 # configure is writing to config.log, and then calls config.status.
16007 # config.status does its own redirection, appending to config.log.
16008 # Unfortunately, on DOS this fails, as config.log is still kept open
16009 # by configure, so config.status won't be able to write to it; its
16010 # output is simply discarded. So we exec the FD to /dev/null,
16011 # effectively closing config.log, so it can be properly (re)opened and
16012 # appended to by config.status. When coming back to configure, we
16013 # need to make the FD available again.
16014 if test "$no_create" != yes; then
16015 ac_cs_success=:
16016 ac_config_status_args=
16017 test "$silent" = yes &&
16018 ac_config_status_args="$ac_config_status_args --quiet"
16019 exec 5>/dev/null
16020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16021 exec 5>>config.log
16022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16023 # would make configure fail if this is the last instruction.
16024 $ac_cs_success || as_fn_exit 1
16025 fi
16026 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16028 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16029 fi
16030
16031
16032 cat >&6 <<_EOF
16033
16034 libserialport configuration summary:
16035
16036 - Package version................. $SP_PACKAGE_VERSION
16037 - Library ABI version............. $SP_LIB_VERSION
16038 - Prefix.......................... $prefix
16039 - Building on..................... $build
16040 - Building for.................... $host
16041 - Building shared / static........ $enable_shared / $enable_static
16042
16043 Compile configuration:
16044 - C compiler...................... $CC
16045 - C compiler version.............. $sp_cc_version
16046 - C compiler flags................ $CFLAGS
16047 - Linker flags.................... $LDFLAGS
16048
16049 _EOF