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 libotr 4.1.1.
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 [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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='libotr'
592 PACKAGE_TARNAME='libotr'
593 PACKAGE_VERSION='4.1.1'
594 PACKAGE_STRING='libotr 4.1.1'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='https://otr.cypherpunks.ca'
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 BUILD_NT_SERVICES_FALSE
639 BUILD_NT_SERVICES_TRUE
640 BUILD_TESTS_FALSE
641 BUILD_TESTS_TRUE
642 LIBGCRYPT_LIBS
643 LIBGCRYPT_CFLAGS
644 LIBGCRYPT_CONFIG
645 CPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 ac_ct_AR
654 AR
655 DLLTOOL
656 OBJDUMP
657 LN_S
658 NM
659 ac_ct_DUMPBIN
660 DUMPBIN
661 LD
662 FGREP
663 EGREP
664 GREP
665 SED
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 LIBTOOL
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 LIBOTR_LIBTOOL_VERSION
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
702 AWK
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_silent_rules
762 enable_dependency_tracking
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_gnu_ld
768 with_sysroot
769 enable_libtool_lock
770 with_libgcrypt_prefix
771 enable_gcc_hardening
772 enable_linker_hardening
773 '
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures libotr 4.1.1 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/libotr]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of libotr 4.1.1:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-silent-rules less verbose build output (undo: "make V=1")
1402 --disable-silent-rules verbose build output (undo: "make V=0")
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --disable-gcc-hardening disable compiler security checks
1413 --disable-linker-hardening
1414 disable linker security fixups
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1420 both]
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1422 --with-sysroot=DIR Search for dependent libraries within DIR
1423 (or the compiler's sysroot if not specified).
1424 --with-libgcrypt-prefix=PFX
1425 prefix where LIBGCRYPT is installed (optional)
1426
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CPP C preprocessor
1436
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1439
1440 Report bugs to <[email protected]>.
1441 libotr home page: <https://otr.cypherpunks.ca>.
1442 _ACEOF
1443 ac_status=$?
1444 fi
1445
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1469
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499 fi
1500
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 libotr configure 4.1.1
1505 generated by GNU Autoconf 2.69
1506
1507 Copyright (C) 2012 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511 exit
1512 fi
1513
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1517
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550 fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554 } # ac_fn_c_try_compile
1555
1556 # ac_fn_c_try_link LINENO
1557 # -----------------------
1558 # Try to link conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_link ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 test -x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_link
1601
1602 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists and can be compiled using the include files in
1605 # INCLUDES, setting the cache variable VAR accordingly.
1606 ac_fn_c_check_header_compile ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1613 else
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 $4
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620 eval "$3=yes"
1621 else
1622 eval "$3=no"
1623 fi
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 fi
1626 eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630
1631 } # ac_fn_c_check_header_compile
1632
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_cpp ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } > conftest.i && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_cpp
1669
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705 fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_run
1711
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1739
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main ()
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_func
1778 cat >config.log <<_ACEOF
1779 This file contains any messages produced by compilers while
1780 running configure, to aid debugging if configure makes a mistake.
1781
1782 It was created by libotr $as_me 4.1.1, which was
1783 generated by GNU Autoconf 2.69. Invocation command line was
1784
1785 $ $0 $@
1786
1787 _ACEOF
1788 exec 5>>config.log
1789 {
1790 cat <<_ASUNAME
1791 ## --------- ##
1792 ## Platform. ##
1793 ## --------- ##
1794
1795 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1796 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1797 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1798 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1799 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1800
1801 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1802 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1803
1804 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1805 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1806 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1807 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1808 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1809 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1810 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1811
1812 _ASUNAME
1813
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 $as_echo "PATH: $as_dir"
1820 done
1821 IFS=$as_save_IFS
1822
1823 } >&5
1824
1825 cat >&5 <<_ACEOF
1826
1827
1828 ## ----------- ##
1829 ## Core tests. ##
1830 ## ----------- ##
1831
1832 _ACEOF
1833
1834
1835 # Keep a trace of the command line.
1836 # Strip out --no-create and --no-recursion so they do not pile up.
1837 # Strip out --silent because we don't want to record it for future runs.
1838 # Also quote any args containing shell meta-characters.
1839 # Make two passes to allow for proper duplicate-argument suppression.
1840 ac_configure_args=
1841 ac_configure_args0=
1842 ac_configure_args1=
1843 ac_must_keep_next=false
1844 for ac_pass in 1 2
1845 do
1846 for ac_arg
1847 do
1848 case $ac_arg in
1849 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851 | -silent | --silent | --silen | --sile | --sil)
1852 continue ;;
1853 *\'*)
1854 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 esac
1856 case $ac_pass in
1857 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1858 2)
1859 as_fn_append ac_configure_args1 " '$ac_arg'"
1860 if test $ac_must_keep_next = true; then
1861 ac_must_keep_next=false # Got value, back to normal.
1862 else
1863 case $ac_arg in
1864 *=* | --config-cache | -C | -disable-* | --disable-* \
1865 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867 | -with-* | --with-* | -without-* | --without-* | --x)
1868 case "$ac_configure_args0 " in
1869 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870 esac
1871 ;;
1872 -* ) ac_must_keep_next=true ;;
1873 esac
1874 fi
1875 as_fn_append ac_configure_args " '$ac_arg'"
1876 ;;
1877 esac
1878 done
1879 done
1880 { ac_configure_args0=; unset ac_configure_args0;}
1881 { ac_configure_args1=; unset ac_configure_args1;}
1882
1883 # When interrupted or exit'd, cleanup temporary files, and complete
1884 # config.log. We remove comments because anyway the quotes in there
1885 # would cause problems or look ugly.
1886 # WARNING: Use '\'' to represent an apostrophe within the trap.
1887 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888 trap 'exit_status=$?
1889 # Save into config.log some information that might help in debugging.
1890 {
1891 echo
1892
1893 $as_echo "## ---------------- ##
1894 ## Cache variables. ##
1895 ## ---------------- ##"
1896 echo
1897 # The following way of writing the cache mishandles newlines in values,
1898 (
1899 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900 eval ac_val=\$$ac_var
1901 case $ac_val in #(
1902 *${as_nl}*)
1903 case $ac_var in #(
1904 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906 esac
1907 case $ac_var in #(
1908 _ | IFS | as_nl) ;; #(
1909 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910 *) { eval $ac_var=; unset $ac_var;} ;;
1911 esac ;;
1912 esac
1913 done
1914 (set) 2>&1 |
1915 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916 *${as_nl}ac_space=\ *)
1917 sed -n \
1918 "s/'\''/'\''\\\\'\'''\''/g;
1919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920 ;; #(
1921 *)
1922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923 ;;
1924 esac |
1925 sort
1926 )
1927 echo
1928
1929 $as_echo "## ----------------- ##
1930 ## Output variables. ##
1931 ## ----------------- ##"
1932 echo
1933 for ac_var in $ac_subst_vars
1934 do
1935 eval ac_val=\$$ac_var
1936 case $ac_val in
1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938 esac
1939 $as_echo "$ac_var='\''$ac_val'\''"
1940 done | sort
1941 echo
1942
1943 if test -n "$ac_subst_files"; then
1944 $as_echo "## ------------------- ##
1945 ## File substitutions. ##
1946 ## ------------------- ##"
1947 echo
1948 for ac_var in $ac_subst_files
1949 do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in
1952 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 esac
1954 $as_echo "$ac_var='\''$ac_val'\''"
1955 done | sort
1956 echo
1957 fi
1958
1959 if test -s confdefs.h; then
1960 $as_echo "## ----------- ##
1961 ## confdefs.h. ##
1962 ## ----------- ##"
1963 echo
1964 cat confdefs.h
1965 echo
1966 fi
1967 test "$ac_signal" != 0 &&
1968 $as_echo "$as_me: caught signal $ac_signal"
1969 $as_echo "$as_me: exit $exit_status"
1970 } >&5
1971 rm -f core *.core core.conftest.* &&
1972 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973 exit $exit_status
1974 ' 0
1975 for ac_signal in 1 2 13 15; do
1976 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1977 done
1978 ac_signal=0
1979
1980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 rm -f -r conftest* confdefs.h
1982
1983 $as_echo "/* confdefs.h */" > confdefs.h
1984
1985 # Predefined preprocessor variables.
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_NAME "$PACKAGE_NAME"
1989 _ACEOF
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1993 _ACEOF
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1997 _ACEOF
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_STRING "$PACKAGE_STRING"
2001 _ACEOF
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_URL "$PACKAGE_URL"
2009 _ACEOF
2010
2011
2012 # Let the site file select an alternate cache file if it wants to.
2013 # Prefer an explicitly selected file to automatically selected ones.
2014 ac_site_file1=NONE
2015 ac_site_file2=NONE
2016 if test -n "$CONFIG_SITE"; then
2017 # We do not want a PATH search for config.site.
2018 case $CONFIG_SITE in #((
2019 -*) ac_site_file1=./$CONFIG_SITE;;
2020 */*) ac_site_file1=$CONFIG_SITE;;
2021 *) ac_site_file1=./$CONFIG_SITE;;
2022 esac
2023 elif test "x$prefix" != xNONE; then
2024 ac_site_file1=$prefix/share/config.site
2025 ac_site_file2=$prefix/etc/config.site
2026 else
2027 ac_site_file1=$ac_default_prefix/share/config.site
2028 ac_site_file2=$ac_default_prefix/etc/config.site
2029 fi
2030 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2031 do
2032 test "x$ac_site_file" = xNONE && continue
2033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2036 sed 's/^/| /' "$ac_site_file" >&5
2037 . "$ac_site_file" \
2038 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040 as_fn_error $? "failed to load site script $ac_site_file
2041 See \`config.log' for more details" "$LINENO" 5; }
2042 fi
2043 done
2044
2045 if test -r "$cache_file"; then
2046 # Some versions of bash will fail to source /dev/null (special files
2047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 $as_echo "$as_me: loading cache $cache_file" >&6;}
2051 case $cache_file in
2052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053 *) . "./$cache_file";;
2054 esac
2055 fi
2056 else
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 $as_echo "$as_me: creating cache $cache_file" >&6;}
2059 >$cache_file
2060 fi
2061
2062 # Check that the precious variables saved in the cache have kept the same
2063 # value.
2064 ac_cache_corrupted=false
2065 for ac_var in $ac_precious_vars; do
2066 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2067 eval ac_new_set=\$ac_env_${ac_var}_set
2068 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2069 eval ac_new_val=\$ac_env_${ac_var}_value
2070 case $ac_old_set,$ac_new_set in
2071 set,)
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2073 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2074 ac_cache_corrupted=: ;;
2075 ,set)
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2077 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2078 ac_cache_corrupted=: ;;
2079 ,);;
2080 *)
2081 if test "x$ac_old_val" != "x$ac_new_val"; then
2082 # differences in whitespace do not lead to failure.
2083 ac_old_val_w=`echo x $ac_old_val`
2084 ac_new_val_w=`echo x $ac_new_val`
2085 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2087 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2088 ac_cache_corrupted=:
2089 else
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2091 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2092 eval $ac_var=\$ac_old_val
2093 fi
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2095 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2097 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2098 fi;;
2099 esac
2100 # Pass precious variables to config.status.
2101 if test "$ac_new_set" = set; then
2102 case $ac_new_val in
2103 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 *) ac_arg=$ac_var=$ac_new_val ;;
2105 esac
2106 case " $ac_configure_args " in
2107 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2108 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2109 esac
2110 fi
2111 done
2112 if $ac_cache_corrupted; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2116 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2117 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2118 fi
2119 ## -------------------- ##
2120 ## Main body of script. ##
2121 ## -------------------- ##
2122
2123 ac_ext=c
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128
2129
2130
2131 ac_config_headers="$ac_config_headers config.h"
2132
2133 ac_aux_dir=
2134 for ac_dir in config "$srcdir"/config; do
2135 if test -f "$ac_dir/install-sh"; then
2136 ac_aux_dir=$ac_dir
2137 ac_install_sh="$ac_aux_dir/install-sh -c"
2138 break
2139 elif test -f "$ac_dir/install.sh"; then
2140 ac_aux_dir=$ac_dir
2141 ac_install_sh="$ac_aux_dir/install.sh -c"
2142 break
2143 elif test -f "$ac_dir/shtool"; then
2144 ac_aux_dir=$ac_dir
2145 ac_install_sh="$ac_aux_dir/shtool install -c"
2146 break
2147 fi
2148 done
2149 if test -z "$ac_aux_dir"; then
2150 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2151 fi
2152
2153 # These three variables are undocumented and unsupported,
2154 # and are intended to be withdrawn in a future Autoconf release.
2155 # They can cause serious problems if a builder's source tree is in a directory
2156 # whose full name contains unusual characters.
2157 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2158 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2159 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2160
2161
2162
2163 am__api_version='1.14'
2164
2165 # Find a good install program. We prefer a C program (faster),
2166 # so one script is as good as another. But avoid the broken or
2167 # incompatible versions:
2168 # SysV /etc/install, /usr/sbin/install
2169 # SunOS /usr/etc/install
2170 # IRIX /sbin/install
2171 # AIX /bin/install
2172 # AmigaOS /C/install, which installs bootblocks on floppy discs
2173 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2174 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2175 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2176 # OS/2's system install, which has a completely different semantic
2177 # ./install, which can be erroneously created by make from ./install.sh.
2178 # Reject install programs that cannot install multiple files.
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2180 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2181 if test -z "$INSTALL"; then
2182 if ${ac_cv_path_install+:} false; then :
2183 $as_echo_n "(cached) " >&6
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 # Account for people who put trailing slashes in PATH elements.
2191 case $as_dir/ in #((
2192 ./ | .// | /[cC]/* | \
2193 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2194 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2195 /usr/ucb/* ) ;;
2196 *)
2197 # OSF1 and SCO ODT 3.0 have their own names for install.
2198 # Don't use installbsd from OSF since it installs stuff as root
2199 # by default.
2200 for ac_prog in ginstall scoinst install; do
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2203 if test $ac_prog = install &&
2204 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205 # AIX install. It has an incompatible calling convention.
2206 :
2207 elif test $ac_prog = install &&
2208 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2209 # program-specific install script used by HP pwplus--don't use.
2210 :
2211 else
2212 rm -rf conftest.one conftest.two conftest.dir
2213 echo one > conftest.one
2214 echo two > conftest.two
2215 mkdir conftest.dir
2216 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2217 test -s conftest.one && test -s conftest.two &&
2218 test -s conftest.dir/conftest.one &&
2219 test -s conftest.dir/conftest.two
2220 then
2221 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2222 break 3
2223 fi
2224 fi
2225 fi
2226 done
2227 done
2228 ;;
2229 esac
2230
2231 done
2232 IFS=$as_save_IFS
2233
2234 rm -rf conftest.one conftest.two conftest.dir
2235
2236 fi
2237 if test "${ac_cv_path_install+set}" = set; then
2238 INSTALL=$ac_cv_path_install
2239 else
2240 # As a last resort, use the slow shell script. Don't cache a
2241 # value for INSTALL within a source directory, because that will
2242 # break other packages using the cache if that directory is
2243 # removed, or if the value is a relative name.
2244 INSTALL=$ac_install_sh
2245 fi
2246 fi
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2248 $as_echo "$INSTALL" >&6; }
2249
2250 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2251 # It thinks the first close brace ends the variable substitution.
2252 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2253
2254 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2255
2256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2257
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2259 $as_echo_n "checking whether build environment is sane... " >&6; }
2260 # Reject unsafe characters in $srcdir or the absolute working directory
2261 # name. Accept space and tab only in the latter.
2262 am_lf='
2263 '
2264 case `pwd` in
2265 *[\\\"\#\$\&\'\`$am_lf]*)
2266 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2267 esac
2268 case $srcdir in
2269 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2270 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2271 esac
2272
2273 # Do 'set' in a subshell so we don't clobber the current shell's
2274 # arguments. Must try -L first in case configure is actually a
2275 # symlink; some systems play weird games with the mod time of symlinks
2276 # (eg FreeBSD returns the mod time of the symlink's containing
2277 # directory).
2278 if (
2279 am_has_slept=no
2280 for am_try in 1 2; do
2281 echo "timestamp, slept: $am_has_slept" > conftest.file
2282 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2283 if test "$*" = "X"; then
2284 # -L didn't work.
2285 set X `ls -t "$srcdir/configure" conftest.file`
2286 fi
2287 if test "$*" != "X $srcdir/configure conftest.file" \
2288 && test "$*" != "X conftest.file $srcdir/configure"; then
2289
2290 # If neither matched, then we have a broken ls. This can happen
2291 # if, for instance, CONFIG_SHELL is bash and it inherits a
2292 # broken ls alias from the environment. This has actually
2293 # happened. Such a system could not be considered "sane".
2294 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2295 alias in your environment" "$LINENO" 5
2296 fi
2297 if test "$2" = conftest.file || test $am_try -eq 2; then
2298 break
2299 fi
2300 # Just in case.
2301 sleep 1
2302 am_has_slept=yes
2303 done
2304 test "$2" = conftest.file
2305 )
2306 then
2307 # Ok.
2308 :
2309 else
2310 as_fn_error $? "newly created file is older than distributed files!
2311 Check your system clock" "$LINENO" 5
2312 fi
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2314 $as_echo "yes" >&6; }
2315 # If we didn't sleep, we still need to ensure time stamps of config.status and
2316 # generated files are strictly newer.
2317 am_sleep_pid=
2318 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2319 ( sleep 1 ) &
2320 am_sleep_pid=$!
2321 fi
2322
2323 rm -f conftest.file
2324
2325 test "$program_prefix" != NONE &&
2326 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2327 # Use a double $ so make ignores it.
2328 test "$program_suffix" != NONE &&
2329 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2330 # Double any \ or $.
2331 # By default was `s,x,x', remove it if useless.
2332 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2333 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2334
2335 # expand $ac_aux_dir to an absolute path
2336 am_aux_dir=`cd $ac_aux_dir && pwd`
2337
2338 if test x"${MISSING+set}" != xset; then
2339 case $am_aux_dir in
2340 *\ * | *\ *)
2341 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2342 *)
2343 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2344 esac
2345 fi
2346 # Use eval to expand $SHELL
2347 if eval "$MISSING --is-lightweight"; then
2348 am_missing_run="$MISSING "
2349 else
2350 am_missing_run=
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2352 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2353 fi
2354
2355 if test x"${install_sh}" != xset; then
2356 case $am_aux_dir in
2357 *\ * | *\ *)
2358 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2359 *)
2360 install_sh="\${SHELL} $am_aux_dir/install-sh"
2361 esac
2362 fi
2363
2364 # Installed binaries are usually stripped using 'strip' when the user
2365 # run "make install-strip". However 'strip' might not be the right
2366 # tool to use in cross-compilation environments, therefore Automake
2367 # will honor the 'STRIP' environment variable to overrule this program.
2368 if test "$cross_compiling" != no; then
2369 if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2371 set dummy ${ac_tool_prefix}strip; ac_word=$2
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373 $as_echo_n "checking for $ac_word... " >&6; }
2374 if ${ac_cv_prog_STRIP+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 if test -n "$STRIP"; then
2378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2387 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 break 2
2390 fi
2391 done
2392 done
2393 IFS=$as_save_IFS
2394
2395 fi
2396 fi
2397 STRIP=$ac_cv_prog_STRIP
2398 if test -n "$STRIP"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2400 $as_echo "$STRIP" >&6; }
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403 $as_echo "no" >&6; }
2404 fi
2405
2406
2407 fi
2408 if test -z "$ac_cv_prog_STRIP"; then
2409 ac_ct_STRIP=$STRIP
2410 # Extract the first word of "strip", so it can be a program name with args.
2411 set dummy strip; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$ac_ct_STRIP"; then
2418 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_ac_ct_STRIP="strip"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2438 if test -n "$ac_ct_STRIP"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2440 $as_echo "$ac_ct_STRIP" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446 if test "x$ac_ct_STRIP" = x; then
2447 STRIP=":"
2448 else
2449 case $cross_compiling:$ac_tool_warned in
2450 yes:)
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2453 ac_tool_warned=yes ;;
2454 esac
2455 STRIP=$ac_ct_STRIP
2456 fi
2457 else
2458 STRIP="$ac_cv_prog_STRIP"
2459 fi
2460
2461 fi
2462 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2463
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2465 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2466 if test -z "$MKDIR_P"; then
2467 if ${ac_cv_path_mkdir+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_prog in mkdir gmkdir; do
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2478 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2479 'mkdir (GNU coreutils) '* | \
2480 'mkdir (coreutils) '* | \
2481 'mkdir (fileutils) '4.1*)
2482 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2483 break 3;;
2484 esac
2485 done
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491
2492 test -d ./--version && rmdir ./--version
2493 if test "${ac_cv_path_mkdir+set}" = set; then
2494 MKDIR_P="$ac_cv_path_mkdir -p"
2495 else
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for MKDIR_P within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 MKDIR_P="$ac_install_sh -d"
2501 fi
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2504 $as_echo "$MKDIR_P" >&6; }
2505
2506 for ac_prog in gawk mawk nawk awk
2507 do
2508 # Extract the first word of "$ac_prog", so it can be a program name with args.
2509 set dummy $ac_prog; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if ${ac_cv_prog_AWK+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$AWK"; then
2516 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_AWK="$ac_prog"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 AWK=$ac_cv_prog_AWK
2536 if test -n "$AWK"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2538 $as_echo "$AWK" >&6; }
2539 else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544
2545 test -n "$AWK" && break
2546 done
2547
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2549 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2550 set x ${MAKE-make}
2551 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2552 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat >conftest.make <<\_ACEOF
2556 SHELL = /bin/sh
2557 all:
2558 @echo '@@@%%%=$(MAKE)=@@@%%%'
2559 _ACEOF
2560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2562 *@@@%%%=?*=@@@%%%*)
2563 eval ac_cv_prog_make_${ac_make}_set=yes;;
2564 *)
2565 eval ac_cv_prog_make_${ac_make}_set=no;;
2566 esac
2567 rm -f conftest.make
2568 fi
2569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2571 $as_echo "yes" >&6; }
2572 SET_MAKE=
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2576 SET_MAKE="MAKE=${MAKE-make}"
2577 fi
2578
2579 rm -rf .tst 2>/dev/null
2580 mkdir .tst 2>/dev/null
2581 if test -d .tst; then
2582 am__leading_dot=.
2583 else
2584 am__leading_dot=_
2585 fi
2586 rmdir .tst 2>/dev/null
2587
2588 # Check whether --enable-silent-rules was given.
2589 if test "${enable_silent_rules+set}" = set; then :
2590 enableval=$enable_silent_rules;
2591 fi
2592
2593 case $enable_silent_rules in # (((
2594 yes) AM_DEFAULT_VERBOSITY=0;;
2595 no) AM_DEFAULT_VERBOSITY=1;;
2596 *) AM_DEFAULT_VERBOSITY=1;;
2597 esac
2598 am_make=${MAKE-make}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2600 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2601 if ${am_cv_make_support_nested_variables+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if $as_echo 'TRUE=$(BAR$(V))
2605 BAR0=false
2606 BAR1=true
2607 V=1
2608 am__doit:
2609 @$(TRUE)
2610 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2611 am_cv_make_support_nested_variables=yes
2612 else
2613 am_cv_make_support_nested_variables=no
2614 fi
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2617 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2618 if test $am_cv_make_support_nested_variables = yes; then
2619 AM_V='$(V)'
2620 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2621 else
2622 AM_V=$AM_DEFAULT_VERBOSITY
2623 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2624 fi
2625 AM_BACKSLASH='\'
2626
2627 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2628 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2629 # is not polluted with repeated "-I."
2630 am__isrc=' -I$(srcdir)'
2631 # test to see if srcdir already configured
2632 if test -f $srcdir/config.status; then
2633 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2634 fi
2635 fi
2636
2637 # test whether we have cygpath
2638 if test -z "$CYGPATH_W"; then
2639 if (cygpath --version) >/dev/null 2>/dev/null; then
2640 CYGPATH_W='cygpath -w'
2641 else
2642 CYGPATH_W=echo
2643 fi
2644 fi
2645
2646
2647 # Define the identity of the package.
2648 PACKAGE='libotr'
2649 VERSION='4.1.1'
2650
2651
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE "$PACKAGE"
2654 _ACEOF
2655
2656
2657 cat >>confdefs.h <<_ACEOF
2658 #define VERSION "$VERSION"
2659 _ACEOF
2660
2661 # Some tools Automake needs.
2662
2663 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2664
2665
2666 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2667
2668
2669 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2670
2671
2672 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2673
2674
2675 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2676
2677 # For better backward compatibility. To be removed once Automake 1.9.x
2678 # dies out for good. For more background, see:
2679 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2680 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2681 mkdir_p='$(MKDIR_P)'
2682
2683 # We need awk for the "check" target. The system "awk" is bad on
2684 # some platforms.
2685 # Always define AMTAR for backward compatibility. Yes, it's still used
2686 # in the wild :-( We should find a proper way to deprecate it ...
2687 AMTAR='$${TAR-tar}'
2688
2689
2690 # We'll loop over all known methods to create a tar archive until one works.
2691 _am_tools='gnutar pax cpio none'
2692
2693 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2694
2695
2696
2697
2698
2699
2700 # POSIX will say in a future version that running "rm -f" with no argument
2701 # is OK; and we want to be able to make that assumption in our Makefile
2702 # recipes. So use an aggressive probe to check that the usage we want is
2703 # actually supported "in the wild" to an acceptable degree.
2704 # See automake bug#10828.
2705 # To make any issue more visible, cause the running configure to be aborted
2706 # by default if the 'rm' program in use doesn't match our expectations; the
2707 # user can still override this though.
2708 if rm -f && rm -fr && rm -rf; then : OK; else
2709 cat >&2 <<'END'
2710 Oops!
2711
2712 Your 'rm' program seems unable to run without file operands specified
2713 on the command line, even when the '-f' option is present. This is contrary
2714 to the behaviour of most rm programs out there, and not conforming with
2715 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2716
2717 Please tell [email protected] about your system, including the value
2718 of your $PATH and any error possibly output before this message. This
2719 can help us improve future automake versions.
2720
2721 END
2722 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2723 echo 'Configuration will proceed anyway, since you have set the' >&2
2724 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2725 echo >&2
2726 else
2727 cat >&2 <<'END'
2728 Aborting the configuration process, to ensure you take notice of the issue.
2729
2730 You can download and install GNU coreutils to get an 'rm' implementation
2731 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2732
2733 If you want to complete the configuration process using your problematic
2734 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2735 to "yes", and re-run configure.
2736
2737 END
2738 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2739 fi
2740 fi
2741 LIBOTR_LIBTOOL_VERSION="6:1:1"
2742
2743
2744 # Silent compilation so warnings can be spotted.
2745 # Check whether --enable-silent-rules was given.
2746 if test "${enable_silent_rules+set}" = set; then :
2747 enableval=$enable_silent_rules;
2748 fi
2749
2750 case $enable_silent_rules in # (((
2751 yes) AM_DEFAULT_VERBOSITY=0;;
2752 no) AM_DEFAULT_VERBOSITY=1;;
2753 *) AM_DEFAULT_VERBOSITY=0;;
2754 esac
2755 am_make=${MAKE-make}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2757 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2758 if ${am_cv_make_support_nested_variables+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if $as_echo 'TRUE=$(BAR$(V))
2762 BAR0=false
2763 BAR1=true
2764 V=1
2765 am__doit:
2766 @$(TRUE)
2767 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2768 am_cv_make_support_nested_variables=yes
2769 else
2770 am_cv_make_support_nested_variables=no
2771 fi
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2774 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2775 if test $am_cv_make_support_nested_variables = yes; then
2776 AM_V='$(V)'
2777 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2778 else
2779 AM_V=$AM_DEFAULT_VERBOSITY
2780 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2781 fi
2782 AM_BACKSLASH='\'
2783
2784
2785
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 CC=$ac_cv_prog_CC
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 fi
2831 if test -z "$ac_cv_prog_CC"; then
2832 ac_ct_CC=$CC
2833 # Extract the first word of "gcc", so it can be a program name with args.
2834 set dummy gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869 if test "x$ac_ct_CC" = x; then
2870 CC=""
2871 else
2872 case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2877 esac
2878 CC=$ac_ct_CC
2879 fi
2880 else
2881 CC="$ac_cv_prog_CC"
2882 fi
2883
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_CC+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_CC="${ac_tool_prefix}cc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 fi
2924 fi
2925 if test -z "$CC"; then
2926 # Extract the first word of "cc", so it can be a program name with args.
2927 set dummy cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 ac_prog_rejected=no
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945 ac_prog_rejected=yes
2946 continue
2947 fi
2948 ac_cv_prog_CC="cc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 if test $ac_prog_rejected = yes; then
2957 # We found a bogon in the path, so make sure we never use it.
2958 set dummy $ac_cv_prog_CC
2959 shift
2960 if test $# != 0; then
2961 # We chose a different compiler from the bogus one.
2962 # However, it has the same basename, so the bogon will be chosen
2963 # first if we set CC to just the basename; use the full file name.
2964 shift
2965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2966 fi
2967 fi
2968 fi
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 fi
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 for ac_prog in cl.exe
2984 do
2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 test -n "$CC" && break
3023 done
3024 fi
3025 if test -z "$CC"; then
3026 ac_ct_CC=$CC
3027 for ac_prog in cl.exe
3028 do
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_ac_ct_CC="$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059 $as_echo "$ac_ct_CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 fi
3064
3065
3066 test -n "$ac_ct_CC" && break
3067 done
3068
3069 if test "x$ac_ct_CC" = x; then
3070 CC=""
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073 yes:)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078 CC=$ac_ct_CC
3079 fi
3080 fi
3081
3082 fi
3083
3084
3085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "no acceptable C compiler found in \$PATH
3088 See \`config.log' for more details" "$LINENO" 5; }
3089
3090 # Provide some information about the compiler.
3091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3092 set X $ac_compile
3093 ac_compiler=$2
3094 for ac_option in --version -v -V -qversion; do
3095 { { ac_try="$ac_compiler $ac_option >&5"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3103 ac_status=$?
3104 if test -s conftest.err; then
3105 sed '10a\
3106 ... rest of stderr output deleted ...
3107 10q' conftest.err >conftest.er1
3108 cat conftest.er1 >&5
3109 fi
3110 rm -f conftest.er1 conftest.err
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }
3113 done
3114
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3130 # of exeext.
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3132 $as_echo_n "checking whether the C compiler works... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3134
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3137
3138 ac_rmfiles=
3139 for ac_file in $ac_files
3140 do
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3144 esac
3145 done
3146 rm -f $ac_rmfiles
3147
3148 if { { ac_try="$ac_link_default"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link_default") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3163 # Autoconf.
3164 for ac_file in $ac_files ''
3165 do
3166 test -f "$ac_file" || continue
3167 case $ac_file in
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3169 ;;
3170 [ab].out )
3171 # We found the default executable, but exeext='' is most
3172 # certainly right.
3173 break;;
3174 *.* )
3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3176 then :; else
3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 fi
3179 # We set ac_cv_exeext here because the later test for it is not
3180 # safe: cross compilers may not add the suffix if given an `-o'
3181 # argument, so we may need to know it at that point already.
3182 # Even if this section looks crufty: it has the advantage of
3183 # actually working.
3184 break;;
3185 * )
3186 break;;
3187 esac
3188 done
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3190
3191 else
3192 ac_file=''
3193 fi
3194 if test -z "$ac_file"; then :
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error 77 "C compiler cannot create executables
3203 See \`config.log' for more details" "$LINENO" 5; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3209 $as_echo_n "checking for C compiler default output file name... " >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3211 $as_echo "$ac_file" >&6; }
3212 ac_exeext=$ac_cv_exeext
3213
3214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3217 $as_echo_n "checking for suffix of executables... " >&6; }
3218 if { { ac_try="$ac_link"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3230 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3231 # work properly (i.e., refer to `conftest.exe'), while it won't with
3232 # `rm'.
3233 for ac_file in conftest.exe conftest conftest.*; do
3234 test -f "$ac_file" || continue
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 break;;
3239 * ) break;;
3240 esac
3241 done
3242 else
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3246 See \`config.log' for more details" "$LINENO" 5; }
3247 fi
3248 rm -f conftest conftest$ac_cv_exeext
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3250 $as_echo "$ac_cv_exeext" >&6; }
3251
3252 rm -f conftest.$ac_ext
3253 EXEEXT=$ac_cv_exeext
3254 ac_exeext=$EXEEXT
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257 #include <stdio.h>
3258 int
3259 main ()
3260 {
3261 FILE *f = fopen ("conftest.out", "w");
3262 return ferror (f) || fclose (f) != 0;
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 ac_clean_files="$ac_clean_files conftest.out"
3269 # Check that the compiler produces executables we can run. If not, either
3270 # the compiler is broken, or we cross compile.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3272 $as_echo_n "checking whether we are cross compiling... " >&6; }
3273 if test "$cross_compiling" != yes; then
3274 { { ac_try="$ac_link"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3285 if { ac_try='./conftest$ac_cv_exeext'
3286 { { case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; }; then
3296 cross_compiling=no
3297 else
3298 if test "$cross_compiling" = maybe; then
3299 cross_compiling=yes
3300 else
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details" "$LINENO" 5; }
3306 fi
3307 fi
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3311
3312 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3315 $as_echo_n "checking for suffix of object files... " >&6; }
3316 if ${ac_cv_objext+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321
3322 int
3323 main ()
3324 {
3325
3326 ;
3327 return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.o conftest.obj
3331 if { { ac_try="$ac_compile"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_compile") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 for ac_file in conftest.o conftest.obj conftest.*; do
3343 test -f "$ac_file" || continue;
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3347 break;;
3348 esac
3349 done
3350 else
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of object files: cannot compile
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3362 $as_echo "$ac_cv_objext" >&6; }
3363 OBJEXT=$ac_cv_objext
3364 ac_objext=$OBJEXT
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3367 if ${ac_cv_c_compiler_gnu+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_compiler_gnu=yes
3386 else
3387 ac_compiler_gnu=no
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3391
3392 fi
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3395 if test $ac_compiler_gnu = yes; then
3396 GCC=yes
3397 else
3398 GCC=
3399 fi
3400 ac_test_CFLAGS=${CFLAGS+set}
3401 ac_save_CFLAGS=$CFLAGS
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3404 if ${ac_cv_prog_cc_g+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 ac_save_c_werror_flag=$ac_c_werror_flag
3408 ac_c_werror_flag=yes
3409 ac_cv_prog_cc_g=no
3410 CFLAGS="-g"
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_g=yes
3424 else
3425 CFLAGS=""
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438
3439 else
3440 ac_c_werror_flag=$ac_save_c_werror_flag
3441 CFLAGS="-g"
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444
3445 int
3446 main ()
3447 {
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_cv_prog_cc_g=yes
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 fi
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 ac_c_werror_flag=$ac_save_c_werror_flag
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3464 $as_echo "$ac_cv_prog_cc_g" >&6; }
3465 if test "$ac_test_CFLAGS" = set; then
3466 CFLAGS=$ac_save_CFLAGS
3467 elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473 else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3482 if ${ac_cv_prog_cc_c89+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 ac_cv_prog_cc_c89=no
3486 ac_save_CC=$CC
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489 #include <stdarg.h>
3490 #include <stdio.h>
3491 struct stat;
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3496 char **p;
3497 int i;
3498 {
3499 return p[i];
3500 }
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3502 {
3503 char *s;
3504 va_list v;
3505 va_start (v,p);
3506 s = g (p, va_arg (v,int));
3507 va_end (v);
3508 return s;
3509 }
3510
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3519
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521 inside strings and character constants. */
3522 #define FOO(x) 'x'
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3524
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529 int argc;
3530 char **argv;
3531 int
3532 main ()
3533 {
3534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3541 do
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_c89=$ac_arg
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext
3547 test "x$ac_cv_prog_cc_c89" != "xno" && break
3548 done
3549 rm -f conftest.$ac_ext
3550 CC=$ac_save_CC
3551
3552 fi
3553 # AC_CACHE_VAL
3554 case "x$ac_cv_prog_cc_c89" in
3555 x)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3558 xno)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3561 *)
3562 CC="$CC $ac_cv_prog_cc_c89"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3565 esac
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3567
3568 fi
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
3576 ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3582 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3583 if ${am_cv_prog_cc_c_o+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588
3589 int
3590 main ()
3591 {
3592
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 # Make sure it works both with $CC and with simple cc.
3598 # Following AC_PROG_CC_C_O, we do the test twice because some
3599 # compilers refuse to overwrite an existing .o file with -o,
3600 # though they will create one.
3601 am_cv_prog_cc_c_o=yes
3602 for am_i in 1 2; do
3603 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3604 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } \
3608 && test -f conftest2.$ac_objext; then
3609 : OK
3610 else
3611 am_cv_prog_cc_c_o=no
3612 break
3613 fi
3614 done
3615 rm -f core conftest*
3616 unset am_i
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3619 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3620 if test "$am_cv_prog_cc_c_o" != yes; then
3621 # Losing compiler, so override with the script.
3622 # FIXME: It is wrong to rewrite CC.
3623 # But if we don't then we get into trouble of one sort or another.
3624 # A longer-term fix would be to have automake use am__CC in this case,
3625 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3626 CC="$am_aux_dir/compile $CC"
3627 fi
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634 DEPDIR="${am__leading_dot}deps"
3635
3636 ac_config_commands="$ac_config_commands depfiles"
3637
3638
3639 am_make=${MAKE-make}
3640 cat > confinc << 'END'
3641 am__doit:
3642 @echo this is the am__doit target
3643 .PHONY: am__doit
3644 END
3645 # If we don't find an include directive, just comment out the code.
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3647 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3648 am__include="#"
3649 am__quote=
3650 _am_result=none
3651 # First try GNU make style include.
3652 echo "include confinc" > confmf
3653 # Ignore all kinds of additional output from 'make'.
3654 case `$am_make -s -f confmf 2> /dev/null` in #(
3655 *the\ am__doit\ target*)
3656 am__include=include
3657 am__quote=
3658 _am_result=GNU
3659 ;;
3660 esac
3661 # Now try BSD make style include.
3662 if test "$am__include" = "#"; then
3663 echo '.include "confinc"' > confmf
3664 case `$am_make -s -f confmf 2> /dev/null` in #(
3665 *the\ am__doit\ target*)
3666 am__include=.include
3667 am__quote="\""
3668 _am_result=BSD
3669 ;;
3670 esac
3671 fi
3672
3673
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3675 $as_echo "$_am_result" >&6; }
3676 rm -f confinc confmf
3677
3678 # Check whether --enable-dependency-tracking was given.
3679 if test "${enable_dependency_tracking+set}" = set; then :
3680 enableval=$enable_dependency_tracking;
3681 fi
3682
3683 if test "x$enable_dependency_tracking" != xno; then
3684 am_depcomp="$ac_aux_dir/depcomp"
3685 AMDEPBACKSLASH='\'
3686 am__nodep='_no'
3687 fi
3688 if test "x$enable_dependency_tracking" != xno; then
3689 AMDEP_TRUE=
3690 AMDEP_FALSE='#'
3691 else
3692 AMDEP_TRUE='#'
3693 AMDEP_FALSE=
3694 fi
3695
3696
3697
3698 depcc="$CC" am_compiler_list=
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3701 $as_echo_n "checking dependency style of $depcc... " >&6; }
3702 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3706 # We make a subdir and do the tests there. Otherwise we can end up
3707 # making bogus files that we don't know about and never remove. For
3708 # instance it was reported that on HP-UX the gcc test will end up
3709 # making a dummy file named 'D' -- because '-MD' means "put the output
3710 # in D".
3711 rm -rf conftest.dir
3712 mkdir conftest.dir
3713 # Copy depcomp to subdir because otherwise we won't find it if we're
3714 # using a relative directory.
3715 cp "$am_depcomp" conftest.dir
3716 cd conftest.dir
3717 # We will build objects and dependencies in a subdirectory because
3718 # it helps to detect inapplicable dependency modes. For instance
3719 # both Tru64's cc and ICC support -MD to output dependencies as a
3720 # side effect of compilation, but ICC will put the dependencies in
3721 # the current directory while Tru64 will put them in the object
3722 # directory.
3723 mkdir sub
3724
3725 am_cv_CC_dependencies_compiler_type=none
3726 if test "$am_compiler_list" = ""; then
3727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728 fi
3729 am__universal=false
3730 case " $depcc " in #(
3731 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3732 esac
3733
3734 for depmode in $am_compiler_list; do
3735 # Setup a source with many dependencies, because some compilers
3736 # like to wrap large dependency lists on column 80 (with \), and
3737 # we should not choose a depcomp mode which is confused by this.
3738 #
3739 # We need to recreate these files for each test, as the compiler may
3740 # overwrite some of them when testing with obscure command lines.
3741 # This happens at least with the AIX C compiler.
3742 : > sub/conftest.c
3743 for i in 1 2 3 4 5 6; do
3744 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3745 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3746 # Solaris 10 /bin/sh.
3747 echo '/* dummy */' > sub/conftst$i.h
3748 done
3749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750
3751 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3752 # mode. It turns out that the SunPro C++ compiler does not properly
3753 # handle '-M -o', and we need to detect this. Also, some Intel
3754 # versions had trouble with output in subdirs.
3755 am__obj=sub/conftest.${OBJEXT-o}
3756 am__minus_obj="-o $am__obj"
3757 case $depmode in
3758 gcc)
3759 # This depmode causes a compiler race in universal mode.
3760 test "$am__universal" = false || continue
3761 ;;
3762 nosideeffect)
3763 # After this tag, mechanisms are not by side-effect, so they'll
3764 # only be used when explicitly requested.
3765 if test "x$enable_dependency_tracking" = xyes; then
3766 continue
3767 else
3768 break
3769 fi
3770 ;;
3771 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3772 # This compiler won't grok '-c -o', but also, the minuso test has
3773 # not run yet. These depmodes are late enough in the game, and
3774 # so weak that their functioning should not be impacted.
3775 am__obj=conftest.${OBJEXT-o}
3776 am__minus_obj=
3777 ;;
3778 none) break ;;
3779 esac
3780 if depmode=$depmode \
3781 source=sub/conftest.c object=$am__obj \
3782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3784 >/dev/null 2>conftest.err &&
3785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3789 # icc doesn't choke on unknown options, it will just issue warnings
3790 # or remarks (even with -Werror). So we grep stderr for any message
3791 # that says an option was ignored or not supported.
3792 # When given -MP, icc 7.0 and 7.1 complain thusly:
3793 # icc: Command line warning: ignoring option '-M'; no argument required
3794 # The diagnosis changed in icc 8.0:
3795 # icc: Command line remark: option '-MP' not supported
3796 if (grep 'ignoring option' conftest.err ||
3797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3798 am_cv_CC_dependencies_compiler_type=$depmode
3799 break
3800 fi
3801 fi
3802 done
3803
3804 cd ..
3805 rm -rf conftest.dir
3806 else
3807 am_cv_CC_dependencies_compiler_type=none
3808 fi
3809
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3812 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3813 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3814
3815 if
3816 test "x$enable_dependency_tracking" != xno \
3817 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3818 am__fastdepCC_TRUE=
3819 am__fastdepCC_FALSE='#'
3820 else
3821 am__fastdepCC_TRUE='#'
3822 am__fastdepCC_FALSE=
3823 fi
3824
3825
3826 case `pwd` in
3827 *\ * | *\ *)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3829 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3830 esac
3831
3832
3833
3834 macro_version='2.4.2'
3835 macro_revision='1.3337'
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849 ltmain="$ac_aux_dir/ltmain.sh"
3850
3851 # Make sure we can run config.sub.
3852 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3853 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3856 $as_echo_n "checking build system type... " >&6; }
3857 if ${ac_cv_build+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 ac_build_alias=$build_alias
3861 test "x$ac_build_alias" = x &&
3862 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3863 test "x$ac_build_alias" = x &&
3864 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3865 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3866 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3870 $as_echo "$ac_cv_build" >&6; }
3871 case $ac_cv_build in
3872 *-*-*) ;;
3873 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3874 esac
3875 build=$ac_cv_build
3876 ac_save_IFS=$IFS; IFS='-'
3877 set x $ac_cv_build
3878 shift
3879 build_cpu=$1
3880 build_vendor=$2
3881 shift; shift
3882 # Remember, the first character of IFS is used to create $*,
3883 # except with old shells:
3884 build_os=$*
3885 IFS=$ac_save_IFS
3886 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3887
3888
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3890 $as_echo_n "checking host system type... " >&6; }
3891 if ${ac_cv_host+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test "x$host_alias" = x; then
3895 ac_cv_host=$ac_cv_build
3896 else
3897 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3898 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3899 fi
3900
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3903 $as_echo "$ac_cv_host" >&6; }
3904 case $ac_cv_host in
3905 *-*-*) ;;
3906 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3907 esac
3908 host=$ac_cv_host
3909 ac_save_IFS=$IFS; IFS='-'
3910 set x $ac_cv_host
3911 shift
3912 host_cpu=$1
3913 host_vendor=$2
3914 shift; shift
3915 # Remember, the first character of IFS is used to create $*,
3916 # except with old shells:
3917 host_os=$*
3918 IFS=$ac_save_IFS
3919 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3920
3921
3922 # Backslashify metacharacters that are still active within
3923 # double-quoted strings.
3924 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3925
3926 # Same as above, but do not quote variable references.
3927 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3928
3929 # Sed substitution to delay expansion of an escaped shell variable in a
3930 # double_quote_subst'ed string.
3931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3932
3933 # Sed substitution to delay expansion of an escaped single quote.
3934 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3935
3936 # Sed substitution to avoid accidental globbing in evaled expressions
3937 no_glob_subst='s/\*/\\\*/g'
3938
3939 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3942
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3944 $as_echo_n "checking how to print strings... " >&6; }
3945 # Test print first, because it will be a builtin if present.
3946 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3948 ECHO='print -r --'
3949 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3950 ECHO='printf %s\n'
3951 else
3952 # Use this function as a fallback that always works.
3953 func_fallback_echo ()
3954 {
3955 eval 'cat <<_LTECHO_EOF
3956 $1
3957 _LTECHO_EOF'
3958 }
3959 ECHO='func_fallback_echo'
3960 fi
3961
3962 # func_echo_all arg...
3963 # Invoke $ECHO with all args, space-separated.
3964 func_echo_all ()
3965 {
3966 $ECHO ""
3967 }
3968
3969 case "$ECHO" in
3970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3971 $as_echo "printf" >&6; } ;;
3972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3973 $as_echo "print -r" >&6; } ;;
3974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3975 $as_echo "cat" >&6; } ;;
3976 esac
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3992 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3993 if ${ac_cv_path_SED+:} false; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3997 for ac_i in 1 2 3 4 5 6 7; do
3998 ac_script="$ac_script$as_nl$ac_script"
3999 done
4000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4001 { ac_script=; unset ac_script;}
4002 if test -z "$SED"; then
4003 ac_path_SED_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in sed gsed; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4013 as_fn_executable_p "$ac_path_SED" || continue
4014 # Check for GNU ac_path_SED and select it if it is found.
4015 # Check for GNU $ac_path_SED
4016 case `"$ac_path_SED" --version 2>&1` in
4017 *GNU*)
4018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4019 *)
4020 ac_count=0
4021 $as_echo_n 0123456789 >"conftest.in"
4022 while :
4023 do
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 $as_echo '' >> "conftest.nl"
4028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 as_fn_arith $ac_count + 1 && ac_count=$as_val
4031 if test $ac_count -gt ${ac_path_SED_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_SED="$ac_path_SED"
4034 ac_path_SED_max=$ac_count
4035 fi
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 esac
4041
4042 $ac_path_SED_found && break 3
4043 done
4044 done
4045 done
4046 IFS=$as_save_IFS
4047 if test -z "$ac_cv_path_SED"; then
4048 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4049 fi
4050 else
4051 ac_cv_path_SED=$SED
4052 fi
4053
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4056 $as_echo "$ac_cv_path_SED" >&6; }
4057 SED="$ac_cv_path_SED"
4058 rm -f conftest.sed
4059
4060 test -z "$SED" && SED=sed
4061 Xsed="$SED -e 1s/^X//"
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4074 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4075 if ${ac_cv_path_GREP+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -z "$GREP"; then
4079 ac_path_GREP_found=false
4080 # Loop through the user's path and test for each of PROGNAME-LIST
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083 do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_prog in grep ggrep; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089 as_fn_executable_p "$ac_path_GREP" || continue
4090 # Check for GNU ac_path_GREP and select it if it is found.
4091 # Check for GNU $ac_path_GREP
4092 case `"$ac_path_GREP" --version 2>&1` in
4093 *GNU*)
4094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095 *)
4096 ac_count=0
4097 $as_echo_n 0123456789 >"conftest.in"
4098 while :
4099 do
4100 cat "conftest.in" "conftest.in" >"conftest.tmp"
4101 mv "conftest.tmp" "conftest.in"
4102 cp "conftest.in" "conftest.nl"
4103 $as_echo 'GREP' >> "conftest.nl"
4104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106 as_fn_arith $ac_count + 1 && ac_count=$as_val
4107 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108 # Best one so far, save it but keep looking for a better one
4109 ac_cv_path_GREP="$ac_path_GREP"
4110 ac_path_GREP_max=$ac_count
4111 fi
4112 # 10*(2^10) chars as input seems more than enough
4113 test $ac_count -gt 10 && break
4114 done
4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116 esac
4117
4118 $ac_path_GREP_found && break 3
4119 done
4120 done
4121 done
4122 IFS=$as_save_IFS
4123 if test -z "$ac_cv_path_GREP"; then
4124 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4125 fi
4126 else
4127 ac_cv_path_GREP=$GREP
4128 fi
4129
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4132 $as_echo "$ac_cv_path_GREP" >&6; }
4133 GREP="$ac_cv_path_GREP"
4134
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4137 $as_echo_n "checking for egrep... " >&6; }
4138 if ${ac_cv_path_EGREP+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4142 then ac_cv_path_EGREP="$GREP -E"
4143 else
4144 if test -z "$EGREP"; then
4145 ac_path_EGREP_found=false
4146 # Loop through the user's path and test for each of PROGNAME-LIST
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_prog in egrep; do
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4155 as_fn_executable_p "$ac_path_EGREP" || continue
4156 # Check for GNU ac_path_EGREP and select it if it is found.
4157 # Check for GNU $ac_path_EGREP
4158 case `"$ac_path_EGREP" --version 2>&1` in
4159 *GNU*)
4160 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4161 *)
4162 ac_count=0
4163 $as_echo_n 0123456789 >"conftest.in"
4164 while :
4165 do
4166 cat "conftest.in" "conftest.in" >"conftest.tmp"
4167 mv "conftest.tmp" "conftest.in"
4168 cp "conftest.in" "conftest.nl"
4169 $as_echo 'EGREP' >> "conftest.nl"
4170 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172 as_fn_arith $ac_count + 1 && ac_count=$as_val
4173 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4174 # Best one so far, save it but keep looking for a better one
4175 ac_cv_path_EGREP="$ac_path_EGREP"
4176 ac_path_EGREP_max=$ac_count
4177 fi
4178 # 10*(2^10) chars as input seems more than enough
4179 test $ac_count -gt 10 && break
4180 done
4181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4182 esac
4183
4184 $ac_path_EGREP_found && break 3
4185 done
4186 done
4187 done
4188 IFS=$as_save_IFS
4189 if test -z "$ac_cv_path_EGREP"; then
4190 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4191 fi
4192 else
4193 ac_cv_path_EGREP=$EGREP
4194 fi
4195
4196 fi
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4199 $as_echo "$ac_cv_path_EGREP" >&6; }
4200 EGREP="$ac_cv_path_EGREP"
4201
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4204 $as_echo_n "checking for fgrep... " >&6; }
4205 if ${ac_cv_path_FGREP+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4209 then ac_cv_path_FGREP="$GREP -F"
4210 else
4211 if test -z "$FGREP"; then
4212 ac_path_FGREP_found=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_prog in fgrep; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4222 as_fn_executable_p "$ac_path_FGREP" || continue
4223 # Check for GNU ac_path_FGREP and select it if it is found.
4224 # Check for GNU $ac_path_FGREP
4225 case `"$ac_path_FGREP" --version 2>&1` in
4226 *GNU*)
4227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4228 *)
4229 ac_count=0
4230 $as_echo_n 0123456789 >"conftest.in"
4231 while :
4232 do
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 $as_echo 'FGREP' >> "conftest.nl"
4237 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239 as_fn_arith $ac_count + 1 && ac_count=$as_val
4240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_FGREP="$ac_path_FGREP"
4243 ac_path_FGREP_max=$ac_count
4244 fi
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4247 done
4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 esac
4250
4251 $ac_path_FGREP_found && break 3
4252 done
4253 done
4254 done
4255 IFS=$as_save_IFS
4256 if test -z "$ac_cv_path_FGREP"; then
4257 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4258 fi
4259 else
4260 ac_cv_path_FGREP=$FGREP
4261 fi
4262
4263 fi
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4266 $as_echo "$ac_cv_path_FGREP" >&6; }
4267 FGREP="$ac_cv_path_FGREP"
4268
4269
4270 test -z "$GREP" && GREP=grep
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290 # Check whether --with-gnu-ld was given.
4291 if test "${with_gnu_ld+set}" = set; then :
4292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4293 else
4294 with_gnu_ld=no
4295 fi
4296
4297 ac_prog=ld
4298 if test "$GCC" = yes; then
4299 # Check if gcc -print-prog-name=ld gives a path.
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4301 $as_echo_n "checking for ld used by $CC... " >&6; }
4302 case $host in
4303 *-*-mingw*)
4304 # gcc leaves a trailing carriage return which upsets mingw
4305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4306 *)
4307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4308 esac
4309 case $ac_prog in
4310 # Accept absolute paths.
4311 [\\/]* | ?:[\\/]*)
4312 re_direlt='/[^/][^/]*/\.\./'
4313 # Canonicalize the pathname of ld
4314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4317 done
4318 test -z "$LD" && LD="$ac_prog"
4319 ;;
4320 "")
4321 # If it fails, then pretend we aren't using GCC.
4322 ac_prog=ld
4323 ;;
4324 *)
4325 # If it is relative, then search for the first ld in PATH.
4326 with_gnu_ld=unknown
4327 ;;
4328 esac
4329 elif test "$with_gnu_ld" = yes; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4331 $as_echo_n "checking for GNU ld... " >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4334 $as_echo_n "checking for non-GNU ld... " >&6; }
4335 fi
4336 if ${lt_cv_path_LD+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -z "$LD"; then
4340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4341 for ac_dir in $PATH; do
4342 IFS="$lt_save_ifs"
4343 test -z "$ac_dir" && ac_dir=.
4344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4345 lt_cv_path_LD="$ac_dir/$ac_prog"
4346 # Check to see if the program is GNU ld. I'd rather use --version,
4347 # but apparently some variants of GNU ld only accept -v.
4348 # Break only if it was the GNU/non-GNU ld that we prefer.
4349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4350 *GNU* | *'with BFD'*)
4351 test "$with_gnu_ld" != no && break
4352 ;;
4353 *)
4354 test "$with_gnu_ld" != yes && break
4355 ;;
4356 esac
4357 fi
4358 done
4359 IFS="$lt_save_ifs"
4360 else
4361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4362 fi
4363 fi
4364
4365 LD="$lt_cv_path_LD"
4366 if test -n "$LD"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4368 $as_echo "$LD" >&6; }
4369 else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 fi
4373 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4376 if ${lt_cv_prog_gnu_ld+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4380 case `$LD -v 2>&1 </dev/null` in
4381 *GNU* | *'with BFD'*)
4382 lt_cv_prog_gnu_ld=yes
4383 ;;
4384 *)
4385 lt_cv_prog_gnu_ld=no
4386 ;;
4387 esac
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4391 with_gnu_ld=$lt_cv_prog_gnu_ld
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4403 if ${lt_cv_path_NM+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test -n "$NM"; then
4407 # Let the user override the test.
4408 lt_cv_path_NM="$NM"
4409 else
4410 lt_nm_to_check="${ac_tool_prefix}nm"
4411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4412 lt_nm_to_check="$lt_nm_to_check nm"
4413 fi
4414 for lt_tmp_nm in $lt_nm_to_check; do
4415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4417 IFS="$lt_save_ifs"
4418 test -z "$ac_dir" && ac_dir=.
4419 tmp_nm="$ac_dir/$lt_tmp_nm"
4420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4421 # Check to see if the nm accepts a BSD-compat flag.
4422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4423 # nm: unknown option "B" ignored
4424 # Tru64's nm complains that /dev/null is an invalid object file
4425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4426 */dev/null* | *'Invalid file or object type'*)
4427 lt_cv_path_NM="$tmp_nm -B"
4428 break
4429 ;;
4430 *)
4431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4432 */dev/null*)
4433 lt_cv_path_NM="$tmp_nm -p"
4434 break
4435 ;;
4436 *)
4437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4438 continue # so that we can try to find one that supports BSD flags
4439 ;;
4440 esac
4441 ;;
4442 esac
4443 fi
4444 done
4445 IFS="$lt_save_ifs"
4446 done
4447 : ${lt_cv_path_NM=no}
4448 fi
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4451 $as_echo "$lt_cv_path_NM" >&6; }
4452 if test "$lt_cv_path_NM" != "no"; then
4453 NM="$lt_cv_path_NM"
4454 else
4455 # Didn't find any BSD compatible name lister, look for dumpbin.
4456 if test -n "$DUMPBIN"; then :
4457 # Let the user override the test.
4458 else
4459 if test -n "$ac_tool_prefix"; then
4460 for ac_prog in dumpbin "link -dump"
4461 do
4462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if ${ac_cv_prog_DUMPBIN+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -n "$DUMPBIN"; then
4470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 fi
4488 fi
4489 DUMPBIN=$ac_cv_prog_DUMPBIN
4490 if test -n "$DUMPBIN"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4492 $as_echo "$DUMPBIN" >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4496 fi
4497
4498
4499 test -n "$DUMPBIN" && break
4500 done
4501 fi
4502 if test -z "$DUMPBIN"; then
4503 ac_ct_DUMPBIN=$DUMPBIN
4504 for ac_prog in dumpbin "link -dump"
4505 do
4506 # Extract the first word of "$ac_prog", so it can be a program name with args.
4507 set dummy $ac_prog; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$ac_ct_DUMPBIN"; then
4514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4526 fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 fi
4532 fi
4533 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4534 if test -n "$ac_ct_DUMPBIN"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4536 $as_echo "$ac_ct_DUMPBIN" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4540 fi
4541
4542
4543 test -n "$ac_ct_DUMPBIN" && break
4544 done
4545
4546 if test "x$ac_ct_DUMPBIN" = x; then
4547 DUMPBIN=":"
4548 else
4549 case $cross_compiling:$ac_tool_warned in
4550 yes:)
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4553 ac_tool_warned=yes ;;
4554 esac
4555 DUMPBIN=$ac_ct_DUMPBIN
4556 fi
4557 fi
4558
4559 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4560 *COFF*)
4561 DUMPBIN="$DUMPBIN -symbols"
4562 ;;
4563 *)
4564 DUMPBIN=:
4565 ;;
4566 esac
4567 fi
4568
4569 if test "$DUMPBIN" != ":"; then
4570 NM="$DUMPBIN"
4571 fi
4572 fi
4573 test -z "$NM" && NM=nm
4574
4575
4576
4577
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4581 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4582 if ${lt_cv_nm_interface+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 lt_cv_nm_interface="BSD nm"
4586 echo "int some_variable = 0;" > conftest.$ac_ext
4587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4588 (eval "$ac_compile" 2>conftest.err)
4589 cat conftest.err >&5
4590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4592 cat conftest.err >&5
4593 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4594 cat conftest.out >&5
4595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4596 lt_cv_nm_interface="MS dumpbin"
4597 fi
4598 rm -f conftest*
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4601 $as_echo "$lt_cv_nm_interface" >&6; }
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4604 $as_echo_n "checking whether ln -s works... " >&6; }
4605 LN_S=$as_ln_s
4606 if test "$LN_S" = "ln -s"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4608 $as_echo "yes" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4611 $as_echo "no, using $LN_S" >&6; }
4612 fi
4613
4614 # find the maximum length of command line arguments
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4616 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4617 if ${lt_cv_sys_max_cmd_len+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 i=0
4621 teststring="ABCD"
4622
4623 case $build_os in
4624 msdosdjgpp*)
4625 # On DJGPP, this test can blow up pretty badly due to problems in libc
4626 # (any single argument exceeding 2000 bytes causes a buffer overrun
4627 # during glob expansion). Even if it were fixed, the result of this
4628 # check would be larger than it should be.
4629 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4630 ;;
4631
4632 gnu*)
4633 # Under GNU Hurd, this test is not required because there is
4634 # no limit to the length of command line arguments.
4635 # Libtool will interpret -1 as no limit whatsoever
4636 lt_cv_sys_max_cmd_len=-1;
4637 ;;
4638
4639 cygwin* | mingw* | cegcc*)
4640 # On Win9x/ME, this test blows up -- it succeeds, but takes
4641 # about 5 minutes as the teststring grows exponentially.
4642 # Worse, since 9x/ME are not pre-emptively multitasking,
4643 # you end up with a "frozen" computer, even though with patience
4644 # the test eventually succeeds (with a max line length of 256k).
4645 # Instead, let's just punt: use the minimum linelength reported by
4646 # all of the supported platforms: 8192 (on NT/2K/XP).
4647 lt_cv_sys_max_cmd_len=8192;
4648 ;;
4649
4650 mint*)
4651 # On MiNT this can take a long time and run out of memory.
4652 lt_cv_sys_max_cmd_len=8192;
4653 ;;
4654
4655 amigaos*)
4656 # On AmigaOS with pdksh, this test takes hours, literally.
4657 # So we just punt and use a minimum line length of 8192.
4658 lt_cv_sys_max_cmd_len=8192;
4659 ;;
4660
4661 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4662 # This has been around since 386BSD, at least. Likely further.
4663 if test -x /sbin/sysctl; then
4664 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4665 elif test -x /usr/sbin/sysctl; then
4666 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4667 else
4668 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4669 fi
4670 # And add a safety zone
4671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4673 ;;
4674
4675 interix*)
4676 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4677 lt_cv_sys_max_cmd_len=196608
4678 ;;
4679
4680 os2*)
4681 # The test takes a long time on OS/2.
4682 lt_cv_sys_max_cmd_len=8192
4683 ;;
4684
4685 osf*)
4686 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4687 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4688 # nice to cause kernel panics so lets avoid the loop below.
4689 # First set a reasonable default.
4690 lt_cv_sys_max_cmd_len=16384
4691 #
4692 if test -x /sbin/sysconfig; then
4693 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4694 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4695 esac
4696 fi
4697 ;;
4698 sco3.2v5*)
4699 lt_cv_sys_max_cmd_len=102400
4700 ;;
4701 sysv5* | sco5v6* | sysv4.2uw2*)
4702 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4703 if test -n "$kargmax"; then
4704 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4705 else
4706 lt_cv_sys_max_cmd_len=32768
4707 fi
4708 ;;
4709 *)
4710 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4711 if test -n "$lt_cv_sys_max_cmd_len"; then
4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4714 else
4715 # Make teststring a little bigger before we do anything with it.
4716 # a 1K string should be a reasonable start.
4717 for i in 1 2 3 4 5 6 7 8 ; do
4718 teststring=$teststring$teststring
4719 done
4720 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4721 # If test is not a shell built-in, we'll probably end up computing a
4722 # maximum length that is only half of the actual maximum length, but
4723 # we can't tell.
4724 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4725 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4726 test $i != 17 # 1/2 MB should be enough
4727 do
4728 i=`expr $i + 1`
4729 teststring=$teststring$teststring
4730 done
4731 # Only check the string length outside the loop.
4732 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4733 teststring=
4734 # Add a significant safety factor because C++ compilers can tack on
4735 # massive amounts of additional arguments before passing them to the
4736 # linker. It appears as though 1/2 is a usable value.
4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4738 fi
4739 ;;
4740 esac
4741
4742 fi
4743
4744 if test -n $lt_cv_sys_max_cmd_len ; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4746 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4749 $as_echo "none" >&6; }
4750 fi
4751 max_cmd_len=$lt_cv_sys_max_cmd_len
4752
4753
4754
4755
4756
4757
4758 : ${CP="cp -f"}
4759 : ${MV="mv -f"}
4760 : ${RM="rm -f"}
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4763 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4764 # Try some XSI features
4765 xsi_shell=no
4766 ( _lt_dummy="a/b/c"
4767 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4768 = c,a/b,b/c, \
4769 && eval 'test $(( 1 + 1 )) -eq 2 \
4770 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4771 && xsi_shell=yes
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4773 $as_echo "$xsi_shell" >&6; }
4774
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4777 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4778 lt_shell_append=no
4779 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4780 >/dev/null 2>&1 \
4781 && lt_shell_append=yes
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4783 $as_echo "$lt_shell_append" >&6; }
4784
4785
4786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4787 lt_unset=unset
4788 else
4789 lt_unset=false
4790 fi
4791
4792
4793
4794
4795
4796 # test EBCDIC or ASCII
4797 case `echo X|tr X '\101'` in
4798 A) # ASCII based system
4799 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4800 lt_SP2NL='tr \040 \012'
4801 lt_NL2SP='tr \015\012 \040\040'
4802 ;;
4803 *) # EBCDIC based system
4804 lt_SP2NL='tr \100 \n'
4805 lt_NL2SP='tr \r\n \100\100'
4806 ;;
4807 esac
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4818 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4819 if ${lt_cv_to_host_file_cmd+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 case $host in
4823 *-*-mingw* )
4824 case $build in
4825 *-*-mingw* ) # actually msys
4826 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4827 ;;
4828 *-*-cygwin* )
4829 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4830 ;;
4831 * ) # otherwise, assume *nix
4832 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4833 ;;
4834 esac
4835 ;;
4836 *-*-cygwin* )
4837 case $build in
4838 *-*-mingw* ) # actually msys
4839 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4840 ;;
4841 *-*-cygwin* )
4842 lt_cv_to_host_file_cmd=func_convert_file_noop
4843 ;;
4844 * ) # otherwise, assume *nix
4845 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4846 ;;
4847 esac
4848 ;;
4849 * ) # unhandled hosts (and "normal" native builds)
4850 lt_cv_to_host_file_cmd=func_convert_file_noop
4851 ;;
4852 esac
4853
4854 fi
4855
4856 to_host_file_cmd=$lt_cv_to_host_file_cmd
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4858 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4859
4860
4861
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4865 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4866 if ${lt_cv_to_tool_file_cmd+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 #assume ordinary cross tools, or native build.
4870 lt_cv_to_tool_file_cmd=func_convert_file_noop
4871 case $host in
4872 *-*-mingw* )
4873 case $build in
4874 *-*-mingw* ) # actually msys
4875 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4876 ;;
4877 esac
4878 ;;
4879 esac
4880
4881 fi
4882
4883 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4885 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4886
4887
4888
4889
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4892 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4893 if ${lt_cv_ld_reload_flag+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 lt_cv_ld_reload_flag='-r'
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4899 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4900 reload_flag=$lt_cv_ld_reload_flag
4901 case $reload_flag in
4902 "" | " "*) ;;
4903 *) reload_flag=" $reload_flag" ;;
4904 esac
4905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4906 case $host_os in
4907 cygwin* | mingw* | pw32* | cegcc*)
4908 if test "$GCC" != yes; then
4909 reload_cmds=false
4910 fi
4911 ;;
4912 darwin*)
4913 if test "$GCC" = yes; then
4914 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4915 else
4916 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4917 fi
4918 ;;
4919 esac
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_OBJDUMP+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$OBJDUMP"; then
4938 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951 done
4952 done
4953 IFS=$as_save_IFS
4954
4955 fi
4956 fi
4957 OBJDUMP=$ac_cv_prog_OBJDUMP
4958 if test -n "$OBJDUMP"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4960 $as_echo "$OBJDUMP" >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964 fi
4965
4966
4967 fi
4968 if test -z "$ac_cv_prog_OBJDUMP"; then
4969 ac_ct_OBJDUMP=$OBJDUMP
4970 # Extract the first word of "objdump", so it can be a program name with args.
4971 set dummy objdump; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$ac_ct_OBJDUMP"; then
4978 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi
4996 fi
4997 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4998 if test -n "$ac_ct_OBJDUMP"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5000 $as_echo "$ac_ct_OBJDUMP" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004 fi
5005
5006 if test "x$ac_ct_OBJDUMP" = x; then
5007 OBJDUMP="false"
5008 else
5009 case $cross_compiling:$ac_tool_warned in
5010 yes:)
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015 OBJDUMP=$ac_ct_OBJDUMP
5016 fi
5017 else
5018 OBJDUMP="$ac_cv_prog_OBJDUMP"
5019 fi
5020
5021 test -z "$OBJDUMP" && OBJDUMP=objdump
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5032 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5033 if ${lt_cv_deplibs_check_method+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 lt_cv_file_magic_cmd='$MAGIC_CMD'
5037 lt_cv_file_magic_test_file=
5038 lt_cv_deplibs_check_method='unknown'
5039 # Need to set the preceding variable on all platforms that support
5040 # interlibrary dependencies.
5041 # 'none' -- dependencies not supported.
5042 # `unknown' -- same as none, but documents that we really don't know.
5043 # 'pass_all' -- all dependencies passed with no checks.
5044 # 'test_compile' -- check by making test program.
5045 # 'file_magic [[regex]]' -- check by looking for files in library path
5046 # which responds to the $file_magic_cmd with a given extended regex.
5047 # If you have `file' or equivalent on your system and you're not sure
5048 # whether `pass_all' will *always* work, you probably want this one.
5049
5050 case $host_os in
5051 aix[4-9]*)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
5054
5055 beos*)
5056 lt_cv_deplibs_check_method=pass_all
5057 ;;
5058
5059 bsdi[45]*)
5060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5061 lt_cv_file_magic_cmd='/usr/bin/file -L'
5062 lt_cv_file_magic_test_file=/shlib/libc.so
5063 ;;
5064
5065 cygwin*)
5066 # func_win32_libid is a shell function defined in ltmain.sh
5067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5068 lt_cv_file_magic_cmd='func_win32_libid'
5069 ;;
5070
5071 mingw* | pw32*)
5072 # Base MSYS/MinGW do not provide the 'file' command needed by
5073 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5074 # unless we find 'file', for example because we are cross-compiling.
5075 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5076 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5077 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5078 lt_cv_file_magic_cmd='func_win32_libid'
5079 else
5080 # Keep this pattern in sync with the one in func_win32_libid.
5081 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5082 lt_cv_file_magic_cmd='$OBJDUMP -f'
5083 fi
5084 ;;
5085
5086 cegcc*)
5087 # use the weaker test based on 'objdump'. See mingw*.
5088 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5089 lt_cv_file_magic_cmd='$OBJDUMP -f'
5090 ;;
5091
5092 darwin* | rhapsody*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 freebsd* | dragonfly*)
5097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5098 case $host_cpu in
5099 i*86 )
5100 # Not sure whether the presence of OpenBSD here was a mistake.
5101 # Let's accept both of them until this is cleared up.
5102 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5103 lt_cv_file_magic_cmd=/usr/bin/file
5104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5105 ;;
5106 esac
5107 else
5108 lt_cv_deplibs_check_method=pass_all
5109 fi
5110 ;;
5111
5112 gnu*)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115
5116 haiku*)
5117 lt_cv_deplibs_check_method=pass_all
5118 ;;
5119
5120 hpux10.20* | hpux11*)
5121 lt_cv_file_magic_cmd=/usr/bin/file
5122 case $host_cpu in
5123 ia64*)
5124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5125 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5126 ;;
5127 hppa*64*)
5128 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]'
5129 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5130 ;;
5131 *)
5132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5133 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5134 ;;
5135 esac
5136 ;;
5137
5138 interix[3-9]*)
5139 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5141 ;;
5142
5143 irix5* | irix6* | nonstopux*)
5144 case $LD in
5145 *-32|*"-32 ") libmagic=32-bit;;
5146 *-n32|*"-n32 ") libmagic=N32;;
5147 *-64|*"-64 ") libmagic=64-bit;;
5148 *) libmagic=never-match;;
5149 esac
5150 lt_cv_deplibs_check_method=pass_all
5151 ;;
5152
5153 # This must be glibc/ELF.
5154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
5157
5158 netbsd* | netbsdelf*-gnu)
5159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5161 else
5162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5163 fi
5164 ;;
5165
5166 newos6*)
5167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5168 lt_cv_file_magic_cmd=/usr/bin/file
5169 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5170 ;;
5171
5172 *nto* | *qnx*)
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175
5176 openbsd*)
5177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5179 else
5180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5181 fi
5182 ;;
5183
5184 osf3* | osf4* | osf5*)
5185 lt_cv_deplibs_check_method=pass_all
5186 ;;
5187
5188 rdos*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
5192 solaris*)
5193 lt_cv_deplibs_check_method=pass_all
5194 ;;
5195
5196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5197 lt_cv_deplibs_check_method=pass_all
5198 ;;
5199
5200 sysv4 | sysv4.3*)
5201 case $host_vendor in
5202 motorola)
5203 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]'
5204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5205 ;;
5206 ncr)
5207 lt_cv_deplibs_check_method=pass_all
5208 ;;
5209 sequent)
5210 lt_cv_file_magic_cmd='/bin/file'
5211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5212 ;;
5213 sni)
5214 lt_cv_file_magic_cmd='/bin/file'
5215 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5216 lt_cv_file_magic_test_file=/lib/libc.so
5217 ;;
5218 siemens)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221 pc)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224 esac
5225 ;;
5226
5227 tpf*)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230 esac
5231
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5234 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5235
5236 file_magic_glob=
5237 want_nocaseglob=no
5238 if test "$build" = "$host"; then
5239 case $host_os in
5240 mingw* | pw32*)
5241 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5242 want_nocaseglob=yes
5243 else
5244 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5245 fi
5246 ;;
5247 esac
5248 fi
5249
5250 file_magic_cmd=$lt_cv_file_magic_cmd
5251 deplibs_check_method=$lt_cv_deplibs_check_method
5252 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275 if test -n "$ac_tool_prefix"; then
5276 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5277 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_DLLTOOL+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$DLLTOOL"; then
5284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297 done
5298 done
5299 IFS=$as_save_IFS
5300
5301 fi
5302 fi
5303 DLLTOOL=$ac_cv_prog_DLLTOOL
5304 if test -n "$DLLTOOL"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5306 $as_echo "$DLLTOOL" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 fi
5311
5312
5313 fi
5314 if test -z "$ac_cv_prog_DLLTOOL"; then
5315 ac_ct_DLLTOOL=$DLLTOOL
5316 # Extract the first word of "dlltool", so it can be a program name with args.
5317 set dummy dlltool; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$ac_ct_DLLTOOL"; then
5324 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5344 if test -n "$ac_ct_DLLTOOL"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5346 $as_echo "$ac_ct_DLLTOOL" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352 if test "x$ac_ct_DLLTOOL" = x; then
5353 DLLTOOL="false"
5354 else
5355 case $cross_compiling:$ac_tool_warned in
5356 yes:)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5359 ac_tool_warned=yes ;;
5360 esac
5361 DLLTOOL=$ac_ct_DLLTOOL
5362 fi
5363 else
5364 DLLTOOL="$ac_cv_prog_DLLTOOL"
5365 fi
5366
5367 test -z "$DLLTOOL" && DLLTOOL=dlltool
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5379 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5380 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 lt_cv_sharedlib_from_linklib_cmd='unknown'
5384
5385 case $host_os in
5386 cygwin* | mingw* | pw32* | cegcc*)
5387 # two different shell functions defined in ltmain.sh
5388 # decide which to use based on capabilities of $DLLTOOL
5389 case `$DLLTOOL --help 2>&1` in
5390 *--identify-strict*)
5391 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5392 ;;
5393 *)
5394 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5395 ;;
5396 esac
5397 ;;
5398 *)
5399 # fallback: assume linklib IS sharedlib
5400 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5401 ;;
5402 esac
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5406 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5407 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5408 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5409
5410
5411
5412
5413
5414
5415
5416
5417 if test -n "$ac_tool_prefix"; then
5418 for ac_prog in ar
5419 do
5420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_AR+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$AR"; then
5428 ac_cv_prog_AR="$AR" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 AR=$ac_cv_prog_AR
5448 if test -n "$AR"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5450 $as_echo "$AR" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457 test -n "$AR" && break
5458 done
5459 fi
5460 if test -z "$AR"; then
5461 ac_ct_AR=$AR
5462 for ac_prog in ar
5463 do
5464 # Extract the first word of "$ac_prog", so it can be a program name with args.
5465 set dummy $ac_prog; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$ac_ct_AR"; then
5472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_ac_ct_AR="$ac_prog"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485 done
5486 done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5492 if test -n "$ac_ct_AR"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5494 $as_echo "$ac_ct_AR" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500
5501 test -n "$ac_ct_AR" && break
5502 done
5503
5504 if test "x$ac_ct_AR" = x; then
5505 AR="false"
5506 else
5507 case $cross_compiling:$ac_tool_warned in
5508 yes:)
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5512 esac
5513 AR=$ac_ct_AR
5514 fi
5515 fi
5516
5517 : ${AR=ar}
5518 : ${AR_FLAGS=cru}
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5531 $as_echo_n "checking for archiver @FILE support... " >&6; }
5532 if ${lt_cv_ar_at_file+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 lt_cv_ar_at_file=no
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538
5539 int
5540 main ()
5541 {
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548 echo conftest.$ac_objext > conftest.lst
5549 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5551 (eval $lt_ar_try) 2>&5
5552 ac_status=$?
5553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5554 test $ac_status = 0; }
5555 if test "$ac_status" -eq 0; then
5556 # Ensure the archiver fails upon bogus file names.
5557 rm -f conftest.$ac_objext libconftest.a
5558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5559 (eval $lt_ar_try) 2>&5
5560 ac_status=$?
5561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562 test $ac_status = 0; }
5563 if test "$ac_status" -ne 0; then
5564 lt_cv_ar_at_file=@
5565 fi
5566 fi
5567 rm -f conftest.* libconftest.a
5568
5569 fi
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5574 $as_echo "$lt_cv_ar_at_file" >&6; }
5575
5576 if test "x$lt_cv_ar_at_file" = xno; then
5577 archiver_list_spec=
5578 else
5579 archiver_list_spec=$lt_cv_ar_at_file
5580 fi
5581
5582
5583
5584
5585
5586
5587
5588 if test -n "$ac_tool_prefix"; then
5589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5590 set dummy ${ac_tool_prefix}strip; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_STRIP+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$STRIP"; then
5597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610 done
5611 done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 STRIP=$ac_cv_prog_STRIP
5617 if test -n "$STRIP"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5619 $as_echo "$STRIP" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626 fi
5627 if test -z "$ac_cv_prog_STRIP"; then
5628 ac_ct_STRIP=$STRIP
5629 # Extract the first word of "strip", so it can be a program name with args.
5630 set dummy strip; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$ac_ct_STRIP"; then
5637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_ac_ct_STRIP="strip"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5657 if test -n "$ac_ct_STRIP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5659 $as_echo "$ac_ct_STRIP" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665 if test "x$ac_ct_STRIP" = x; then
5666 STRIP=":"
5667 else
5668 case $cross_compiling:$ac_tool_warned in
5669 yes:)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672 ac_tool_warned=yes ;;
5673 esac
5674 STRIP=$ac_ct_STRIP
5675 fi
5676 else
5677 STRIP="$ac_cv_prog_STRIP"
5678 fi
5679
5680 test -z "$STRIP" && STRIP=:
5681
5682
5683
5684
5685
5686
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if ${ac_cv_prog_RANLIB+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if test -n "$RANLIB"; then
5696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709 done
5710 done
5711 IFS=$as_save_IFS
5712
5713 fi
5714 fi
5715 RANLIB=$ac_cv_prog_RANLIB
5716 if test -n "$RANLIB"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5718 $as_echo "$RANLIB" >&6; }
5719 else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5722 fi
5723
5724
5725 fi
5726 if test -z "$ac_cv_prog_RANLIB"; then
5727 ac_ct_RANLIB=$RANLIB
5728 # Extract the first word of "ranlib", so it can be a program name with args.
5729 set dummy ranlib; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$ac_ct_RANLIB"; then
5736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_RANLIB="ranlib"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5756 if test -n "$ac_ct_RANLIB"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5758 $as_echo "$ac_ct_RANLIB" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764 if test "x$ac_ct_RANLIB" = x; then
5765 RANLIB=":"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5772 esac
5773 RANLIB=$ac_ct_RANLIB
5774 fi
5775 else
5776 RANLIB="$ac_cv_prog_RANLIB"
5777 fi
5778
5779 test -z "$RANLIB" && RANLIB=:
5780
5781
5782
5783
5784
5785
5786 # Determine commands to create old-style static archives.
5787 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5788 old_postinstall_cmds='chmod 644 $oldlib'
5789 old_postuninstall_cmds=
5790
5791 if test -n "$RANLIB"; then
5792 case $host_os in
5793 openbsd*)
5794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5795 ;;
5796 *)
5797 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5798 ;;
5799 esac
5800 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5801 fi
5802
5803 case $host_os in
5804 darwin*)
5805 lock_old_archive_extraction=yes ;;
5806 *)
5807 lock_old_archive_extraction=no ;;
5808 esac
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848 # If no C compiler was specified, use CC.
5849 LTCC=${LTCC-"$CC"}
5850
5851 # If no C compiler flags were specified, use CFLAGS.
5852 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5853
5854 # Allow CC to be a program name with arguments.
5855 compiler=$CC
5856
5857
5858 # Check for command to grab the raw symbol name followed by C symbol from nm.
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5860 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5861 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864
5865 # These are sane defaults that work on at least a few old systems.
5866 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5867
5868 # Character class describing NM global symbol codes.
5869 symcode='[BCDEGRST]'
5870
5871 # Regexp to match symbols that can be accessed directly from C.
5872 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5873
5874 # Define system-specific variables.
5875 case $host_os in
5876 aix*)
5877 symcode='[BCDT]'
5878 ;;
5879 cygwin* | mingw* | pw32* | cegcc*)
5880 symcode='[ABCDGISTW]'
5881 ;;
5882 hpux*)
5883 if test "$host_cpu" = ia64; then
5884 symcode='[ABCDEGRST]'
5885 fi
5886 ;;
5887 irix* | nonstopux*)
5888 symcode='[BCDEGRST]'
5889 ;;
5890 osf*)
5891 symcode='[BCDEGQRST]'
5892 ;;
5893 solaris*)
5894 symcode='[BDRT]'
5895 ;;
5896 sco3.2v5*)
5897 symcode='[DT]'
5898 ;;
5899 sysv4.2uw2*)
5900 symcode='[DT]'
5901 ;;
5902 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5903 symcode='[ABDT]'
5904 ;;
5905 sysv4)
5906 symcode='[DFNSTU]'
5907 ;;
5908 esac
5909
5910 # If we're using GNU nm, then use its standard symbol codes.
5911 case `$NM -V 2>&1` in
5912 *GNU* | *'with BFD'*)
5913 symcode='[ABCDGIRSTW]' ;;
5914 esac
5915
5916 # Transform an extracted symbol line into a proper C declaration.
5917 # Some systems (esp. on ia64) link data and code symbols differently,
5918 # so use this general approach.
5919 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5920
5921 # Transform an extracted symbol line into symbol name and symbol address
5922 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5923 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5924
5925 # Handle CRLF in mingw tool chain
5926 opt_cr=
5927 case $build_os in
5928 mingw*)
5929 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5930 ;;
5931 esac
5932
5933 # Try without a prefix underscore, then with it.
5934 for ac_symprfx in "" "_"; do
5935
5936 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5937 symxfrm="\\1 $ac_symprfx\\2 \\2"
5938
5939 # Write the raw and C identifiers.
5940 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5941 # Fake it for dumpbin and say T for any non-static function
5942 # and D for any global variable.
5943 # Also find C++ and __fastcall symbols from MSVC++,
5944 # which start with @ or ?.
5945 lt_cv_sys_global_symbol_pipe="$AWK '"\
5946 " {last_section=section; section=\$ 3};"\
5947 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5948 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5949 " \$ 0!~/External *\|/{next};"\
5950 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5951 " {if(hide[section]) next};"\
5952 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5953 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5954 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5955 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5956 " ' prfx=^$ac_symprfx"
5957 else
5958 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5959 fi
5960 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5961
5962 # Check to see that the pipe works correctly.
5963 pipe_works=no
5964
5965 rm -f conftest*
5966 cat > conftest.$ac_ext <<_LT_EOF
5967 #ifdef __cplusplus
5968 extern "C" {
5969 #endif
5970 char nm_test_var;
5971 void nm_test_func(void);
5972 void nm_test_func(void){}
5973 #ifdef __cplusplus
5974 }
5975 #endif
5976 int main(){nm_test_var='a';nm_test_func();return(0);}
5977 _LT_EOF
5978
5979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5980 (eval $ac_compile) 2>&5
5981 ac_status=$?
5982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5983 test $ac_status = 0; }; then
5984 # Now try to grab the symbols.
5985 nlist=conftest.nm
5986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5987 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5988 ac_status=$?
5989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5990 test $ac_status = 0; } && test -s "$nlist"; then
5991 # Try sorting and uniquifying the output.
5992 if sort "$nlist" | uniq > "$nlist"T; then
5993 mv -f "$nlist"T "$nlist"
5994 else
5995 rm -f "$nlist"T
5996 fi
5997
5998 # Make sure that we snagged all the symbols we need.
5999 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6000 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6001 cat <<_LT_EOF > conftest.$ac_ext
6002 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6003 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6004 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6005 relocations are performed -- see ld's documentation on pseudo-relocs. */
6006 # define LT_DLSYM_CONST
6007 #elif defined(__osf__)
6008 /* This system does not cope well with relocations in const data. */
6009 # define LT_DLSYM_CONST
6010 #else
6011 # define LT_DLSYM_CONST const
6012 #endif
6013
6014 #ifdef __cplusplus
6015 extern "C" {
6016 #endif
6017
6018 _LT_EOF
6019 # Now generate the symbol file.
6020 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6021
6022 cat <<_LT_EOF >> conftest.$ac_ext
6023
6024 /* The mapping between symbol names and symbols. */
6025 LT_DLSYM_CONST struct {
6026 const char *name;
6027 void *address;
6028 }
6029 lt__PROGRAM__LTX_preloaded_symbols[] =
6030 {
6031 { "@PROGRAM@", (void *) 0 },
6032 _LT_EOF
6033 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6034 cat <<\_LT_EOF >> conftest.$ac_ext
6035 {0, (void *) 0}
6036 };
6037
6038 /* This works around a problem in FreeBSD linker */
6039 #ifdef FREEBSD_WORKAROUND
6040 static const void *lt_preloaded_setup() {
6041 return lt__PROGRAM__LTX_preloaded_symbols;
6042 }
6043 #endif
6044
6045 #ifdef __cplusplus
6046 }
6047 #endif
6048 _LT_EOF
6049 # Now try linking the two files.
6050 mv conftest.$ac_objext conftstm.$ac_objext
6051 lt_globsym_save_LIBS=$LIBS
6052 lt_globsym_save_CFLAGS=$CFLAGS
6053 LIBS="conftstm.$ac_objext"
6054 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6056 (eval $ac_link) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6060 pipe_works=yes
6061 fi
6062 LIBS=$lt_globsym_save_LIBS
6063 CFLAGS=$lt_globsym_save_CFLAGS
6064 else
6065 echo "cannot find nm_test_func in $nlist" >&5
6066 fi
6067 else
6068 echo "cannot find nm_test_var in $nlist" >&5
6069 fi
6070 else
6071 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6072 fi
6073 else
6074 echo "$progname: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 fi
6077 rm -rf conftest* conftst*
6078
6079 # Do not use the global_symbol_pipe unless it works.
6080 if test "$pipe_works" = yes; then
6081 break
6082 else
6083 lt_cv_sys_global_symbol_pipe=
6084 fi
6085 done
6086
6087 fi
6088
6089 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6090 lt_cv_sys_global_symbol_to_cdecl=
6091 fi
6092 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6094 $as_echo "failed" >&6; }
6095 else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6097 $as_echo "ok" >&6; }
6098 fi
6099
6100 # Response file support.
6101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6102 nm_file_list_spec='@'
6103 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6104 nm_file_list_spec='@'
6105 fi
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6134 $as_echo_n "checking for sysroot... " >&6; }
6135
6136 # Check whether --with-sysroot was given.
6137 if test "${with_sysroot+set}" = set; then :
6138 withval=$with_sysroot;
6139 else
6140 with_sysroot=no
6141 fi
6142
6143
6144 lt_sysroot=
6145 case ${with_sysroot} in #(
6146 yes)
6147 if test "$GCC" = yes; then
6148 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6149 fi
6150 ;; #(
6151 /*)
6152 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6153 ;; #(
6154 no|'')
6155 ;; #(
6156 *)
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6158 $as_echo "${with_sysroot}" >&6; }
6159 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6160 ;;
6161 esac
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6164 $as_echo "${lt_sysroot:-no}" >&6; }
6165
6166
6167
6168
6169
6170 # Check whether --enable-libtool-lock was given.
6171 if test "${enable_libtool_lock+set}" = set; then :
6172 enableval=$enable_libtool_lock;
6173 fi
6174
6175 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6176
6177 # Some flags need to be propagated to the compiler or linker for good
6178 # libtool support.
6179 case $host in
6180 ia64-*-hpux*)
6181 # Find out which ABI we are using.
6182 echo 'int i;' > conftest.$ac_ext
6183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6184 (eval $ac_compile) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; }; then
6188 case `/usr/bin/file conftest.$ac_objext` in
6189 *ELF-32*)
6190 HPUX_IA64_MODE="32"
6191 ;;
6192 *ELF-64*)
6193 HPUX_IA64_MODE="64"
6194 ;;
6195 esac
6196 fi
6197 rm -rf conftest*
6198 ;;
6199 *-*-irix6*)
6200 # Find out which ABI we are using.
6201 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6203 (eval $ac_compile) 2>&5
6204 ac_status=$?
6205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206 test $ac_status = 0; }; then
6207 if test "$lt_cv_prog_gnu_ld" = yes; then
6208 case `/usr/bin/file conftest.$ac_objext` in
6209 *32-bit*)
6210 LD="${LD-ld} -melf32bsmip"
6211 ;;
6212 *N32*)
6213 LD="${LD-ld} -melf32bmipn32"
6214 ;;
6215 *64-bit*)
6216 LD="${LD-ld} -melf64bmip"
6217 ;;
6218 esac
6219 else
6220 case `/usr/bin/file conftest.$ac_objext` in
6221 *32-bit*)
6222 LD="${LD-ld} -32"
6223 ;;
6224 *N32*)
6225 LD="${LD-ld} -n32"
6226 ;;
6227 *64-bit*)
6228 LD="${LD-ld} -64"
6229 ;;
6230 esac
6231 fi
6232 fi
6233 rm -rf conftest*
6234 ;;
6235
6236 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6237 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6238 # Find out which ABI we are using.
6239 echo 'int i;' > conftest.$ac_ext
6240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6241 (eval $ac_compile) 2>&5
6242 ac_status=$?
6243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; }; then
6245 case `/usr/bin/file conftest.o` in
6246 *32-bit*)
6247 case $host in
6248 x86_64-*kfreebsd*-gnu)
6249 LD="${LD-ld} -m elf_i386_fbsd"
6250 ;;
6251 x86_64-*linux*)
6252 LD="${LD-ld} -m elf_i386"
6253 ;;
6254 ppc64-*linux*|powerpc64-*linux*)
6255 LD="${LD-ld} -m elf32ppclinux"
6256 ;;
6257 s390x-*linux*)
6258 LD="${LD-ld} -m elf_s390"
6259 ;;
6260 sparc64-*linux*)
6261 LD="${LD-ld} -m elf32_sparc"
6262 ;;
6263 esac
6264 ;;
6265 *64-bit*)
6266 case $host in
6267 x86_64-*kfreebsd*-gnu)
6268 LD="${LD-ld} -m elf_x86_64_fbsd"
6269 ;;
6270 x86_64-*linux*)
6271 LD="${LD-ld} -m elf_x86_64"
6272 ;;
6273 ppc*-*linux*|powerpc*-*linux*)
6274 LD="${LD-ld} -m elf64ppc"
6275 ;;
6276 s390*-*linux*|s390*-*tpf*)
6277 LD="${LD-ld} -m elf64_s390"
6278 ;;
6279 sparc*-*linux*)
6280 LD="${LD-ld} -m elf64_sparc"
6281 ;;
6282 esac
6283 ;;
6284 esac
6285 fi
6286 rm -rf conftest*
6287 ;;
6288
6289 *-*-sco3.2v5*)
6290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6291 SAVE_CFLAGS="$CFLAGS"
6292 CFLAGS="$CFLAGS -belf"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6294 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6295 if ${lt_cv_cc_needs_belf+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 ac_ext=c
6299 ac_cpp='$CPP $CPPFLAGS'
6300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306
6307 int
6308 main ()
6309 {
6310
6311 ;
6312 return 0;
6313 }
6314 _ACEOF
6315 if ac_fn_c_try_link "$LINENO"; then :
6316 lt_cv_cc_needs_belf=yes
6317 else
6318 lt_cv_cc_needs_belf=no
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext \
6321 conftest$ac_exeext conftest.$ac_ext
6322 ac_ext=c
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6330 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6331 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6333 CFLAGS="$SAVE_CFLAGS"
6334 fi
6335 ;;
6336 *-*solaris*)
6337 # Find out which ABI we are using.
6338 echo 'int i;' > conftest.$ac_ext
6339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6340 (eval $ac_compile) 2>&5
6341 ac_status=$?
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }; then
6344 case `/usr/bin/file conftest.o` in
6345 *64-bit*)
6346 case $lt_cv_prog_gnu_ld in
6347 yes*)
6348 case $host in
6349 i?86-*-solaris*)
6350 LD="${LD-ld} -m elf_x86_64"
6351 ;;
6352 sparc*-*-solaris*)
6353 LD="${LD-ld} -m elf64_sparc"
6354 ;;
6355 esac
6356 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6357 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6358 LD="${LD-ld}_sol2"
6359 fi
6360 ;;
6361 *)
6362 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6363 LD="${LD-ld} -64"
6364 fi
6365 ;;
6366 esac
6367 ;;
6368 esac
6369 fi
6370 rm -rf conftest*
6371 ;;
6372 esac
6373
6374 need_locks="$enable_libtool_lock"
6375
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}mt; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$MANIFEST_TOOL"; then
6385 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6405 if test -n "$MANIFEST_TOOL"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6407 $as_echo "$MANIFEST_TOOL" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 fi
6415 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6416 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6417 # Extract the first word of "mt", so it can be a program name with args.
6418 set dummy mt; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_MANIFEST_TOOL"; then
6425 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6445 if test -n "$ac_ct_MANIFEST_TOOL"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6447 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6454 MANIFEST_TOOL=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6463 fi
6464 else
6465 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6466 fi
6467
6468 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6470 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6471 if ${lt_cv_path_mainfest_tool+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 lt_cv_path_mainfest_tool=no
6475 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6476 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6477 cat conftest.err >&5
6478 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6479 lt_cv_path_mainfest_tool=yes
6480 fi
6481 rm -f conftest*
6482 fi
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6484 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6485 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6486 MANIFEST_TOOL=:
6487 fi
6488
6489
6490
6491
6492
6493
6494 case $host_os in
6495 rhapsody* | darwin*)
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6498 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$DSYMUTIL"; then
6505 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6525 if test -n "$DSYMUTIL"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6527 $as_echo "$DSYMUTIL" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533
6534 fi
6535 if test -z "$ac_cv_prog_DSYMUTIL"; then
6536 ac_ct_DSYMUTIL=$DSYMUTIL
6537 # Extract the first word of "dsymutil", so it can be a program name with args.
6538 set dummy dsymutil; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$ac_ct_DSYMUTIL"; then
6545 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562 fi
6563 fi
6564 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6565 if test -n "$ac_ct_DSYMUTIL"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6567 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573 if test "x$ac_ct_DSYMUTIL" = x; then
6574 DSYMUTIL=":"
6575 else
6576 case $cross_compiling:$ac_tool_warned in
6577 yes:)
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned=yes ;;
6581 esac
6582 DSYMUTIL=$ac_ct_DSYMUTIL
6583 fi
6584 else
6585 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6586 fi
6587
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6590 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_NMEDIT+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -n "$NMEDIT"; then
6597 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 NMEDIT=$ac_cv_prog_NMEDIT
6617 if test -n "$NMEDIT"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6619 $as_echo "$NMEDIT" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625
6626 fi
6627 if test -z "$ac_cv_prog_NMEDIT"; then
6628 ac_ct_NMEDIT=$NMEDIT
6629 # Extract the first word of "nmedit", so it can be a program name with args.
6630 set dummy nmedit; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if test -n "$ac_ct_NMEDIT"; then
6637 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654 fi
6655 fi
6656 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6657 if test -n "$ac_ct_NMEDIT"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6659 $as_echo "$ac_ct_NMEDIT" >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665 if test "x$ac_ct_NMEDIT" = x; then
6666 NMEDIT=":"
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674 NMEDIT=$ac_ct_NMEDIT
6675 fi
6676 else
6677 NMEDIT="$ac_cv_prog_NMEDIT"
6678 fi
6679
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_LIPO+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 if test -n "$LIPO"; then
6689 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 LIPO=$ac_cv_prog_LIPO
6709 if test -n "$LIPO"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6711 $as_echo "$LIPO" >&6; }
6712 else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718 fi
6719 if test -z "$ac_cv_prog_LIPO"; then
6720 ac_ct_LIPO=$LIPO
6721 # Extract the first word of "lipo", so it can be a program name with args.
6722 set dummy lipo; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$ac_ct_LIPO"; then
6729 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_LIPO="lipo"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6749 if test -n "$ac_ct_LIPO"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6751 $as_echo "$ac_ct_LIPO" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757 if test "x$ac_ct_LIPO" = x; then
6758 LIPO=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 LIPO=$ac_ct_LIPO
6767 fi
6768 else
6769 LIPO="$ac_cv_prog_LIPO"
6770 fi
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}otool; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_OTOOL+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$OTOOL"; then
6781 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 OTOOL=$ac_cv_prog_OTOOL
6801 if test -n "$OTOOL"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6803 $as_echo "$OTOOL" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_OTOOL"; then
6812 ac_ct_OTOOL=$OTOOL
6813 # Extract the first word of "otool", so it can be a program name with args.
6814 set dummy otool; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$ac_ct_OTOOL"; then
6821 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_OTOOL="otool"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6841 if test -n "$ac_ct_OTOOL"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6843 $as_echo "$ac_ct_OTOOL" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849 if test "x$ac_ct_OTOOL" = x; then
6850 OTOOL=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 OTOOL=$ac_ct_OTOOL
6859 fi
6860 else
6861 OTOOL="$ac_cv_prog_OTOOL"
6862 fi
6863
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_OTOOL64+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$OTOOL64"; then
6873 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 OTOOL64=$ac_cv_prog_OTOOL64
6893 if test -n "$OTOOL64"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6895 $as_echo "$OTOOL64" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_OTOOL64"; then
6904 ac_ct_OTOOL64=$OTOOL64
6905 # Extract the first word of "otool64", so it can be a program name with args.
6906 set dummy otool64; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test -n "$ac_ct_OTOOL64"; then
6913 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_ac_ct_OTOOL64="otool64"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6933 if test -n "$ac_ct_OTOOL64"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6935 $as_echo "$ac_ct_OTOOL64" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941 if test "x$ac_ct_OTOOL64" = x; then
6942 OTOOL64=":"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950 OTOOL64=$ac_ct_OTOOL64
6951 fi
6952 else
6953 OTOOL64="$ac_cv_prog_OTOOL64"
6954 fi
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6983 $as_echo_n "checking for -single_module linker flag... " >&6; }
6984 if ${lt_cv_apple_cc_single_mod+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 lt_cv_apple_cc_single_mod=no
6988 if test -z "${LT_MULTI_MODULE}"; then
6989 # By default we will add the -single_module flag. You can override
6990 # by either setting the environment variable LT_MULTI_MODULE
6991 # non-empty at configure time, or by adding -multi_module to the
6992 # link flags.
6993 rm -rf libconftest.dylib*
6994 echo "int foo(void){return 1;}" > conftest.c
6995 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6996 -dynamiclib -Wl,-single_module conftest.c" >&5
6997 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6998 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6999 _lt_result=$?
7000 # If there is a non-empty error log, and "single_module"
7001 # appears in it, assume the flag caused a linker warning
7002 if test -s conftest.err && $GREP single_module conftest.err; then
7003 cat conftest.err >&5
7004 # Otherwise, if the output was created with a 0 exit code from
7005 # the compiler, it worked.
7006 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7007 lt_cv_apple_cc_single_mod=yes
7008 else
7009 cat conftest.err >&5
7010 fi
7011 rm -rf libconftest.dylib*
7012 rm -f conftest.*
7013 fi
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7016 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7019 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7020 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 lt_cv_ld_exported_symbols_list=no
7024 save_LDFLAGS=$LDFLAGS
7025 echo "_main" > conftest.sym
7026 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029
7030 int
7031 main ()
7032 {
7033
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_link "$LINENO"; then :
7039 lt_cv_ld_exported_symbols_list=yes
7040 else
7041 lt_cv_ld_exported_symbols_list=no
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 LDFLAGS="$save_LDFLAGS"
7046
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7049 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7052 $as_echo_n "checking for -force_load linker flag... " >&6; }
7053 if ${lt_cv_ld_force_load+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 lt_cv_ld_force_load=no
7057 cat > conftest.c << _LT_EOF
7058 int forced_loaded() { return 2;}
7059 _LT_EOF
7060 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7061 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7062 echo "$AR cru libconftest.a conftest.o" >&5
7063 $AR cru libconftest.a conftest.o 2>&5
7064 echo "$RANLIB libconftest.a" >&5
7065 $RANLIB libconftest.a 2>&5
7066 cat > conftest.c << _LT_EOF
7067 int main() { return 0;}
7068 _LT_EOF
7069 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7070 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7071 _lt_result=$?
7072 if test -s conftest.err && $GREP force_load conftest.err; then
7073 cat conftest.err >&5
7074 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7075 lt_cv_ld_force_load=yes
7076 else
7077 cat conftest.err >&5
7078 fi
7079 rm -f conftest.err libconftest.a conftest conftest.c
7080 rm -rf conftest.dSYM
7081
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7084 $as_echo "$lt_cv_ld_force_load" >&6; }
7085 case $host_os in
7086 rhapsody* | darwin1.[012])
7087 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7088 darwin1.*)
7089 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7090 darwin*) # darwin 5.x on
7091 # if running on 10.5 or later, the deployment target defaults
7092 # to the OS version, if on x86, and 10.4, the deployment
7093 # target defaults to 10.4. Don't you love it?
7094 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7095 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7096 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7097 10.[012]*)
7098 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7099 10.*)
7100 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7101 esac
7102 ;;
7103 esac
7104 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7105 _lt_dar_single_mod='$single_module'
7106 fi
7107 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7108 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7109 else
7110 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7111 fi
7112 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7113 _lt_dsymutil='~$DSYMUTIL $lib || :'
7114 else
7115 _lt_dsymutil=
7116 fi
7117 ;;
7118 esac
7119
7120 ac_ext=c
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7126 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7127 # On Suns, sometimes $CPP names a directory.
7128 if test -n "$CPP" && test -d "$CPP"; then
7129 CPP=
7130 fi
7131 if test -z "$CPP"; then
7132 if ${ac_cv_prog_CPP+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 # Double quotes because CPP needs to be expanded
7136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7137 do
7138 ac_preproc_ok=false
7139 for ac_c_preproc_warn_flag in '' yes
7140 do
7141 # Use a header file that comes with gcc, so configuring glibc
7142 # with a fresh cross-compiler works.
7143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7144 # <limits.h> exists even on freestanding compilers.
7145 # On the NeXT, cc -E runs the code through the compiler's parser,
7146 # not just through cpp. "Syntax error" is here to catch this case.
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #ifdef __STDC__
7150 # include <limits.h>
7151 #else
7152 # include <assert.h>
7153 #endif
7154 Syntax error
7155 _ACEOF
7156 if ac_fn_c_try_cpp "$LINENO"; then :
7157
7158 else
7159 # Broken: fails on valid input.
7160 continue
7161 fi
7162 rm -f conftest.err conftest.i conftest.$ac_ext
7163
7164 # OK, works on sane cases. Now check whether nonexistent headers
7165 # can be detected and how.
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #include <ac_nonexistent.h>
7169 _ACEOF
7170 if ac_fn_c_try_cpp "$LINENO"; then :
7171 # Broken: success on invalid input.
7172 continue
7173 else
7174 # Passes both tests.
7175 ac_preproc_ok=:
7176 break
7177 fi
7178 rm -f conftest.err conftest.i conftest.$ac_ext
7179
7180 done
7181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7182 rm -f conftest.i conftest.err conftest.$ac_ext
7183 if $ac_preproc_ok; then :
7184 break
7185 fi
7186
7187 done
7188 ac_cv_prog_CPP=$CPP
7189
7190 fi
7191 CPP=$ac_cv_prog_CPP
7192 else
7193 ac_cv_prog_CPP=$CPP
7194 fi
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7196 $as_echo "$CPP" >&6; }
7197 ac_preproc_ok=false
7198 for ac_c_preproc_warn_flag in '' yes
7199 do
7200 # Use a header file that comes with gcc, so configuring glibc
7201 # with a fresh cross-compiler works.
7202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7203 # <limits.h> exists even on freestanding compilers.
7204 # On the NeXT, cc -E runs the code through the compiler's parser,
7205 # not just through cpp. "Syntax error" is here to catch this case.
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #ifdef __STDC__
7209 # include <limits.h>
7210 #else
7211 # include <assert.h>
7212 #endif
7213 Syntax error
7214 _ACEOF
7215 if ac_fn_c_try_cpp "$LINENO"; then :
7216
7217 else
7218 # Broken: fails on valid input.
7219 continue
7220 fi
7221 rm -f conftest.err conftest.i conftest.$ac_ext
7222
7223 # OK, works on sane cases. Now check whether nonexistent headers
7224 # can be detected and how.
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <ac_nonexistent.h>
7228 _ACEOF
7229 if ac_fn_c_try_cpp "$LINENO"; then :
7230 # Broken: success on invalid input.
7231 continue
7232 else
7233 # Passes both tests.
7234 ac_preproc_ok=:
7235 break
7236 fi
7237 rm -f conftest.err conftest.i conftest.$ac_ext
7238
7239 done
7240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7241 rm -f conftest.i conftest.err conftest.$ac_ext
7242 if $ac_preproc_ok; then :
7243
7244 else
7245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7247 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7248 See \`config.log' for more details" "$LINENO" 5; }
7249 fi
7250
7251 ac_ext=c
7252 ac_cpp='$CPP $CPPFLAGS'
7253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7256
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7259 $as_echo_n "checking for ANSI C header files... " >&6; }
7260 if ${ac_cv_header_stdc+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265 #include <stdlib.h>
7266 #include <stdarg.h>
7267 #include <string.h>
7268 #include <float.h>
7269
7270 int
7271 main ()
7272 {
7273
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 ac_cv_header_stdc=yes
7280 else
7281 ac_cv_header_stdc=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284
7285 if test $ac_cv_header_stdc = yes; then
7286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <string.h>
7290
7291 _ACEOF
7292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293 $EGREP "memchr" >/dev/null 2>&1; then :
7294
7295 else
7296 ac_cv_header_stdc=no
7297 fi
7298 rm -f conftest*
7299
7300 fi
7301
7302 if test $ac_cv_header_stdc = yes; then
7303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 #include <stdlib.h>
7307
7308 _ACEOF
7309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310 $EGREP "free" >/dev/null 2>&1; then :
7311
7312 else
7313 ac_cv_header_stdc=no
7314 fi
7315 rm -f conftest*
7316
7317 fi
7318
7319 if test $ac_cv_header_stdc = yes; then
7320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7321 if test "$cross_compiling" = yes; then :
7322 :
7323 else
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #include <ctype.h>
7327 #include <stdlib.h>
7328 #if ((' ' & 0x0FF) == 0x020)
7329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7331 #else
7332 # define ISLOWER(c) \
7333 (('a' <= (c) && (c) <= 'i') \
7334 || ('j' <= (c) && (c) <= 'r') \
7335 || ('s' <= (c) && (c) <= 'z'))
7336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7337 #endif
7338
7339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7340 int
7341 main ()
7342 {
7343 int i;
7344 for (i = 0; i < 256; i++)
7345 if (XOR (islower (i), ISLOWER (i))
7346 || toupper (i) != TOUPPER (i))
7347 return 2;
7348 return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_run "$LINENO"; then :
7352
7353 else
7354 ac_cv_header_stdc=no
7355 fi
7356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7357 conftest.$ac_objext conftest.beam conftest.$ac_ext
7358 fi
7359
7360 fi
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7363 $as_echo "$ac_cv_header_stdc" >&6; }
7364 if test $ac_cv_header_stdc = yes; then
7365
7366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7367
7368 fi
7369
7370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7372 inttypes.h stdint.h unistd.h
7373 do :
7374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7376 "
7377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7378 cat >>confdefs.h <<_ACEOF
7379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7380 _ACEOF
7381
7382 fi
7383
7384 done
7385
7386
7387 for ac_header in dlfcn.h
7388 do :
7389 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7390 "
7391 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7392 cat >>confdefs.h <<_ACEOF
7393 #define HAVE_DLFCN_H 1
7394 _ACEOF
7395
7396 fi
7397
7398 done
7399
7400
7401
7402
7403
7404 # Set options
7405
7406
7407
7408 enable_dlopen=no
7409
7410
7411 enable_win32_dll=no
7412
7413
7414 # Check whether --enable-shared was given.
7415 if test "${enable_shared+set}" = set; then :
7416 enableval=$enable_shared; p=${PACKAGE-default}
7417 case $enableval in
7418 yes) enable_shared=yes ;;
7419 no) enable_shared=no ;;
7420 *)
7421 enable_shared=no
7422 # Look at the argument we got. We use all the common list separators.
7423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7424 for pkg in $enableval; do
7425 IFS="$lt_save_ifs"
7426 if test "X$pkg" = "X$p"; then
7427 enable_shared=yes
7428 fi
7429 done
7430 IFS="$lt_save_ifs"
7431 ;;
7432 esac
7433 else
7434 enable_shared=yes
7435 fi
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445 # Check whether --enable-static was given.
7446 if test "${enable_static+set}" = set; then :
7447 enableval=$enable_static; p=${PACKAGE-default}
7448 case $enableval in
7449 yes) enable_static=yes ;;
7450 no) enable_static=no ;;
7451 *)
7452 enable_static=no
7453 # Look at the argument we got. We use all the common list separators.
7454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7455 for pkg in $enableval; do
7456 IFS="$lt_save_ifs"
7457 if test "X$pkg" = "X$p"; then
7458 enable_static=yes
7459 fi
7460 done
7461 IFS="$lt_save_ifs"
7462 ;;
7463 esac
7464 else
7465 enable_static=yes
7466 fi
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 # Check whether --with-pic was given.
7478 if test "${with_pic+set}" = set; then :
7479 withval=$with_pic; lt_p=${PACKAGE-default}
7480 case $withval in
7481 yes|no) pic_mode=$withval ;;
7482 *)
7483 pic_mode=default
7484 # Look at the argument we got. We use all the common list separators.
7485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7486 for lt_pkg in $withval; do
7487 IFS="$lt_save_ifs"
7488 if test "X$lt_pkg" = "X$lt_p"; then
7489 pic_mode=yes
7490 fi
7491 done
7492 IFS="$lt_save_ifs"
7493 ;;
7494 esac
7495 else
7496 pic_mode=default
7497 fi
7498
7499
7500 test -z "$pic_mode" && pic_mode=default
7501
7502
7503
7504
7505
7506
7507
7508 # Check whether --enable-fast-install was given.
7509 if test "${enable_fast_install+set}" = set; then :
7510 enableval=$enable_fast_install; p=${PACKAGE-default}
7511 case $enableval in
7512 yes) enable_fast_install=yes ;;
7513 no) enable_fast_install=no ;;
7514 *)
7515 enable_fast_install=no
7516 # Look at the argument we got. We use all the common list separators.
7517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7518 for pkg in $enableval; do
7519 IFS="$lt_save_ifs"
7520 if test "X$pkg" = "X$p"; then
7521 enable_fast_install=yes
7522 fi
7523 done
7524 IFS="$lt_save_ifs"
7525 ;;
7526 esac
7527 else
7528 enable_fast_install=yes
7529 fi
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 # This can be used to rebuild libtool when needed
7542 LIBTOOL_DEPS="$ltmain"
7543
7544 # Always use our own libtool.
7545 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576 test -z "$LN_S" && LN_S="ln -s"
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591 if test -n "${ZSH_VERSION+set}" ; then
7592 setopt NO_GLOB_SUBST
7593 fi
7594
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7596 $as_echo_n "checking for objdir... " >&6; }
7597 if ${lt_cv_objdir+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 rm -f .libs 2>/dev/null
7601 mkdir .libs 2>/dev/null
7602 if test -d .libs; then
7603 lt_cv_objdir=.libs
7604 else
7605 # MS-DOS does not allow filenames that begin with a dot.
7606 lt_cv_objdir=_libs
7607 fi
7608 rmdir .libs 2>/dev/null
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7611 $as_echo "$lt_cv_objdir" >&6; }
7612 objdir=$lt_cv_objdir
7613
7614
7615
7616
7617
7618 cat >>confdefs.h <<_ACEOF
7619 #define LT_OBJDIR "$lt_cv_objdir/"
7620 _ACEOF
7621
7622
7623
7624
7625 case $host_os in
7626 aix3*)
7627 # AIX sometimes has problems with the GCC collect2 program. For some
7628 # reason, if we set the COLLECT_NAMES environment variable, the problems
7629 # vanish in a puff of smoke.
7630 if test "X${COLLECT_NAMES+set}" != Xset; then
7631 COLLECT_NAMES=
7632 export COLLECT_NAMES
7633 fi
7634 ;;
7635 esac
7636
7637 # Global variables:
7638 ofile=libtool
7639 can_build_shared=yes
7640
7641 # All known linkers require a `.a' archive for static linking (except MSVC,
7642 # which needs '.lib').
7643 libext=a
7644
7645 with_gnu_ld="$lt_cv_prog_gnu_ld"
7646
7647 old_CC="$CC"
7648 old_CFLAGS="$CFLAGS"
7649
7650 # Set sane defaults for various variables
7651 test -z "$CC" && CC=cc
7652 test -z "$LTCC" && LTCC=$CC
7653 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7654 test -z "$LD" && LD=ld
7655 test -z "$ac_objext" && ac_objext=o
7656
7657 for cc_temp in $compiler""; do
7658 case $cc_temp in
7659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7661 \-*) ;;
7662 *) break;;
7663 esac
7664 done
7665 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7666
7667
7668 # Only perform the check for file, if the check method requires it
7669 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7670 case $deplibs_check_method in
7671 file_magic*)
7672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7674 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7675 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 case $MAGIC_CMD in
7679 [\\/*] | ?:[\\/]*)
7680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7681 ;;
7682 *)
7683 lt_save_MAGIC_CMD="$MAGIC_CMD"
7684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7686 for ac_dir in $ac_dummy; do
7687 IFS="$lt_save_ifs"
7688 test -z "$ac_dir" && ac_dir=.
7689 if test -f $ac_dir/${ac_tool_prefix}file; then
7690 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7691 if test -n "$file_magic_test_file"; then
7692 case $deplibs_check_method in
7693 "file_magic "*)
7694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7697 $EGREP "$file_magic_regex" > /dev/null; then
7698 :
7699 else
7700 cat <<_LT_EOF 1>&2
7701
7702 *** Warning: the command libtool uses to detect shared libraries,
7703 *** $file_magic_cmd, produces output that libtool cannot recognize.
7704 *** The result is that libtool may fail to recognize shared libraries
7705 *** as such. This will affect the creation of libtool libraries that
7706 *** depend on shared libraries, but programs linked with such libtool
7707 *** libraries will work regardless of this problem. Nevertheless, you
7708 *** may want to report the problem to your system manager and/or to
7709 *** [email protected]
7710
7711 _LT_EOF
7712 fi ;;
7713 esac
7714 fi
7715 break
7716 fi
7717 done
7718 IFS="$lt_save_ifs"
7719 MAGIC_CMD="$lt_save_MAGIC_CMD"
7720 ;;
7721 esac
7722 fi
7723
7724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725 if test -n "$MAGIC_CMD"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7727 $as_echo "$MAGIC_CMD" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733
7734
7735
7736
7737 if test -z "$lt_cv_path_MAGIC_CMD"; then
7738 if test -n "$ac_tool_prefix"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7740 $as_echo_n "checking for file... " >&6; }
7741 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 case $MAGIC_CMD in
7745 [\\/*] | ?:[\\/]*)
7746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7747 ;;
7748 *)
7749 lt_save_MAGIC_CMD="$MAGIC_CMD"
7750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7751 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7752 for ac_dir in $ac_dummy; do
7753 IFS="$lt_save_ifs"
7754 test -z "$ac_dir" && ac_dir=.
7755 if test -f $ac_dir/file; then
7756 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7757 if test -n "$file_magic_test_file"; then
7758 case $deplibs_check_method in
7759 "file_magic "*)
7760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7763 $EGREP "$file_magic_regex" > /dev/null; then
7764 :
7765 else
7766 cat <<_LT_EOF 1>&2
7767
7768 *** Warning: the command libtool uses to detect shared libraries,
7769 *** $file_magic_cmd, produces output that libtool cannot recognize.
7770 *** The result is that libtool may fail to recognize shared libraries
7771 *** as such. This will affect the creation of libtool libraries that
7772 *** depend on shared libraries, but programs linked with such libtool
7773 *** libraries will work regardless of this problem. Nevertheless, you
7774 *** may want to report the problem to your system manager and/or to
7775 *** [email protected]
7776
7777 _LT_EOF
7778 fi ;;
7779 esac
7780 fi
7781 break
7782 fi
7783 done
7784 IFS="$lt_save_ifs"
7785 MAGIC_CMD="$lt_save_MAGIC_CMD"
7786 ;;
7787 esac
7788 fi
7789
7790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7791 if test -n "$MAGIC_CMD"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7793 $as_echo "$MAGIC_CMD" >&6; }
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800 else
7801 MAGIC_CMD=:
7802 fi
7803 fi
7804
7805 fi
7806 ;;
7807 esac
7808
7809 # Use C for the default configuration in the libtool script
7810
7811 lt_save_CC="$CC"
7812 ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818
7819 # Source file extension for C test sources.
7820 ac_ext=c
7821
7822 # Object file extension for compiled C test sources.
7823 objext=o
7824 objext=$objext
7825
7826 # Code to be used in simple compile tests
7827 lt_simple_compile_test_code="int some_variable = 0;"
7828
7829 # Code to be used in simple link tests
7830 lt_simple_link_test_code='int main(){return(0);}'
7831
7832
7833
7834
7835
7836
7837
7838 # If no C compiler was specified, use CC.
7839 LTCC=${LTCC-"$CC"}
7840
7841 # If no C compiler flags were specified, use CFLAGS.
7842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7843
7844 # Allow CC to be a program name with arguments.
7845 compiler=$CC
7846
7847 # Save the default compiler, since it gets overwritten when the other
7848 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7849 compiler_DEFAULT=$CC
7850
7851 # save warnings/boilerplate of simple test code
7852 ac_outfile=conftest.$ac_objext
7853 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7854 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7855 _lt_compiler_boilerplate=`cat conftest.err`
7856 $RM conftest*
7857
7858 ac_outfile=conftest.$ac_objext
7859 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7860 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7861 _lt_linker_boilerplate=`cat conftest.err`
7862 $RM -r conftest*
7863
7864
7865 ## CAVEAT EMPTOR:
7866 ## There is no encapsulation within the following macros, do not change
7867 ## the running order or otherwise move them around unless you know exactly
7868 ## what you are doing...
7869 if test -n "$compiler"; then
7870
7871 lt_prog_compiler_no_builtin_flag=
7872
7873 if test "$GCC" = yes; then
7874 case $cc_basename in
7875 nvcc*)
7876 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7877 *)
7878 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7879 esac
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7882 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7883 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 lt_cv_prog_compiler_rtti_exceptions=no
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7889 lt_compiler_flag="-fno-rtti -fno-exceptions"
7890 # Insert the option either (1) after the last *FLAGS variable, or
7891 # (2) before a word containing "conftest.", or (3) at the end.
7892 # Note that $ac_compile itself does not contain backslashes and begins
7893 # with a dollar sign (not a hyphen), so the echo should work correctly.
7894 # The option is referenced via a variable to avoid confusing sed.
7895 lt_compile=`echo "$ac_compile" | $SED \
7896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7898 -e 's:$: $lt_compiler_flag:'`
7899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7900 (eval "$lt_compile" 2>conftest.err)
7901 ac_status=$?
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 if (exit $ac_status) && test -s "$ac_outfile"; then
7905 # The compiler can only warn and ignore the option if not recognized
7906 # So say no if there are warnings other than the usual output.
7907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7910 lt_cv_prog_compiler_rtti_exceptions=yes
7911 fi
7912 fi
7913 $RM conftest*
7914
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7917 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7918
7919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7921 else
7922 :
7923 fi
7924
7925 fi
7926
7927
7928
7929
7930
7931
7932 lt_prog_compiler_wl=
7933 lt_prog_compiler_pic=
7934 lt_prog_compiler_static=
7935
7936
7937 if test "$GCC" = yes; then
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_static='-static'
7940
7941 case $host_os in
7942 aix*)
7943 # All AIX code is PIC.
7944 if test "$host_cpu" = ia64; then
7945 # AIX 5 now supports IA64 processor
7946 lt_prog_compiler_static='-Bstatic'
7947 fi
7948 ;;
7949
7950 amigaos*)
7951 case $host_cpu in
7952 powerpc)
7953 # see comment about AmigaOS4 .so support
7954 lt_prog_compiler_pic='-fPIC'
7955 ;;
7956 m68k)
7957 # FIXME: we need at least 68020 code to build shared libraries, but
7958 # adding the `-m68020' flag to GCC prevents building anything better,
7959 # like `-m68040'.
7960 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7961 ;;
7962 esac
7963 ;;
7964
7965 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7966 # PIC is the default for these OSes.
7967 ;;
7968
7969 mingw* | cygwin* | pw32* | os2* | cegcc*)
7970 # This hack is so that the source file can tell whether it is being
7971 # built for inclusion in a dll (and should export symbols for example).
7972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7973 # (--disable-auto-import) libraries
7974 lt_prog_compiler_pic='-DDLL_EXPORT'
7975 ;;
7976
7977 darwin* | rhapsody*)
7978 # PIC is the default on this platform
7979 # Common symbols not allowed in MH_DYLIB files
7980 lt_prog_compiler_pic='-fno-common'
7981 ;;
7982
7983 haiku*)
7984 # PIC is the default for Haiku.
7985 # The "-static" flag exists, but is broken.
7986 lt_prog_compiler_static=
7987 ;;
7988
7989 hpux*)
7990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7992 # sets the default TLS model and affects inlining.
7993 case $host_cpu in
7994 hppa*64*)
7995 # +Z the default
7996 ;;
7997 *)
7998 lt_prog_compiler_pic='-fPIC'
7999 ;;
8000 esac
8001 ;;
8002
8003 interix[3-9]*)
8004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8005 # Instead, we relocate shared libraries at runtime.
8006 ;;
8007
8008 msdosdjgpp*)
8009 # Just because we use GCC doesn't mean we suddenly get shared libraries
8010 # on systems that don't support them.
8011 lt_prog_compiler_can_build_shared=no
8012 enable_shared=no
8013 ;;
8014
8015 *nto* | *qnx*)
8016 # QNX uses GNU C++, but need to define -shared option too, otherwise
8017 # it will coredump.
8018 lt_prog_compiler_pic='-fPIC -shared'
8019 ;;
8020
8021 sysv4*MP*)
8022 if test -d /usr/nec; then
8023 lt_prog_compiler_pic=-Kconform_pic
8024 fi
8025 ;;
8026
8027 *)
8028 lt_prog_compiler_pic='-fPIC'
8029 ;;
8030 esac
8031
8032 case $cc_basename in
8033 nvcc*) # Cuda Compiler Driver 2.2
8034 lt_prog_compiler_wl='-Xlinker '
8035 if test -n "$lt_prog_compiler_pic"; then
8036 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8037 fi
8038 ;;
8039 esac
8040 else
8041 # PORTME Check for flag to pass linker flags through the system compiler.
8042 case $host_os in
8043 aix*)
8044 lt_prog_compiler_wl='-Wl,'
8045 if test "$host_cpu" = ia64; then
8046 # AIX 5 now supports IA64 processor
8047 lt_prog_compiler_static='-Bstatic'
8048 else
8049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8050 fi
8051 ;;
8052
8053 mingw* | cygwin* | pw32* | os2* | cegcc*)
8054 # This hack is so that the source file can tell whether it is being
8055 # built for inclusion in a dll (and should export symbols for example).
8056 lt_prog_compiler_pic='-DDLL_EXPORT'
8057 ;;
8058
8059 hpux9* | hpux10* | hpux11*)
8060 lt_prog_compiler_wl='-Wl,'
8061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8062 # not for PA HP-UX.
8063 case $host_cpu in
8064 hppa*64*|ia64*)
8065 # +Z the default
8066 ;;
8067 *)
8068 lt_prog_compiler_pic='+Z'
8069 ;;
8070 esac
8071 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8072 lt_prog_compiler_static='${wl}-a ${wl}archive'
8073 ;;
8074
8075 irix5* | irix6* | nonstopux*)
8076 lt_prog_compiler_wl='-Wl,'
8077 # PIC (with -KPIC) is the default.
8078 lt_prog_compiler_static='-non_shared'
8079 ;;
8080
8081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8082 case $cc_basename in
8083 # old Intel for x86_64 which still supported -KPIC.
8084 ecc*)
8085 lt_prog_compiler_wl='-Wl,'
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-static'
8088 ;;
8089 # icc used to be incompatible with GCC.
8090 # ICC 10 doesn't accept -KPIC any more.
8091 icc* | ifort*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-fPIC'
8094 lt_prog_compiler_static='-static'
8095 ;;
8096 # Lahey Fortran 8.1.
8097 lf95*)
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_pic='--shared'
8100 lt_prog_compiler_static='--static'
8101 ;;
8102 nagfor*)
8103 # NAG Fortran compiler
8104 lt_prog_compiler_wl='-Wl,-Wl,,'
8105 lt_prog_compiler_pic='-PIC'
8106 lt_prog_compiler_static='-Bstatic'
8107 ;;
8108 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8109 # Portland Group compilers (*not* the Pentium gcc compiler,
8110 # which looks to be a dead project)
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='-fpic'
8113 lt_prog_compiler_static='-Bstatic'
8114 ;;
8115 ccc*)
8116 lt_prog_compiler_wl='-Wl,'
8117 # All Alpha code is PIC.
8118 lt_prog_compiler_static='-non_shared'
8119 ;;
8120 xl* | bgxl* | bgf* | mpixl*)
8121 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8122 lt_prog_compiler_wl='-Wl,'
8123 lt_prog_compiler_pic='-qpic'
8124 lt_prog_compiler_static='-qstaticlink'
8125 ;;
8126 *)
8127 case `$CC -V 2>&1 | sed 5q` in
8128 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8129 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8130 lt_prog_compiler_pic='-KPIC'
8131 lt_prog_compiler_static='-Bstatic'
8132 lt_prog_compiler_wl=''
8133 ;;
8134 *Sun\ F* | *Sun*Fortran*)
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_wl='-Qoption ld '
8138 ;;
8139 *Sun\ C*)
8140 # Sun C 5.9
8141 lt_prog_compiler_pic='-KPIC'
8142 lt_prog_compiler_static='-Bstatic'
8143 lt_prog_compiler_wl='-Wl,'
8144 ;;
8145 *Intel*\ [CF]*Compiler*)
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_pic='-fPIC'
8148 lt_prog_compiler_static='-static'
8149 ;;
8150 *Portland\ Group*)
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-fpic'
8153 lt_prog_compiler_static='-Bstatic'
8154 ;;
8155 esac
8156 ;;
8157 esac
8158 ;;
8159
8160 newsos6)
8161 lt_prog_compiler_pic='-KPIC'
8162 lt_prog_compiler_static='-Bstatic'
8163 ;;
8164
8165 *nto* | *qnx*)
8166 # QNX uses GNU C++, but need to define -shared option too, otherwise
8167 # it will coredump.
8168 lt_prog_compiler_pic='-fPIC -shared'
8169 ;;
8170
8171 osf3* | osf4* | osf5*)
8172 lt_prog_compiler_wl='-Wl,'
8173 # All OSF/1 code is PIC.
8174 lt_prog_compiler_static='-non_shared'
8175 ;;
8176
8177 rdos*)
8178 lt_prog_compiler_static='-non_shared'
8179 ;;
8180
8181 solaris*)
8182 lt_prog_compiler_pic='-KPIC'
8183 lt_prog_compiler_static='-Bstatic'
8184 case $cc_basename in
8185 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8186 lt_prog_compiler_wl='-Qoption ld ';;
8187 *)
8188 lt_prog_compiler_wl='-Wl,';;
8189 esac
8190 ;;
8191
8192 sunos4*)
8193 lt_prog_compiler_wl='-Qoption ld '
8194 lt_prog_compiler_pic='-PIC'
8195 lt_prog_compiler_static='-Bstatic'
8196 ;;
8197
8198 sysv4 | sysv4.2uw2* | sysv4.3*)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-Bstatic'
8202 ;;
8203
8204 sysv4*MP*)
8205 if test -d /usr/nec ;then
8206 lt_prog_compiler_pic='-Kconform_pic'
8207 lt_prog_compiler_static='-Bstatic'
8208 fi
8209 ;;
8210
8211 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8212 lt_prog_compiler_wl='-Wl,'
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
8215 ;;
8216
8217 unicos*)
8218 lt_prog_compiler_wl='-Wl,'
8219 lt_prog_compiler_can_build_shared=no
8220 ;;
8221
8222 uts4*)
8223 lt_prog_compiler_pic='-pic'
8224 lt_prog_compiler_static='-Bstatic'
8225 ;;
8226
8227 *)
8228 lt_prog_compiler_can_build_shared=no
8229 ;;
8230 esac
8231 fi
8232
8233 case $host_os in
8234 # For platforms which do not support PIC, -DPIC is meaningless:
8235 *djgpp*)
8236 lt_prog_compiler_pic=
8237 ;;
8238 *)
8239 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8240 ;;
8241 esac
8242
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8244 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8245 if ${lt_cv_prog_compiler_pic+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8251 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8252 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8253
8254 #
8255 # Check to make sure the PIC flag actually works.
8256 #
8257 if test -n "$lt_prog_compiler_pic"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8259 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8260 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 lt_cv_prog_compiler_pic_works=no
8264 ac_outfile=conftest.$ac_objext
8265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8266 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8267 # Insert the option either (1) after the last *FLAGS variable, or
8268 # (2) before a word containing "conftest.", or (3) at the end.
8269 # Note that $ac_compile itself does not contain backslashes and begins
8270 # with a dollar sign (not a hyphen), so the echo should work correctly.
8271 # The option is referenced via a variable to avoid confusing sed.
8272 lt_compile=`echo "$ac_compile" | $SED \
8273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8275 -e 's:$: $lt_compiler_flag:'`
8276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8277 (eval "$lt_compile" 2>conftest.err)
8278 ac_status=$?
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 if (exit $ac_status) && test -s "$ac_outfile"; then
8282 # The compiler can only warn and ignore the option if not recognized
8283 # So say no if there are warnings other than the usual output.
8284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8287 lt_cv_prog_compiler_pic_works=yes
8288 fi
8289 fi
8290 $RM conftest*
8291
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8294 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8295
8296 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8297 case $lt_prog_compiler_pic in
8298 "" | " "*) ;;
8299 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8300 esac
8301 else
8302 lt_prog_compiler_pic=
8303 lt_prog_compiler_can_build_shared=no
8304 fi
8305
8306 fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318 #
8319 # Check to make sure the static flag actually works.
8320 #
8321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8324 if ${lt_cv_prog_compiler_static_works+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 lt_cv_prog_compiler_static_works=no
8328 save_LDFLAGS="$LDFLAGS"
8329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8332 # The linker can only warn and ignore the option if not recognized
8333 # So say no if there are warnings
8334 if test -s conftest.err; then
8335 # Append any errors to the config.log.
8336 cat conftest.err 1>&5
8337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339 if diff conftest.exp conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_static_works=yes
8341 fi
8342 else
8343 lt_cv_prog_compiler_static_works=yes
8344 fi
8345 fi
8346 $RM -r conftest*
8347 LDFLAGS="$save_LDFLAGS"
8348
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8351 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8352
8353 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8354 :
8355 else
8356 lt_prog_compiler_static=
8357 fi
8358
8359
8360
8361
8362
8363
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8366 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8367 if ${lt_cv_prog_compiler_c_o+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 lt_cv_prog_compiler_c_o=no
8371 $RM -r conftest 2>/dev/null
8372 mkdir conftest
8373 cd conftest
8374 mkdir out
8375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376
8377 lt_compiler_flag="-o out/conftest2.$ac_objext"
8378 # Insert the option either (1) after the last *FLAGS variable, or
8379 # (2) before a word containing "conftest.", or (3) at the end.
8380 # Note that $ac_compile itself does not contain backslashes and begins
8381 # with a dollar sign (not a hyphen), so the echo should work correctly.
8382 lt_compile=`echo "$ac_compile" | $SED \
8383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8385 -e 's:$: $lt_compiler_flag:'`
8386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8387 (eval "$lt_compile" 2>out/conftest.err)
8388 ac_status=$?
8389 cat out/conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8392 then
8393 # The compiler can only warn and ignore the option if not recognized
8394 # So say no if there are warnings
8395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8398 lt_cv_prog_compiler_c_o=yes
8399 fi
8400 fi
8401 chmod u+w . 2>&5
8402 $RM conftest*
8403 # SGI C++ compiler will create directory out/ii_files/ for
8404 # template instantiation
8405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8406 $RM out/* && rmdir out
8407 cd ..
8408 $RM -r conftest
8409 $RM conftest*
8410
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8413 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8414
8415
8416
8417
8418
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422 if ${lt_cv_prog_compiler_c_o+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 lt_cv_prog_compiler_c_o=no
8426 $RM -r conftest 2>/dev/null
8427 mkdir conftest
8428 cd conftest
8429 mkdir out
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431
8432 lt_compiler_flag="-o out/conftest2.$ac_objext"
8433 # Insert the option either (1) after the last *FLAGS variable, or
8434 # (2) before a word containing "conftest.", or (3) at the end.
8435 # Note that $ac_compile itself does not contain backslashes and begins
8436 # with a dollar sign (not a hyphen), so the echo should work correctly.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442 (eval "$lt_compile" 2>out/conftest.err)
8443 ac_status=$?
8444 cat out/conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8447 then
8448 # The compiler can only warn and ignore the option if not recognized
8449 # So say no if there are warnings
8450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453 lt_cv_prog_compiler_c_o=yes
8454 fi
8455 fi
8456 chmod u+w . 2>&5
8457 $RM conftest*
8458 # SGI C++ compiler will create directory out/ii_files/ for
8459 # template instantiation
8460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461 $RM out/* && rmdir out
8462 cd ..
8463 $RM -r conftest
8464 $RM conftest*
8465
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8469
8470
8471
8472
8473 hard_links="nottested"
8474 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8475 # do not overwrite the value of need_locks provided by the user
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8477 $as_echo_n "checking if we can lock with hard links... " >&6; }
8478 hard_links=yes
8479 $RM conftest*
8480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8481 touch conftest.a
8482 ln conftest.a conftest.b 2>&5 || hard_links=no
8483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8485 $as_echo "$hard_links" >&6; }
8486 if test "$hard_links" = no; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8488 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8489 need_locks=warn
8490 fi
8491 else
8492 need_locks=no
8493 fi
8494
8495
8496
8497
8498
8499
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8502
8503 runpath_var=
8504 allow_undefined_flag=
8505 always_export_symbols=no
8506 archive_cmds=
8507 archive_expsym_cmds=
8508 compiler_needs_object=no
8509 enable_shared_with_static_runtimes=no
8510 export_dynamic_flag_spec=
8511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8512 hardcode_automatic=no
8513 hardcode_direct=no
8514 hardcode_direct_absolute=no
8515 hardcode_libdir_flag_spec=
8516 hardcode_libdir_separator=
8517 hardcode_minus_L=no
8518 hardcode_shlibpath_var=unsupported
8519 inherit_rpath=no
8520 link_all_deplibs=unknown
8521 module_cmds=
8522 module_expsym_cmds=
8523 old_archive_from_new_cmds=
8524 old_archive_from_expsyms_cmds=
8525 thread_safe_flag_spec=
8526 whole_archive_flag_spec=
8527 # include_expsyms should be a list of space-separated symbols to be *always*
8528 # included in the symbol list
8529 include_expsyms=
8530 # exclude_expsyms can be an extended regexp of symbols to exclude
8531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8533 # as well as any symbol that contains `d'.
8534 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8536 # platforms (ab)use it in PIC code, but their linkers get confused if
8537 # the symbol is explicitly referenced. Since portable code cannot
8538 # rely on this symbol name, it's probably fine to never include it in
8539 # preloaded symbol tables.
8540 # Exclude shared library initialization/finalization symbols.
8541 extract_expsyms_cmds=
8542
8543 case $host_os in
8544 cygwin* | mingw* | pw32* | cegcc*)
8545 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8546 # When not using gcc, we currently assume that we are using
8547 # Microsoft Visual C++.
8548 if test "$GCC" != yes; then
8549 with_gnu_ld=no
8550 fi
8551 ;;
8552 interix*)
8553 # we just hope/assume this is gcc and not c89 (= MSVC++)
8554 with_gnu_ld=yes
8555 ;;
8556 openbsd*)
8557 with_gnu_ld=no
8558 ;;
8559 linux* | k*bsd*-gnu | gnu*)
8560 link_all_deplibs=no
8561 ;;
8562 esac
8563
8564 ld_shlibs=yes
8565
8566 # On some targets, GNU ld is compatible enough with the native linker
8567 # that we're better off using the native interface for both.
8568 lt_use_gnu_ld_interface=no
8569 if test "$with_gnu_ld" = yes; then
8570 case $host_os in
8571 aix*)
8572 # The AIX port of GNU ld has always aspired to compatibility
8573 # with the native linker. However, as the warning in the GNU ld
8574 # block says, versions before 2.19.5* couldn't really create working
8575 # shared libraries, regardless of the interface used.
8576 case `$LD -v 2>&1` in
8577 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8578 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8579 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8580 *)
8581 lt_use_gnu_ld_interface=yes
8582 ;;
8583 esac
8584 ;;
8585 *)
8586 lt_use_gnu_ld_interface=yes
8587 ;;
8588 esac
8589 fi
8590
8591 if test "$lt_use_gnu_ld_interface" = yes; then
8592 # If archive_cmds runs LD, not CC, wlarc should be empty
8593 wlarc='${wl}'
8594
8595 # Set some defaults for GNU ld with shared library support. These
8596 # are reset later if shared libraries are not supported. Putting them
8597 # here allows them to be overridden if necessary.
8598 runpath_var=LD_RUN_PATH
8599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600 export_dynamic_flag_spec='${wl}--export-dynamic'
8601 # ancient GNU ld didn't support --whole-archive et. al.
8602 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8603 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8604 else
8605 whole_archive_flag_spec=
8606 fi
8607 supports_anon_versioning=no
8608 case `$LD -v 2>&1` in
8609 *GNU\ gold*) supports_anon_versioning=yes ;;
8610 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8613 *\ 2.11.*) ;; # other 2.11 versions
8614 *) supports_anon_versioning=yes ;;
8615 esac
8616
8617 # See if GNU ld supports shared libraries.
8618 case $host_os in
8619 aix[3-9]*)
8620 # On AIX/PPC, the GNU linker is very broken
8621 if test "$host_cpu" != ia64; then
8622 ld_shlibs=no
8623 cat <<_LT_EOF 1>&2
8624
8625 *** Warning: the GNU linker, at least up to release 2.19, is reported
8626 *** to be unable to reliably create shared libraries on AIX.
8627 *** Therefore, libtool is disabling shared libraries support. If you
8628 *** really care for shared libraries, you may want to install binutils
8629 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8630 *** You will then need to restart the configuration process.
8631
8632 _LT_EOF
8633 fi
8634 ;;
8635
8636 amigaos*)
8637 case $host_cpu in
8638 powerpc)
8639 # see comment about AmigaOS4 .so support
8640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8641 archive_expsym_cmds=''
8642 ;;
8643 m68k)
8644 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)'
8645 hardcode_libdir_flag_spec='-L$libdir'
8646 hardcode_minus_L=yes
8647 ;;
8648 esac
8649 ;;
8650
8651 beos*)
8652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8653 allow_undefined_flag=unsupported
8654 # Joseph Beckenbach <[email protected]> says some releases of gcc
8655 # support --undefined. This deserves some investigation. FIXME
8656 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661
8662 cygwin* | mingw* | pw32* | cegcc*)
8663 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8664 # as there is no search path for DLLs.
8665 hardcode_libdir_flag_spec='-L$libdir'
8666 export_dynamic_flag_spec='${wl}--export-all-symbols'
8667 allow_undefined_flag=unsupported
8668 always_export_symbols=no
8669 enable_shared_with_static_runtimes=yes
8670 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'
8671 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8672
8673 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8675 # If the export-symbols file already is a .def file (1st line
8676 # is EXPORTS), use it as is; otherwise, prepend...
8677 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8678 cp $export_symbols $output_objdir/$soname.def;
8679 else
8680 echo EXPORTS > $output_objdir/$soname.def;
8681 cat $export_symbols >> $output_objdir/$soname.def;
8682 fi~
8683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
8688
8689 haiku*)
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 link_all_deplibs=yes
8692 ;;
8693
8694 interix[3-9]*)
8695 hardcode_direct=no
8696 hardcode_shlibpath_var=no
8697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8698 export_dynamic_flag_spec='${wl}-E'
8699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8700 # Instead, shared libraries are loaded at an image base (0x10000000 by
8701 # default) and relocated if they conflict, which is a slow very memory
8702 # consuming and fragmenting process. To avoid this, we pick a random,
8703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8706 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'
8707 ;;
8708
8709 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8710 tmp_diet=no
8711 if test "$host_os" = linux-dietlibc; then
8712 case $cc_basename in
8713 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8714 esac
8715 fi
8716 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8717 && test "$tmp_diet" = no
8718 then
8719 tmp_addflag=' $pic_flag'
8720 tmp_sharedflag='-shared'
8721 case $cc_basename,$host_cpu in
8722 pgcc*) # Portland Group C compiler
8723 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'
8724 tmp_addflag=' $pic_flag'
8725 ;;
8726 pgf77* | pgf90* | pgf95* | pgfortran*)
8727 # Portland Group f77 and f90 compilers
8728 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'
8729 tmp_addflag=' $pic_flag -Mnomain' ;;
8730 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8731 tmp_addflag=' -i_dynamic' ;;
8732 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8733 tmp_addflag=' -i_dynamic -nofor_main' ;;
8734 ifc* | ifort*) # Intel Fortran compiler
8735 tmp_addflag=' -nofor_main' ;;
8736 lf95*) # Lahey Fortran 8.1
8737 whole_archive_flag_spec=
8738 tmp_sharedflag='--shared' ;;
8739 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8740 tmp_sharedflag='-qmkshrobj'
8741 tmp_addflag= ;;
8742 nvcc*) # Cuda Compiler Driver 2.2
8743 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'
8744 compiler_needs_object=yes
8745 ;;
8746 esac
8747 case `$CC -V 2>&1 | sed 5q` in
8748 *Sun\ C*) # Sun C 5.9
8749 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'
8750 compiler_needs_object=yes
8751 tmp_sharedflag='-G' ;;
8752 *Sun\ F*) # Sun Fortran 8.3
8753 tmp_sharedflag='-G' ;;
8754 esac
8755 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8756
8757 if test "x$supports_anon_versioning" = xyes; then
8758 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8760 echo "local: *; };" >> $output_objdir/$libname.ver~
8761 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8762 fi
8763
8764 case $cc_basename in
8765 xlf* | bgf* | bgxlf* | mpixlf*)
8766 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8767 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8770 if test "x$supports_anon_versioning" = xyes; then
8771 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8773 echo "local: *; };" >> $output_objdir/$libname.ver~
8774 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8775 fi
8776 ;;
8777 esac
8778 else
8779 ld_shlibs=no
8780 fi
8781 ;;
8782
8783 netbsd* | netbsdelf*-gnu)
8784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8785 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8786 wlarc=
8787 else
8788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8789 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8790 fi
8791 ;;
8792
8793 solaris*)
8794 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8795 ld_shlibs=no
8796 cat <<_LT_EOF 1>&2
8797
8798 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8799 *** create shared libraries on Solaris systems. Therefore, libtool
8800 *** is disabling shared libraries support. We urge you to upgrade GNU
8801 *** binutils to release 2.9.1 or newer. Another option is to modify
8802 *** your PATH or compiler configuration so that the native linker is
8803 *** used, and then restart.
8804
8805 _LT_EOF
8806 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8809 else
8810 ld_shlibs=no
8811 fi
8812 ;;
8813
8814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8815 case `$LD -v 2>&1` in
8816 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8817 ld_shlibs=no
8818 cat <<_LT_EOF 1>&2
8819
8820 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8821 *** reliably create shared libraries on SCO systems. Therefore, libtool
8822 *** is disabling shared libraries support. We urge you to upgrade GNU
8823 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8824 *** your PATH or compiler configuration so that the native linker is
8825 *** used, and then restart.
8826
8827 _LT_EOF
8828 ;;
8829 *)
8830 # For security reasons, it is highly recommended that you always
8831 # use absolute paths for naming shared libraries, and exclude the
8832 # DT_RUNPATH tag from executables and libraries. But doing so
8833 # requires that you compile everything twice, which is a pain.
8834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8838 else
8839 ld_shlibs=no
8840 fi
8841 ;;
8842 esac
8843 ;;
8844
8845 sunos4*)
8846 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8847 wlarc=
8848 hardcode_direct=yes
8849 hardcode_shlibpath_var=no
8850 ;;
8851
8852 *)
8853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8856 else
8857 ld_shlibs=no
8858 fi
8859 ;;
8860 esac
8861
8862 if test "$ld_shlibs" = no; then
8863 runpath_var=
8864 hardcode_libdir_flag_spec=
8865 export_dynamic_flag_spec=
8866 whole_archive_flag_spec=
8867 fi
8868 else
8869 # PORTME fill in a description of your system's linker (not GNU ld)
8870 case $host_os in
8871 aix3*)
8872 allow_undefined_flag=unsupported
8873 always_export_symbols=yes
8874 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'
8875 # Note: this linker hardcodes the directories in LIBPATH if there
8876 # are no directories specified by -L.
8877 hardcode_minus_L=yes
8878 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8879 # Neither direct hardcoding nor static linking is supported with a
8880 # broken collect2.
8881 hardcode_direct=unsupported
8882 fi
8883 ;;
8884
8885 aix[4-9]*)
8886 if test "$host_cpu" = ia64; then
8887 # On IA64, the linker does run time linking by default, so we don't
8888 # have to do anything special.
8889 aix_use_runtimelinking=no
8890 exp_sym_flag='-Bexport'
8891 no_entry_flag=""
8892 else
8893 # If we're using GNU nm, then we don't want the "-C" option.
8894 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8895 # Also, AIX nm treats weak defined symbols like other global
8896 # defined symbols, whereas GNU nm marks them as "W".
8897 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8898 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8899 else
8900 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8901 fi
8902 aix_use_runtimelinking=no
8903
8904 # Test if we are trying to use run time linking or normal
8905 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8906 # need to do runtime linking.
8907 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8908 for ld_flag in $LDFLAGS; do
8909 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8910 aix_use_runtimelinking=yes
8911 break
8912 fi
8913 done
8914 ;;
8915 esac
8916
8917 exp_sym_flag='-bexport'
8918 no_entry_flag='-bnoentry'
8919 fi
8920
8921 # When large executables or shared objects are built, AIX ld can
8922 # have problems creating the table of contents. If linking a library
8923 # or program results in "error TOC overflow" add -mminimal-toc to
8924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8926
8927 archive_cmds=''
8928 hardcode_direct=yes
8929 hardcode_direct_absolute=yes
8930 hardcode_libdir_separator=':'
8931 link_all_deplibs=yes
8932 file_list_spec='${wl}-f,'
8933
8934 if test "$GCC" = yes; then
8935 case $host_os in aix4.[012]|aix4.[012].*)
8936 # We only want to do this on AIX 4.2 and lower, the check
8937 # below for broken collect2 doesn't work under 4.3+
8938 collect2name=`${CC} -print-prog-name=collect2`
8939 if test -f "$collect2name" &&
8940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8941 then
8942 # We have reworked collect2
8943 :
8944 else
8945 # We have old collect2
8946 hardcode_direct=unsupported
8947 # It fails to find uninstalled libraries when the uninstalled
8948 # path is not listed in the libpath. Setting hardcode_minus_L
8949 # to unsupported forces relinking
8950 hardcode_minus_L=yes
8951 hardcode_libdir_flag_spec='-L$libdir'
8952 hardcode_libdir_separator=
8953 fi
8954 ;;
8955 esac
8956 shared_flag='-shared'
8957 if test "$aix_use_runtimelinking" = yes; then
8958 shared_flag="$shared_flag "'${wl}-G'
8959 fi
8960 link_all_deplibs=no
8961 else
8962 # not using gcc
8963 if test "$host_cpu" = ia64; then
8964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8965 # chokes on -Wl,-G. The following line is correct:
8966 shared_flag='-G'
8967 else
8968 if test "$aix_use_runtimelinking" = yes; then
8969 shared_flag='${wl}-G'
8970 else
8971 shared_flag='${wl}-bM:SRE'
8972 fi
8973 fi
8974 fi
8975
8976 export_dynamic_flag_spec='${wl}-bexpall'
8977 # It seems that -bexpall does not export symbols beginning with
8978 # underscore (_), so it is better to generate a list of symbols to export.
8979 always_export_symbols=yes
8980 if test "$aix_use_runtimelinking" = yes; then
8981 # Warning - without using the other runtime loading flags (-brtl),
8982 # -berok will link without error, but may produce a broken library.
8983 allow_undefined_flag='-berok'
8984 # Determine the default libpath from the value encoded in an
8985 # empty executable.
8986 if test "${lt_cv_aix_libpath+set}" = set; then
8987 aix_libpath=$lt_cv_aix_libpath
8988 else
8989 if ${lt_cv_aix_libpath_+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994
8995 int
8996 main ()
8997 {
8998
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"; then :
9004
9005 lt_aix_libpath_sed='
9006 /Import File Strings/,/^$/ {
9007 /^0/ {
9008 s/^0 *\([^ ]*\) *$/\1/
9009 p
9010 }
9011 }'
9012 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9013 # Check for a 64-bit object if we didn't find anything.
9014 if test -z "$lt_cv_aix_libpath_"; then
9015 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9016 fi
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
9020 if test -z "$lt_cv_aix_libpath_"; then
9021 lt_cv_aix_libpath_="/usr/lib:/lib"
9022 fi
9023
9024 fi
9025
9026 aix_libpath=$lt_cv_aix_libpath_
9027 fi
9028
9029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9030 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9031 else
9032 if test "$host_cpu" = ia64; then
9033 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9034 allow_undefined_flag="-z nodefs"
9035 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"
9036 else
9037 # Determine the default libpath from the value encoded in an
9038 # empty executable.
9039 if test "${lt_cv_aix_libpath+set}" = set; then
9040 aix_libpath=$lt_cv_aix_libpath
9041 else
9042 if ${lt_cv_aix_libpath_+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047
9048 int
9049 main ()
9050 {
9051
9052 ;
9053 return 0;
9054 }
9055 _ACEOF
9056 if ac_fn_c_try_link "$LINENO"; then :
9057
9058 lt_aix_libpath_sed='
9059 /Import File Strings/,/^$/ {
9060 /^0/ {
9061 s/^0 *\([^ ]*\) *$/\1/
9062 p
9063 }
9064 }'
9065 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9066 # Check for a 64-bit object if we didn't find anything.
9067 if test -z "$lt_cv_aix_libpath_"; then
9068 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9069 fi
9070 fi
9071 rm -f core conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 if test -z "$lt_cv_aix_libpath_"; then
9074 lt_cv_aix_libpath_="/usr/lib:/lib"
9075 fi
9076
9077 fi
9078
9079 aix_libpath=$lt_cv_aix_libpath_
9080 fi
9081
9082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9083 # Warning - without using the other run time loading flags,
9084 # -berok will link without error, but may produce a broken library.
9085 no_undefined_flag=' ${wl}-bernotok'
9086 allow_undefined_flag=' ${wl}-berok'
9087 if test "$with_gnu_ld" = yes; then
9088 # We only use this code for GNU lds that support --whole-archive.
9089 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9090 else
9091 # Exported symbols can be pulled into shared objects from archives
9092 whole_archive_flag_spec='$convenience'
9093 fi
9094 archive_cmds_need_lc=yes
9095 # This is similar to how AIX traditionally builds its shared libraries.
9096 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9097 fi
9098 fi
9099 ;;
9100
9101 amigaos*)
9102 case $host_cpu in
9103 powerpc)
9104 # see comment about AmigaOS4 .so support
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 archive_expsym_cmds=''
9107 ;;
9108 m68k)
9109 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)'
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_minus_L=yes
9112 ;;
9113 esac
9114 ;;
9115
9116 bsdi[45]*)
9117 export_dynamic_flag_spec=-rdynamic
9118 ;;
9119
9120 cygwin* | mingw* | pw32* | cegcc*)
9121 # When not using gcc, we currently assume that we are using
9122 # Microsoft Visual C++.
9123 # hardcode_libdir_flag_spec is actually meaningless, as there is
9124 # no search path for DLLs.
9125 case $cc_basename in
9126 cl*)
9127 # Native MSVC
9128 hardcode_libdir_flag_spec=' '
9129 allow_undefined_flag=unsupported
9130 always_export_symbols=yes
9131 file_list_spec='@'
9132 # Tell ltmain to make .lib files, not .a files.
9133 libext=lib
9134 # Tell ltmain to make .dll files, not .so files.
9135 shrext_cmds=".dll"
9136 # FIXME: Setting linknames here is a bad hack.
9137 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9138 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9139 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9140 else
9141 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9142 fi~
9143 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9144 linknames='
9145 # The linker will not automatically build a static lib if we build a DLL.
9146 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9147 enable_shared_with_static_runtimes=yes
9148 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9150 # Don't use ranlib
9151 old_postinstall_cmds='chmod 644 $oldlib'
9152 postlink_cmds='lt_outputfile="@OUTPUT@"~
9153 lt_tool_outputfile="@TOOL_OUTPUT@"~
9154 case $lt_outputfile in
9155 *.exe|*.EXE) ;;
9156 *)
9157 lt_outputfile="$lt_outputfile.exe"
9158 lt_tool_outputfile="$lt_tool_outputfile.exe"
9159 ;;
9160 esac~
9161 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9162 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9163 $RM "$lt_outputfile.manifest";
9164 fi'
9165 ;;
9166 *)
9167 # Assume MSVC wrapper
9168 hardcode_libdir_flag_spec=' '
9169 allow_undefined_flag=unsupported
9170 # Tell ltmain to make .lib files, not .a files.
9171 libext=lib
9172 # Tell ltmain to make .dll files, not .so files.
9173 shrext_cmds=".dll"
9174 # FIXME: Setting linknames here is a bad hack.
9175 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9176 # The linker will automatically build a .lib file if we build a DLL.
9177 old_archive_from_new_cmds='true'
9178 # FIXME: Should let the user specify the lib program.
9179 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9180 enable_shared_with_static_runtimes=yes
9181 ;;
9182 esac
9183 ;;
9184
9185 darwin* | rhapsody*)
9186
9187
9188 archive_cmds_need_lc=no
9189 hardcode_direct=no
9190 hardcode_automatic=yes
9191 hardcode_shlibpath_var=unsupported
9192 if test "$lt_cv_ld_force_load" = "yes"; then
9193 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\"`'
9194
9195 else
9196 whole_archive_flag_spec=''
9197 fi
9198 link_all_deplibs=yes
9199 allow_undefined_flag="$_lt_dar_allow_undefined"
9200 case $cc_basename in
9201 ifort*) _lt_dar_can_shared=yes ;;
9202 *) _lt_dar_can_shared=$GCC ;;
9203 esac
9204 if test "$_lt_dar_can_shared" = "yes"; then
9205 output_verbose_link_cmd=func_echo_all
9206 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9207 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9208 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}"
9209 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}"
9210
9211 else
9212 ld_shlibs=no
9213 fi
9214
9215 ;;
9216
9217 dgux*)
9218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219 hardcode_libdir_flag_spec='-L$libdir'
9220 hardcode_shlibpath_var=no
9221 ;;
9222
9223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9224 # support. Future versions do this automatically, but an explicit c++rt0.o
9225 # does not break anything, and helps significantly (at the cost of a little
9226 # extra space).
9227 freebsd2.2*)
9228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9229 hardcode_libdir_flag_spec='-R$libdir'
9230 hardcode_direct=yes
9231 hardcode_shlibpath_var=no
9232 ;;
9233
9234 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9235 freebsd2.*)
9236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_direct=yes
9238 hardcode_minus_L=yes
9239 hardcode_shlibpath_var=no
9240 ;;
9241
9242 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9243 freebsd* | dragonfly*)
9244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9245 hardcode_libdir_flag_spec='-R$libdir'
9246 hardcode_direct=yes
9247 hardcode_shlibpath_var=no
9248 ;;
9249
9250 hpux9*)
9251 if test "$GCC" = yes; then
9252 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9253 else
9254 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9255 fi
9256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9257 hardcode_libdir_separator=:
9258 hardcode_direct=yes
9259
9260 # hardcode_minus_L: Not really in the search PATH,
9261 # but as the default location of the library.
9262 hardcode_minus_L=yes
9263 export_dynamic_flag_spec='${wl}-E'
9264 ;;
9265
9266 hpux10*)
9267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9268 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9269 else
9270 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9271 fi
9272 if test "$with_gnu_ld" = no; then
9273 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9274 hardcode_libdir_separator=:
9275 hardcode_direct=yes
9276 hardcode_direct_absolute=yes
9277 export_dynamic_flag_spec='${wl}-E'
9278 # hardcode_minus_L: Not really in the search PATH,
9279 # but as the default location of the library.
9280 hardcode_minus_L=yes
9281 fi
9282 ;;
9283
9284 hpux11*)
9285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9286 case $host_cpu in
9287 hppa*64*)
9288 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 ;;
9290 ia64*)
9291 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9292 ;;
9293 *)
9294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9295 ;;
9296 esac
9297 else
9298 case $host_cpu in
9299 hppa*64*)
9300 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9301 ;;
9302 ia64*)
9303 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9304 ;;
9305 *)
9306
9307 # Older versions of the 11.00 compiler do not understand -b yet
9308 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9310 $as_echo_n "checking if $CC understands -b... " >&6; }
9311 if ${lt_cv_prog_compiler__b+:} false; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 lt_cv_prog_compiler__b=no
9315 save_LDFLAGS="$LDFLAGS"
9316 LDFLAGS="$LDFLAGS -b"
9317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9319 # The linker can only warn and ignore the option if not recognized
9320 # So say no if there are warnings
9321 if test -s conftest.err; then
9322 # Append any errors to the config.log.
9323 cat conftest.err 1>&5
9324 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326 if diff conftest.exp conftest.er2 >/dev/null; then
9327 lt_cv_prog_compiler__b=yes
9328 fi
9329 else
9330 lt_cv_prog_compiler__b=yes
9331 fi
9332 fi
9333 $RM -r conftest*
9334 LDFLAGS="$save_LDFLAGS"
9335
9336 fi
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9338 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9339
9340 if test x"$lt_cv_prog_compiler__b" = xyes; then
9341 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9342 else
9343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9344 fi
9345
9346 ;;
9347 esac
9348 fi
9349 if test "$with_gnu_ld" = no; then
9350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9351 hardcode_libdir_separator=:
9352
9353 case $host_cpu in
9354 hppa*64*|ia64*)
9355 hardcode_direct=no
9356 hardcode_shlibpath_var=no
9357 ;;
9358 *)
9359 hardcode_direct=yes
9360 hardcode_direct_absolute=yes
9361 export_dynamic_flag_spec='${wl}-E'
9362
9363 # hardcode_minus_L: Not really in the search PATH,
9364 # but as the default location of the library.
9365 hardcode_minus_L=yes
9366 ;;
9367 esac
9368 fi
9369 ;;
9370
9371 irix5* | irix6* | nonstopux*)
9372 if test "$GCC" = yes; then
9373 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'
9374 # Try to use the -exported_symbol ld option, if it does not
9375 # work, assume that -exports_file does not work either and
9376 # implicitly export all symbols.
9377 # This should be the same for all languages, so no per-tag cache variable.
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9379 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9380 if ${lt_cv_irix_exported_symbol+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 save_LDFLAGS="$LDFLAGS"
9384 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 int foo (void) { return 0; }
9388 _ACEOF
9389 if ac_fn_c_try_link "$LINENO"; then :
9390 lt_cv_irix_exported_symbol=yes
9391 else
9392 lt_cv_irix_exported_symbol=no
9393 fi
9394 rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LDFLAGS="$save_LDFLAGS"
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9399 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9400 if test "$lt_cv_irix_exported_symbol" = yes; then
9401 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'
9402 fi
9403 else
9404 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'
9405 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'
9406 fi
9407 archive_cmds_need_lc='no'
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 hardcode_libdir_separator=:
9410 inherit_rpath=yes
9411 link_all_deplibs=yes
9412 ;;
9413
9414 netbsd* | netbsdelf*-gnu)
9415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9417 else
9418 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9419 fi
9420 hardcode_libdir_flag_spec='-R$libdir'
9421 hardcode_direct=yes
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 newsos6)
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_direct=yes
9428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429 hardcode_libdir_separator=:
9430 hardcode_shlibpath_var=no
9431 ;;
9432
9433 *nto* | *qnx*)
9434 ;;
9435
9436 openbsd*)
9437 if test -f /usr/libexec/ld.so; then
9438 hardcode_direct=yes
9439 hardcode_shlibpath_var=no
9440 hardcode_direct_absolute=yes
9441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9445 export_dynamic_flag_spec='${wl}-E'
9446 else
9447 case $host_os in
9448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_libdir_flag_spec='-R$libdir'
9451 ;;
9452 *)
9453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9455 ;;
9456 esac
9457 fi
9458 else
9459 ld_shlibs=no
9460 fi
9461 ;;
9462
9463 os2*)
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_minus_L=yes
9466 allow_undefined_flag=unsupported
9467 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9468 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9469 ;;
9470
9471 osf3*)
9472 if test "$GCC" = yes; then
9473 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9474 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'
9475 else
9476 allow_undefined_flag=' -expect_unresolved \*'
9477 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'
9478 fi
9479 archive_cmds_need_lc='no'
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 hardcode_libdir_separator=:
9482 ;;
9483
9484 osf4* | osf5*) # as osf3* with the addition of -msym flag
9485 if test "$GCC" = yes; then
9486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487 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'
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489 else
9490 allow_undefined_flag=' -expect_unresolved \*'
9491 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'
9492 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~
9493 $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'
9494
9495 # Both c and cxx compiler support -rpath directly
9496 hardcode_libdir_flag_spec='-rpath $libdir'
9497 fi
9498 archive_cmds_need_lc='no'
9499 hardcode_libdir_separator=:
9500 ;;
9501
9502 solaris*)
9503 no_undefined_flag=' -z defs'
9504 if test "$GCC" = yes; then
9505 wlarc='${wl}'
9506 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9508 $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'
9509 else
9510 case `$CC -V 2>&1` in
9511 *"Compilers 5.0"*)
9512 wlarc=''
9513 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9515 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9516 ;;
9517 *)
9518 wlarc='${wl}'
9519 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9521 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9522 ;;
9523 esac
9524 fi
9525 hardcode_libdir_flag_spec='-R$libdir'
9526 hardcode_shlibpath_var=no
9527 case $host_os in
9528 solaris2.[0-5] | solaris2.[0-5].*) ;;
9529 *)
9530 # The compiler driver will combine and reorder linker options,
9531 # but understands `-z linker_flag'. GCC discards it without `$wl',
9532 # but is careful enough not to reorder.
9533 # Supported since Solaris 2.6 (maybe 2.5.1?)
9534 if test "$GCC" = yes; then
9535 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9536 else
9537 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9538 fi
9539 ;;
9540 esac
9541 link_all_deplibs=yes
9542 ;;
9543
9544 sunos4*)
9545 if test "x$host_vendor" = xsequent; then
9546 # Use $CC to link under sequent, because it throws in some extra .o
9547 # files that make .init and .fini sections work.
9548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9549 else
9550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9551 fi
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_direct=yes
9554 hardcode_minus_L=yes
9555 hardcode_shlibpath_var=no
9556 ;;
9557
9558 sysv4)
9559 case $host_vendor in
9560 sni)
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_direct=yes # is this really true???
9563 ;;
9564 siemens)
9565 ## LD is ld it makes a PLAMLIB
9566 ## CC just makes a GrossModule.
9567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9568 reload_cmds='$CC -r -o $output$reload_objs'
9569 hardcode_direct=no
9570 ;;
9571 motorola)
9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9574 ;;
9575 esac
9576 runpath_var='LD_RUN_PATH'
9577 hardcode_shlibpath_var=no
9578 ;;
9579
9580 sysv4.3*)
9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_shlibpath_var=no
9583 export_dynamic_flag_spec='-Bexport'
9584 ;;
9585
9586 sysv4*MP*)
9587 if test -d /usr/nec; then
9588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589 hardcode_shlibpath_var=no
9590 runpath_var=LD_RUN_PATH
9591 hardcode_runpath_var=yes
9592 ld_shlibs=yes
9593 fi
9594 ;;
9595
9596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9597 no_undefined_flag='${wl}-z,text'
9598 archive_cmds_need_lc=no
9599 hardcode_shlibpath_var=no
9600 runpath_var='LD_RUN_PATH'
9601
9602 if test "$GCC" = yes; then
9603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 else
9606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 fi
9609 ;;
9610
9611 sysv5* | sco3.2v5* | sco5v6*)
9612 # Note: We can NOT use -z defs as we might desire, because we do not
9613 # link with -lc, and that would cause any symbols used from libc to
9614 # always be unresolved, which means just about no library would
9615 # ever link correctly. If we're not using GNU ld we use -z text
9616 # though, which does catch some bad symbols but isn't as heavy-handed
9617 # as -z defs.
9618 no_undefined_flag='${wl}-z,text'
9619 allow_undefined_flag='${wl}-z,nodefs'
9620 archive_cmds_need_lc=no
9621 hardcode_shlibpath_var=no
9622 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9623 hardcode_libdir_separator=':'
9624 link_all_deplibs=yes
9625 export_dynamic_flag_spec='${wl}-Bexport'
9626 runpath_var='LD_RUN_PATH'
9627
9628 if test "$GCC" = yes; then
9629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 else
9632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 fi
9635 ;;
9636
9637 uts4*)
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_libdir_flag_spec='-L$libdir'
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 *)
9644 ld_shlibs=no
9645 ;;
9646 esac
9647
9648 if test x$host_vendor = xsni; then
9649 case $host in
9650 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9651 export_dynamic_flag_spec='${wl}-Blargedynsym'
9652 ;;
9653 esac
9654 fi
9655 fi
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9658 $as_echo "$ld_shlibs" >&6; }
9659 test "$ld_shlibs" = no && can_build_shared=no
9660
9661 with_gnu_ld=$with_gnu_ld
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 #
9678 # Do we need to explicitly link libc?
9679 #
9680 case "x$archive_cmds_need_lc" in
9681 x|xyes)
9682 # Assume -lc should be added
9683 archive_cmds_need_lc=yes
9684
9685 if test "$enable_shared" = yes && test "$GCC" = yes; then
9686 case $archive_cmds in
9687 *'~'*)
9688 # FIXME: we may have to deal with multi-command sequences.
9689 ;;
9690 '$CC '*)
9691 # Test whether the compiler implicitly links with -lc since on some
9692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9693 # to ld, don't add -lc before -lgcc.
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9696 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 $RM conftest*
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701
9702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9703 (eval $ac_compile) 2>&5
9704 ac_status=$?
9705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9706 test $ac_status = 0; } 2>conftest.err; then
9707 soname=conftest
9708 lib=conftest
9709 libobjs=conftest.$ac_objext
9710 deplibs=
9711 wl=$lt_prog_compiler_wl
9712 pic_flag=$lt_prog_compiler_pic
9713 compiler_flags=-v
9714 linker_flags=-v
9715 verstring=
9716 output_objdir=.
9717 libname=conftest
9718 lt_save_allow_undefined_flag=$allow_undefined_flag
9719 allow_undefined_flag=
9720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9721 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9722 ac_status=$?
9723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724 test $ac_status = 0; }
9725 then
9726 lt_cv_archive_cmds_need_lc=no
9727 else
9728 lt_cv_archive_cmds_need_lc=yes
9729 fi
9730 allow_undefined_flag=$lt_save_allow_undefined_flag
9731 else
9732 cat conftest.err 1>&5
9733 fi
9734 $RM conftest*
9735
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9738 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9739 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9740 ;;
9741 esac
9742 fi
9743 ;;
9744 esac
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9898 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9899
9900 if test "$GCC" = yes; then
9901 case $host_os in
9902 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9903 *) lt_awk_arg="/^libraries:/" ;;
9904 esac
9905 case $host_os in
9906 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9907 *) lt_sed_strip_eq="s,=/,/,g" ;;
9908 esac
9909 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9910 case $lt_search_path_spec in
9911 *\;*)
9912 # if the path contains ";" then we assume it to be the separator
9913 # otherwise default to the standard path separator (i.e. ":") - it is
9914 # assumed that no part of a normal pathname contains ";" but that should
9915 # okay in the real world where ";" in dirpaths is itself problematic.
9916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9917 ;;
9918 *)
9919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9920 ;;
9921 esac
9922 # Ok, now we have the path, separated by spaces, we can step through it
9923 # and add multilib dir if necessary.
9924 lt_tmp_lt_search_path_spec=
9925 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9926 for lt_sys_path in $lt_search_path_spec; do
9927 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9929 else
9930 test -d "$lt_sys_path" && \
9931 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9932 fi
9933 done
9934 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9935 BEGIN {RS=" "; FS="/|\n";} {
9936 lt_foo="";
9937 lt_count=0;
9938 for (lt_i = NF; lt_i > 0; lt_i--) {
9939 if ($lt_i != "" && $lt_i != ".") {
9940 if ($lt_i == "..") {
9941 lt_count++;
9942 } else {
9943 if (lt_count == 0) {
9944 lt_foo="/" $lt_i lt_foo;
9945 } else {
9946 lt_count--;
9947 }
9948 }
9949 }
9950 }
9951 if (lt_foo != "") { lt_freq[lt_foo]++; }
9952 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9953 }'`
9954 # AWK program above erroneously prepends '/' to C:/dos/paths
9955 # for these hosts.
9956 case $host_os in
9957 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9958 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9959 esac
9960 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9961 else
9962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9963 fi
9964 library_names_spec=
9965 libname_spec='lib$name'
9966 soname_spec=
9967 shrext_cmds=".so"
9968 postinstall_cmds=
9969 postuninstall_cmds=
9970 finish_cmds=
9971 finish_eval=
9972 shlibpath_var=
9973 shlibpath_overrides_runpath=unknown
9974 version_type=none
9975 dynamic_linker="$host_os ld.so"
9976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9977 need_lib_prefix=unknown
9978 hardcode_into_libs=no
9979
9980 # when you set need_version to no, make sure it does not cause -set_version
9981 # flags to be left without arguments
9982 need_version=unknown
9983
9984 case $host_os in
9985 aix3*)
9986 version_type=linux # correct to gnu/linux during the next big refactor
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9988 shlibpath_var=LIBPATH
9989
9990 # AIX 3 has no versioning support, so we append a major version to the name.
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 ;;
9993
9994 aix[4-9]*)
9995 version_type=linux # correct to gnu/linux during the next big refactor
9996 need_lib_prefix=no
9997 need_version=no
9998 hardcode_into_libs=yes
9999 if test "$host_cpu" = ia64; then
10000 # AIX 5 supports IA64
10001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 else
10004 # With GCC up to 2.95.x, collect2 would create an import file
10005 # for dependence libraries. The import file would start with
10006 # the line `#! .'. This would cause the generated library to
10007 # depend on `.', always an invalid library. This was fixed in
10008 # development snapshots of GCC prior to 3.0.
10009 case $host_os in
10010 aix4 | aix4.[01] | aix4.[01].*)
10011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10012 echo ' yes '
10013 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10014 :
10015 else
10016 can_build_shared=no
10017 fi
10018 ;;
10019 esac
10020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10021 # soname into executable. Probably we can add versioning support to
10022 # collect2, so additional links can be useful in future.
10023 if test "$aix_use_runtimelinking" = yes; then
10024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10025 # instead of lib<name>.a to let people know that these are not
10026 # typical AIX shared libraries.
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 else
10029 # We preserve .a as extension for shared libraries through AIX4.2
10030 # and later when we are not doing run time linking.
10031 library_names_spec='${libname}${release}.a $libname.a'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 fi
10034 shlibpath_var=LIBPATH
10035 fi
10036 ;;
10037
10038 amigaos*)
10039 case $host_cpu in
10040 powerpc)
10041 # Since July 2007 AmigaOS4 officially supports .so libraries.
10042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 ;;
10045 m68k)
10046 library_names_spec='$libname.ixlibrary $libname.a'
10047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10048 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10049 ;;
10050 esac
10051 ;;
10052
10053 beos*)
10054 library_names_spec='${libname}${shared_ext}'
10055 dynamic_linker="$host_os ld.so"
10056 shlibpath_var=LIBRARY_PATH
10057 ;;
10058
10059 bsdi[45]*)
10060 version_type=linux # correct to gnu/linux during the next big refactor
10061 need_version=no
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10068 # the default ld.so.conf also contains /usr/contrib/lib and
10069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10070 # libtool to hard-code these into programs
10071 ;;
10072
10073 cygwin* | mingw* | pw32* | cegcc*)
10074 version_type=windows
10075 shrext_cmds=".dll"
10076 need_version=no
10077 need_lib_prefix=no
10078
10079 case $GCC,$cc_basename in
10080 yes,*)
10081 # gcc
10082 library_names_spec='$libname.dll.a'
10083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10084 postinstall_cmds='base_file=`basename \${file}`~
10085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10086 dldir=$destdir/`dirname \$dlpath`~
10087 test -d \$dldir || mkdir -p \$dldir~
10088 $install_prog $dir/$dlname \$dldir/$dlname~
10089 chmod a+x \$dldir/$dlname~
10090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10092 fi'
10093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10094 dlpath=$dir/\$dldll~
10095 $RM \$dlpath'
10096 shlibpath_overrides_runpath=yes
10097
10098 case $host_os in
10099 cygwin*)
10100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10102
10103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10104 ;;
10105 mingw* | cegcc*)
10106 # MinGW DLLs use traditional 'lib' prefix
10107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10108 ;;
10109 pw32*)
10110 # pw32 DLLs use 'pw' prefix rather than 'lib'
10111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10112 ;;
10113 esac
10114 dynamic_linker='Win32 ld.exe'
10115 ;;
10116
10117 *,cl*)
10118 # Native MSVC
10119 libname_spec='$name'
10120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121 library_names_spec='${libname}.dll.lib'
10122
10123 case $build_os in
10124 mingw*)
10125 sys_lib_search_path_spec=
10126 lt_save_ifs=$IFS
10127 IFS=';'
10128 for lt_path in $LIB
10129 do
10130 IFS=$lt_save_ifs
10131 # Let DOS variable expansion print the short 8.3 style file name.
10132 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10133 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10134 done
10135 IFS=$lt_save_ifs
10136 # Convert to MSYS style.
10137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10138 ;;
10139 cygwin*)
10140 # Convert to unix form, then to dos form, then back to unix form
10141 # but this time dos style (no spaces!) so that the unix form looks
10142 # like /cygdrive/c/PROGRA~1:/cygdr...
10143 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10144 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10145 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10146 ;;
10147 *)
10148 sys_lib_search_path_spec="$LIB"
10149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10150 # It is most probably a Windows format PATH.
10151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10152 else
10153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10154 fi
10155 # FIXME: find the short name or the path components, as spaces are
10156 # common. (e.g. "Program Files" -> "PROGRA~1")
10157 ;;
10158 esac
10159
10160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10161 postinstall_cmds='base_file=`basename \${file}`~
10162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10163 dldir=$destdir/`dirname \$dlpath`~
10164 test -d \$dldir || mkdir -p \$dldir~
10165 $install_prog $dir/$dlname \$dldir/$dlname'
10166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10167 dlpath=$dir/\$dldll~
10168 $RM \$dlpath'
10169 shlibpath_overrides_runpath=yes
10170 dynamic_linker='Win32 link.exe'
10171 ;;
10172
10173 *)
10174 # Assume MSVC wrapper
10175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10176 dynamic_linker='Win32 ld.exe'
10177 ;;
10178 esac
10179 # FIXME: first we should search . and the directory the executable is in
10180 shlibpath_var=PATH
10181 ;;
10182
10183 darwin* | rhapsody*)
10184 dynamic_linker="$host_os dyld"
10185 version_type=darwin
10186 need_lib_prefix=no
10187 need_version=no
10188 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10189 soname_spec='${libname}${release}${major}$shared_ext'
10190 shlibpath_overrides_runpath=yes
10191 shlibpath_var=DYLD_LIBRARY_PATH
10192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10193
10194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10196 ;;
10197
10198 dgux*)
10199 version_type=linux # correct to gnu/linux during the next big refactor
10200 need_lib_prefix=no
10201 need_version=no
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 ;;
10206
10207 freebsd* | dragonfly*)
10208 # DragonFly does not have aout. When/if they implement a new
10209 # versioning mechanism, adjust this.
10210 if test -x /usr/bin/objformat; then
10211 objformat=`/usr/bin/objformat`
10212 else
10213 case $host_os in
10214 freebsd[23].*) objformat=aout ;;
10215 *) objformat=elf ;;
10216 esac
10217 fi
10218 version_type=freebsd-$objformat
10219 case $version_type in
10220 freebsd-elf*)
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10222 need_version=no
10223 need_lib_prefix=no
10224 ;;
10225 freebsd-*)
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10227 need_version=yes
10228 ;;
10229 esac
10230 shlibpath_var=LD_LIBRARY_PATH
10231 case $host_os in
10232 freebsd2.*)
10233 shlibpath_overrides_runpath=yes
10234 ;;
10235 freebsd3.[01]* | freebsdelf3.[01]*)
10236 shlibpath_overrides_runpath=yes
10237 hardcode_into_libs=yes
10238 ;;
10239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10241 shlibpath_overrides_runpath=no
10242 hardcode_into_libs=yes
10243 ;;
10244 *) # from 4.6 on, and DragonFly
10245 shlibpath_overrides_runpath=yes
10246 hardcode_into_libs=yes
10247 ;;
10248 esac
10249 ;;
10250
10251 gnu*)
10252 version_type=linux # correct to gnu/linux during the next big refactor
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 shlibpath_overrides_runpath=no
10259 hardcode_into_libs=yes
10260 ;;
10261
10262 haiku*)
10263 version_type=linux # correct to gnu/linux during the next big refactor
10264 need_lib_prefix=no
10265 need_version=no
10266 dynamic_linker="$host_os runtime_loader"
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10272 hardcode_into_libs=yes
10273 ;;
10274
10275 hpux9* | hpux10* | hpux11*)
10276 # Give a soname corresponding to the major version so that dld.sl refuses to
10277 # link against other versions.
10278 version_type=sunos
10279 need_lib_prefix=no
10280 need_version=no
10281 case $host_cpu in
10282 ia64*)
10283 shrext_cmds='.so'
10284 hardcode_into_libs=yes
10285 dynamic_linker="$host_os dld.so"
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 if test "X$HPUX_IA64_MODE" = X32; then
10291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10292 else
10293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10294 fi
10295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10296 ;;
10297 hppa*64*)
10298 shrext_cmds='.sl'
10299 hardcode_into_libs=yes
10300 dynamic_linker="$host_os dld.sl"
10301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10307 ;;
10308 *)
10309 shrext_cmds='.sl'
10310 dynamic_linker="$host_os dld.sl"
10311 shlibpath_var=SHLIB_PATH
10312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 ;;
10316 esac
10317 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10318 postinstall_cmds='chmod 555 $lib'
10319 # or fails outright, so override atomically:
10320 install_override_mode=555
10321 ;;
10322
10323 interix[3-9]*)
10324 version_type=linux # correct to gnu/linux during the next big refactor
10325 need_lib_prefix=no
10326 need_version=no
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=no
10332 hardcode_into_libs=yes
10333 ;;
10334
10335 irix5* | irix6* | nonstopux*)
10336 case $host_os in
10337 nonstopux*) version_type=nonstopux ;;
10338 *)
10339 if test "$lt_cv_prog_gnu_ld" = yes; then
10340 version_type=linux # correct to gnu/linux during the next big refactor
10341 else
10342 version_type=irix
10343 fi ;;
10344 esac
10345 need_lib_prefix=no
10346 need_version=no
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10349 case $host_os in
10350 irix5* | nonstopux*)
10351 libsuff= shlibsuff=
10352 ;;
10353 *)
10354 case $LD in # libtool.m4 will add one of these switches to LD
10355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10356 libsuff= shlibsuff= libmagic=32-bit;;
10357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10358 libsuff=32 shlibsuff=N32 libmagic=N32;;
10359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10361 *) libsuff= shlibsuff= libmagic=never-match;;
10362 esac
10363 ;;
10364 esac
10365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10366 shlibpath_overrides_runpath=no
10367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10369 hardcode_into_libs=yes
10370 ;;
10371
10372 # No shared lib support for Linux oldld, aout, or coff.
10373 linux*oldld* | linux*aout* | linux*coff*)
10374 dynamic_linker=no
10375 ;;
10376
10377 # This must be glibc/ELF.
10378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10379 version_type=linux # correct to gnu/linux during the next big refactor
10380 need_lib_prefix=no
10381 need_version=no
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 shlibpath_overrides_runpath=no
10387
10388 # Some binutils ld are patched to set DT_RUNPATH
10389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 lt_cv_shlibpath_overrides_runpath=no
10393 save_LDFLAGS=$LDFLAGS
10394 save_libdir=$libdir
10395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399
10400 int
10401 main ()
10402 {
10403
10404 ;
10405 return 0;
10406 }
10407 _ACEOF
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10410 lt_cv_shlibpath_overrides_runpath=yes
10411 fi
10412 fi
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LDFLAGS=$save_LDFLAGS
10416 libdir=$save_libdir
10417
10418 fi
10419
10420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10421
10422 # This implies no fast_install, which is unacceptable.
10423 # Some rework will be needed to allow for fast_install
10424 # before this can be enabled.
10425 hardcode_into_libs=yes
10426
10427 # Append ld.so.conf contents to the search path
10428 if test -f /etc/ld.so.conf; then
10429 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' ' '`
10430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10431 fi
10432
10433 # We used to test for /lib/ld.so.1 and disable shared libraries on
10434 # powerpc, because MkLinux only supported shared libraries with the
10435 # GNU dynamic linker. Since this was broken with cross compilers,
10436 # most powerpc-linux boxes support dynamic linking these days and
10437 # people can always --disable-shared, the test was removed, and we
10438 # assume the GNU/Linux dynamic linker is in use.
10439 dynamic_linker='GNU/Linux ld.so'
10440 ;;
10441
10442 netbsdelf*-gnu)
10443 version_type=linux
10444 need_lib_prefix=no
10445 need_version=no
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 dynamic_linker='NetBSD ld.elf_so'
10452 ;;
10453
10454 netbsd*)
10455 version_type=sunos
10456 need_lib_prefix=no
10457 need_version=no
10458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10461 dynamic_linker='NetBSD (a.out) ld.so'
10462 else
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker='NetBSD ld.elf_so'
10466 fi
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 hardcode_into_libs=yes
10470 ;;
10471
10472 newsos6)
10473 version_type=linux # correct to gnu/linux during the next big refactor
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=yes
10477 ;;
10478
10479 *nto* | *qnx*)
10480 version_type=qnx
10481 need_lib_prefix=no
10482 need_version=no
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 shlibpath_var=LD_LIBRARY_PATH
10486 shlibpath_overrides_runpath=no
10487 hardcode_into_libs=yes
10488 dynamic_linker='ldqnx.so'
10489 ;;
10490
10491 openbsd*)
10492 version_type=sunos
10493 sys_lib_dlsearch_path_spec="/usr/lib"
10494 need_lib_prefix=no
10495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10496 case $host_os in
10497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10498 *) need_version=no ;;
10499 esac
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10504 case $host_os in
10505 openbsd2.[89] | openbsd2.[89].*)
10506 shlibpath_overrides_runpath=no
10507 ;;
10508 *)
10509 shlibpath_overrides_runpath=yes
10510 ;;
10511 esac
10512 else
10513 shlibpath_overrides_runpath=yes
10514 fi
10515 ;;
10516
10517 os2*)
10518 libname_spec='$name'
10519 shrext_cmds=".dll"
10520 need_lib_prefix=no
10521 library_names_spec='$libname${shared_ext} $libname.a'
10522 dynamic_linker='OS/2 ld.exe'
10523 shlibpath_var=LIBPATH
10524 ;;
10525
10526 osf3* | osf4* | osf5*)
10527 version_type=osf
10528 need_lib_prefix=no
10529 need_version=no
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10535 ;;
10536
10537 rdos*)
10538 dynamic_linker=no
10539 ;;
10540
10541 solaris*)
10542 version_type=linux # correct to gnu/linux during the next big refactor
10543 need_lib_prefix=no
10544 need_version=no
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=yes
10549 hardcode_into_libs=yes
10550 # ldd complains unless libraries are executable
10551 postinstall_cmds='chmod +x $lib'
10552 ;;
10553
10554 sunos4*)
10555 version_type=sunos
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=yes
10560 if test "$with_gnu_ld" = yes; then
10561 need_lib_prefix=no
10562 fi
10563 need_version=yes
10564 ;;
10565
10566 sysv4 | sysv4.3*)
10567 version_type=linux # correct to gnu/linux during the next big refactor
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 case $host_vendor in
10572 sni)
10573 shlibpath_overrides_runpath=no
10574 need_lib_prefix=no
10575 runpath_var=LD_RUN_PATH
10576 ;;
10577 siemens)
10578 need_lib_prefix=no
10579 ;;
10580 motorola)
10581 need_lib_prefix=no
10582 need_version=no
10583 shlibpath_overrides_runpath=no
10584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10585 ;;
10586 esac
10587 ;;
10588
10589 sysv4*MP*)
10590 if test -d /usr/nec ;then
10591 version_type=linux # correct to gnu/linux during the next big refactor
10592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10593 soname_spec='$libname${shared_ext}.$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 fi
10596 ;;
10597
10598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10599 version_type=freebsd-elf
10600 need_lib_prefix=no
10601 need_version=no
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 hardcode_into_libs=yes
10607 if test "$with_gnu_ld" = yes; then
10608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10609 else
10610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10611 case $host_os in
10612 sco3.2v5*)
10613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10614 ;;
10615 esac
10616 fi
10617 sys_lib_dlsearch_path_spec='/usr/lib'
10618 ;;
10619
10620 tpf*)
10621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10622 version_type=linux # correct to gnu/linux during the next big refactor
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=no
10628 hardcode_into_libs=yes
10629 ;;
10630
10631 uts4*)
10632 version_type=linux # correct to gnu/linux during the next big refactor
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 ;;
10637
10638 *)
10639 dynamic_linker=no
10640 ;;
10641 esac
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10643 $as_echo "$dynamic_linker" >&6; }
10644 test "$dynamic_linker" = no && can_build_shared=no
10645
10646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10647 if test "$GCC" = yes; then
10648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10649 fi
10650
10651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10652 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10653 fi
10654 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10655 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10656 fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10750 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10751 hardcode_action=
10752 if test -n "$hardcode_libdir_flag_spec" ||
10753 test -n "$runpath_var" ||
10754 test "X$hardcode_automatic" = "Xyes" ; then
10755
10756 # We can hardcode non-existent directories.
10757 if test "$hardcode_direct" != no &&
10758 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10759 # have to relink, otherwise we might link with an installed library
10760 # when we should be linking with a yet-to-be-installed one
10761 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10762 test "$hardcode_minus_L" != no; then
10763 # Linking always hardcodes the temporary library directory.
10764 hardcode_action=relink
10765 else
10766 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10767 hardcode_action=immediate
10768 fi
10769 else
10770 # We cannot hardcode anything, or else we can only hardcode existing
10771 # directories.
10772 hardcode_action=unsupported
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10775 $as_echo "$hardcode_action" >&6; }
10776
10777 if test "$hardcode_action" = relink ||
10778 test "$inherit_rpath" = yes; then
10779 # Fast installation is not supported
10780 enable_fast_install=no
10781 elif test "$shlibpath_overrides_runpath" = yes ||
10782 test "$enable_shared" = no; then
10783 # Fast installation is not necessary
10784 enable_fast_install=needless
10785 fi
10786
10787
10788
10789
10790
10791
10792 if test "x$enable_dlopen" != xyes; then
10793 enable_dlopen=unknown
10794 enable_dlopen_self=unknown
10795 enable_dlopen_self_static=unknown
10796 else
10797 lt_cv_dlopen=no
10798 lt_cv_dlopen_libs=
10799
10800 case $host_os in
10801 beos*)
10802 lt_cv_dlopen="load_add_on"
10803 lt_cv_dlopen_libs=
10804 lt_cv_dlopen_self=yes
10805 ;;
10806
10807 mingw* | pw32* | cegcc*)
10808 lt_cv_dlopen="LoadLibrary"
10809 lt_cv_dlopen_libs=
10810 ;;
10811
10812 cygwin*)
10813 lt_cv_dlopen="dlopen"
10814 lt_cv_dlopen_libs=
10815 ;;
10816
10817 darwin*)
10818 # if libdl is installed we need to link against it
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10821 if ${ac_cv_lib_dl_dlopen+:} false; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-ldl $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dlopen ();
10836 int
10837 main ()
10838 {
10839 return dlopen ();
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845 ac_cv_lib_dl_dlopen=yes
10846 else
10847 ac_cv_lib_dl_dlopen=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10857 else
10858
10859 lt_cv_dlopen="dyld"
10860 lt_cv_dlopen_libs=
10861 lt_cv_dlopen_self=yes
10862
10863 fi
10864
10865 ;;
10866
10867 *)
10868 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10869 if test "x$ac_cv_func_shl_load" = xyes; then :
10870 lt_cv_dlopen="shl_load"
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10873 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10874 if ${ac_cv_lib_dld_shl_load+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-ldld $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char shl_load ();
10889 int
10890 main ()
10891 {
10892 return shl_load ();
10893 ;
10894 return 0;
10895 }
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 ac_cv_lib_dld_shl_load=yes
10899 else
10900 ac_cv_lib_dld_shl_load=no
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10907 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10908 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10910 else
10911 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10912 if test "x$ac_cv_func_dlopen" = xyes; then :
10913 lt_cv_dlopen="dlopen"
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10916 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10917 if ${ac_cv_lib_dl_dlopen+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-ldl $LIBS"
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924
10925 /* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
10928 #ifdef __cplusplus
10929 extern "C"
10930 #endif
10931 char dlopen ();
10932 int
10933 main ()
10934 {
10935 return dlopen ();
10936 ;
10937 return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"; then :
10941 ac_cv_lib_dl_dlopen=yes
10942 else
10943 ac_cv_lib_dl_dlopen=no
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10950 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10951 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10955 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10956 if ${ac_cv_lib_svld_dlopen+:} false; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-lsvld $LIBS"
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char dlopen ();
10971 int
10972 main ()
10973 {
10974 return dlopen ();
10975 ;
10976 return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980 ac_cv_lib_svld_dlopen=yes
10981 else
10982 ac_cv_lib_svld_dlopen=no
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10989 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10990 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10992 else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10994 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10995 if ${ac_cv_lib_dld_dld_link+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-ldld $LIBS"
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char dld_link ();
11010 int
11011 main ()
11012 {
11013 return dld_link ();
11014 ;
11015 return 0;
11016 }
11017 _ACEOF
11018 if ac_fn_c_try_link "$LINENO"; then :
11019 ac_cv_lib_dld_dld_link=yes
11020 else
11021 ac_cv_lib_dld_dld_link=no
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11026 fi
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11028 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11029 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11030 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11031 fi
11032
11033
11034 fi
11035
11036
11037 fi
11038
11039
11040 fi
11041
11042
11043 fi
11044
11045
11046 fi
11047
11048 ;;
11049 esac
11050
11051 if test "x$lt_cv_dlopen" != xno; then
11052 enable_dlopen=yes
11053 else
11054 enable_dlopen=no
11055 fi
11056
11057 case $lt_cv_dlopen in
11058 dlopen)
11059 save_CPPFLAGS="$CPPFLAGS"
11060 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11061
11062 save_LDFLAGS="$LDFLAGS"
11063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11064
11065 save_LIBS="$LIBS"
11066 LIBS="$lt_cv_dlopen_libs $LIBS"
11067
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11069 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11070 if ${lt_cv_dlopen_self+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 if test "$cross_compiling" = yes; then :
11074 lt_cv_dlopen_self=cross
11075 else
11076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11077 lt_status=$lt_dlunknown
11078 cat > conftest.$ac_ext <<_LT_EOF
11079 #line $LINENO "configure"
11080 #include "confdefs.h"
11081
11082 #if HAVE_DLFCN_H
11083 #include <dlfcn.h>
11084 #endif
11085
11086 #include <stdio.h>
11087
11088 #ifdef RTLD_GLOBAL
11089 # define LT_DLGLOBAL RTLD_GLOBAL
11090 #else
11091 # ifdef DL_GLOBAL
11092 # define LT_DLGLOBAL DL_GLOBAL
11093 # else
11094 # define LT_DLGLOBAL 0
11095 # endif
11096 #endif
11097
11098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11099 find out it does not work in some platform. */
11100 #ifndef LT_DLLAZY_OR_NOW
11101 # ifdef RTLD_LAZY
11102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11103 # else
11104 # ifdef DL_LAZY
11105 # define LT_DLLAZY_OR_NOW DL_LAZY
11106 # else
11107 # ifdef RTLD_NOW
11108 # define LT_DLLAZY_OR_NOW RTLD_NOW
11109 # else
11110 # ifdef DL_NOW
11111 # define LT_DLLAZY_OR_NOW DL_NOW
11112 # else
11113 # define LT_DLLAZY_OR_NOW 0
11114 # endif
11115 # endif
11116 # endif
11117 # endif
11118 #endif
11119
11120 /* When -fvisbility=hidden is used, assume the code has been annotated
11121 correspondingly for the symbols needed. */
11122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11123 int fnord () __attribute__((visibility("default")));
11124 #endif
11125
11126 int fnord () { return 42; }
11127 int main ()
11128 {
11129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11130 int status = $lt_dlunknown;
11131
11132 if (self)
11133 {
11134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11135 else
11136 {
11137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11138 else puts (dlerror ());
11139 }
11140 /* dlclose (self); */
11141 }
11142 else
11143 puts (dlerror ());
11144
11145 return status;
11146 }
11147 _LT_EOF
11148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11149 (eval $ac_link) 2>&5
11150 ac_status=$?
11151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11153 (./conftest; exit; ) >&5 2>/dev/null
11154 lt_status=$?
11155 case x$lt_status in
11156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11159 esac
11160 else :
11161 # compilation failed
11162 lt_cv_dlopen_self=no
11163 fi
11164 fi
11165 rm -fr conftest*
11166
11167
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11170 $as_echo "$lt_cv_dlopen_self" >&6; }
11171
11172 if test "x$lt_cv_dlopen_self" = xyes; then
11173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11175 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11176 if ${lt_cv_dlopen_self_static+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 if test "$cross_compiling" = yes; then :
11180 lt_cv_dlopen_self_static=cross
11181 else
11182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11183 lt_status=$lt_dlunknown
11184 cat > conftest.$ac_ext <<_LT_EOF
11185 #line $LINENO "configure"
11186 #include "confdefs.h"
11187
11188 #if HAVE_DLFCN_H
11189 #include <dlfcn.h>
11190 #endif
11191
11192 #include <stdio.h>
11193
11194 #ifdef RTLD_GLOBAL
11195 # define LT_DLGLOBAL RTLD_GLOBAL
11196 #else
11197 # ifdef DL_GLOBAL
11198 # define LT_DLGLOBAL DL_GLOBAL
11199 # else
11200 # define LT_DLGLOBAL 0
11201 # endif
11202 #endif
11203
11204 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11205 find out it does not work in some platform. */
11206 #ifndef LT_DLLAZY_OR_NOW
11207 # ifdef RTLD_LAZY
11208 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11209 # else
11210 # ifdef DL_LAZY
11211 # define LT_DLLAZY_OR_NOW DL_LAZY
11212 # else
11213 # ifdef RTLD_NOW
11214 # define LT_DLLAZY_OR_NOW RTLD_NOW
11215 # else
11216 # ifdef DL_NOW
11217 # define LT_DLLAZY_OR_NOW DL_NOW
11218 # else
11219 # define LT_DLLAZY_OR_NOW 0
11220 # endif
11221 # endif
11222 # endif
11223 # endif
11224 #endif
11225
11226 /* When -fvisbility=hidden is used, assume the code has been annotated
11227 correspondingly for the symbols needed. */
11228 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11229 int fnord () __attribute__((visibility("default")));
11230 #endif
11231
11232 int fnord () { return 42; }
11233 int main ()
11234 {
11235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11236 int status = $lt_dlunknown;
11237
11238 if (self)
11239 {
11240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11241 else
11242 {
11243 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11244 else puts (dlerror ());
11245 }
11246 /* dlclose (self); */
11247 }
11248 else
11249 puts (dlerror ());
11250
11251 return status;
11252 }
11253 _LT_EOF
11254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11255 (eval $ac_link) 2>&5
11256 ac_status=$?
11257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11258 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11259 (./conftest; exit; ) >&5 2>/dev/null
11260 lt_status=$?
11261 case x$lt_status in
11262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11264 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11265 esac
11266 else :
11267 # compilation failed
11268 lt_cv_dlopen_self_static=no
11269 fi
11270 fi
11271 rm -fr conftest*
11272
11273
11274 fi
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11276 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11277 fi
11278
11279 CPPFLAGS="$save_CPPFLAGS"
11280 LDFLAGS="$save_LDFLAGS"
11281 LIBS="$save_LIBS"
11282 ;;
11283 esac
11284
11285 case $lt_cv_dlopen_self in
11286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11287 *) enable_dlopen_self=unknown ;;
11288 esac
11289
11290 case $lt_cv_dlopen_self_static in
11291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11292 *) enable_dlopen_self_static=unknown ;;
11293 esac
11294 fi
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 striplib=
11313 old_striplib=
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11315 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11318 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320 $as_echo "yes" >&6; }
11321 else
11322 # FIXME - insert some real tests, host_os isn't really good enough
11323 case $host_os in
11324 darwin*)
11325 if test -n "$STRIP" ; then
11326 striplib="$STRIP -x"
11327 old_striplib="$STRIP -S"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329 $as_echo "yes" >&6; }
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333 fi
11334 ;;
11335 *)
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 ;;
11339 esac
11340 fi
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353 # Report which library types will actually be built
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11355 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11357 $as_echo "$can_build_shared" >&6; }
11358
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11360 $as_echo_n "checking whether to build shared libraries... " >&6; }
11361 test "$can_build_shared" = "no" && enable_shared=no
11362
11363 # On AIX, shared libraries and static libraries use the same namespace, and
11364 # are all built from PIC.
11365 case $host_os in
11366 aix3*)
11367 test "$enable_shared" = yes && enable_static=no
11368 if test -n "$RANLIB"; then
11369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11370 postinstall_cmds='$RANLIB $lib'
11371 fi
11372 ;;
11373
11374 aix[4-9]*)
11375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11376 test "$enable_shared" = yes && enable_static=no
11377 fi
11378 ;;
11379 esac
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11381 $as_echo "$enable_shared" >&6; }
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11384 $as_echo_n "checking whether to build static libraries... " >&6; }
11385 # Make sure either enable_shared or enable_static is yes.
11386 test "$enable_shared" = yes || enable_static=yes
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11388 $as_echo "$enable_static" >&6; }
11389
11390
11391
11392
11393 fi
11394 ac_ext=c
11395 ac_cpp='$CPP $CPPFLAGS'
11396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11399
11400 CC="$lt_save_CC"
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 ac_config_commands="$ac_config_commands libtool"
11417
11418
11419
11420
11421 # Only expand once:
11422
11423
11424
11425
11426 # Check whether --with-libgcrypt-prefix was given.
11427 if test "${with_libgcrypt_prefix+set}" = set; then :
11428 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
11429 else
11430 libgcrypt_config_prefix=""
11431 fi
11432
11433 if test x$libgcrypt_config_prefix != x ; then
11434 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
11435 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
11436 fi
11437 fi
11438
11439 if test -n "$ac_tool_prefix"; then
11440 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
11441 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 case $LIBGCRYPT_CONFIG in
11448 [\\/]* | ?:[\\/]*)
11449 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
11450 ;;
11451 *)
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463 done
11464 done
11465 IFS=$as_save_IFS
11466
11467 ;;
11468 esac
11469 fi
11470 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
11471 if test -n "$LIBGCRYPT_CONFIG"; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
11473 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
11474 else
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11477 fi
11478
11479
11480 fi
11481 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
11482 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
11483 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
11484 set dummy libgcrypt-config; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 case $ac_pt_LIBGCRYPT_CONFIG in
11491 [\\/]* | ?:[\\/]*)
11492 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
11493 ;;
11494 *)
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11502 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11505 fi
11506 done
11507 done
11508 IFS=$as_save_IFS
11509
11510 ;;
11511 esac
11512 fi
11513 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
11514 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
11516 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11520 fi
11521
11522 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
11523 LIBGCRYPT_CONFIG="no"
11524 else
11525 case $cross_compiling:$ac_tool_warned in
11526 yes:)
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11529 ac_tool_warned=yes ;;
11530 esac
11531 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
11532 fi
11533 else
11534 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
11535 fi
11536
11537 tmp=1:1.2.0
11538 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
11539 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
11540 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
11541 else
11542 req_libgcrypt_api=0
11543 min_libgcrypt_version="$tmp"
11544 fi
11545
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
11547 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
11548 ok=no
11549 if test "$LIBGCRYPT_CONFIG" != "no" ; then
11550 req_major=`echo $min_libgcrypt_version | \
11551 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
11552 req_minor=`echo $min_libgcrypt_version | \
11553 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
11554 req_micro=`echo $min_libgcrypt_version | \
11555 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
11556 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
11557 major=`echo $libgcrypt_config_version | \
11558 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
11559 minor=`echo $libgcrypt_config_version | \
11560 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
11561 micro=`echo $libgcrypt_config_version | \
11562 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
11563 if test "$major" -gt "$req_major"; then
11564 ok=yes
11565 else
11566 if test "$major" -eq "$req_major"; then
11567 if test "$minor" -gt "$req_minor"; then
11568 ok=yes
11569 else
11570 if test "$minor" -eq "$req_minor"; then
11571 if test "$micro" -ge "$req_micro"; then
11572 ok=yes
11573 fi
11574 fi
11575 fi
11576 fi
11577 fi
11578 fi
11579 if test $ok = yes; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
11581 $as_echo "yes ($libgcrypt_config_version)" >&6; }
11582 else
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584 $as_echo "no" >&6; }
11585 fi
11586 if test $ok = yes; then
11587 # If we have a recent libgcrypt, we should also check that the
11588 # API is compatible
11589 if test "$req_libgcrypt_api" -gt 0 ; then
11590 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
11591 if test "$tmp" -gt 0 ; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
11593 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
11594 if test "$req_libgcrypt_api" -eq "$tmp" ; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
11596 $as_echo "okay" >&6; }
11597 else
11598 ok=no
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
11600 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
11601 fi
11602 fi
11603 fi
11604 fi
11605 if test $ok = yes; then
11606 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
11607 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
11608 :
11609 if test x"$host" != x ; then
11610 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
11611 if test x"$libgcrypt_config_host" != xnone ; then
11612 if test x"$libgcrypt_config_host" != x"$host" ; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11614 ***
11615 *** The config script $LIBGCRYPT_CONFIG was
11616 *** built for $libgcrypt_config_host and thus may not match the
11617 *** used host $host.
11618 *** You may want to use the configure option --with-libgcrypt-prefix
11619 *** to specify a matching config script.
11620 ***" >&5
11621 $as_echo "$as_me: WARNING:
11622 ***
11623 *** The config script $LIBGCRYPT_CONFIG was
11624 *** built for $libgcrypt_config_host and thus may not match the
11625 *** used host $host.
11626 *** You may want to use the configure option --with-libgcrypt-prefix
11627 *** to specify a matching config script.
11628 ***" >&2;}
11629 fi
11630 fi
11631 fi
11632 else
11633 LIBGCRYPT_CFLAGS=""
11634 LIBGCRYPT_LIBS=""
11635 as_fn_error $? "libgcrypt 1.2.0 or newer is required." "$LINENO" 5
11636 fi
11637
11638
11639
11640
11641
11642 # Identify which OS we are building and do specific things based on the host
11643 case $host_os in
11644 *linux*)
11645 HOST_OS=linux
11646 ;;
11647 esac
11648
11649 # Build tests for now only for Linux.
11650 if test x$HOST_OS = xlinux; then
11651 BUILD_TESTS_TRUE=
11652 BUILD_TESTS_FALSE='#'
11653 else
11654 BUILD_TESTS_TRUE='#'
11655 BUILD_TESTS_FALSE=
11656 fi
11657
11658
11659
11660
11661
11662
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32" >&5
11665 $as_echo_n "checking for win32... " >&6; }
11666 if test "$cross_compiling" = yes; then :
11667 bwin32=cross; { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5
11668 $as_echo "cross" >&6; }
11669
11670 else
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673
11674 int main(int c, char **v) {
11675 #ifdef _WIN32
11676 #if _WIN32
11677 return 0;
11678 #else
11679 return 1;
11680 #endif
11681 #else
11682 return 2;
11683 #endif
11684 }
11685 _ACEOF
11686 if ac_fn_c_try_run "$LINENO"; then :
11687 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11688 $as_echo "yes" >&6; }
11689 else
11690 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11694 conftest.$ac_objext conftest.beam conftest.$ac_ext
11695 fi
11696
11697
11698 if test "$bwin32" = cross; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32 (cross)" >&5
11700 $as_echo_n "checking for win32 (cross)... " >&6; }
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703
11704 #ifdef _WIN32
11705 int main(int c, char **v) {return 0;}
11706 #else
11707 #error
11708 int main(int c, char **v) {return x(y);}
11709 #endif
11710
11711 _ACEOF
11712 if ac_fn_c_try_compile "$LINENO"; then :
11713 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11714 $as_echo "yes" >&6; }
11715 else
11716 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 fi
11719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11720 fi
11721
11722 if test x$bwin32 = xtrue; then
11723 BUILD_NT_SERVICES_TRUE=
11724 BUILD_NT_SERVICES_FALSE='#'
11725 else
11726 BUILD_NT_SERVICES_TRUE='#'
11727 BUILD_NT_SERVICES_FALSE=
11728 fi
11729
11730
11731 # Check whether --enable-gcc-hardening was given.
11732 if test "${enable_gcc_hardening+set}" = set; then :
11733 enableval=$enable_gcc_hardening;
11734 fi
11735
11736
11737 # Check whether --enable-linker-hardening was given.
11738 if test "${enable_linker_hardening+set}" = set; then :
11739 enableval=$enable_linker_hardening;
11740 fi
11741
11742
11743
11744 all_ldflags_for_check="$LDFLAGS"
11745 all_libs_for_check="$LIBGCRYPT_LIBS"
11746
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749
11750 int
11751 main ()
11752 {
11753
11754 #if !defined(__clang__)
11755 #error
11756 #endif
11757
11758 ;
11759 return 0;
11760 }
11761 _ACEOF
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763 have_clang=yes
11764 else
11765 have_clang=no
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768
11769 if test x$enable_gcc_hardening != xno; then
11770 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
11771 if test x$have_clang = xyes; then
11772
11773
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Qunused-arguments" >&5
11775 $as_echo_n "checking whether the compiler accepts -Qunused-arguments... " >&6; }
11776 if ${otr_cv_cflags__Qunused_arguments+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779
11780 otr_saved_CFLAGS="$CFLAGS"
11781 CFLAGS="$CFLAGS -pedantic -Werror -Qunused-arguments"
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784
11785 int
11786 main ()
11787 {
11788 return 0;
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_c_try_compile "$LINENO"; then :
11794 otr_cv_cflags__Qunused_arguments=yes
11795 else
11796 otr_cv_cflags__Qunused_arguments=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 CFLAGS="$otr_saved_CFLAGS"
11800
11801 fi
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__Qunused_arguments" >&5
11803 $as_echo "$otr_cv_cflags__Qunused_arguments" >&6; }
11804 if test x$otr_cv_cflags__Qunused_arguments = xyes; then
11805 CFLAGS="$CFLAGS -Qunused-arguments"
11806 fi
11807
11808
11809 fi
11810
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fstack-protector-all" >&5
11813 $as_echo_n "checking whether the compiler accepts -fstack-protector-all... " >&6; }
11814 if ${otr_cv_cflags__fstack_protector_all+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817
11818 otr_saved_CFLAGS="$CFLAGS"
11819 CFLAGS="$CFLAGS -pedantic -Werror -fstack-protector-all"
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822
11823 int
11824 main ()
11825 {
11826 return 0;
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_compile "$LINENO"; then :
11832 otr_cv_cflags__fstack_protector_all=yes
11833 else
11834 otr_cv_cflags__fstack_protector_all=no
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 CFLAGS="$otr_saved_CFLAGS"
11838
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__fstack_protector_all" >&5
11841 $as_echo "$otr_cv_cflags__fstack_protector_all" >&6; }
11842 if test x$otr_cv_cflags__fstack_protector_all = xyes; then
11843 CFLAGS="$CFLAGS -fstack-protector-all"
11844 fi
11845
11846
11847
11848
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstack-protector" >&5
11850 $as_echo_n "checking whether the compiler accepts -Wstack-protector... " >&6; }
11851 if ${otr_cv_cflags__Wstack_protector+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854
11855 otr_saved_CFLAGS="$CFLAGS"
11856 CFLAGS="$CFLAGS -pedantic -Werror -Wstack-protector"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11859
11860 int
11861 main ()
11862 {
11863 return 0;
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 if ac_fn_c_try_compile "$LINENO"; then :
11869 otr_cv_cflags__Wstack_protector=yes
11870 else
11871 otr_cv_cflags__Wstack_protector=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 CFLAGS="$otr_saved_CFLAGS"
11875
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__Wstack_protector" >&5
11878 $as_echo "$otr_cv_cflags__Wstack_protector" >&6; }
11879 if test x$otr_cv_cflags__Wstack_protector = xyes; then
11880 CFLAGS="$CFLAGS -Wstack-protector"
11881 fi
11882
11883
11884
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fwrapv" >&5
11887 $as_echo_n "checking whether the compiler accepts -fwrapv... " >&6; }
11888 if ${otr_cv_cflags__fwrapv+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891
11892 otr_saved_CFLAGS="$CFLAGS"
11893 CFLAGS="$CFLAGS -pedantic -Werror -fwrapv"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896
11897 int
11898 main ()
11899 {
11900 return 0;
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_compile "$LINENO"; then :
11906 otr_cv_cflags__fwrapv=yes
11907 else
11908 otr_cv_cflags__fwrapv=no
11909 fi
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 CFLAGS="$otr_saved_CFLAGS"
11912
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__fwrapv" >&5
11915 $as_echo "$otr_cv_cflags__fwrapv" >&6; }
11916 if test x$otr_cv_cflags__fwrapv = xyes; then
11917 CFLAGS="$CFLAGS -fwrapv"
11918 fi
11919
11920
11921
11922
11923
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-strict-overflow" >&5
11925 $as_echo_n "checking whether the compiler accepts -fno-strict-overflow... " >&6; }
11926 if ${otr_cv_cflags__fno_strict_overflow+:} false; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929
11930 otr_saved_CFLAGS="$CFLAGS"
11931 CFLAGS="$CFLAGS -pedantic -Werror -fno-strict-overflow"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934
11935 int
11936 main ()
11937 {
11938 return 0;
11939 ;
11940 return 0;
11941 }
11942 _ACEOF
11943 if ac_fn_c_try_compile "$LINENO"; then :
11944 otr_cv_cflags__fno_strict_overflow=yes
11945 else
11946 otr_cv_cflags__fno_strict_overflow=no
11947 fi
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 CFLAGS="$otr_saved_CFLAGS"
11950
11951 fi
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__fno_strict_overflow" >&5
11953 $as_echo "$otr_cv_cflags__fno_strict_overflow" >&6; }
11954 if test x$otr_cv_cflags__fno_strict_overflow = xyes; then
11955 CFLAGS="$CFLAGS -fno-strict-overflow"
11956 fi
11957
11958
11959
11960
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wall" >&5
11962 $as_echo_n "checking whether the compiler accepts -Wall... " >&6; }
11963 if ${otr_cv_cflags__Wall+:} false; then :
11964 $as_echo_n "(cached) " >&6
11965 else
11966
11967 otr_saved_CFLAGS="$CFLAGS"
11968 CFLAGS="$CFLAGS -pedantic -Werror -Wall"
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11971
11972 int
11973 main ()
11974 {
11975 return 0;
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981 otr_cv_cflags__Wall=yes
11982 else
11983 otr_cv_cflags__Wall=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 CFLAGS="$otr_saved_CFLAGS"
11987
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__Wall" >&5
11990 $as_echo "$otr_cv_cflags__Wall" >&6; }
11991 if test x$otr_cv_cflags__Wall = xyes; then
11992 CFLAGS="$CFLAGS -Wall"
11993 fi
11994
11995
11996
11997
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra -Wno-unused-parameter" >&5
11999 $as_echo_n "checking whether the compiler accepts -Wextra -Wno-unused-parameter... " >&6; }
12000 if ${otr_cv_cflags__Wextra__Wno_unused_parameter+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003
12004 otr_saved_CFLAGS="$CFLAGS"
12005 CFLAGS="$CFLAGS -pedantic -Werror -Wextra -Wno-unused-parameter"
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008
12009 int
12010 main ()
12011 {
12012 return 0;
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 if ac_fn_c_try_compile "$LINENO"; then :
12018 otr_cv_cflags__Wextra__Wno_unused_parameter=yes
12019 else
12020 otr_cv_cflags__Wextra__Wno_unused_parameter=no
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 CFLAGS="$otr_saved_CFLAGS"
12024
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__Wextra__Wno_unused_parameter" >&5
12027 $as_echo "$otr_cv_cflags__Wextra__Wno_unused_parameter" >&6; }
12028 if test x$otr_cv_cflags__Wextra__Wno_unused_parameter = xyes; then
12029 CFLAGS="$CFLAGS -Wextra -Wno-unused-parameter"
12030 fi
12031
12032
12033
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wformat-security" >&5
12036 $as_echo_n "checking whether the compiler accepts -Wformat-security... " >&6; }
12037 if ${otr_cv_cflags__Wformat_security+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040
12041 otr_saved_CFLAGS="$CFLAGS"
12042 CFLAGS="$CFLAGS -pedantic -Werror -Wformat-security"
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12045
12046 int
12047 main ()
12048 {
12049 return 0;
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 if ac_fn_c_try_compile "$LINENO"; then :
12055 otr_cv_cflags__Wformat_security=yes
12056 else
12057 otr_cv_cflags__Wformat_security=no
12058 fi
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 CFLAGS="$otr_saved_CFLAGS"
12061
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__Wformat_security" >&5
12064 $as_echo "$otr_cv_cflags__Wformat_security" >&6; }
12065 if test x$otr_cv_cflags__Wformat_security = xyes; then
12066 CFLAGS="$CFLAGS -Wformat-security"
12067 fi
12068
12069
12070
12071
12072
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts --param ssp-buffer-size=1" >&5
12074 $as_echo_n "checking whether the compiler accepts --param ssp-buffer-size=1... " >&6; }
12075 if ${otr_cv_cflags___param_ssp_buffer_size_1+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078
12079 otr_saved_CFLAGS="$CFLAGS"
12080 CFLAGS="$CFLAGS -pedantic -Werror --param ssp-buffer-size=1"
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083
12084 int
12085 main ()
12086 {
12087 return 0;
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_c_try_compile "$LINENO"; then :
12093 otr_cv_cflags___param_ssp_buffer_size_1=yes
12094 else
12095 otr_cv_cflags___param_ssp_buffer_size_1=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 CFLAGS="$otr_saved_CFLAGS"
12099
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags___param_ssp_buffer_size_1" >&5
12102 $as_echo "$otr_cv_cflags___param_ssp_buffer_size_1" >&6; }
12103 if test x$otr_cv_cflags___param_ssp_buffer_size_1 = xyes; then
12104 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
12105 fi
12106
12107
12108 if test "$bwin32" = "false"; then
12109
12110
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIE" >&5
12112 $as_echo_n "checking whether the compiler accepts -fPIE... " >&6; }
12113 if ${otr_cv_cflags__fPIE+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116
12117 otr_saved_CFLAGS="$CFLAGS"
12118 CFLAGS="$CFLAGS -pedantic -Werror -fPIE"
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121
12122 int
12123 main ()
12124 {
12125 return 0;
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_c_try_compile "$LINENO"; then :
12131 otr_cv_cflags__fPIE=yes
12132 else
12133 otr_cv_cflags__fPIE=no
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 CFLAGS="$otr_saved_CFLAGS"
12137
12138 fi
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__fPIE" >&5
12140 $as_echo "$otr_cv_cflags__fPIE" >&6; }
12141 if test x$otr_cv_cflags__fPIE = xyes; then
12142 CFLAGS="$CFLAGS -fPIE"
12143 fi
12144
12145
12146
12147
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
12149 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
12150 if ${otr_cv_ldflags__pie+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153
12154 otr_saved_CFLAGS="$CFLAGS"
12155 otr_saved_LDFLAGS="$LDFLAGS"
12156 otr_saved_LIBS="$LIBS"
12157 CFLAGS="$CFLAGS -pedantic -Werror"
12158 LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -pie"
12159 LIBS="$LIBS "$all_libs_for_check""
12160 if test "$cross_compiling" = yes; then :
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163
12164 int
12165 main ()
12166 {
12167 return 0;
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 otr_cv_ldflags__pie=yes
12174 else
12175 otr_cv_ldflags__pie=no
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 else
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #include <stdio.h>
12183 int
12184 main ()
12185 {
12186 fputs("", stdout)
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_run "$LINENO"; then :
12192 otr_cv_ldflags__pie=yes
12193 else
12194 otr_cv_ldflags__pie=no
12195 fi
12196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12197 conftest.$ac_objext conftest.beam conftest.$ac_ext
12198 fi
12199
12200 CFLAGS="$otr_saved_CFLAGS"
12201 LDFLAGS="$otr_saved_LDFLAGS"
12202 LIBS="$otr_saved_LIBS"
12203
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_ldflags__pie" >&5
12206 $as_echo "$otr_cv_ldflags__pie" >&6; }
12207 if test x$otr_cv_ldflags__pie = xyes; then
12208 LDFLAGS="$LDFLAGS -pie"
12209 fi
12210
12211
12212 else
12213
12214
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIE" >&5
12216 $as_echo_n "checking whether the compiler accepts -fPIE... " >&6; }
12217 if ${otr_cv_cflags__fPIE+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220
12221 otr_saved_CFLAGS="$CFLAGS"
12222 CFLAGS="$CFLAGS -pedantic -Werror -fPIE"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225
12226 int
12227 main ()
12228 {
12229 return 0;
12230 ;
12231 return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_compile "$LINENO"; then :
12235 otr_cv_cflags__fPIE=yes
12236 else
12237 otr_cv_cflags__fPIE=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240 CFLAGS="$otr_saved_CFLAGS"
12241
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_cflags__fPIE" >&5
12244 $as_echo "$otr_cv_cflags__fPIE" >&6; }
12245 if test x$otr_cv_cflags__fPIE = xyes; then
12246 CFLAGS="$CFLAGS -fPIE"
12247 fi
12248
12249
12250
12251
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
12253 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
12254 if ${otr_cv_ldflags__pie+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257
12258 otr_saved_CFLAGS="$CFLAGS"
12259 otr_saved_LDFLAGS="$LDFLAGS"
12260 otr_saved_LIBS="$LIBS"
12261 CFLAGS="$CFLAGS -pedantic -Werror"
12262 LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -pie"
12263 LIBS="$LIBS "$all_libs_for_check""
12264 if test "$cross_compiling" = yes; then :
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267
12268 int
12269 main ()
12270 {
12271 return 0;
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"; then :
12277 otr_cv_ldflags__pie=yes
12278 else
12279 otr_cv_ldflags__pie=no
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 else
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286 #include <stdio.h>
12287 int
12288 main ()
12289 {
12290 fputs("", stdout)
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_run "$LINENO"; then :
12296 otr_cv_ldflags__pie=yes
12297 else
12298 otr_cv_ldflags__pie=no
12299 fi
12300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12301 conftest.$ac_objext conftest.beam conftest.$ac_ext
12302 fi
12303
12304 CFLAGS="$otr_saved_CFLAGS"
12305 LDFLAGS="$otr_saved_LDFLAGS"
12306 LIBS="$otr_saved_LIBS"
12307
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_ldflags__pie" >&5
12310 $as_echo "$otr_cv_ldflags__pie" >&6; }
12311 if test x$otr_cv_ldflags__pie = xyes; then
12312 LDFLAGS="$LDFLAGS -pie"
12313 fi
12314
12315
12316
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
12319 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
12320 if ${otr_cv_ldflags__Wl___dynamicbase+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323
12324 otr_saved_CFLAGS="$CFLAGS"
12325 otr_saved_LDFLAGS="$LDFLAGS"
12326 otr_saved_LIBS="$LIBS"
12327 CFLAGS="$CFLAGS -pedantic -Werror"
12328 LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -Wl,--dynamicbase"
12329 LIBS="$LIBS "$all_libs_for_check""
12330 if test "$cross_compiling" = yes; then :
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333
12334 int
12335 main ()
12336 {
12337 return 0;
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"; then :
12343 otr_cv_ldflags__Wl___dynamicbase=yes
12344 else
12345 otr_cv_ldflags__Wl___dynamicbase=no
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 else
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352 #include <stdio.h>
12353 int
12354 main ()
12355 {
12356 fputs("", stdout)
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 if ac_fn_c_try_run "$LINENO"; then :
12362 otr_cv_ldflags__Wl___dynamicbase=yes
12363 else
12364 otr_cv_ldflags__Wl___dynamicbase=no
12365 fi
12366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12367 conftest.$ac_objext conftest.beam conftest.$ac_ext
12368 fi
12369
12370 CFLAGS="$otr_saved_CFLAGS"
12371 LDFLAGS="$otr_saved_LDFLAGS"
12372 LIBS="$otr_saved_LIBS"
12373
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_ldflags__Wl___dynamicbase" >&5
12376 $as_echo "$otr_cv_ldflags__Wl___dynamicbase" >&6; }
12377 if test x$otr_cv_ldflags__Wl___dynamicbase = xyes; then
12378 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
12379 fi
12380
12381
12382
12383
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
12385 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
12386 if ${otr_cv_ldflags__Wl___nxcompat+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389
12390 otr_saved_CFLAGS="$CFLAGS"
12391 otr_saved_LDFLAGS="$LDFLAGS"
12392 otr_saved_LIBS="$LIBS"
12393 CFLAGS="$CFLAGS -pedantic -Werror"
12394 LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -Wl,--nxcompat"
12395 LIBS="$LIBS "$all_libs_for_check""
12396 if test "$cross_compiling" = yes; then :
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399
12400 int
12401 main ()
12402 {
12403 return 0;
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"; then :
12409 otr_cv_ldflags__Wl___nxcompat=yes
12410 else
12411 otr_cv_ldflags__Wl___nxcompat=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 else
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418 #include <stdio.h>
12419 int
12420 main ()
12421 {
12422 fputs("", stdout)
12423 ;
12424 return 0;
12425 }
12426 _ACEOF
12427 if ac_fn_c_try_run "$LINENO"; then :
12428 otr_cv_ldflags__Wl___nxcompat=yes
12429 else
12430 otr_cv_ldflags__Wl___nxcompat=no
12431 fi
12432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12433 conftest.$ac_objext conftest.beam conftest.$ac_ext
12434 fi
12435
12436 CFLAGS="$otr_saved_CFLAGS"
12437 LDFLAGS="$otr_saved_LDFLAGS"
12438 LIBS="$otr_saved_LIBS"
12439
12440 fi
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_ldflags__Wl___nxcompat" >&5
12442 $as_echo "$otr_cv_ldflags__Wl___nxcompat" >&6; }
12443 if test x$otr_cv_ldflags__Wl___nxcompat = xyes; then
12444 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
12445 fi
12446
12447
12448 fi
12449 fi
12450
12451 if test x$enable_linker_hardening != xno; then
12452
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
12455 $as_echo_n "checking whether the linker accepts -z relro -z now... " >&6; }
12456 if ${otr_cv_ldflags__z_relro__z_now+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459
12460 otr_saved_CFLAGS="$CFLAGS"
12461 otr_saved_LDFLAGS="$LDFLAGS"
12462 otr_saved_LIBS="$LIBS"
12463 CFLAGS="$CFLAGS -pedantic -Werror"
12464 LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -z relro -z now"
12465 LIBS="$LIBS "$all_libs_for_check""
12466 if test "$cross_compiling" = yes; then :
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469
12470 int
12471 main ()
12472 {
12473 return 0;
12474 ;
12475 return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"; then :
12479 otr_cv_ldflags__z_relro__z_now=yes
12480 else
12481 otr_cv_ldflags__z_relro__z_now=no
12482 fi
12483 rm -f core conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12485 else
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 #include <stdio.h>
12489 int
12490 main ()
12491 {
12492 fputs("", stdout)
12493 ;
12494 return 0;
12495 }
12496 _ACEOF
12497 if ac_fn_c_try_run "$LINENO"; then :
12498 otr_cv_ldflags__z_relro__z_now=yes
12499 else
12500 otr_cv_ldflags__z_relro__z_now=no
12501 fi
12502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12503 conftest.$ac_objext conftest.beam conftest.$ac_ext
12504 fi
12505
12506 CFLAGS="$otr_saved_CFLAGS"
12507 LDFLAGS="$otr_saved_LDFLAGS"
12508 LIBS="$otr_saved_LIBS"
12509
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $otr_cv_ldflags__z_relro__z_now" >&5
12512 $as_echo "$otr_cv_ldflags__z_relro__z_now" >&6; }
12513 if test x$otr_cv_ldflags__z_relro__z_now = xyes; then
12514 LDFLAGS="$LDFLAGS -z relro -z now"
12515 fi
12516
12517
12518 fi
12519
12520 ac_config_files="$ac_config_files Makefile src/Makefile toolkit/Makefile tests/Makefile tests/utils/Makefile libotr.pc tests/utils/tap/Makefile tests/unit/Makefile tests/regression/Makefile tests/regression/client/Makefile"
12521
12522 cat >confcache <<\_ACEOF
12523 # This file is a shell script that caches the results of configure
12524 # tests run on this system so they can be shared between configure
12525 # scripts and configure runs, see configure's option --config-cache.
12526 # It is not useful on other systems. If it contains results you don't
12527 # want to keep, you may remove or edit it.
12528 #
12529 # config.status only pays attention to the cache file if you give it
12530 # the --recheck option to rerun configure.
12531 #
12532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12534 # following values.
12535
12536 _ACEOF
12537
12538 # The following way of writing the cache mishandles newlines in values,
12539 # but we know of no workaround that is simple, portable, and efficient.
12540 # So, we kill variables containing newlines.
12541 # Ultrix sh set writes to stderr and can't be redirected directly,
12542 # and sets the high bit in the cache file unless we assign to the vars.
12543 (
12544 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12545 eval ac_val=\$$ac_var
12546 case $ac_val in #(
12547 *${as_nl}*)
12548 case $ac_var in #(
12549 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12551 esac
12552 case $ac_var in #(
12553 _ | IFS | as_nl) ;; #(
12554 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12555 *) { eval $ac_var=; unset $ac_var;} ;;
12556 esac ;;
12557 esac
12558 done
12559
12560 (set) 2>&1 |
12561 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12562 *${as_nl}ac_space=\ *)
12563 # `set' does not quote correctly, so add quotes: double-quote
12564 # substitution turns \\\\ into \\, and sed turns \\ into \.
12565 sed -n \
12566 "s/'/'\\\\''/g;
12567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12568 ;; #(
12569 *)
12570 # `set' quotes correctly as required by POSIX, so do not add quotes.
12571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12572 ;;
12573 esac |
12574 sort
12575 ) |
12576 sed '
12577 /^ac_cv_env_/b end
12578 t clear
12579 :clear
12580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12581 t end
12582 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12583 :end' >>confcache
12584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12585 if test -w "$cache_file"; then
12586 if test "x$cache_file" != "x/dev/null"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12588 $as_echo "$as_me: updating cache $cache_file" >&6;}
12589 if test ! -f "$cache_file" || test -h "$cache_file"; then
12590 cat confcache >"$cache_file"
12591 else
12592 case $cache_file in #(
12593 */* | ?:*)
12594 mv -f confcache "$cache_file"$$ &&
12595 mv -f "$cache_file"$$ "$cache_file" ;; #(
12596 *)
12597 mv -f confcache "$cache_file" ;;
12598 esac
12599 fi
12600 fi
12601 else
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12603 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12604 fi
12605 fi
12606 rm -f confcache
12607
12608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12609 # Let make expand exec_prefix.
12610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12611
12612 DEFS=-DHAVE_CONFIG_H
12613
12614 ac_libobjs=
12615 ac_ltlibobjs=
12616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12617 # 1. Remove the extension, and $U if already installed.
12618 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12619 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12621 # will be set to the directory where LIBOBJS objects are built.
12622 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12623 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12624 done
12625 LIBOBJS=$ac_libobjs
12626
12627 LTLIBOBJS=$ac_ltlibobjs
12628
12629
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12631 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12632 if test -n "$am_sleep_pid"; then
12633 # Hide warnings about reused PIDs.
12634 wait $am_sleep_pid 2>/dev/null
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12637 $as_echo "done" >&6; }
12638 if test -n "$EXEEXT"; then
12639 am__EXEEXT_TRUE=
12640 am__EXEEXT_FALSE='#'
12641 else
12642 am__EXEEXT_TRUE='#'
12643 am__EXEEXT_FALSE=
12644 fi
12645
12646 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12647 as_fn_error $? "conditional \"AMDEP\" was never defined.
12648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12649 fi
12650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12651 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12653 fi
12654 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
12655 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
12656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12657 fi
12658 if test -z "${BUILD_NT_SERVICES_TRUE}" && test -z "${BUILD_NT_SERVICES_FALSE}"; then
12659 as_fn_error $? "conditional \"BUILD_NT_SERVICES\" was never defined.
12660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12661 fi
12662
12663 : "${CONFIG_STATUS=./config.status}"
12664 ac_write_fail=0
12665 ac_clean_files_save=$ac_clean_files
12666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12669 as_write_fail=0
12670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12671 #! $SHELL
12672 # Generated by $as_me.
12673 # Run this file to recreate the current configuration.
12674 # Compiler output produced by configure, useful for debugging
12675 # configure, is in config.log if it exists.
12676
12677 debug=false
12678 ac_cs_recheck=false
12679 ac_cs_silent=false
12680
12681 SHELL=\${CONFIG_SHELL-$SHELL}
12682 export SHELL
12683 _ASEOF
12684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12685 ## -------------------- ##
12686 ## M4sh Initialization. ##
12687 ## -------------------- ##
12688
12689 # Be more Bourne compatible
12690 DUALCASE=1; export DUALCASE # for MKS sh
12691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12692 emulate sh
12693 NULLCMD=:
12694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12695 # is contrary to our usage. Disable this feature.
12696 alias -g '${1+"$@"}'='"$@"'
12697 setopt NO_GLOB_SUBST
12698 else
12699 case `(set -o) 2>/dev/null` in #(
12700 *posix*) :
12701 set -o posix ;; #(
12702 *) :
12703 ;;
12704 esac
12705 fi
12706
12707
12708 as_nl='
12709 '
12710 export as_nl
12711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12715 # Prefer a ksh shell builtin over an external printf program on Solaris,
12716 # but without wasting forks for bash or zsh.
12717 if test -z "$BASH_VERSION$ZSH_VERSION" \
12718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12719 as_echo='print -r --'
12720 as_echo_n='print -rn --'
12721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12722 as_echo='printf %s\n'
12723 as_echo_n='printf %s'
12724 else
12725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12727 as_echo_n='/usr/ucb/echo -n'
12728 else
12729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12730 as_echo_n_body='eval
12731 arg=$1;
12732 case $arg in #(
12733 *"$as_nl"*)
12734 expr "X$arg" : "X\\(.*\\)$as_nl";
12735 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12736 esac;
12737 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12738 '
12739 export as_echo_n_body
12740 as_echo_n='sh -c $as_echo_n_body as_echo'
12741 fi
12742 export as_echo_body
12743 as_echo='sh -c $as_echo_body as_echo'
12744 fi
12745
12746 # The user is always right.
12747 if test "${PATH_SEPARATOR+set}" != set; then
12748 PATH_SEPARATOR=:
12749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12751 PATH_SEPARATOR=';'
12752 }
12753 fi
12754
12755
12756 # IFS
12757 # We need space, tab and new line, in precisely that order. Quoting is
12758 # there to prevent editors from complaining about space-tab.
12759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12760 # splitting by setting IFS to empty value.)
12761 IFS=" "" $as_nl"
12762
12763 # Find who we are. Look in the path if we contain no directory separator.
12764 as_myself=
12765 case $0 in #((
12766 *[\\/]* ) as_myself=$0 ;;
12767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12769 do
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12773 done
12774 IFS=$as_save_IFS
12775
12776 ;;
12777 esac
12778 # We did not find ourselves, most probably we were run as `sh COMMAND'
12779 # in which case we are not to be found in the path.
12780 if test "x$as_myself" = x; then
12781 as_myself=$0
12782 fi
12783 if test ! -f "$as_myself"; then
12784 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12785 exit 1
12786 fi
12787
12788 # Unset variables that we do not need and which cause bugs (e.g. in
12789 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12790 # suppresses any "Segmentation fault" message there. '((' could
12791 # trigger a bug in pdksh 5.2.14.
12792 for as_var in BASH_ENV ENV MAIL MAILPATH
12793 do eval test x\${$as_var+set} = xset \
12794 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12795 done
12796 PS1='$ '
12797 PS2='> '
12798 PS4='+ '
12799
12800 # NLS nuisances.
12801 LC_ALL=C
12802 export LC_ALL
12803 LANGUAGE=C
12804 export LANGUAGE
12805
12806 # CDPATH.
12807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12808
12809
12810 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12811 # ----------------------------------------
12812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12814 # script with STATUS, using 1 if that was 0.
12815 as_fn_error ()
12816 {
12817 as_status=$1; test $as_status -eq 0 && as_status=1
12818 if test "$4"; then
12819 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12821 fi
12822 $as_echo "$as_me: error: $2" >&2
12823 as_fn_exit $as_status
12824 } # as_fn_error
12825
12826
12827 # as_fn_set_status STATUS
12828 # -----------------------
12829 # Set $? to STATUS, without forking.
12830 as_fn_set_status ()
12831 {
12832 return $1
12833 } # as_fn_set_status
12834
12835 # as_fn_exit STATUS
12836 # -----------------
12837 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12838 as_fn_exit ()
12839 {
12840 set +e
12841 as_fn_set_status $1
12842 exit $1
12843 } # as_fn_exit
12844
12845 # as_fn_unset VAR
12846 # ---------------
12847 # Portably unset VAR.
12848 as_fn_unset ()
12849 {
12850 { eval $1=; unset $1;}
12851 }
12852 as_unset=as_fn_unset
12853 # as_fn_append VAR VALUE
12854 # ----------------------
12855 # Append the text in VALUE to the end of the definition contained in VAR. Take
12856 # advantage of any shell optimizations that allow amortized linear growth over
12857 # repeated appends, instead of the typical quadratic growth present in naive
12858 # implementations.
12859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12860 eval 'as_fn_append ()
12861 {
12862 eval $1+=\$2
12863 }'
12864 else
12865 as_fn_append ()
12866 {
12867 eval $1=\$$1\$2
12868 }
12869 fi # as_fn_append
12870
12871 # as_fn_arith ARG...
12872 # ------------------
12873 # Perform arithmetic evaluation on the ARGs, and store the result in the
12874 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12875 # must be portable across $(()) and expr.
12876 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12877 eval 'as_fn_arith ()
12878 {
12879 as_val=$(( $* ))
12880 }'
12881 else
12882 as_fn_arith ()
12883 {
12884 as_val=`expr "$@" || test $? -eq 1`
12885 }
12886 fi # as_fn_arith
12887
12888
12889 if expr a : '\(a\)' >/dev/null 2>&1 &&
12890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12891 as_expr=expr
12892 else
12893 as_expr=false
12894 fi
12895
12896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12897 as_basename=basename
12898 else
12899 as_basename=false
12900 fi
12901
12902 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12903 as_dirname=dirname
12904 else
12905 as_dirname=false
12906 fi
12907
12908 as_me=`$as_basename -- "$0" ||
12909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12910 X"$0" : 'X\(//\)$' \| \
12911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12912 $as_echo X/"$0" |
12913 sed '/^.*\/\([^/][^/]*\)\/*$/{
12914 s//\1/
12915 q
12916 }
12917 /^X\/\(\/\/\)$/{
12918 s//\1/
12919 q
12920 }
12921 /^X\/\(\/\).*/{
12922 s//\1/
12923 q
12924 }
12925 s/.*/./; q'`
12926
12927 # Avoid depending upon Character Ranges.
12928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12931 as_cr_digits='0123456789'
12932 as_cr_alnum=$as_cr_Letters$as_cr_digits
12933
12934 ECHO_C= ECHO_N= ECHO_T=
12935 case `echo -n x` in #(((((
12936 -n*)
12937 case `echo 'xy\c'` in
12938 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12939 xy) ECHO_C='\c';;
12940 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12941 ECHO_T=' ';;
12942 esac;;
12943 *)
12944 ECHO_N='-n';;
12945 esac
12946
12947 rm -f conf$$ conf$$.exe conf$$.file
12948 if test -d conf$$.dir; then
12949 rm -f conf$$.dir/conf$$.file
12950 else
12951 rm -f conf$$.dir
12952 mkdir conf$$.dir 2>/dev/null
12953 fi
12954 if (echo >conf$$.file) 2>/dev/null; then
12955 if ln -s conf$$.file conf$$ 2>/dev/null; then
12956 as_ln_s='ln -s'
12957 # ... but there are two gotchas:
12958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12960 # In both cases, we have to default to `cp -pR'.
12961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12962 as_ln_s='cp -pR'
12963 elif ln conf$$.file conf$$ 2>/dev/null; then
12964 as_ln_s=ln
12965 else
12966 as_ln_s='cp -pR'
12967 fi
12968 else
12969 as_ln_s='cp -pR'
12970 fi
12971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12972 rmdir conf$$.dir 2>/dev/null
12973
12974
12975 # as_fn_mkdir_p
12976 # -------------
12977 # Create "$as_dir" as a directory, including parents if necessary.
12978 as_fn_mkdir_p ()
12979 {
12980
12981 case $as_dir in #(
12982 -*) as_dir=./$as_dir;;
12983 esac
12984 test -d "$as_dir" || eval $as_mkdir_p || {
12985 as_dirs=
12986 while :; do
12987 case $as_dir in #(
12988 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12989 *) as_qdir=$as_dir;;
12990 esac
12991 as_dirs="'$as_qdir' $as_dirs"
12992 as_dir=`$as_dirname -- "$as_dir" ||
12993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12994 X"$as_dir" : 'X\(//\)[^/]' \| \
12995 X"$as_dir" : 'X\(//\)$' \| \
12996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12997 $as_echo X"$as_dir" |
12998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12999 s//\1/
13000 q
13001 }
13002 /^X\(\/\/\)[^/].*/{
13003 s//\1/
13004 q
13005 }
13006 /^X\(\/\/\)$/{
13007 s//\1/
13008 q
13009 }
13010 /^X\(\/\).*/{
13011 s//\1/
13012 q
13013 }
13014 s/.*/./; q'`
13015 test -d "$as_dir" && break
13016 done
13017 test -z "$as_dirs" || eval "mkdir $as_dirs"
13018 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13019
13020
13021 } # as_fn_mkdir_p
13022 if mkdir -p . 2>/dev/null; then
13023 as_mkdir_p='mkdir -p "$as_dir"'
13024 else
13025 test -d ./-p && rmdir ./-p
13026 as_mkdir_p=false
13027 fi
13028
13029
13030 # as_fn_executable_p FILE
13031 # -----------------------
13032 # Test if FILE is an executable regular file.
13033 as_fn_executable_p ()
13034 {
13035 test -f "$1" && test -x "$1"
13036 } # as_fn_executable_p
13037 as_test_x='test -x'
13038 as_executable_p=as_fn_executable_p
13039
13040 # Sed expression to map a string onto a valid CPP name.
13041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13042
13043 # Sed expression to map a string onto a valid variable name.
13044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13045
13046
13047 exec 6>&1
13048 ## ----------------------------------- ##
13049 ## Main body of $CONFIG_STATUS script. ##
13050 ## ----------------------------------- ##
13051 _ASEOF
13052 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13053
13054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13055 # Save the log message, to keep $0 and so on meaningful, and to
13056 # report actual input values of CONFIG_FILES etc. instead of their
13057 # values after options handling.
13058 ac_log="
13059 This file was extended by libotr $as_me 4.1.1, which was
13060 generated by GNU Autoconf 2.69. Invocation command line was
13061
13062 CONFIG_FILES = $CONFIG_FILES
13063 CONFIG_HEADERS = $CONFIG_HEADERS
13064 CONFIG_LINKS = $CONFIG_LINKS
13065 CONFIG_COMMANDS = $CONFIG_COMMANDS
13066 $ $0 $@
13067
13068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13069 "
13070
13071 _ACEOF
13072
13073 case $ac_config_files in *"
13074 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13075 esac
13076
13077 case $ac_config_headers in *"
13078 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13079 esac
13080
13081
13082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13083 # Files that config.status was made for.
13084 config_files="$ac_config_files"
13085 config_headers="$ac_config_headers"
13086 config_commands="$ac_config_commands"
13087
13088 _ACEOF
13089
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 ac_cs_usage="\
13092 \`$as_me' instantiates files and other configuration actions
13093 from templates according to the current configuration. Unless the files
13094 and actions are specified as TAGs, all are instantiated by default.
13095
13096 Usage: $0 [OPTION]... [TAG]...
13097
13098 -h, --help print this help, then exit
13099 -V, --version print version number and configuration settings, then exit
13100 --config print configuration, then exit
13101 -q, --quiet, --silent
13102 do not print progress messages
13103 -d, --debug don't remove temporary files
13104 --recheck update $as_me by reconfiguring in the same conditions
13105 --file=FILE[:TEMPLATE]
13106 instantiate the configuration file FILE
13107 --header=FILE[:TEMPLATE]
13108 instantiate the configuration header FILE
13109
13110 Configuration files:
13111 $config_files
13112
13113 Configuration headers:
13114 $config_headers
13115
13116 Configuration commands:
13117 $config_commands
13118
13119 Report bugs to <[email protected]>.
13120 libotr home page: <https://otr.cypherpunks.ca>."
13121
13122 _ACEOF
13123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13125 ac_cs_version="\\
13126 libotr config.status 4.1.1
13127 configured by $0, generated by GNU Autoconf 2.69,
13128 with options \\"\$ac_cs_config\\"
13129
13130 Copyright (C) 2012 Free Software Foundation, Inc.
13131 This config.status script is free software; the Free Software Foundation
13132 gives unlimited permission to copy, distribute and modify it."
13133
13134 ac_pwd='$ac_pwd'
13135 srcdir='$srcdir'
13136 INSTALL='$INSTALL'
13137 MKDIR_P='$MKDIR_P'
13138 AWK='$AWK'
13139 test -n "\$AWK" || AWK=awk
13140 _ACEOF
13141
13142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13143 # The default lists apply if the user does not specify any file.
13144 ac_need_defaults=:
13145 while test $# != 0
13146 do
13147 case $1 in
13148 --*=?*)
13149 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13151 ac_shift=:
13152 ;;
13153 --*=)
13154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13155 ac_optarg=
13156 ac_shift=:
13157 ;;
13158 *)
13159 ac_option=$1
13160 ac_optarg=$2
13161 ac_shift=shift
13162 ;;
13163 esac
13164
13165 case $ac_option in
13166 # Handling of the options.
13167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13168 ac_cs_recheck=: ;;
13169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13170 $as_echo "$ac_cs_version"; exit ;;
13171 --config | --confi | --conf | --con | --co | --c )
13172 $as_echo "$ac_cs_config"; exit ;;
13173 --debug | --debu | --deb | --de | --d | -d )
13174 debug=: ;;
13175 --file | --fil | --fi | --f )
13176 $ac_shift
13177 case $ac_optarg in
13178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13179 '') as_fn_error $? "missing file argument" ;;
13180 esac
13181 as_fn_append CONFIG_FILES " '$ac_optarg'"
13182 ac_need_defaults=false;;
13183 --header | --heade | --head | --hea )
13184 $ac_shift
13185 case $ac_optarg in
13186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13187 esac
13188 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13189 ac_need_defaults=false;;
13190 --he | --h)
13191 # Conflict between --help and --header
13192 as_fn_error $? "ambiguous option: \`$1'
13193 Try \`$0 --help' for more information.";;
13194 --help | --hel | -h )
13195 $as_echo "$ac_cs_usage"; exit ;;
13196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13197 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13198 ac_cs_silent=: ;;
13199
13200 # This is an error.
13201 -*) as_fn_error $? "unrecognized option: \`$1'
13202 Try \`$0 --help' for more information." ;;
13203
13204 *) as_fn_append ac_config_targets " $1"
13205 ac_need_defaults=false ;;
13206
13207 esac
13208 shift
13209 done
13210
13211 ac_configure_extra_args=
13212
13213 if $ac_cs_silent; then
13214 exec 6>/dev/null
13215 ac_configure_extra_args="$ac_configure_extra_args --silent"
13216 fi
13217
13218 _ACEOF
13219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13220 if \$ac_cs_recheck; then
13221 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13222 shift
13223 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13224 CONFIG_SHELL='$SHELL'
13225 export CONFIG_SHELL
13226 exec "\$@"
13227 fi
13228
13229 _ACEOF
13230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13231 exec 5>>config.log
13232 {
13233 echo
13234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13235 ## Running $as_me. ##
13236 _ASBOX
13237 $as_echo "$ac_log"
13238 } >&5
13239
13240 _ACEOF
13241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13242 #
13243 # INIT-COMMANDS
13244 #
13245 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13246
13247
13248 # The HP-UX ksh and POSIX shell print the target directory to stdout
13249 # if CDPATH is set.
13250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13251
13252 sed_quote_subst='$sed_quote_subst'
13253 double_quote_subst='$double_quote_subst'
13254 delay_variable_subst='$delay_variable_subst'
13255 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13256 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13257 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13258 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13259 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13260 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13261 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13262 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13263 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13264 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13265 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13266 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13267 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13268 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13269 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13270 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13271 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13272 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13273 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13274 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13275 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13276 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13277 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13278 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13279 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13280 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13281 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13282 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13283 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13284 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13285 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13286 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13287 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13288 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13289 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13290 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13291 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13292 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13293 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13294 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13295 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13296 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13297 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13298 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13299 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13300 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13301 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13302 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13303 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13304 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13305 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13306 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13307 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13308 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13309 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13310 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13311 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"`'
13312 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13313 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13314 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13315 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13316 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13317 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13318 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13319 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13320 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13321 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13322 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13323 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13324 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13325 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13326 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13327 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13328 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13329 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13330 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13331 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13332 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13333 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13334 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13335 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13336 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13337 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13338 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13339 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13340 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13341 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13342 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13343 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13344 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13345 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13346 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13347 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13348 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13349 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13350 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13351 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13352 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13353 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13354 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13355 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13356 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13357 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13358 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13359 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13360 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13361 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13362 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13363 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13364 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13365 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13366 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13367 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13368 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13369 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13370 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13371 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13372 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13373 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13374 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13375 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13376 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13377 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13378 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13379 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13380 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13381 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13382 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13383 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13384 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13385
13386 LTCC='$LTCC'
13387 LTCFLAGS='$LTCFLAGS'
13388 compiler='$compiler_DEFAULT'
13389
13390 # A function that is used when there is no print builtin or printf.
13391 func_fallback_echo ()
13392 {
13393 eval 'cat <<_LTECHO_EOF
13394 \$1
13395 _LTECHO_EOF'
13396 }
13397
13398 # Quote evaled strings.
13399 for var in SHELL \
13400 ECHO \
13401 PATH_SEPARATOR \
13402 SED \
13403 GREP \
13404 EGREP \
13405 FGREP \
13406 LD \
13407 NM \
13408 LN_S \
13409 lt_SP2NL \
13410 lt_NL2SP \
13411 reload_flag \
13412 OBJDUMP \
13413 deplibs_check_method \
13414 file_magic_cmd \
13415 file_magic_glob \
13416 want_nocaseglob \
13417 DLLTOOL \
13418 sharedlib_from_linklib_cmd \
13419 AR \
13420 AR_FLAGS \
13421 archiver_list_spec \
13422 STRIP \
13423 RANLIB \
13424 CC \
13425 CFLAGS \
13426 compiler \
13427 lt_cv_sys_global_symbol_pipe \
13428 lt_cv_sys_global_symbol_to_cdecl \
13429 lt_cv_sys_global_symbol_to_c_name_address \
13430 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13431 nm_file_list_spec \
13432 lt_prog_compiler_no_builtin_flag \
13433 lt_prog_compiler_pic \
13434 lt_prog_compiler_wl \
13435 lt_prog_compiler_static \
13436 lt_cv_prog_compiler_c_o \
13437 need_locks \
13438 MANIFEST_TOOL \
13439 DSYMUTIL \
13440 NMEDIT \
13441 LIPO \
13442 OTOOL \
13443 OTOOL64 \
13444 shrext_cmds \
13445 export_dynamic_flag_spec \
13446 whole_archive_flag_spec \
13447 compiler_needs_object \
13448 with_gnu_ld \
13449 allow_undefined_flag \
13450 no_undefined_flag \
13451 hardcode_libdir_flag_spec \
13452 hardcode_libdir_separator \
13453 exclude_expsyms \
13454 include_expsyms \
13455 file_list_spec \
13456 variables_saved_for_relink \
13457 libname_spec \
13458 library_names_spec \
13459 soname_spec \
13460 install_override_mode \
13461 finish_eval \
13462 old_striplib \
13463 striplib; do
13464 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13465 *[\\\\\\\`\\"\\\$]*)
13466 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13467 ;;
13468 *)
13469 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13470 ;;
13471 esac
13472 done
13473
13474 # Double-quote double-evaled strings.
13475 for var in reload_cmds \
13476 old_postinstall_cmds \
13477 old_postuninstall_cmds \
13478 old_archive_cmds \
13479 extract_expsyms_cmds \
13480 old_archive_from_new_cmds \
13481 old_archive_from_expsyms_cmds \
13482 archive_cmds \
13483 archive_expsym_cmds \
13484 module_cmds \
13485 module_expsym_cmds \
13486 export_symbols_cmds \
13487 prelink_cmds \
13488 postlink_cmds \
13489 postinstall_cmds \
13490 postuninstall_cmds \
13491 finish_cmds \
13492 sys_lib_search_path_spec \
13493 sys_lib_dlsearch_path_spec; do
13494 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13495 *[\\\\\\\`\\"\\\$]*)
13496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13497 ;;
13498 *)
13499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13500 ;;
13501 esac
13502 done
13503
13504 ac_aux_dir='$ac_aux_dir'
13505 xsi_shell='$xsi_shell'
13506 lt_shell_append='$lt_shell_append'
13507
13508 # See if we are running on zsh, and set the options which allow our
13509 # commands through without removal of \ escapes INIT.
13510 if test -n "\${ZSH_VERSION+set}" ; then
13511 setopt NO_GLOB_SUBST
13512 fi
13513
13514
13515 PACKAGE='$PACKAGE'
13516 VERSION='$VERSION'
13517 TIMESTAMP='$TIMESTAMP'
13518 RM='$RM'
13519 ofile='$ofile'
13520
13521
13522
13523
13524 _ACEOF
13525
13526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527
13528 # Handling of arguments.
13529 for ac_config_target in $ac_config_targets
13530 do
13531 case $ac_config_target in
13532 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13533 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13534 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13535 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13536 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13537 "toolkit/Makefile") CONFIG_FILES="$CONFIG_FILES toolkit/Makefile" ;;
13538 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13539 "tests/utils/Makefile") CONFIG_FILES="$CONFIG_FILES tests/utils/Makefile" ;;
13540 "libotr.pc") CONFIG_FILES="$CONFIG_FILES libotr.pc" ;;
13541 "tests/utils/tap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/utils/tap/Makefile" ;;
13542 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
13543 "tests/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression/Makefile" ;;
13544 "tests/regression/client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression/client/Makefile" ;;
13545
13546 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13547 esac
13548 done
13549
13550
13551 # If the user did not use the arguments to specify the items to instantiate,
13552 # then the envvar interface is used. Set only those that are not.
13553 # We use the long form for the default assignment because of an extremely
13554 # bizarre bug on SunOS 4.1.3.
13555 if $ac_need_defaults; then
13556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13559 fi
13560
13561 # Have a temporary directory for convenience. Make it in the build tree
13562 # simply because there is no reason against having it here, and in addition,
13563 # creating and moving files from /tmp can sometimes cause problems.
13564 # Hook for its removal unless debugging.
13565 # Note that there is a small window in which the directory will not be cleaned:
13566 # after its creation but before its name has been assigned to `$tmp'.
13567 $debug ||
13568 {
13569 tmp= ac_tmp=
13570 trap 'exit_status=$?
13571 : "${ac_tmp:=$tmp}"
13572 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13573 ' 0
13574 trap 'as_fn_exit 1' 1 2 13 15
13575 }
13576 # Create a (secure) tmp directory for tmp files.
13577
13578 {
13579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13580 test -d "$tmp"
13581 } ||
13582 {
13583 tmp=./conf$$-$RANDOM
13584 (umask 077 && mkdir "$tmp")
13585 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13586 ac_tmp=$tmp
13587
13588 # Set up the scripts for CONFIG_FILES section.
13589 # No need to generate them if there are no CONFIG_FILES.
13590 # This happens for instance with `./config.status config.h'.
13591 if test -n "$CONFIG_FILES"; then
13592
13593
13594 ac_cr=`echo X | tr X '\015'`
13595 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13596 # But we know of no other shell where ac_cr would be empty at this
13597 # point, so we can use a bashism as a fallback.
13598 if test "x$ac_cr" = x; then
13599 eval ac_cr=\$\'\\r\'
13600 fi
13601 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13602 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13603 ac_cs_awk_cr='\\r'
13604 else
13605 ac_cs_awk_cr=$ac_cr
13606 fi
13607
13608 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13609 _ACEOF
13610
13611
13612 {
13613 echo "cat >conf$$subs.awk <<_ACEOF" &&
13614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13615 echo "_ACEOF"
13616 } >conf$$subs.sh ||
13617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13618 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13619 ac_delim='%!_!# '
13620 for ac_last_try in false false false false false :; do
13621 . ./conf$$subs.sh ||
13622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13623
13624 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13625 if test $ac_delim_n = $ac_delim_num; then
13626 break
13627 elif $ac_last_try; then
13628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13629 else
13630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13631 fi
13632 done
13633 rm -f conf$$subs.sh
13634
13635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13636 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13637 _ACEOF
13638 sed -n '
13639 h
13640 s/^/S["/; s/!.*/"]=/
13641 p
13642 g
13643 s/^[^!]*!//
13644 :repl
13645 t repl
13646 s/'"$ac_delim"'$//
13647 t delim
13648 :nl
13649 h
13650 s/\(.\{148\}\)..*/\1/
13651 t more1
13652 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13653 p
13654 n
13655 b repl
13656 :more1
13657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13658 p
13659 g
13660 s/.\{148\}//
13661 t nl
13662 :delim
13663 h
13664 s/\(.\{148\}\)..*/\1/
13665 t more2
13666 s/["\\]/\\&/g; s/^/"/; s/$/"/
13667 p
13668 b
13669 :more2
13670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13671 p
13672 g
13673 s/.\{148\}//
13674 t delim
13675 ' <conf$$subs.awk | sed '
13676 /^[^""]/{
13677 N
13678 s/\n//
13679 }
13680 ' >>$CONFIG_STATUS || ac_write_fail=1
13681 rm -f conf$$subs.awk
13682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683 _ACAWK
13684 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13685 for (key in S) S_is_set[key] = 1
13686 FS = ""
13687
13688 }
13689 {
13690 line = $ 0
13691 nfields = split(line, field, "@")
13692 substed = 0
13693 len = length(field[1])
13694 for (i = 2; i < nfields; i++) {
13695 key = field[i]
13696 keylen = length(key)
13697 if (S_is_set[key]) {
13698 value = S[key]
13699 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13700 len += length(value) + length(field[++i])
13701 substed = 1
13702 } else
13703 len += 1 + keylen
13704 }
13705
13706 print line
13707 }
13708
13709 _ACAWK
13710 _ACEOF
13711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13713 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13714 else
13715 cat
13716 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13717 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13718 _ACEOF
13719
13720 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13721 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13722 # trailing colons and then remove the whole line if VPATH becomes empty
13723 # (actually we leave an empty line to preserve line numbers).
13724 if test "x$srcdir" = x.; then
13725 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13726 h
13727 s///
13728 s/^/:/
13729 s/[ ]*$/:/
13730 s/:\$(srcdir):/:/g
13731 s/:\${srcdir}:/:/g
13732 s/:@srcdir@:/:/g
13733 s/^:*//
13734 s/:*$//
13735 x
13736 s/\(=[ ]*\).*/\1/
13737 G
13738 s/\n//
13739 s/^[^=]*=[ ]*$//
13740 }'
13741 fi
13742
13743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13744 fi # test -n "$CONFIG_FILES"
13745
13746 # Set up the scripts for CONFIG_HEADERS section.
13747 # No need to generate them if there are no CONFIG_HEADERS.
13748 # This happens for instance with `./config.status Makefile'.
13749 if test -n "$CONFIG_HEADERS"; then
13750 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13751 BEGIN {
13752 _ACEOF
13753
13754 # Transform confdefs.h into an awk script `defines.awk', embedded as
13755 # here-document in config.status, that substitutes the proper values into
13756 # config.h.in to produce config.h.
13757
13758 # Create a delimiter string that does not exist in confdefs.h, to ease
13759 # handling of long lines.
13760 ac_delim='%!_!# '
13761 for ac_last_try in false false :; do
13762 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13763 if test -z "$ac_tt"; then
13764 break
13765 elif $ac_last_try; then
13766 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13767 else
13768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13769 fi
13770 done
13771
13772 # For the awk script, D is an array of macro values keyed by name,
13773 # likewise P contains macro parameters if any. Preserve backslash
13774 # newline sequences.
13775
13776 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13777 sed -n '
13778 s/.\{148\}/&'"$ac_delim"'/g
13779 t rset
13780 :rset
13781 s/^[ ]*#[ ]*define[ ][ ]*/ /
13782 t def
13783 d
13784 :def
13785 s/\\$//
13786 t bsnl
13787 s/["\\]/\\&/g
13788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13789 D["\1"]=" \3"/p
13790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13791 d
13792 :bsnl
13793 s/["\\]/\\&/g
13794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13795 D["\1"]=" \3\\\\\\n"\\/p
13796 t cont
13797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13798 t cont
13799 d
13800 :cont
13801 n
13802 s/.\{148\}/&'"$ac_delim"'/g
13803 t clear
13804 :clear
13805 s/\\$//
13806 t bsnlc
13807 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13808 d
13809 :bsnlc
13810 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13811 b cont
13812 ' <confdefs.h | sed '
13813 s/'"$ac_delim"'/"\\\
13814 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13815
13816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13817 for (key in D) D_is_set[key] = 1
13818 FS = ""
13819 }
13820 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13821 line = \$ 0
13822 split(line, arg, " ")
13823 if (arg[1] == "#") {
13824 defundef = arg[2]
13825 mac1 = arg[3]
13826 } else {
13827 defundef = substr(arg[1], 2)
13828 mac1 = arg[2]
13829 }
13830 split(mac1, mac2, "(") #)
13831 macro = mac2[1]
13832 prefix = substr(line, 1, index(line, defundef) - 1)
13833 if (D_is_set[macro]) {
13834 # Preserve the white space surrounding the "#".
13835 print prefix "define", macro P[macro] D[macro]
13836 next
13837 } else {
13838 # Replace #undef with comments. This is necessary, for example,
13839 # in the case of _POSIX_SOURCE, which is predefined and required
13840 # on some systems where configure will not decide to define it.
13841 if (defundef == "undef") {
13842 print "/*", prefix defundef, macro, "*/"
13843 next
13844 }
13845 }
13846 }
13847 { print }
13848 _ACAWK
13849 _ACEOF
13850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13851 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13852 fi # test -n "$CONFIG_HEADERS"
13853
13854
13855 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13856 shift
13857 for ac_tag
13858 do
13859 case $ac_tag in
13860 :[FHLC]) ac_mode=$ac_tag; continue;;
13861 esac
13862 case $ac_mode$ac_tag in
13863 :[FHL]*:*);;
13864 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13865 :[FH]-) ac_tag=-:-;;
13866 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13867 esac
13868 ac_save_IFS=$IFS
13869 IFS=:
13870 set x $ac_tag
13871 IFS=$ac_save_IFS
13872 shift
13873 ac_file=$1
13874 shift
13875
13876 case $ac_mode in
13877 :L) ac_source=$1;;
13878 :[FH])
13879 ac_file_inputs=
13880 for ac_f
13881 do
13882 case $ac_f in
13883 -) ac_f="$ac_tmp/stdin";;
13884 *) # Look for the file first in the build tree, then in the source tree
13885 # (if the path is not absolute). The absolute path cannot be DOS-style,
13886 # because $ac_f cannot contain `:'.
13887 test -f "$ac_f" ||
13888 case $ac_f in
13889 [\\/$]*) false;;
13890 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13891 esac ||
13892 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13893 esac
13894 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13895 as_fn_append ac_file_inputs " '$ac_f'"
13896 done
13897
13898 # Let's still pretend it is `configure' which instantiates (i.e., don't
13899 # use $as_me), people would be surprised to read:
13900 # /* config.h. Generated by config.status. */
13901 configure_input='Generated from '`
13902 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13903 `' by configure.'
13904 if test x"$ac_file" != x-; then
13905 configure_input="$ac_file. $configure_input"
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13907 $as_echo "$as_me: creating $ac_file" >&6;}
13908 fi
13909 # Neutralize special characters interpreted by sed in replacement strings.
13910 case $configure_input in #(
13911 *\&* | *\|* | *\\* )
13912 ac_sed_conf_input=`$as_echo "$configure_input" |
13913 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13914 *) ac_sed_conf_input=$configure_input;;
13915 esac
13916
13917 case $ac_tag in
13918 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13920 esac
13921 ;;
13922 esac
13923
13924 ac_dir=`$as_dirname -- "$ac_file" ||
13925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13926 X"$ac_file" : 'X\(//\)[^/]' \| \
13927 X"$ac_file" : 'X\(//\)$' \| \
13928 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13929 $as_echo X"$ac_file" |
13930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13931 s//\1/
13932 q
13933 }
13934 /^X\(\/\/\)[^/].*/{
13935 s//\1/
13936 q
13937 }
13938 /^X\(\/\/\)$/{
13939 s//\1/
13940 q
13941 }
13942 /^X\(\/\).*/{
13943 s//\1/
13944 q
13945 }
13946 s/.*/./; q'`
13947 as_dir="$ac_dir"; as_fn_mkdir_p
13948 ac_builddir=.
13949
13950 case "$ac_dir" in
13951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13952 *)
13953 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13954 # A ".." for each directory in $ac_dir_suffix.
13955 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13956 case $ac_top_builddir_sub in
13957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13959 esac ;;
13960 esac
13961 ac_abs_top_builddir=$ac_pwd
13962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13963 # for backward compatibility:
13964 ac_top_builddir=$ac_top_build_prefix
13965
13966 case $srcdir in
13967 .) # We are building in place.
13968 ac_srcdir=.
13969 ac_top_srcdir=$ac_top_builddir_sub
13970 ac_abs_top_srcdir=$ac_pwd ;;
13971 [\\/]* | ?:[\\/]* ) # Absolute name.
13972 ac_srcdir=$srcdir$ac_dir_suffix;
13973 ac_top_srcdir=$srcdir
13974 ac_abs_top_srcdir=$srcdir ;;
13975 *) # Relative name.
13976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13977 ac_top_srcdir=$ac_top_build_prefix$srcdir
13978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13979 esac
13980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13981
13982
13983 case $ac_mode in
13984 :F)
13985 #
13986 # CONFIG_FILE
13987 #
13988
13989 case $INSTALL in
13990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13992 esac
13993 ac_MKDIR_P=$MKDIR_P
13994 case $MKDIR_P in
13995 [\\/$]* | ?:[\\/]* ) ;;
13996 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13997 esac
13998 _ACEOF
13999
14000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14001 # If the template does not know about datarootdir, expand it.
14002 # FIXME: This hack should be removed a few years after 2.60.
14003 ac_datarootdir_hack=; ac_datarootdir_seen=
14004 ac_sed_dataroot='
14005 /datarootdir/ {
14006 p
14007 q
14008 }
14009 /@datadir@/p
14010 /@docdir@/p
14011 /@infodir@/p
14012 /@localedir@/p
14013 /@mandir@/p'
14014 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14015 *datarootdir*) ac_datarootdir_seen=yes;;
14016 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14018 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14019 _ACEOF
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 ac_datarootdir_hack='
14022 s&@datadir@&$datadir&g
14023 s&@docdir@&$docdir&g
14024 s&@infodir@&$infodir&g
14025 s&@localedir@&$localedir&g
14026 s&@mandir@&$mandir&g
14027 s&\\\${datarootdir}&$datarootdir&g' ;;
14028 esac
14029 _ACEOF
14030
14031 # Neutralize VPATH when `$srcdir' = `.'.
14032 # Shell code in configure.ac might set extrasub.
14033 # FIXME: do we really want to maintain this feature?
14034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14035 ac_sed_extra="$ac_vpsub
14036 $extrasub
14037 _ACEOF
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14039 :t
14040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14041 s|@configure_input@|$ac_sed_conf_input|;t t
14042 s&@top_builddir@&$ac_top_builddir_sub&;t t
14043 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14044 s&@srcdir@&$ac_srcdir&;t t
14045 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14046 s&@top_srcdir@&$ac_top_srcdir&;t t
14047 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14048 s&@builddir@&$ac_builddir&;t t
14049 s&@abs_builddir@&$ac_abs_builddir&;t t
14050 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14051 s&@INSTALL@&$ac_INSTALL&;t t
14052 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14053 $ac_datarootdir_hack
14054 "
14055 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14056 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14057
14058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14061 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14063 which seems to be undefined. Please make sure it is defined" >&5
14064 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14065 which seems to be undefined. Please make sure it is defined" >&2;}
14066
14067 rm -f "$ac_tmp/stdin"
14068 case $ac_file in
14069 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14070 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14071 esac \
14072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14073 ;;
14074 :H)
14075 #
14076 # CONFIG_HEADER
14077 #
14078 if test x"$ac_file" != x-; then
14079 {
14080 $as_echo "/* $configure_input */" \
14081 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14082 } >"$ac_tmp/config.h" \
14083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14084 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14086 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14087 else
14088 rm -f "$ac_file"
14089 mv "$ac_tmp/config.h" "$ac_file" \
14090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14091 fi
14092 else
14093 $as_echo "/* $configure_input */" \
14094 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14095 || as_fn_error $? "could not create -" "$LINENO" 5
14096 fi
14097 # Compute "$ac_file"'s index in $config_headers.
14098 _am_arg="$ac_file"
14099 _am_stamp_count=1
14100 for _am_header in $config_headers :; do
14101 case $_am_header in
14102 $_am_arg | $_am_arg:* )
14103 break ;;
14104 * )
14105 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14106 esac
14107 done
14108 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14109 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14110 X"$_am_arg" : 'X\(//\)[^/]' \| \
14111 X"$_am_arg" : 'X\(//\)$' \| \
14112 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14113 $as_echo X"$_am_arg" |
14114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14115 s//\1/
14116 q
14117 }
14118 /^X\(\/\/\)[^/].*/{
14119 s//\1/
14120 q
14121 }
14122 /^X\(\/\/\)$/{
14123 s//\1/
14124 q
14125 }
14126 /^X\(\/\).*/{
14127 s//\1/
14128 q
14129 }
14130 s/.*/./; q'`/stamp-h$_am_stamp_count
14131 ;;
14132
14133 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14134 $as_echo "$as_me: executing $ac_file commands" >&6;}
14135 ;;
14136 esac
14137
14138
14139 case $ac_file$ac_mode in
14140 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14141 # Older Autoconf quotes --file arguments for eval, but not when files
14142 # are listed without --file. Let's play safe and only enable the eval
14143 # if we detect the quoting.
14144 case $CONFIG_FILES in
14145 *\'*) eval set x "$CONFIG_FILES" ;;
14146 *) set x $CONFIG_FILES ;;
14147 esac
14148 shift
14149 for mf
14150 do
14151 # Strip MF so we end up with the name of the file.
14152 mf=`echo "$mf" | sed -e 's/:.*$//'`
14153 # Check whether this is an Automake generated Makefile or not.
14154 # We used to match only the files named 'Makefile.in', but
14155 # some people rename them; so instead we look at the file content.
14156 # Grep'ing the first line is not enough: some people post-process
14157 # each Makefile.in and add a new line on top of each file to say so.
14158 # Grep'ing the whole file is not good either: AIX grep has a line
14159 # limit of 2048, but all sed's we know have understand at least 4000.
14160 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14161 dirpart=`$as_dirname -- "$mf" ||
14162 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14163 X"$mf" : 'X\(//\)[^/]' \| \
14164 X"$mf" : 'X\(//\)$' \| \
14165 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14166 $as_echo X"$mf" |
14167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14168 s//\1/
14169 q
14170 }
14171 /^X\(\/\/\)[^/].*/{
14172 s//\1/
14173 q
14174 }
14175 /^X\(\/\/\)$/{
14176 s//\1/
14177 q
14178 }
14179 /^X\(\/\).*/{
14180 s//\1/
14181 q
14182 }
14183 s/.*/./; q'`
14184 else
14185 continue
14186 fi
14187 # Extract the definition of DEPDIR, am__include, and am__quote
14188 # from the Makefile without running 'make'.
14189 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14190 test -z "$DEPDIR" && continue
14191 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14192 test -z "$am__include" && continue
14193 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14194 # Find all dependency output files, they are included files with
14195 # $(DEPDIR) in their names. We invoke sed twice because it is the
14196 # simplest approach to changing $(DEPDIR) to its actual value in the
14197 # expansion.
14198 for file in `sed -n "
14199 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14200 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14201 # Make sure the directory exists.
14202 test -f "$dirpart/$file" && continue
14203 fdir=`$as_dirname -- "$file" ||
14204 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14205 X"$file" : 'X\(//\)[^/]' \| \
14206 X"$file" : 'X\(//\)$' \| \
14207 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14208 $as_echo X"$file" |
14209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14210 s//\1/
14211 q
14212 }
14213 /^X\(\/\/\)[^/].*/{
14214 s//\1/
14215 q
14216 }
14217 /^X\(\/\/\)$/{
14218 s//\1/
14219 q
14220 }
14221 /^X\(\/\).*/{
14222 s//\1/
14223 q
14224 }
14225 s/.*/./; q'`
14226 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14227 # echo "creating $dirpart/$file"
14228 echo '# dummy' > "$dirpart/$file"
14229 done
14230 done
14231 }
14232 ;;
14233 "libtool":C)
14234
14235 # See if we are running on zsh, and set the options which allow our
14236 # commands through without removal of \ escapes.
14237 if test -n "${ZSH_VERSION+set}" ; then
14238 setopt NO_GLOB_SUBST
14239 fi
14240
14241 cfgfile="${ofile}T"
14242 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14243 $RM "$cfgfile"
14244
14245 cat <<_LT_EOF >> "$cfgfile"
14246 #! $SHELL
14247
14248 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14249 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14251 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14252 #
14253 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14254 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14255 # Foundation, Inc.
14256 # Written by Gordon Matzigkeit, 1996
14257 #
14258 # This file is part of GNU Libtool.
14259 #
14260 # GNU Libtool is free software; you can redistribute it and/or
14261 # modify it under the terms of the GNU General Public License as
14262 # published by the Free Software Foundation; either version 2 of
14263 # the License, or (at your option) any later version.
14264 #
14265 # As a special exception to the GNU General Public License,
14266 # if you distribute this file as part of a program or library that
14267 # is built using GNU Libtool, you may include this file under the
14268 # same distribution terms that you use for the rest of that program.
14269 #
14270 # GNU Libtool is distributed in the hope that it will be useful,
14271 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14272 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14273 # GNU General Public License for more details.
14274 #
14275 # You should have received a copy of the GNU General Public License
14276 # along with GNU Libtool; see the file COPYING. If not, a copy
14277 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14278 # obtained by writing to the Free Software Foundation, Inc.,
14279 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14280
14281
14282 # The names of the tagged configurations supported by this script.
14283 available_tags=""
14284
14285 # ### BEGIN LIBTOOL CONFIG
14286
14287 # Which release of libtool.m4 was used?
14288 macro_version=$macro_version
14289 macro_revision=$macro_revision
14290
14291 # Whether or not to build shared libraries.
14292 build_libtool_libs=$enable_shared
14293
14294 # Whether or not to build static libraries.
14295 build_old_libs=$enable_static
14296
14297 # What type of objects to build.
14298 pic_mode=$pic_mode
14299
14300 # Whether or not to optimize for fast installation.
14301 fast_install=$enable_fast_install
14302
14303 # Shell to use when invoking shell scripts.
14304 SHELL=$lt_SHELL
14305
14306 # An echo program that protects backslashes.
14307 ECHO=$lt_ECHO
14308
14309 # The PATH separator for the build system.
14310 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14311
14312 # The host system.
14313 host_alias=$host_alias
14314 host=$host
14315 host_os=$host_os
14316
14317 # The build system.
14318 build_alias=$build_alias
14319 build=$build
14320 build_os=$build_os
14321
14322 # A sed program that does not truncate output.
14323 SED=$lt_SED
14324
14325 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14326 Xsed="\$SED -e 1s/^X//"
14327
14328 # A grep program that handles long lines.
14329 GREP=$lt_GREP
14330
14331 # An ERE matcher.
14332 EGREP=$lt_EGREP
14333
14334 # A literal string matcher.
14335 FGREP=$lt_FGREP
14336
14337 # A BSD- or MS-compatible name lister.
14338 NM=$lt_NM
14339
14340 # Whether we need soft or hard links.
14341 LN_S=$lt_LN_S
14342
14343 # What is the maximum length of a command?
14344 max_cmd_len=$max_cmd_len
14345
14346 # Object file suffix (normally "o").
14347 objext=$ac_objext
14348
14349 # Executable file suffix (normally "").
14350 exeext=$exeext
14351
14352 # whether the shell understands "unset".
14353 lt_unset=$lt_unset
14354
14355 # turn spaces into newlines.
14356 SP2NL=$lt_lt_SP2NL
14357
14358 # turn newlines into spaces.
14359 NL2SP=$lt_lt_NL2SP
14360
14361 # convert \$build file names to \$host format.
14362 to_host_file_cmd=$lt_cv_to_host_file_cmd
14363
14364 # convert \$build files to toolchain format.
14365 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14366
14367 # An object symbol dumper.
14368 OBJDUMP=$lt_OBJDUMP
14369
14370 # Method to check whether dependent libraries are shared objects.
14371 deplibs_check_method=$lt_deplibs_check_method
14372
14373 # Command to use when deplibs_check_method = "file_magic".
14374 file_magic_cmd=$lt_file_magic_cmd
14375
14376 # How to find potential files when deplibs_check_method = "file_magic".
14377 file_magic_glob=$lt_file_magic_glob
14378
14379 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14380 want_nocaseglob=$lt_want_nocaseglob
14381
14382 # DLL creation program.
14383 DLLTOOL=$lt_DLLTOOL
14384
14385 # Command to associate shared and link libraries.
14386 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14387
14388 # The archiver.
14389 AR=$lt_AR
14390
14391 # Flags to create an archive.
14392 AR_FLAGS=$lt_AR_FLAGS
14393
14394 # How to feed a file listing to the archiver.
14395 archiver_list_spec=$lt_archiver_list_spec
14396
14397 # A symbol stripping program.
14398 STRIP=$lt_STRIP
14399
14400 # Commands used to install an old-style archive.
14401 RANLIB=$lt_RANLIB
14402 old_postinstall_cmds=$lt_old_postinstall_cmds
14403 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14404
14405 # Whether to use a lock for old archive extraction.
14406 lock_old_archive_extraction=$lock_old_archive_extraction
14407
14408 # A C compiler.
14409 LTCC=$lt_CC
14410
14411 # LTCC compiler flags.
14412 LTCFLAGS=$lt_CFLAGS
14413
14414 # Take the output of nm and produce a listing of raw symbols and C names.
14415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14416
14417 # Transform the output of nm in a proper C declaration.
14418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14419
14420 # Transform the output of nm in a C name address pair.
14421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14422
14423 # Transform the output of nm in a C name address pair when lib prefix is needed.
14424 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14425
14426 # Specify filename containing input files for \$NM.
14427 nm_file_list_spec=$lt_nm_file_list_spec
14428
14429 # The root where to search for dependent libraries,and in which our libraries should be installed.
14430 lt_sysroot=$lt_sysroot
14431
14432 # The name of the directory that contains temporary libtool files.
14433 objdir=$objdir
14434
14435 # Used to examine libraries when file_magic_cmd begins with "file".
14436 MAGIC_CMD=$MAGIC_CMD
14437
14438 # Must we lock files when doing compilation?
14439 need_locks=$lt_need_locks
14440
14441 # Manifest tool.
14442 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14443
14444 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14445 DSYMUTIL=$lt_DSYMUTIL
14446
14447 # Tool to change global to local symbols on Mac OS X.
14448 NMEDIT=$lt_NMEDIT
14449
14450 # Tool to manipulate fat objects and archives on Mac OS X.
14451 LIPO=$lt_LIPO
14452
14453 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14454 OTOOL=$lt_OTOOL
14455
14456 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14457 OTOOL64=$lt_OTOOL64
14458
14459 # Old archive suffix (normally "a").
14460 libext=$libext
14461
14462 # Shared library suffix (normally ".so").
14463 shrext_cmds=$lt_shrext_cmds
14464
14465 # The commands to extract the exported symbol list from a shared archive.
14466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14467
14468 # Variables whose values should be saved in libtool wrapper scripts and
14469 # restored at link time.
14470 variables_saved_for_relink=$lt_variables_saved_for_relink
14471
14472 # Do we need the "lib" prefix for modules?
14473 need_lib_prefix=$need_lib_prefix
14474
14475 # Do we need a version for libraries?
14476 need_version=$need_version
14477
14478 # Library versioning type.
14479 version_type=$version_type
14480
14481 # Shared library runtime path variable.
14482 runpath_var=$runpath_var
14483
14484 # Shared library path variable.
14485 shlibpath_var=$shlibpath_var
14486
14487 # Is shlibpath searched before the hard-coded library search path?
14488 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14489
14490 # Format of library name prefix.
14491 libname_spec=$lt_libname_spec
14492
14493 # List of archive names. First name is the real one, the rest are links.
14494 # The last name is the one that the linker finds with -lNAME
14495 library_names_spec=$lt_library_names_spec
14496
14497 # The coded name of the library, if different from the real name.
14498 soname_spec=$lt_soname_spec
14499
14500 # Permission mode override for installation of shared libraries.
14501 install_override_mode=$lt_install_override_mode
14502
14503 # Command to use after installation of a shared archive.
14504 postinstall_cmds=$lt_postinstall_cmds
14505
14506 # Command to use after uninstallation of a shared archive.
14507 postuninstall_cmds=$lt_postuninstall_cmds
14508
14509 # Commands used to finish a libtool library installation in a directory.
14510 finish_cmds=$lt_finish_cmds
14511
14512 # As "finish_cmds", except a single script fragment to be evaled but
14513 # not shown.
14514 finish_eval=$lt_finish_eval
14515
14516 # Whether we should hardcode library paths into libraries.
14517 hardcode_into_libs=$hardcode_into_libs
14518
14519 # Compile-time system search path for libraries.
14520 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14521
14522 # Run-time system search path for libraries.
14523 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14524
14525 # Whether dlopen is supported.
14526 dlopen_support=$enable_dlopen
14527
14528 # Whether dlopen of programs is supported.
14529 dlopen_self=$enable_dlopen_self
14530
14531 # Whether dlopen of statically linked programs is supported.
14532 dlopen_self_static=$enable_dlopen_self_static
14533
14534 # Commands to strip libraries.
14535 old_striplib=$lt_old_striplib
14536 striplib=$lt_striplib
14537
14538
14539 # The linker used to build libraries.
14540 LD=$lt_LD
14541
14542 # How to create reloadable object files.
14543 reload_flag=$lt_reload_flag
14544 reload_cmds=$lt_reload_cmds
14545
14546 # Commands used to build an old-style archive.
14547 old_archive_cmds=$lt_old_archive_cmds
14548
14549 # A language specific compiler.
14550 CC=$lt_compiler
14551
14552 # Is the compiler the GNU compiler?
14553 with_gcc=$GCC
14554
14555 # Compiler flag to turn off builtin functions.
14556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14557
14558 # Additional compiler flags for building library objects.
14559 pic_flag=$lt_lt_prog_compiler_pic
14560
14561 # How to pass a linker flag through the compiler.
14562 wl=$lt_lt_prog_compiler_wl
14563
14564 # Compiler flag to prevent dynamic linking.
14565 link_static_flag=$lt_lt_prog_compiler_static
14566
14567 # Does compiler simultaneously support -c and -o options?
14568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14569
14570 # Whether or not to add -lc for building shared libraries.
14571 build_libtool_need_lc=$archive_cmds_need_lc
14572
14573 # Whether or not to disallow shared libs when runtime libs are static.
14574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14575
14576 # Compiler flag to allow reflexive dlopens.
14577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14578
14579 # Compiler flag to generate shared objects directly from archives.
14580 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14581
14582 # Whether the compiler copes with passing no objects directly.
14583 compiler_needs_object=$lt_compiler_needs_object
14584
14585 # Create an old-style archive from a shared archive.
14586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14587
14588 # Create a temporary old-style archive to link instead of a shared archive.
14589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14590
14591 # Commands used to build a shared archive.
14592 archive_cmds=$lt_archive_cmds
14593 archive_expsym_cmds=$lt_archive_expsym_cmds
14594
14595 # Commands used to build a loadable module if different from building
14596 # a shared archive.
14597 module_cmds=$lt_module_cmds
14598 module_expsym_cmds=$lt_module_expsym_cmds
14599
14600 # Whether we are building with GNU ld or not.
14601 with_gnu_ld=$lt_with_gnu_ld
14602
14603 # Flag that allows shared libraries with undefined symbols to be built.
14604 allow_undefined_flag=$lt_allow_undefined_flag
14605
14606 # Flag that enforces no undefined symbols.
14607 no_undefined_flag=$lt_no_undefined_flag
14608
14609 # Flag to hardcode \$libdir into a binary during linking.
14610 # This must work even if \$libdir does not exist
14611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14612
14613 # Whether we need a single "-rpath" flag with a separated argument.
14614 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14615
14616 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14617 # DIR into the resulting binary.
14618 hardcode_direct=$hardcode_direct
14619
14620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14621 # DIR into the resulting binary and the resulting library dependency is
14622 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14623 # library is relocated.
14624 hardcode_direct_absolute=$hardcode_direct_absolute
14625
14626 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14627 # into the resulting binary.
14628 hardcode_minus_L=$hardcode_minus_L
14629
14630 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14631 # into the resulting binary.
14632 hardcode_shlibpath_var=$hardcode_shlibpath_var
14633
14634 # Set to "yes" if building a shared library automatically hardcodes DIR
14635 # into the library and all subsequent libraries and executables linked
14636 # against it.
14637 hardcode_automatic=$hardcode_automatic
14638
14639 # Set to yes if linker adds runtime paths of dependent libraries
14640 # to runtime path list.
14641 inherit_rpath=$inherit_rpath
14642
14643 # Whether libtool must link a program against all its dependency libraries.
14644 link_all_deplibs=$link_all_deplibs
14645
14646 # Set to "yes" if exported symbols are required.
14647 always_export_symbols=$always_export_symbols
14648
14649 # The commands to list exported symbols.
14650 export_symbols_cmds=$lt_export_symbols_cmds
14651
14652 # Symbols that should not be listed in the preloaded symbols.
14653 exclude_expsyms=$lt_exclude_expsyms
14654
14655 # Symbols that must always be exported.
14656 include_expsyms=$lt_include_expsyms
14657
14658 # Commands necessary for linking programs (against libraries) with templates.
14659 prelink_cmds=$lt_prelink_cmds
14660
14661 # Commands necessary for finishing linking programs.
14662 postlink_cmds=$lt_postlink_cmds
14663
14664 # Specify filename containing input files.
14665 file_list_spec=$lt_file_list_spec
14666
14667 # How to hardcode a shared library path into an executable.
14668 hardcode_action=$hardcode_action
14669
14670 # ### END LIBTOOL CONFIG
14671
14672 _LT_EOF
14673
14674 case $host_os in
14675 aix3*)
14676 cat <<\_LT_EOF >> "$cfgfile"
14677 # AIX sometimes has problems with the GCC collect2 program. For some
14678 # reason, if we set the COLLECT_NAMES environment variable, the problems
14679 # vanish in a puff of smoke.
14680 if test "X${COLLECT_NAMES+set}" != Xset; then
14681 COLLECT_NAMES=
14682 export COLLECT_NAMES
14683 fi
14684 _LT_EOF
14685 ;;
14686 esac
14687
14688
14689 ltmain="$ac_aux_dir/ltmain.sh"
14690
14691
14692 # We use sed instead of cat because bash on DJGPP gets confused if
14693 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14694 # text mode, it properly converts lines to CR/LF. This bash problem
14695 # is reportedly fixed, but why not run on old versions too?
14696 sed '$q' "$ltmain" >> "$cfgfile" \
14697 || (rm -f "$cfgfile"; exit 1)
14698
14699 if test x"$xsi_shell" = xyes; then
14700 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14701 func_dirname ()\
14702 {\
14703 \ case ${1} in\
14704 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14705 \ * ) func_dirname_result="${3}" ;;\
14706 \ esac\
14707 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14708 && mv -f "$cfgfile.tmp" "$cfgfile" \
14709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14710 test 0 -eq $? || _lt_function_replace_fail=:
14711
14712
14713 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14714 func_basename ()\
14715 {\
14716 \ func_basename_result="${1##*/}"\
14717 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14718 && mv -f "$cfgfile.tmp" "$cfgfile" \
14719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14720 test 0 -eq $? || _lt_function_replace_fail=:
14721
14722
14723 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14724 func_dirname_and_basename ()\
14725 {\
14726 \ case ${1} in\
14727 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14728 \ * ) func_dirname_result="${3}" ;;\
14729 \ esac\
14730 \ func_basename_result="${1##*/}"\
14731 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14732 && mv -f "$cfgfile.tmp" "$cfgfile" \
14733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14734 test 0 -eq $? || _lt_function_replace_fail=:
14735
14736
14737 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14738 func_stripname ()\
14739 {\
14740 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14741 \ # positional parameters, so assign one to ordinary parameter first.\
14742 \ func_stripname_result=${3}\
14743 \ func_stripname_result=${func_stripname_result#"${1}"}\
14744 \ func_stripname_result=${func_stripname_result%"${2}"}\
14745 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14746 && mv -f "$cfgfile.tmp" "$cfgfile" \
14747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14748 test 0 -eq $? || _lt_function_replace_fail=:
14749
14750
14751 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14752 func_split_long_opt ()\
14753 {\
14754 \ func_split_long_opt_name=${1%%=*}\
14755 \ func_split_long_opt_arg=${1#*=}\
14756 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14757 && mv -f "$cfgfile.tmp" "$cfgfile" \
14758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14759 test 0 -eq $? || _lt_function_replace_fail=:
14760
14761
14762 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14763 func_split_short_opt ()\
14764 {\
14765 \ func_split_short_opt_arg=${1#??}\
14766 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14767 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14768 && mv -f "$cfgfile.tmp" "$cfgfile" \
14769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14770 test 0 -eq $? || _lt_function_replace_fail=:
14771
14772
14773 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14774 func_lo2o ()\
14775 {\
14776 \ case ${1} in\
14777 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14778 \ *) func_lo2o_result=${1} ;;\
14779 \ esac\
14780 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14781 && mv -f "$cfgfile.tmp" "$cfgfile" \
14782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14783 test 0 -eq $? || _lt_function_replace_fail=:
14784
14785
14786 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14787 func_xform ()\
14788 {\
14789 func_xform_result=${1%.*}.lo\
14790 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14791 && mv -f "$cfgfile.tmp" "$cfgfile" \
14792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14793 test 0 -eq $? || _lt_function_replace_fail=:
14794
14795
14796 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14797 func_arith ()\
14798 {\
14799 func_arith_result=$(( $* ))\
14800 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14801 && mv -f "$cfgfile.tmp" "$cfgfile" \
14802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14803 test 0 -eq $? || _lt_function_replace_fail=:
14804
14805
14806 sed -e '/^func_len ()$/,/^} # func_len /c\
14807 func_len ()\
14808 {\
14809 func_len_result=${#1}\
14810 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14811 && mv -f "$cfgfile.tmp" "$cfgfile" \
14812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14813 test 0 -eq $? || _lt_function_replace_fail=:
14814
14815 fi
14816
14817 if test x"$lt_shell_append" = xyes; then
14818 sed -e '/^func_append ()$/,/^} # func_append /c\
14819 func_append ()\
14820 {\
14821 eval "${1}+=\\${2}"\
14822 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14823 && mv -f "$cfgfile.tmp" "$cfgfile" \
14824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14825 test 0 -eq $? || _lt_function_replace_fail=:
14826
14827
14828 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14829 func_append_quoted ()\
14830 {\
14831 \ func_quote_for_eval "${2}"\
14832 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14833 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14834 && mv -f "$cfgfile.tmp" "$cfgfile" \
14835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14836 test 0 -eq $? || _lt_function_replace_fail=:
14837
14838
14839 # Save a `func_append' function call where possible by direct use of '+='
14840 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14841 && mv -f "$cfgfile.tmp" "$cfgfile" \
14842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14843 test 0 -eq $? || _lt_function_replace_fail=:
14844 else
14845 # Save a `func_append' function call even when '+=' is not available
14846 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14847 && mv -f "$cfgfile.tmp" "$cfgfile" \
14848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14849 test 0 -eq $? || _lt_function_replace_fail=:
14850 fi
14851
14852 if test x"$_lt_function_replace_fail" = x":"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14854 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14855 fi
14856
14857
14858 mv -f "$cfgfile" "$ofile" ||
14859 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14860 chmod +x "$ofile"
14861
14862 ;;
14863
14864 esac
14865 done # for ac_tag
14866
14867
14868 as_fn_exit 0
14869 _ACEOF
14870 ac_clean_files=$ac_clean_files_save
14871
14872 test $ac_write_fail = 0 ||
14873 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14874
14875
14876 # configure is writing to config.log, and then calls config.status.
14877 # config.status does its own redirection, appending to config.log.
14878 # Unfortunately, on DOS this fails, as config.log is still kept open
14879 # by configure, so config.status won't be able to write to it; its
14880 # output is simply discarded. So we exec the FD to /dev/null,
14881 # effectively closing config.log, so it can be properly (re)opened and
14882 # appended to by config.status. When coming back to configure, we
14883 # need to make the FD available again.
14884 if test "$no_create" != yes; then
14885 ac_cs_success=:
14886 ac_config_status_args=
14887 test "$silent" = yes &&
14888 ac_config_status_args="$ac_config_status_args --quiet"
14889 exec 5>/dev/null
14890 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14891 exec 5>>config.log
14892 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14893 # would make configure fail if this is the last instruction.
14894 $ac_cs_success || as_fn_exit 1
14895 fi
14896 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14898 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14899 fi
14900
14901
14902 cat >confcache <<\_ACEOF
14903 # This file is a shell script that caches the results of configure
14904 # tests run on this system so they can be shared between configure
14905 # scripts and configure runs, see configure's option --config-cache.
14906 # It is not useful on other systems. If it contains results you don't
14907 # want to keep, you may remove or edit it.
14908 #
14909 # config.status only pays attention to the cache file if you give it
14910 # the --recheck option to rerun configure.
14911 #
14912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14914 # following values.
14915
14916 _ACEOF
14917
14918 # The following way of writing the cache mishandles newlines in values,
14919 # but we know of no workaround that is simple, portable, and efficient.
14920 # So, we kill variables containing newlines.
14921 # Ultrix sh set writes to stderr and can't be redirected directly,
14922 # and sets the high bit in the cache file unless we assign to the vars.
14923 (
14924 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14925 eval ac_val=\$$ac_var
14926 case $ac_val in #(
14927 *${as_nl}*)
14928 case $ac_var in #(
14929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14931 esac
14932 case $ac_var in #(
14933 _ | IFS | as_nl) ;; #(
14934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14935 *) { eval $ac_var=; unset $ac_var;} ;;
14936 esac ;;
14937 esac
14938 done
14939
14940 (set) 2>&1 |
14941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14942 *${as_nl}ac_space=\ *)
14943 # `set' does not quote correctly, so add quotes: double-quote
14944 # substitution turns \\\\ into \\, and sed turns \\ into \.
14945 sed -n \
14946 "s/'/'\\\\''/g;
14947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14948 ;; #(
14949 *)
14950 # `set' quotes correctly as required by POSIX, so do not add quotes.
14951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14952 ;;
14953 esac |
14954 sort
14955 ) |
14956 sed '
14957 /^ac_cv_env_/b end
14958 t clear
14959 :clear
14960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14961 t end
14962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14963 :end' >>confcache
14964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14965 if test -w "$cache_file"; then
14966 if test "x$cache_file" != "x/dev/null"; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14968 $as_echo "$as_me: updating cache $cache_file" >&6;}
14969 if test ! -f "$cache_file" || test -h "$cache_file"; then
14970 cat confcache >"$cache_file"
14971 else
14972 case $cache_file in #(
14973 */* | ?:*)
14974 mv -f confcache "$cache_file"$$ &&
14975 mv -f "$cache_file"$$ "$cache_file" ;; #(
14976 *)
14977 mv -f confcache "$cache_file" ;;
14978 esac
14979 fi
14980 fi
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14983 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14984 fi
14985 fi
14986 rm -f confcache
14987
14988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14989 # Let make expand exec_prefix.
14990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14991
14992 DEFS=-DHAVE_CONFIG_H
14993
14994 ac_libobjs=
14995 ac_ltlibobjs=
14996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14997 # 1. Remove the extension, and $U if already installed.
14998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15001 # will be set to the directory where LIBOBJS objects are built.
15002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15004 done
15005 LIBOBJS=$ac_libobjs
15006
15007 LTLIBOBJS=$ac_ltlibobjs
15008
15009
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15011 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15012 if test -n "$am_sleep_pid"; then
15013 # Hide warnings about reused PIDs.
15014 wait $am_sleep_pid 2>/dev/null
15015 fi
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15017 $as_echo "done" >&6; }
15018 if test -n "$EXEEXT"; then
15019 am__EXEEXT_TRUE=
15020 am__EXEEXT_FALSE='#'
15021 else
15022 am__EXEEXT_TRUE='#'
15023 am__EXEEXT_FALSE=
15024 fi
15025
15026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15027 as_fn_error $? "conditional \"AMDEP\" was never defined.
15028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15029 fi
15030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15033 fi
15034 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
15035 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
15036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15037 fi
15038 if test -z "${BUILD_NT_SERVICES_TRUE}" && test -z "${BUILD_NT_SERVICES_FALSE}"; then
15039 as_fn_error $? "conditional \"BUILD_NT_SERVICES\" was never defined.
15040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15041 fi
15042 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
15043 as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
15044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15045 fi
15046
15047 : "${CONFIG_STATUS=./config.status}"
15048 ac_write_fail=0
15049 ac_clean_files_save=$ac_clean_files
15050 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15052 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15053 as_write_fail=0
15054 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15055 #! $SHELL
15056 # Generated by $as_me.
15057 # Run this file to recreate the current configuration.
15058 # Compiler output produced by configure, useful for debugging
15059 # configure, is in config.log if it exists.
15060
15061 debug=false
15062 ac_cs_recheck=false
15063 ac_cs_silent=false
15064
15065 SHELL=\${CONFIG_SHELL-$SHELL}
15066 export SHELL
15067 _ASEOF
15068 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15069 ## -------------------- ##
15070 ## M4sh Initialization. ##
15071 ## -------------------- ##
15072
15073 # Be more Bourne compatible
15074 DUALCASE=1; export DUALCASE # for MKS sh
15075 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15076 emulate sh
15077 NULLCMD=:
15078 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15079 # is contrary to our usage. Disable this feature.
15080 alias -g '${1+"$@"}'='"$@"'
15081 setopt NO_GLOB_SUBST
15082 else
15083 case `(set -o) 2>/dev/null` in #(
15084 *posix*) :
15085 set -o posix ;; #(
15086 *) :
15087 ;;
15088 esac
15089 fi
15090
15091
15092 as_nl='
15093 '
15094 export as_nl
15095 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15096 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15097 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15098 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15099 # Prefer a ksh shell builtin over an external printf program on Solaris,
15100 # but without wasting forks for bash or zsh.
15101 if test -z "$BASH_VERSION$ZSH_VERSION" \
15102 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15103 as_echo='print -r --'
15104 as_echo_n='print -rn --'
15105 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15106 as_echo='printf %s\n'
15107 as_echo_n='printf %s'
15108 else
15109 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15110 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15111 as_echo_n='/usr/ucb/echo -n'
15112 else
15113 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15114 as_echo_n_body='eval
15115 arg=$1;
15116 case $arg in #(
15117 *"$as_nl"*)
15118 expr "X$arg" : "X\\(.*\\)$as_nl";
15119 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15120 esac;
15121 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15122 '
15123 export as_echo_n_body
15124 as_echo_n='sh -c $as_echo_n_body as_echo'
15125 fi
15126 export as_echo_body
15127 as_echo='sh -c $as_echo_body as_echo'
15128 fi
15129
15130 # The user is always right.
15131 if test "${PATH_SEPARATOR+set}" != set; then
15132 PATH_SEPARATOR=:
15133 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15134 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15135 PATH_SEPARATOR=';'
15136 }
15137 fi
15138
15139
15140 # IFS
15141 # We need space, tab and new line, in precisely that order. Quoting is
15142 # there to prevent editors from complaining about space-tab.
15143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15144 # splitting by setting IFS to empty value.)
15145 IFS=" "" $as_nl"
15146
15147 # Find who we are. Look in the path if we contain no directory separator.
15148 as_myself=
15149 case $0 in #((
15150 *[\\/]* ) as_myself=$0 ;;
15151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152 for as_dir in $PATH
15153 do
15154 IFS=$as_save_IFS
15155 test -z "$as_dir" && as_dir=.
15156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15157 done
15158 IFS=$as_save_IFS
15159
15160 ;;
15161 esac
15162 # We did not find ourselves, most probably we were run as `sh COMMAND'
15163 # in which case we are not to be found in the path.
15164 if test "x$as_myself" = x; then
15165 as_myself=$0
15166 fi
15167 if test ! -f "$as_myself"; then
15168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15169 exit 1
15170 fi
15171
15172 # Unset variables that we do not need and which cause bugs (e.g. in
15173 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15174 # suppresses any "Segmentation fault" message there. '((' could
15175 # trigger a bug in pdksh 5.2.14.
15176 for as_var in BASH_ENV ENV MAIL MAILPATH
15177 do eval test x\${$as_var+set} = xset \
15178 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15179 done
15180 PS1='$ '
15181 PS2='> '
15182 PS4='+ '
15183
15184 # NLS nuisances.
15185 LC_ALL=C
15186 export LC_ALL
15187 LANGUAGE=C
15188 export LANGUAGE
15189
15190 # CDPATH.
15191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15192
15193
15194 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15195 # ----------------------------------------
15196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15198 # script with STATUS, using 1 if that was 0.
15199 as_fn_error ()
15200 {
15201 as_status=$1; test $as_status -eq 0 && as_status=1
15202 if test "$4"; then
15203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15204 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15205 fi
15206 $as_echo "$as_me: error: $2" >&2
15207 as_fn_exit $as_status
15208 } # as_fn_error
15209
15210
15211 # as_fn_set_status STATUS
15212 # -----------------------
15213 # Set $? to STATUS, without forking.
15214 as_fn_set_status ()
15215 {
15216 return $1
15217 } # as_fn_set_status
15218
15219 # as_fn_exit STATUS
15220 # -----------------
15221 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15222 as_fn_exit ()
15223 {
15224 set +e
15225 as_fn_set_status $1
15226 exit $1
15227 } # as_fn_exit
15228
15229 # as_fn_unset VAR
15230 # ---------------
15231 # Portably unset VAR.
15232 as_fn_unset ()
15233 {
15234 { eval $1=; unset $1;}
15235 }
15236 as_unset=as_fn_unset
15237 # as_fn_append VAR VALUE
15238 # ----------------------
15239 # Append the text in VALUE to the end of the definition contained in VAR. Take
15240 # advantage of any shell optimizations that allow amortized linear growth over
15241 # repeated appends, instead of the typical quadratic growth present in naive
15242 # implementations.
15243 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15244 eval 'as_fn_append ()
15245 {
15246 eval $1+=\$2
15247 }'
15248 else
15249 as_fn_append ()
15250 {
15251 eval $1=\$$1\$2
15252 }
15253 fi # as_fn_append
15254
15255 # as_fn_arith ARG...
15256 # ------------------
15257 # Perform arithmetic evaluation on the ARGs, and store the result in the
15258 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15259 # must be portable across $(()) and expr.
15260 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15261 eval 'as_fn_arith ()
15262 {
15263 as_val=$(( $* ))
15264 }'
15265 else
15266 as_fn_arith ()
15267 {
15268 as_val=`expr "$@" || test $? -eq 1`
15269 }
15270 fi # as_fn_arith
15271
15272
15273 if expr a : '\(a\)' >/dev/null 2>&1 &&
15274 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15275 as_expr=expr
15276 else
15277 as_expr=false
15278 fi
15279
15280 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15281 as_basename=basename
15282 else
15283 as_basename=false
15284 fi
15285
15286 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15287 as_dirname=dirname
15288 else
15289 as_dirname=false
15290 fi
15291
15292 as_me=`$as_basename -- "$0" ||
15293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15294 X"$0" : 'X\(//\)$' \| \
15295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15296 $as_echo X/"$0" |
15297 sed '/^.*\/\([^/][^/]*\)\/*$/{
15298 s//\1/
15299 q
15300 }
15301 /^X\/\(\/\/\)$/{
15302 s//\1/
15303 q
15304 }
15305 /^X\/\(\/\).*/{
15306 s//\1/
15307 q
15308 }
15309 s/.*/./; q'`
15310
15311 # Avoid depending upon Character Ranges.
15312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15315 as_cr_digits='0123456789'
15316 as_cr_alnum=$as_cr_Letters$as_cr_digits
15317
15318 ECHO_C= ECHO_N= ECHO_T=
15319 case `echo -n x` in #(((((
15320 -n*)
15321 case `echo 'xy\c'` in
15322 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15323 xy) ECHO_C='\c';;
15324 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15325 ECHO_T=' ';;
15326 esac;;
15327 *)
15328 ECHO_N='-n';;
15329 esac
15330
15331 rm -f conf$$ conf$$.exe conf$$.file
15332 if test -d conf$$.dir; then
15333 rm -f conf$$.dir/conf$$.file
15334 else
15335 rm -f conf$$.dir
15336 mkdir conf$$.dir 2>/dev/null
15337 fi
15338 if (echo >conf$$.file) 2>/dev/null; then
15339 if ln -s conf$$.file conf$$ 2>/dev/null; then
15340 as_ln_s='ln -s'
15341 # ... but there are two gotchas:
15342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15344 # In both cases, we have to default to `cp -pR'.
15345 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15346 as_ln_s='cp -pR'
15347 elif ln conf$$.file conf$$ 2>/dev/null; then
15348 as_ln_s=ln
15349 else
15350 as_ln_s='cp -pR'
15351 fi
15352 else
15353 as_ln_s='cp -pR'
15354 fi
15355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15356 rmdir conf$$.dir 2>/dev/null
15357
15358
15359 # as_fn_mkdir_p
15360 # -------------
15361 # Create "$as_dir" as a directory, including parents if necessary.
15362 as_fn_mkdir_p ()
15363 {
15364
15365 case $as_dir in #(
15366 -*) as_dir=./$as_dir;;
15367 esac
15368 test -d "$as_dir" || eval $as_mkdir_p || {
15369 as_dirs=
15370 while :; do
15371 case $as_dir in #(
15372 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15373 *) as_qdir=$as_dir;;
15374 esac
15375 as_dirs="'$as_qdir' $as_dirs"
15376 as_dir=`$as_dirname -- "$as_dir" ||
15377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15378 X"$as_dir" : 'X\(//\)[^/]' \| \
15379 X"$as_dir" : 'X\(//\)$' \| \
15380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15381 $as_echo X"$as_dir" |
15382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15383 s//\1/
15384 q
15385 }
15386 /^X\(\/\/\)[^/].*/{
15387 s//\1/
15388 q
15389 }
15390 /^X\(\/\/\)$/{
15391 s//\1/
15392 q
15393 }
15394 /^X\(\/\).*/{
15395 s//\1/
15396 q
15397 }
15398 s/.*/./; q'`
15399 test -d "$as_dir" && break
15400 done
15401 test -z "$as_dirs" || eval "mkdir $as_dirs"
15402 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15403
15404
15405 } # as_fn_mkdir_p
15406 if mkdir -p . 2>/dev/null; then
15407 as_mkdir_p='mkdir -p "$as_dir"'
15408 else
15409 test -d ./-p && rmdir ./-p
15410 as_mkdir_p=false
15411 fi
15412
15413
15414 # as_fn_executable_p FILE
15415 # -----------------------
15416 # Test if FILE is an executable regular file.
15417 as_fn_executable_p ()
15418 {
15419 test -f "$1" && test -x "$1"
15420 } # as_fn_executable_p
15421 as_test_x='test -x'
15422 as_executable_p=as_fn_executable_p
15423
15424 # Sed expression to map a string onto a valid CPP name.
15425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15426
15427 # Sed expression to map a string onto a valid variable name.
15428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15429
15430
15431 exec 6>&1
15432 ## ----------------------------------- ##
15433 ## Main body of $CONFIG_STATUS script. ##
15434 ## ----------------------------------- ##
15435 _ASEOF
15436 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15437
15438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15439 # Save the log message, to keep $0 and so on meaningful, and to
15440 # report actual input values of CONFIG_FILES etc. instead of their
15441 # values after options handling.
15442 ac_log="
15443 This file was extended by libotr $as_me 4.1.1, which was
15444 generated by GNU Autoconf 2.69. Invocation command line was
15445
15446 CONFIG_FILES = $CONFIG_FILES
15447 CONFIG_HEADERS = $CONFIG_HEADERS
15448 CONFIG_LINKS = $CONFIG_LINKS
15449 CONFIG_COMMANDS = $CONFIG_COMMANDS
15450 $ $0 $@
15451
15452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15453 "
15454
15455 _ACEOF
15456
15457 case $ac_config_files in *"
15458 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15459 esac
15460
15461 case $ac_config_headers in *"
15462 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15463 esac
15464
15465
15466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15467 # Files that config.status was made for.
15468 config_files="$ac_config_files"
15469 config_headers="$ac_config_headers"
15470 config_commands="$ac_config_commands"
15471
15472 _ACEOF
15473
15474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475 ac_cs_usage="\
15476 \`$as_me' instantiates files and other configuration actions
15477 from templates according to the current configuration. Unless the files
15478 and actions are specified as TAGs, all are instantiated by default.
15479
15480 Usage: $0 [OPTION]... [TAG]...
15481
15482 -h, --help print this help, then exit
15483 -V, --version print version number and configuration settings, then exit
15484 --config print configuration, then exit
15485 -q, --quiet, --silent
15486 do not print progress messages
15487 -d, --debug don't remove temporary files
15488 --recheck update $as_me by reconfiguring in the same conditions
15489 --file=FILE[:TEMPLATE]
15490 instantiate the configuration file FILE
15491 --header=FILE[:TEMPLATE]
15492 instantiate the configuration header FILE
15493
15494 Configuration files:
15495 $config_files
15496
15497 Configuration headers:
15498 $config_headers
15499
15500 Configuration commands:
15501 $config_commands
15502
15503 Report bugs to <[email protected]>.
15504 libotr home page: <https://otr.cypherpunks.ca>."
15505
15506 _ACEOF
15507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15508 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15509 ac_cs_version="\\
15510 libotr config.status 4.1.1
15511 configured by $0, generated by GNU Autoconf 2.69,
15512 with options \\"\$ac_cs_config\\"
15513
15514 Copyright (C) 2012 Free Software Foundation, Inc.
15515 This config.status script is free software; the Free Software Foundation
15516 gives unlimited permission to copy, distribute and modify it."
15517
15518 ac_pwd='$ac_pwd'
15519 srcdir='$srcdir'
15520 INSTALL='$INSTALL'
15521 MKDIR_P='$MKDIR_P'
15522 AWK='$AWK'
15523 test -n "\$AWK" || AWK=awk
15524 _ACEOF
15525
15526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15527 # The default lists apply if the user does not specify any file.
15528 ac_need_defaults=:
15529 while test $# != 0
15530 do
15531 case $1 in
15532 --*=?*)
15533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15534 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15535 ac_shift=:
15536 ;;
15537 --*=)
15538 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15539 ac_optarg=
15540 ac_shift=:
15541 ;;
15542 *)
15543 ac_option=$1
15544 ac_optarg=$2
15545 ac_shift=shift
15546 ;;
15547 esac
15548
15549 case $ac_option in
15550 # Handling of the options.
15551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15552 ac_cs_recheck=: ;;
15553 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15554 $as_echo "$ac_cs_version"; exit ;;
15555 --config | --confi | --conf | --con | --co | --c )
15556 $as_echo "$ac_cs_config"; exit ;;
15557 --debug | --debu | --deb | --de | --d | -d )
15558 debug=: ;;
15559 --file | --fil | --fi | --f )
15560 $ac_shift
15561 case $ac_optarg in
15562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15563 '') as_fn_error $? "missing file argument" ;;
15564 esac
15565 as_fn_append CONFIG_FILES " '$ac_optarg'"
15566 ac_need_defaults=false;;
15567 --header | --heade | --head | --hea )
15568 $ac_shift
15569 case $ac_optarg in
15570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15571 esac
15572 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15573 ac_need_defaults=false;;
15574 --he | --h)
15575 # Conflict between --help and --header
15576 as_fn_error $? "ambiguous option: \`$1'
15577 Try \`$0 --help' for more information.";;
15578 --help | --hel | -h )
15579 $as_echo "$ac_cs_usage"; exit ;;
15580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15582 ac_cs_silent=: ;;
15583
15584 # This is an error.
15585 -*) as_fn_error $? "unrecognized option: \`$1'
15586 Try \`$0 --help' for more information." ;;
15587
15588 *) as_fn_append ac_config_targets " $1"
15589 ac_need_defaults=false ;;
15590
15591 esac
15592 shift
15593 done
15594
15595 ac_configure_extra_args=
15596
15597 if $ac_cs_silent; then
15598 exec 6>/dev/null
15599 ac_configure_extra_args="$ac_configure_extra_args --silent"
15600 fi
15601
15602 _ACEOF
15603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15604 if \$ac_cs_recheck; then
15605 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15606 shift
15607 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15608 CONFIG_SHELL='$SHELL'
15609 export CONFIG_SHELL
15610 exec "\$@"
15611 fi
15612
15613 _ACEOF
15614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15615 exec 5>>config.log
15616 {
15617 echo
15618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15619 ## Running $as_me. ##
15620 _ASBOX
15621 $as_echo "$ac_log"
15622 } >&5
15623
15624 _ACEOF
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 #
15627 # INIT-COMMANDS
15628 #
15629 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15630
15631
15632 # The HP-UX ksh and POSIX shell print the target directory to stdout
15633 # if CDPATH is set.
15634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15635
15636 sed_quote_subst='$sed_quote_subst'
15637 double_quote_subst='$double_quote_subst'
15638 delay_variable_subst='$delay_variable_subst'
15639 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15640 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15641 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15642 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15643 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15644 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15645 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15646 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15647 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15648 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15649 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15650 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15651 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15652 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15653 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15654 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15655 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15656 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15657 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15658 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15659 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15660 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15661 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15662 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15663 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15664 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15665 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15666 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15667 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15668 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15669 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15670 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15671 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15672 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15673 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15674 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15675 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15676 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15677 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15678 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15679 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15680 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15681 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15682 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15683 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15684 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15685 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15686 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15687 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15688 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15689 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15690 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15691 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15692 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15693 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15694 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15695 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"`'
15696 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15697 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15698 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15699 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15700 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15701 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15702 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15703 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15704 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15705 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15706 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15707 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15708 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15709 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15710 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15711 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15712 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15713 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15714 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15715 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15716 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15717 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15718 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15719 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15720 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15721 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15722 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15723 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15724 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15725 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15726 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15727 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15728 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15729 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15730 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15731 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15732 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15733 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15734 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15735 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15736 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15737 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15738 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15739 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15740 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15741 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15742 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15743 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15744 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15745 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15746 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15747 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15748 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15749 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15750 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15751 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15752 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15753 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15754 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15755 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15756 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15757 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15758 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15759 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15760 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15761 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15762 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15763 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15764 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15765 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15766 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15767 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15768 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15769
15770 LTCC='$LTCC'
15771 LTCFLAGS='$LTCFLAGS'
15772 compiler='$compiler_DEFAULT'
15773
15774 # A function that is used when there is no print builtin or printf.
15775 func_fallback_echo ()
15776 {
15777 eval 'cat <<_LTECHO_EOF
15778 \$1
15779 _LTECHO_EOF'
15780 }
15781
15782 # Quote evaled strings.
15783 for var in SHELL \
15784 ECHO \
15785 PATH_SEPARATOR \
15786 SED \
15787 GREP \
15788 EGREP \
15789 FGREP \
15790 LD \
15791 NM \
15792 LN_S \
15793 lt_SP2NL \
15794 lt_NL2SP \
15795 reload_flag \
15796 OBJDUMP \
15797 deplibs_check_method \
15798 file_magic_cmd \
15799 file_magic_glob \
15800 want_nocaseglob \
15801 DLLTOOL \
15802 sharedlib_from_linklib_cmd \
15803 AR \
15804 AR_FLAGS \
15805 archiver_list_spec \
15806 STRIP \
15807 RANLIB \
15808 CC \
15809 CFLAGS \
15810 compiler \
15811 lt_cv_sys_global_symbol_pipe \
15812 lt_cv_sys_global_symbol_to_cdecl \
15813 lt_cv_sys_global_symbol_to_c_name_address \
15814 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15815 nm_file_list_spec \
15816 lt_prog_compiler_no_builtin_flag \
15817 lt_prog_compiler_pic \
15818 lt_prog_compiler_wl \
15819 lt_prog_compiler_static \
15820 lt_cv_prog_compiler_c_o \
15821 need_locks \
15822 MANIFEST_TOOL \
15823 DSYMUTIL \
15824 NMEDIT \
15825 LIPO \
15826 OTOOL \
15827 OTOOL64 \
15828 shrext_cmds \
15829 export_dynamic_flag_spec \
15830 whole_archive_flag_spec \
15831 compiler_needs_object \
15832 with_gnu_ld \
15833 allow_undefined_flag \
15834 no_undefined_flag \
15835 hardcode_libdir_flag_spec \
15836 hardcode_libdir_separator \
15837 exclude_expsyms \
15838 include_expsyms \
15839 file_list_spec \
15840 variables_saved_for_relink \
15841 libname_spec \
15842 library_names_spec \
15843 soname_spec \
15844 install_override_mode \
15845 finish_eval \
15846 old_striplib \
15847 striplib; do
15848 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15849 *[\\\\\\\`\\"\\\$]*)
15850 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15851 ;;
15852 *)
15853 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15854 ;;
15855 esac
15856 done
15857
15858 # Double-quote double-evaled strings.
15859 for var in reload_cmds \
15860 old_postinstall_cmds \
15861 old_postuninstall_cmds \
15862 old_archive_cmds \
15863 extract_expsyms_cmds \
15864 old_archive_from_new_cmds \
15865 old_archive_from_expsyms_cmds \
15866 archive_cmds \
15867 archive_expsym_cmds \
15868 module_cmds \
15869 module_expsym_cmds \
15870 export_symbols_cmds \
15871 prelink_cmds \
15872 postlink_cmds \
15873 postinstall_cmds \
15874 postuninstall_cmds \
15875 finish_cmds \
15876 sys_lib_search_path_spec \
15877 sys_lib_dlsearch_path_spec; do
15878 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15879 *[\\\\\\\`\\"\\\$]*)
15880 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15881 ;;
15882 *)
15883 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15884 ;;
15885 esac
15886 done
15887
15888 ac_aux_dir='$ac_aux_dir'
15889 xsi_shell='$xsi_shell'
15890 lt_shell_append='$lt_shell_append'
15891
15892 # See if we are running on zsh, and set the options which allow our
15893 # commands through without removal of \ escapes INIT.
15894 if test -n "\${ZSH_VERSION+set}" ; then
15895 setopt NO_GLOB_SUBST
15896 fi
15897
15898
15899 PACKAGE='$PACKAGE'
15900 VERSION='$VERSION'
15901 TIMESTAMP='$TIMESTAMP'
15902 RM='$RM'
15903 ofile='$ofile'
15904
15905 ac_aux_dir='$ac_aux_dir'
15906
15907
15908
15909 _ACEOF
15910
15911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15912
15913 # Handling of arguments.
15914 for ac_config_target in $ac_config_targets
15915 do
15916 case $ac_config_target in
15917 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15918 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15919 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15920 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15921 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15922 "toolkit/Makefile") CONFIG_FILES="$CONFIG_FILES toolkit/Makefile" ;;
15923 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15924 "tests/utils/Makefile") CONFIG_FILES="$CONFIG_FILES tests/utils/Makefile" ;;
15925 "libotr.pc") CONFIG_FILES="$CONFIG_FILES libotr.pc" ;;
15926 "tests/utils/tap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/utils/tap/Makefile" ;;
15927 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
15928 "tests/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression/Makefile" ;;
15929 "tests/regression/client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression/client/Makefile" ;;
15930
15931 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15932 esac
15933 done
15934
15935
15936 # If the user did not use the arguments to specify the items to instantiate,
15937 # then the envvar interface is used. Set only those that are not.
15938 # We use the long form for the default assignment because of an extremely
15939 # bizarre bug on SunOS 4.1.3.
15940 if $ac_need_defaults; then
15941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15944 fi
15945
15946 # Have a temporary directory for convenience. Make it in the build tree
15947 # simply because there is no reason against having it here, and in addition,
15948 # creating and moving files from /tmp can sometimes cause problems.
15949 # Hook for its removal unless debugging.
15950 # Note that there is a small window in which the directory will not be cleaned:
15951 # after its creation but before its name has been assigned to `$tmp'.
15952 $debug ||
15953 {
15954 tmp= ac_tmp=
15955 trap 'exit_status=$?
15956 : "${ac_tmp:=$tmp}"
15957 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15958 ' 0
15959 trap 'as_fn_exit 1' 1 2 13 15
15960 }
15961 # Create a (secure) tmp directory for tmp files.
15962
15963 {
15964 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15965 test -d "$tmp"
15966 } ||
15967 {
15968 tmp=./conf$$-$RANDOM
15969 (umask 077 && mkdir "$tmp")
15970 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15971 ac_tmp=$tmp
15972
15973 # Set up the scripts for CONFIG_FILES section.
15974 # No need to generate them if there are no CONFIG_FILES.
15975 # This happens for instance with `./config.status config.h'.
15976 if test -n "$CONFIG_FILES"; then
15977
15978
15979 ac_cr=`echo X | tr X '\015'`
15980 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15981 # But we know of no other shell where ac_cr would be empty at this
15982 # point, so we can use a bashism as a fallback.
15983 if test "x$ac_cr" = x; then
15984 eval ac_cr=\$\'\\r\'
15985 fi
15986 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15987 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15988 ac_cs_awk_cr='\\r'
15989 else
15990 ac_cs_awk_cr=$ac_cr
15991 fi
15992
15993 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15994 _ACEOF
15995
15996
15997 {
15998 echo "cat >conf$$subs.awk <<_ACEOF" &&
15999 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16000 echo "_ACEOF"
16001 } >conf$$subs.sh ||
16002 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16003 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16004 ac_delim='%!_!# '
16005 for ac_last_try in false false false false false :; do
16006 . ./conf$$subs.sh ||
16007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16008
16009 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16010 if test $ac_delim_n = $ac_delim_num; then
16011 break
16012 elif $ac_last_try; then
16013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16014 else
16015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16016 fi
16017 done
16018 rm -f conf$$subs.sh
16019
16020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16021 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16022 _ACEOF
16023 sed -n '
16024 h
16025 s/^/S["/; s/!.*/"]=/
16026 p
16027 g
16028 s/^[^!]*!//
16029 :repl
16030 t repl
16031 s/'"$ac_delim"'$//
16032 t delim
16033 :nl
16034 h
16035 s/\(.\{148\}\)..*/\1/
16036 t more1
16037 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16038 p
16039 n
16040 b repl
16041 :more1
16042 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16043 p
16044 g
16045 s/.\{148\}//
16046 t nl
16047 :delim
16048 h
16049 s/\(.\{148\}\)..*/\1/
16050 t more2
16051 s/["\\]/\\&/g; s/^/"/; s/$/"/
16052 p
16053 b
16054 :more2
16055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16056 p
16057 g
16058 s/.\{148\}//
16059 t delim
16060 ' <conf$$subs.awk | sed '
16061 /^[^""]/{
16062 N
16063 s/\n//
16064 }
16065 ' >>$CONFIG_STATUS || ac_write_fail=1
16066 rm -f conf$$subs.awk
16067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16068 _ACAWK
16069 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16070 for (key in S) S_is_set[key] = 1
16071 FS = ""
16072
16073 }
16074 {
16075 line = $ 0
16076 nfields = split(line, field, "@")
16077 substed = 0
16078 len = length(field[1])
16079 for (i = 2; i < nfields; i++) {
16080 key = field[i]
16081 keylen = length(key)
16082 if (S_is_set[key]) {
16083 value = S[key]
16084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16085 len += length(value) + length(field[++i])
16086 substed = 1
16087 } else
16088 len += 1 + keylen
16089 }
16090
16091 print line
16092 }
16093
16094 _ACAWK
16095 _ACEOF
16096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16097 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16099 else
16100 cat
16101 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16102 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16103 _ACEOF
16104
16105 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16106 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16107 # trailing colons and then remove the whole line if VPATH becomes empty
16108 # (actually we leave an empty line to preserve line numbers).
16109 if test "x$srcdir" = x.; then
16110 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16111 h
16112 s///
16113 s/^/:/
16114 s/[ ]*$/:/
16115 s/:\$(srcdir):/:/g
16116 s/:\${srcdir}:/:/g
16117 s/:@srcdir@:/:/g
16118 s/^:*//
16119 s/:*$//
16120 x
16121 s/\(=[ ]*\).*/\1/
16122 G
16123 s/\n//
16124 s/^[^=]*=[ ]*$//
16125 }'
16126 fi
16127
16128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16129 fi # test -n "$CONFIG_FILES"
16130
16131 # Set up the scripts for CONFIG_HEADERS section.
16132 # No need to generate them if there are no CONFIG_HEADERS.
16133 # This happens for instance with `./config.status Makefile'.
16134 if test -n "$CONFIG_HEADERS"; then
16135 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16136 BEGIN {
16137 _ACEOF
16138
16139 # Transform confdefs.h into an awk script `defines.awk', embedded as
16140 # here-document in config.status, that substitutes the proper values into
16141 # config.h.in to produce config.h.
16142
16143 # Create a delimiter string that does not exist in confdefs.h, to ease
16144 # handling of long lines.
16145 ac_delim='%!_!# '
16146 for ac_last_try in false false :; do
16147 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16148 if test -z "$ac_tt"; then
16149 break
16150 elif $ac_last_try; then
16151 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16152 else
16153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16154 fi
16155 done
16156
16157 # For the awk script, D is an array of macro values keyed by name,
16158 # likewise P contains macro parameters if any. Preserve backslash
16159 # newline sequences.
16160
16161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16162 sed -n '
16163 s/.\{148\}/&'"$ac_delim"'/g
16164 t rset
16165 :rset
16166 s/^[ ]*#[ ]*define[ ][ ]*/ /
16167 t def
16168 d
16169 :def
16170 s/\\$//
16171 t bsnl
16172 s/["\\]/\\&/g
16173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16174 D["\1"]=" \3"/p
16175 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16176 d
16177 :bsnl
16178 s/["\\]/\\&/g
16179 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16180 D["\1"]=" \3\\\\\\n"\\/p
16181 t cont
16182 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16183 t cont
16184 d
16185 :cont
16186 n
16187 s/.\{148\}/&'"$ac_delim"'/g
16188 t clear
16189 :clear
16190 s/\\$//
16191 t bsnlc
16192 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16193 d
16194 :bsnlc
16195 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16196 b cont
16197 ' <confdefs.h | sed '
16198 s/'"$ac_delim"'/"\\\
16199 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16200
16201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16202 for (key in D) D_is_set[key] = 1
16203 FS = ""
16204 }
16205 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16206 line = \$ 0
16207 split(line, arg, " ")
16208 if (arg[1] == "#") {
16209 defundef = arg[2]
16210 mac1 = arg[3]
16211 } else {
16212 defundef = substr(arg[1], 2)
16213 mac1 = arg[2]
16214 }
16215 split(mac1, mac2, "(") #)
16216 macro = mac2[1]
16217 prefix = substr(line, 1, index(line, defundef) - 1)
16218 if (D_is_set[macro]) {
16219 # Preserve the white space surrounding the "#".
16220 print prefix "define", macro P[macro] D[macro]
16221 next
16222 } else {
16223 # Replace #undef with comments. This is necessary, for example,
16224 # in the case of _POSIX_SOURCE, which is predefined and required
16225 # on some systems where configure will not decide to define it.
16226 if (defundef == "undef") {
16227 print "/*", prefix defundef, macro, "*/"
16228 next
16229 }
16230 }
16231 }
16232 { print }
16233 _ACAWK
16234 _ACEOF
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16237 fi # test -n "$CONFIG_HEADERS"
16238
16239
16240 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16241 shift
16242 for ac_tag
16243 do
16244 case $ac_tag in
16245 :[FHLC]) ac_mode=$ac_tag; continue;;
16246 esac
16247 case $ac_mode$ac_tag in
16248 :[FHL]*:*);;
16249 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16250 :[FH]-) ac_tag=-:-;;
16251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16252 esac
16253 ac_save_IFS=$IFS
16254 IFS=:
16255 set x $ac_tag
16256 IFS=$ac_save_IFS
16257 shift
16258 ac_file=$1
16259 shift
16260
16261 case $ac_mode in
16262 :L) ac_source=$1;;
16263 :[FH])
16264 ac_file_inputs=
16265 for ac_f
16266 do
16267 case $ac_f in
16268 -) ac_f="$ac_tmp/stdin";;
16269 *) # Look for the file first in the build tree, then in the source tree
16270 # (if the path is not absolute). The absolute path cannot be DOS-style,
16271 # because $ac_f cannot contain `:'.
16272 test -f "$ac_f" ||
16273 case $ac_f in
16274 [\\/$]*) false;;
16275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16276 esac ||
16277 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16278 esac
16279 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16280 as_fn_append ac_file_inputs " '$ac_f'"
16281 done
16282
16283 # Let's still pretend it is `configure' which instantiates (i.e., don't
16284 # use $as_me), people would be surprised to read:
16285 # /* config.h. Generated by config.status. */
16286 configure_input='Generated from '`
16287 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16288 `' by configure.'
16289 if test x"$ac_file" != x-; then
16290 configure_input="$ac_file. $configure_input"
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16292 $as_echo "$as_me: creating $ac_file" >&6;}
16293 fi
16294 # Neutralize special characters interpreted by sed in replacement strings.
16295 case $configure_input in #(
16296 *\&* | *\|* | *\\* )
16297 ac_sed_conf_input=`$as_echo "$configure_input" |
16298 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16299 *) ac_sed_conf_input=$configure_input;;
16300 esac
16301
16302 case $ac_tag in
16303 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16305 esac
16306 ;;
16307 esac
16308
16309 ac_dir=`$as_dirname -- "$ac_file" ||
16310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16311 X"$ac_file" : 'X\(//\)[^/]' \| \
16312 X"$ac_file" : 'X\(//\)$' \| \
16313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16314 $as_echo X"$ac_file" |
16315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16316 s//\1/
16317 q
16318 }
16319 /^X\(\/\/\)[^/].*/{
16320 s//\1/
16321 q
16322 }
16323 /^X\(\/\/\)$/{
16324 s//\1/
16325 q
16326 }
16327 /^X\(\/\).*/{
16328 s//\1/
16329 q
16330 }
16331 s/.*/./; q'`
16332 as_dir="$ac_dir"; as_fn_mkdir_p
16333 ac_builddir=.
16334
16335 case "$ac_dir" in
16336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16337 *)
16338 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16339 # A ".." for each directory in $ac_dir_suffix.
16340 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16341 case $ac_top_builddir_sub in
16342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16344 esac ;;
16345 esac
16346 ac_abs_top_builddir=$ac_pwd
16347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16348 # for backward compatibility:
16349 ac_top_builddir=$ac_top_build_prefix
16350
16351 case $srcdir in
16352 .) # We are building in place.
16353 ac_srcdir=.
16354 ac_top_srcdir=$ac_top_builddir_sub
16355 ac_abs_top_srcdir=$ac_pwd ;;
16356 [\\/]* | ?:[\\/]* ) # Absolute name.
16357 ac_srcdir=$srcdir$ac_dir_suffix;
16358 ac_top_srcdir=$srcdir
16359 ac_abs_top_srcdir=$srcdir ;;
16360 *) # Relative name.
16361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16362 ac_top_srcdir=$ac_top_build_prefix$srcdir
16363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16364 esac
16365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16366
16367
16368 case $ac_mode in
16369 :F)
16370 #
16371 # CONFIG_FILE
16372 #
16373
16374 case $INSTALL in
16375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16376 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16377 esac
16378 ac_MKDIR_P=$MKDIR_P
16379 case $MKDIR_P in
16380 [\\/$]* | ?:[\\/]* ) ;;
16381 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16382 esac
16383 _ACEOF
16384
16385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16386 # If the template does not know about datarootdir, expand it.
16387 # FIXME: This hack should be removed a few years after 2.60.
16388 ac_datarootdir_hack=; ac_datarootdir_seen=
16389 ac_sed_dataroot='
16390 /datarootdir/ {
16391 p
16392 q
16393 }
16394 /@datadir@/p
16395 /@docdir@/p
16396 /@infodir@/p
16397 /@localedir@/p
16398 /@mandir@/p'
16399 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16400 *datarootdir*) ac_datarootdir_seen=yes;;
16401 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16403 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16404 _ACEOF
16405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16406 ac_datarootdir_hack='
16407 s&@datadir@&$datadir&g
16408 s&@docdir@&$docdir&g
16409 s&@infodir@&$infodir&g
16410 s&@localedir@&$localedir&g
16411 s&@mandir@&$mandir&g
16412 s&\\\${datarootdir}&$datarootdir&g' ;;
16413 esac
16414 _ACEOF
16415
16416 # Neutralize VPATH when `$srcdir' = `.'.
16417 # Shell code in configure.ac might set extrasub.
16418 # FIXME: do we really want to maintain this feature?
16419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16420 ac_sed_extra="$ac_vpsub
16421 $extrasub
16422 _ACEOF
16423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16424 :t
16425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16426 s|@configure_input@|$ac_sed_conf_input|;t t
16427 s&@top_builddir@&$ac_top_builddir_sub&;t t
16428 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16429 s&@srcdir@&$ac_srcdir&;t t
16430 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16431 s&@top_srcdir@&$ac_top_srcdir&;t t
16432 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16433 s&@builddir@&$ac_builddir&;t t
16434 s&@abs_builddir@&$ac_abs_builddir&;t t
16435 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16436 s&@INSTALL@&$ac_INSTALL&;t t
16437 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16438 $ac_datarootdir_hack
16439 "
16440 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16441 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16442
16443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16444 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16446 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16448 which seems to be undefined. Please make sure it is defined" >&5
16449 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16450 which seems to be undefined. Please make sure it is defined" >&2;}
16451
16452 rm -f "$ac_tmp/stdin"
16453 case $ac_file in
16454 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16455 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16456 esac \
16457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16458 ;;
16459 :H)
16460 #
16461 # CONFIG_HEADER
16462 #
16463 if test x"$ac_file" != x-; then
16464 {
16465 $as_echo "/* $configure_input */" \
16466 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16467 } >"$ac_tmp/config.h" \
16468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16469 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16471 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16472 else
16473 rm -f "$ac_file"
16474 mv "$ac_tmp/config.h" "$ac_file" \
16475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16476 fi
16477 else
16478 $as_echo "/* $configure_input */" \
16479 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16480 || as_fn_error $? "could not create -" "$LINENO" 5
16481 fi
16482 # Compute "$ac_file"'s index in $config_headers.
16483 _am_arg="$ac_file"
16484 _am_stamp_count=1
16485 for _am_header in $config_headers :; do
16486 case $_am_header in
16487 $_am_arg | $_am_arg:* )
16488 break ;;
16489 * )
16490 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16491 esac
16492 done
16493 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16494 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16495 X"$_am_arg" : 'X\(//\)[^/]' \| \
16496 X"$_am_arg" : 'X\(//\)$' \| \
16497 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16498 $as_echo X"$_am_arg" |
16499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16500 s//\1/
16501 q
16502 }
16503 /^X\(\/\/\)[^/].*/{
16504 s//\1/
16505 q
16506 }
16507 /^X\(\/\/\)$/{
16508 s//\1/
16509 q
16510 }
16511 /^X\(\/\).*/{
16512 s//\1/
16513 q
16514 }
16515 s/.*/./; q'`/stamp-h$_am_stamp_count
16516 ;;
16517
16518 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16519 $as_echo "$as_me: executing $ac_file commands" >&6;}
16520 ;;
16521 esac
16522
16523
16524 case $ac_file$ac_mode in
16525 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16526 # Older Autoconf quotes --file arguments for eval, but not when files
16527 # are listed without --file. Let's play safe and only enable the eval
16528 # if we detect the quoting.
16529 case $CONFIG_FILES in
16530 *\'*) eval set x "$CONFIG_FILES" ;;
16531 *) set x $CONFIG_FILES ;;
16532 esac
16533 shift
16534 for mf
16535 do
16536 # Strip MF so we end up with the name of the file.
16537 mf=`echo "$mf" | sed -e 's/:.*$//'`
16538 # Check whether this is an Automake generated Makefile or not.
16539 # We used to match only the files named 'Makefile.in', but
16540 # some people rename them; so instead we look at the file content.
16541 # Grep'ing the first line is not enough: some people post-process
16542 # each Makefile.in and add a new line on top of each file to say so.
16543 # Grep'ing the whole file is not good either: AIX grep has a line
16544 # limit of 2048, but all sed's we know have understand at least 4000.
16545 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16546 dirpart=`$as_dirname -- "$mf" ||
16547 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16548 X"$mf" : 'X\(//\)[^/]' \| \
16549 X"$mf" : 'X\(//\)$' \| \
16550 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16551 $as_echo X"$mf" |
16552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16553 s//\1/
16554 q
16555 }
16556 /^X\(\/\/\)[^/].*/{
16557 s//\1/
16558 q
16559 }
16560 /^X\(\/\/\)$/{
16561 s//\1/
16562 q
16563 }
16564 /^X\(\/\).*/{
16565 s//\1/
16566 q
16567 }
16568 s/.*/./; q'`
16569 else
16570 continue
16571 fi
16572 # Extract the definition of DEPDIR, am__include, and am__quote
16573 # from the Makefile without running 'make'.
16574 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16575 test -z "$DEPDIR" && continue
16576 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16577 test -z "$am__include" && continue
16578 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16579 # Find all dependency output files, they are included files with
16580 # $(DEPDIR) in their names. We invoke sed twice because it is the
16581 # simplest approach to changing $(DEPDIR) to its actual value in the
16582 # expansion.
16583 for file in `sed -n "
16584 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16585 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16586 # Make sure the directory exists.
16587 test -f "$dirpart/$file" && continue
16588 fdir=`$as_dirname -- "$file" ||
16589 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16590 X"$file" : 'X\(//\)[^/]' \| \
16591 X"$file" : 'X\(//\)$' \| \
16592 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16593 $as_echo X"$file" |
16594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16595 s//\1/
16596 q
16597 }
16598 /^X\(\/\/\)[^/].*/{
16599 s//\1/
16600 q
16601 }
16602 /^X\(\/\/\)$/{
16603 s//\1/
16604 q
16605 }
16606 /^X\(\/\).*/{
16607 s//\1/
16608 q
16609 }
16610 s/.*/./; q'`
16611 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16612 # echo "creating $dirpart/$file"
16613 echo '# dummy' > "$dirpart/$file"
16614 done
16615 done
16616 }
16617 ;;
16618 "libtool":C)
16619
16620 # See if we are running on zsh, and set the options which allow our
16621 # commands through without removal of \ escapes.
16622 if test -n "${ZSH_VERSION+set}" ; then
16623 setopt NO_GLOB_SUBST
16624 fi
16625
16626 cfgfile="${ofile}T"
16627 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16628 $RM "$cfgfile"
16629
16630 cat <<_LT_EOF >> "$cfgfile"
16631 #! $SHELL
16632
16633 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16634 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16637 #
16638 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16639 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16640 # Foundation, Inc.
16641 # Written by Gordon Matzigkeit, 1996
16642 #
16643 # This file is part of GNU Libtool.
16644 #
16645 # GNU Libtool is free software; you can redistribute it and/or
16646 # modify it under the terms of the GNU General Public License as
16647 # published by the Free Software Foundation; either version 2 of
16648 # the License, or (at your option) any later version.
16649 #
16650 # As a special exception to the GNU General Public License,
16651 # if you distribute this file as part of a program or library that
16652 # is built using GNU Libtool, you may include this file under the
16653 # same distribution terms that you use for the rest of that program.
16654 #
16655 # GNU Libtool is distributed in the hope that it will be useful,
16656 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16657 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16658 # GNU General Public License for more details.
16659 #
16660 # You should have received a copy of the GNU General Public License
16661 # along with GNU Libtool; see the file COPYING. If not, a copy
16662 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16663 # obtained by writing to the Free Software Foundation, Inc.,
16664 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16665
16666
16667 # The names of the tagged configurations supported by this script.
16668 available_tags=""
16669
16670 # ### BEGIN LIBTOOL CONFIG
16671
16672 # Which release of libtool.m4 was used?
16673 macro_version=$macro_version
16674 macro_revision=$macro_revision
16675
16676 # Whether or not to build shared libraries.
16677 build_libtool_libs=$enable_shared
16678
16679 # Whether or not to build static libraries.
16680 build_old_libs=$enable_static
16681
16682 # What type of objects to build.
16683 pic_mode=$pic_mode
16684
16685 # Whether or not to optimize for fast installation.
16686 fast_install=$enable_fast_install
16687
16688 # Shell to use when invoking shell scripts.
16689 SHELL=$lt_SHELL
16690
16691 # An echo program that protects backslashes.
16692 ECHO=$lt_ECHO
16693
16694 # The PATH separator for the build system.
16695 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16696
16697 # The host system.
16698 host_alias=$host_alias
16699 host=$host
16700 host_os=$host_os
16701
16702 # The build system.
16703 build_alias=$build_alias
16704 build=$build
16705 build_os=$build_os
16706
16707 # A sed program that does not truncate output.
16708 SED=$lt_SED
16709
16710 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16711 Xsed="\$SED -e 1s/^X//"
16712
16713 # A grep program that handles long lines.
16714 GREP=$lt_GREP
16715
16716 # An ERE matcher.
16717 EGREP=$lt_EGREP
16718
16719 # A literal string matcher.
16720 FGREP=$lt_FGREP
16721
16722 # A BSD- or MS-compatible name lister.
16723 NM=$lt_NM
16724
16725 # Whether we need soft or hard links.
16726 LN_S=$lt_LN_S
16727
16728 # What is the maximum length of a command?
16729 max_cmd_len=$max_cmd_len
16730
16731 # Object file suffix (normally "o").
16732 objext=$ac_objext
16733
16734 # Executable file suffix (normally "").
16735 exeext=$exeext
16736
16737 # whether the shell understands "unset".
16738 lt_unset=$lt_unset
16739
16740 # turn spaces into newlines.
16741 SP2NL=$lt_lt_SP2NL
16742
16743 # turn newlines into spaces.
16744 NL2SP=$lt_lt_NL2SP
16745
16746 # convert \$build file names to \$host format.
16747 to_host_file_cmd=$lt_cv_to_host_file_cmd
16748
16749 # convert \$build files to toolchain format.
16750 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16751
16752 # An object symbol dumper.
16753 OBJDUMP=$lt_OBJDUMP
16754
16755 # Method to check whether dependent libraries are shared objects.
16756 deplibs_check_method=$lt_deplibs_check_method
16757
16758 # Command to use when deplibs_check_method = "file_magic".
16759 file_magic_cmd=$lt_file_magic_cmd
16760
16761 # How to find potential files when deplibs_check_method = "file_magic".
16762 file_magic_glob=$lt_file_magic_glob
16763
16764 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16765 want_nocaseglob=$lt_want_nocaseglob
16766
16767 # DLL creation program.
16768 DLLTOOL=$lt_DLLTOOL
16769
16770 # Command to associate shared and link libraries.
16771 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16772
16773 # The archiver.
16774 AR=$lt_AR
16775
16776 # Flags to create an archive.
16777 AR_FLAGS=$lt_AR_FLAGS
16778
16779 # How to feed a file listing to the archiver.
16780 archiver_list_spec=$lt_archiver_list_spec
16781
16782 # A symbol stripping program.
16783 STRIP=$lt_STRIP
16784
16785 # Commands used to install an old-style archive.
16786 RANLIB=$lt_RANLIB
16787 old_postinstall_cmds=$lt_old_postinstall_cmds
16788 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16789
16790 # Whether to use a lock for old archive extraction.
16791 lock_old_archive_extraction=$lock_old_archive_extraction
16792
16793 # A C compiler.
16794 LTCC=$lt_CC
16795
16796 # LTCC compiler flags.
16797 LTCFLAGS=$lt_CFLAGS
16798
16799 # Take the output of nm and produce a listing of raw symbols and C names.
16800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16801
16802 # Transform the output of nm in a proper C declaration.
16803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16804
16805 # Transform the output of nm in a C name address pair.
16806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16807
16808 # Transform the output of nm in a C name address pair when lib prefix is needed.
16809 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16810
16811 # Specify filename containing input files for \$NM.
16812 nm_file_list_spec=$lt_nm_file_list_spec
16813
16814 # The root where to search for dependent libraries,and in which our libraries should be installed.
16815 lt_sysroot=$lt_sysroot
16816
16817 # The name of the directory that contains temporary libtool files.
16818 objdir=$objdir
16819
16820 # Used to examine libraries when file_magic_cmd begins with "file".
16821 MAGIC_CMD=$MAGIC_CMD
16822
16823 # Must we lock files when doing compilation?
16824 need_locks=$lt_need_locks
16825
16826 # Manifest tool.
16827 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16828
16829 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16830 DSYMUTIL=$lt_DSYMUTIL
16831
16832 # Tool to change global to local symbols on Mac OS X.
16833 NMEDIT=$lt_NMEDIT
16834
16835 # Tool to manipulate fat objects and archives on Mac OS X.
16836 LIPO=$lt_LIPO
16837
16838 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16839 OTOOL=$lt_OTOOL
16840
16841 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16842 OTOOL64=$lt_OTOOL64
16843
16844 # Old archive suffix (normally "a").
16845 libext=$libext
16846
16847 # Shared library suffix (normally ".so").
16848 shrext_cmds=$lt_shrext_cmds
16849
16850 # The commands to extract the exported symbol list from a shared archive.
16851 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16852
16853 # Variables whose values should be saved in libtool wrapper scripts and
16854 # restored at link time.
16855 variables_saved_for_relink=$lt_variables_saved_for_relink
16856
16857 # Do we need the "lib" prefix for modules?
16858 need_lib_prefix=$need_lib_prefix
16859
16860 # Do we need a version for libraries?
16861 need_version=$need_version
16862
16863 # Library versioning type.
16864 version_type=$version_type
16865
16866 # Shared library runtime path variable.
16867 runpath_var=$runpath_var
16868
16869 # Shared library path variable.
16870 shlibpath_var=$shlibpath_var
16871
16872 # Is shlibpath searched before the hard-coded library search path?
16873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16874
16875 # Format of library name prefix.
16876 libname_spec=$lt_libname_spec
16877
16878 # List of archive names. First name is the real one, the rest are links.
16879 # The last name is the one that the linker finds with -lNAME
16880 library_names_spec=$lt_library_names_spec
16881
16882 # The coded name of the library, if different from the real name.
16883 soname_spec=$lt_soname_spec
16884
16885 # Permission mode override for installation of shared libraries.
16886 install_override_mode=$lt_install_override_mode
16887
16888 # Command to use after installation of a shared archive.
16889 postinstall_cmds=$lt_postinstall_cmds
16890
16891 # Command to use after uninstallation of a shared archive.
16892 postuninstall_cmds=$lt_postuninstall_cmds
16893
16894 # Commands used to finish a libtool library installation in a directory.
16895 finish_cmds=$lt_finish_cmds
16896
16897 # As "finish_cmds", except a single script fragment to be evaled but
16898 # not shown.
16899 finish_eval=$lt_finish_eval
16900
16901 # Whether we should hardcode library paths into libraries.
16902 hardcode_into_libs=$hardcode_into_libs
16903
16904 # Compile-time system search path for libraries.
16905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16906
16907 # Run-time system search path for libraries.
16908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16909
16910 # Whether dlopen is supported.
16911 dlopen_support=$enable_dlopen
16912
16913 # Whether dlopen of programs is supported.
16914 dlopen_self=$enable_dlopen_self
16915
16916 # Whether dlopen of statically linked programs is supported.
16917 dlopen_self_static=$enable_dlopen_self_static
16918
16919 # Commands to strip libraries.
16920 old_striplib=$lt_old_striplib
16921 striplib=$lt_striplib
16922
16923
16924 # The linker used to build libraries.
16925 LD=$lt_LD
16926
16927 # How to create reloadable object files.
16928 reload_flag=$lt_reload_flag
16929 reload_cmds=$lt_reload_cmds
16930
16931 # Commands used to build an old-style archive.
16932 old_archive_cmds=$lt_old_archive_cmds
16933
16934 # A language specific compiler.
16935 CC=$lt_compiler
16936
16937 # Is the compiler the GNU compiler?
16938 with_gcc=$GCC
16939
16940 # Compiler flag to turn off builtin functions.
16941 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16942
16943 # Additional compiler flags for building library objects.
16944 pic_flag=$lt_lt_prog_compiler_pic
16945
16946 # How to pass a linker flag through the compiler.
16947 wl=$lt_lt_prog_compiler_wl
16948
16949 # Compiler flag to prevent dynamic linking.
16950 link_static_flag=$lt_lt_prog_compiler_static
16951
16952 # Does compiler simultaneously support -c and -o options?
16953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16954
16955 # Whether or not to add -lc for building shared libraries.
16956 build_libtool_need_lc=$archive_cmds_need_lc
16957
16958 # Whether or not to disallow shared libs when runtime libs are static.
16959 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16960
16961 # Compiler flag to allow reflexive dlopens.
16962 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16963
16964 # Compiler flag to generate shared objects directly from archives.
16965 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16966
16967 # Whether the compiler copes with passing no objects directly.
16968 compiler_needs_object=$lt_compiler_needs_object
16969
16970 # Create an old-style archive from a shared archive.
16971 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16972
16973 # Create a temporary old-style archive to link instead of a shared archive.
16974 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16975
16976 # Commands used to build a shared archive.
16977 archive_cmds=$lt_archive_cmds
16978 archive_expsym_cmds=$lt_archive_expsym_cmds
16979
16980 # Commands used to build a loadable module if different from building
16981 # a shared archive.
16982 module_cmds=$lt_module_cmds
16983 module_expsym_cmds=$lt_module_expsym_cmds
16984
16985 # Whether we are building with GNU ld or not.
16986 with_gnu_ld=$lt_with_gnu_ld
16987
16988 # Flag that allows shared libraries with undefined symbols to be built.
16989 allow_undefined_flag=$lt_allow_undefined_flag
16990
16991 # Flag that enforces no undefined symbols.
16992 no_undefined_flag=$lt_no_undefined_flag
16993
16994 # Flag to hardcode \$libdir into a binary during linking.
16995 # This must work even if \$libdir does not exist
16996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16997
16998 # Whether we need a single "-rpath" flag with a separated argument.
16999 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17000
17001 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17002 # DIR into the resulting binary.
17003 hardcode_direct=$hardcode_direct
17004
17005 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17006 # DIR into the resulting binary and the resulting library dependency is
17007 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17008 # library is relocated.
17009 hardcode_direct_absolute=$hardcode_direct_absolute
17010
17011 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17012 # into the resulting binary.
17013 hardcode_minus_L=$hardcode_minus_L
17014
17015 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17016 # into the resulting binary.
17017 hardcode_shlibpath_var=$hardcode_shlibpath_var
17018
17019 # Set to "yes" if building a shared library automatically hardcodes DIR
17020 # into the library and all subsequent libraries and executables linked
17021 # against it.
17022 hardcode_automatic=$hardcode_automatic
17023
17024 # Set to yes if linker adds runtime paths of dependent libraries
17025 # to runtime path list.
17026 inherit_rpath=$inherit_rpath
17027
17028 # Whether libtool must link a program against all its dependency libraries.
17029 link_all_deplibs=$link_all_deplibs
17030
17031 # Set to "yes" if exported symbols are required.
17032 always_export_symbols=$always_export_symbols
17033
17034 # The commands to list exported symbols.
17035 export_symbols_cmds=$lt_export_symbols_cmds
17036
17037 # Symbols that should not be listed in the preloaded symbols.
17038 exclude_expsyms=$lt_exclude_expsyms
17039
17040 # Symbols that must always be exported.
17041 include_expsyms=$lt_include_expsyms
17042
17043 # Commands necessary for linking programs (against libraries) with templates.
17044 prelink_cmds=$lt_prelink_cmds
17045
17046 # Commands necessary for finishing linking programs.
17047 postlink_cmds=$lt_postlink_cmds
17048
17049 # Specify filename containing input files.
17050 file_list_spec=$lt_file_list_spec
17051
17052 # How to hardcode a shared library path into an executable.
17053 hardcode_action=$hardcode_action
17054
17055 # ### END LIBTOOL CONFIG
17056
17057 _LT_EOF
17058
17059 case $host_os in
17060 aix3*)
17061 cat <<\_LT_EOF >> "$cfgfile"
17062 # AIX sometimes has problems with the GCC collect2 program. For some
17063 # reason, if we set the COLLECT_NAMES environment variable, the problems
17064 # vanish in a puff of smoke.
17065 if test "X${COLLECT_NAMES+set}" != Xset; then
17066 COLLECT_NAMES=
17067 export COLLECT_NAMES
17068 fi
17069 _LT_EOF
17070 ;;
17071 esac
17072
17073
17074 ltmain="$ac_aux_dir/ltmain.sh"
17075
17076
17077 # We use sed instead of cat because bash on DJGPP gets confused if
17078 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17079 # text mode, it properly converts lines to CR/LF. This bash problem
17080 # is reportedly fixed, but why not run on old versions too?
17081 sed '$q' "$ltmain" >> "$cfgfile" \
17082 || (rm -f "$cfgfile"; exit 1)
17083
17084 if test x"$xsi_shell" = xyes; then
17085 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17086 func_dirname ()\
17087 {\
17088 \ case ${1} in\
17089 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17090 \ * ) func_dirname_result="${3}" ;;\
17091 \ esac\
17092 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17093 && mv -f "$cfgfile.tmp" "$cfgfile" \
17094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17095 test 0 -eq $? || _lt_function_replace_fail=:
17096
17097
17098 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17099 func_basename ()\
17100 {\
17101 \ func_basename_result="${1##*/}"\
17102 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17103 && mv -f "$cfgfile.tmp" "$cfgfile" \
17104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17105 test 0 -eq $? || _lt_function_replace_fail=:
17106
17107
17108 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17109 func_dirname_and_basename ()\
17110 {\
17111 \ case ${1} in\
17112 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17113 \ * ) func_dirname_result="${3}" ;;\
17114 \ esac\
17115 \ func_basename_result="${1##*/}"\
17116 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17117 && mv -f "$cfgfile.tmp" "$cfgfile" \
17118 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17119 test 0 -eq $? || _lt_function_replace_fail=:
17120
17121
17122 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17123 func_stripname ()\
17124 {\
17125 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17126 \ # positional parameters, so assign one to ordinary parameter first.\
17127 \ func_stripname_result=${3}\
17128 \ func_stripname_result=${func_stripname_result#"${1}"}\
17129 \ func_stripname_result=${func_stripname_result%"${2}"}\
17130 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17131 && mv -f "$cfgfile.tmp" "$cfgfile" \
17132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17133 test 0 -eq $? || _lt_function_replace_fail=:
17134
17135
17136 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17137 func_split_long_opt ()\
17138 {\
17139 \ func_split_long_opt_name=${1%%=*}\
17140 \ func_split_long_opt_arg=${1#*=}\
17141 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17142 && mv -f "$cfgfile.tmp" "$cfgfile" \
17143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17144 test 0 -eq $? || _lt_function_replace_fail=:
17145
17146
17147 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17148 func_split_short_opt ()\
17149 {\
17150 \ func_split_short_opt_arg=${1#??}\
17151 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17152 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17153 && mv -f "$cfgfile.tmp" "$cfgfile" \
17154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17155 test 0 -eq $? || _lt_function_replace_fail=:
17156
17157
17158 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17159 func_lo2o ()\
17160 {\
17161 \ case ${1} in\
17162 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17163 \ *) func_lo2o_result=${1} ;;\
17164 \ esac\
17165 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17166 && mv -f "$cfgfile.tmp" "$cfgfile" \
17167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17168 test 0 -eq $? || _lt_function_replace_fail=:
17169
17170
17171 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17172 func_xform ()\
17173 {\
17174 func_xform_result=${1%.*}.lo\
17175 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17176 && mv -f "$cfgfile.tmp" "$cfgfile" \
17177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17178 test 0 -eq $? || _lt_function_replace_fail=:
17179
17180
17181 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17182 func_arith ()\
17183 {\
17184 func_arith_result=$(( $* ))\
17185 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17186 && mv -f "$cfgfile.tmp" "$cfgfile" \
17187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17188 test 0 -eq $? || _lt_function_replace_fail=:
17189
17190
17191 sed -e '/^func_len ()$/,/^} # func_len /c\
17192 func_len ()\
17193 {\
17194 func_len_result=${#1}\
17195 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17196 && mv -f "$cfgfile.tmp" "$cfgfile" \
17197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17198 test 0 -eq $? || _lt_function_replace_fail=:
17199
17200 fi
17201
17202 if test x"$lt_shell_append" = xyes; then
17203 sed -e '/^func_append ()$/,/^} # func_append /c\
17204 func_append ()\
17205 {\
17206 eval "${1}+=\\${2}"\
17207 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17208 && mv -f "$cfgfile.tmp" "$cfgfile" \
17209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17210 test 0 -eq $? || _lt_function_replace_fail=:
17211
17212
17213 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17214 func_append_quoted ()\
17215 {\
17216 \ func_quote_for_eval "${2}"\
17217 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17218 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17219 && mv -f "$cfgfile.tmp" "$cfgfile" \
17220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17221 test 0 -eq $? || _lt_function_replace_fail=:
17222
17223
17224 # Save a `func_append' function call where possible by direct use of '+='
17225 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17226 && mv -f "$cfgfile.tmp" "$cfgfile" \
17227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17228 test 0 -eq $? || _lt_function_replace_fail=:
17229 else
17230 # Save a `func_append' function call even when '+=' is not available
17231 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17232 && mv -f "$cfgfile.tmp" "$cfgfile" \
17233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17234 test 0 -eq $? || _lt_function_replace_fail=:
17235 fi
17236
17237 if test x"$_lt_function_replace_fail" = x":"; then
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17239 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17240 fi
17241
17242
17243 mv -f "$cfgfile" "$ofile" ||
17244 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17245 chmod +x "$ofile"
17246
17247 ;;
17248
17249 esac
17250 done # for ac_tag
17251
17252
17253 as_fn_exit 0
17254 _ACEOF
17255 ac_clean_files=$ac_clean_files_save
17256
17257 test $ac_write_fail = 0 ||
17258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17259
17260
17261 # configure is writing to config.log, and then calls config.status.
17262 # config.status does its own redirection, appending to config.log.
17263 # Unfortunately, on DOS this fails, as config.log is still kept open
17264 # by configure, so config.status won't be able to write to it; its
17265 # output is simply discarded. So we exec the FD to /dev/null,
17266 # effectively closing config.log, so it can be properly (re)opened and
17267 # appended to by config.status. When coming back to configure, we
17268 # need to make the FD available again.
17269 if test "$no_create" != yes; then
17270 ac_cs_success=:
17271 ac_config_status_args=
17272 test "$silent" = yes &&
17273 ac_config_status_args="$ac_config_status_args --quiet"
17274 exec 5>/dev/null
17275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17276 exec 5>>config.log
17277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17278 # would make configure fail if this is the last instruction.
17279 $ac_cs_success || as_fn_exit 1
17280 fi
17281 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17283 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17284 fi
17285