ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/libopm/configure
Revision: 5229
Committed: Wed Dec 31 14:46:11 2014 UTC (9 years, 3 months ago) by michael
File size: 439757 byte(s)
Log Message:
- configure.ac: removed tests for select() and sys/poll.h

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libopm 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libopm'
589 PACKAGE_TARNAME='libopm'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='libopm 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/libopm.h"
596 ac_default_prefix=/usr/local/libopm
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LIBOBJS
636 LTLIBOBJS
637 LIBTOOL_DEPS
638 CPP
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 LN_S
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_maintainer_mode
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_aix_soname
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
874
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
907
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1083
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1093
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1100
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1111
1112 -with-* | --with-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
1127
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1143
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1147
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1154
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1161
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 esac
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 ;;
1183
1184 esac
1185 done
1186
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $? "missing argument to $ac_option"
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1205 do
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282 else
1283 ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures libopm 0.1 to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/libopm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1371
1372 cat <<\_ACEOF
1373
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of libopm 0.1:";;
1388 esac
1389 cat <<\_ACEOF
1390
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-maintainer-mode
1398 enable make rules and dependencies not useful (and
1399 sometimes confusing) to the casual installer
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409
1410 Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1414 both]
1415 --with-aix-soname=aix|svr4|both
1416 shared library versioning (aka "SONAME") variant to
1417 provide on AIX, [default=aix].
1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1420 compiler's sysroot if not specified).
1421
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1430 CPP C preprocessor
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to the package provider.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497 cat <<\_ACEOF
1498 libopm configure 0.1
1499 generated by GNU Autoconf 2.69
1500
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505 exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544 fi
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_link ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 test -x conftest$ac_exeext
1578 }; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_link
1595
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1607 else
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614 eval "$3=yes"
1615 else
1616 eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=$ac_status
1699 fi
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1727
1728 #ifdef __STDC__
1729 # include <limits.h>
1730 #else
1731 # include <assert.h>
1732 #endif
1733
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 ();
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main ()
1752 {
1753 return $2 ();
1754 ;
1755 return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1777 # accordingly.
1778 ac_fn_c_check_header_mongrel ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 else
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1801 else
1802 ac_header_compiler=no
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1807
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1817 else
1818 ac_header_preproc=no
1819 fi
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1823
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 yes:no: )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832 no:yes:* )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=\$ac_header_compiler"
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 fi
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_mongrel
1859 cat >config.log <<_ACEOF
1860 This file contains any messages produced by compilers while
1861 running configure, to aid debugging if configure makes a mistake.
1862
1863 It was created by libopm $as_me 0.1, which was
1864 generated by GNU Autoconf 2.69. Invocation command line was
1865
1866 $ $0 $@
1867
1868 _ACEOF
1869 exec 5>>config.log
1870 {
1871 cat <<_ASUNAME
1872 ## --------- ##
1873 ## Platform. ##
1874 ## --------- ##
1875
1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881
1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884
1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892
1893 _ASUNAME
1894
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 $as_echo "PATH: $as_dir"
1901 done
1902 IFS=$as_save_IFS
1903
1904 } >&5
1905
1906 cat >&5 <<_ACEOF
1907
1908
1909 ## ----------- ##
1910 ## Core tests. ##
1911 ## ----------- ##
1912
1913 _ACEOF
1914
1915
1916 # Keep a trace of the command line.
1917 # Strip out --no-create and --no-recursion so they do not pile up.
1918 # Strip out --silent because we don't want to record it for future runs.
1919 # Also quote any args containing shell meta-characters.
1920 # Make two passes to allow for proper duplicate-argument suppression.
1921 ac_configure_args=
1922 ac_configure_args0=
1923 ac_configure_args1=
1924 ac_must_keep_next=false
1925 for ac_pass in 1 2
1926 do
1927 for ac_arg
1928 do
1929 case $ac_arg in
1930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1932 | -silent | --silent | --silen | --sile | --sil)
1933 continue ;;
1934 *\'*)
1935 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 esac
1937 case $ac_pass in
1938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1939 2)
1940 as_fn_append ac_configure_args1 " '$ac_arg'"
1941 if test $ac_must_keep_next = true; then
1942 ac_must_keep_next=false # Got value, back to normal.
1943 else
1944 case $ac_arg in
1945 *=* | --config-cache | -C | -disable-* | --disable-* \
1946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1948 | -with-* | --with-* | -without-* | --without-* | --x)
1949 case "$ac_configure_args0 " in
1950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1951 esac
1952 ;;
1953 -* ) ac_must_keep_next=true ;;
1954 esac
1955 fi
1956 as_fn_append ac_configure_args " '$ac_arg'"
1957 ;;
1958 esac
1959 done
1960 done
1961 { ac_configure_args0=; unset ac_configure_args0;}
1962 { ac_configure_args1=; unset ac_configure_args1;}
1963
1964 # When interrupted or exit'd, cleanup temporary files, and complete
1965 # config.log. We remove comments because anyway the quotes in there
1966 # would cause problems or look ugly.
1967 # WARNING: Use '\'' to represent an apostrophe within the trap.
1968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1969 trap 'exit_status=$?
1970 # Save into config.log some information that might help in debugging.
1971 {
1972 echo
1973
1974 $as_echo "## ---------------- ##
1975 ## Cache variables. ##
1976 ## ---------------- ##"
1977 echo
1978 # The following way of writing the cache mishandles newlines in values,
1979 (
1980 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1981 eval ac_val=\$$ac_var
1982 case $ac_val in #(
1983 *${as_nl}*)
1984 case $ac_var in #(
1985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1987 esac
1988 case $ac_var in #(
1989 _ | IFS | as_nl) ;; #(
1990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1991 *) { eval $ac_var=; unset $ac_var;} ;;
1992 esac ;;
1993 esac
1994 done
1995 (set) 2>&1 |
1996 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1997 *${as_nl}ac_space=\ *)
1998 sed -n \
1999 "s/'\''/'\''\\\\'\'''\''/g;
2000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2001 ;; #(
2002 *)
2003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004 ;;
2005 esac |
2006 sort
2007 )
2008 echo
2009
2010 $as_echo "## ----------------- ##
2011 ## Output variables. ##
2012 ## ----------------- ##"
2013 echo
2014 for ac_var in $ac_subst_vars
2015 do
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
2021 done | sort
2022 echo
2023
2024 if test -n "$ac_subst_files"; then
2025 $as_echo "## ------------------- ##
2026 ## File substitutions. ##
2027 ## ------------------- ##"
2028 echo
2029 for ac_var in $ac_subst_files
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 $as_echo "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038 fi
2039
2040 if test -s confdefs.h; then
2041 $as_echo "## ----------- ##
2042 ## confdefs.h. ##
2043 ## ----------- ##"
2044 echo
2045 cat confdefs.h
2046 echo
2047 fi
2048 test "$ac_signal" != 0 &&
2049 $as_echo "$as_me: caught signal $ac_signal"
2050 $as_echo "$as_me: exit $exit_status"
2051 } >&5
2052 rm -f core *.core core.conftest.* &&
2053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054 exit $exit_status
2055 ' 0
2056 for ac_signal in 1 2 13 15; do
2057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2058 done
2059 ac_signal=0
2060
2061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2062 rm -f -r conftest* confdefs.h
2063
2064 $as_echo "/* confdefs.h */" > confdefs.h
2065
2066 # Predefined preprocessor variables.
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_NAME "$PACKAGE_NAME"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_STRING "$PACKAGE_STRING"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_URL "$PACKAGE_URL"
2090 _ACEOF
2091
2092
2093 # Let the site file select an alternate cache file if it wants to.
2094 # Prefer an explicitly selected file to automatically selected ones.
2095 ac_site_file1=NONE
2096 ac_site_file2=NONE
2097 if test -n "$CONFIG_SITE"; then
2098 # We do not want a PATH search for config.site.
2099 case $CONFIG_SITE in #((
2100 -*) ac_site_file1=./$CONFIG_SITE;;
2101 */*) ac_site_file1=$CONFIG_SITE;;
2102 *) ac_site_file1=./$CONFIG_SITE;;
2103 esac
2104 elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2107 else
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
2110 fi
2111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112 do
2113 test "x$ac_site_file" = xNONE && continue
2114 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file" \
2119 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121 as_fn_error $? "failed to load site script $ac_site_file
2122 See \`config.log' for more details" "$LINENO" 5; }
2123 fi
2124 done
2125
2126 if test -r "$cache_file"; then
2127 # Some versions of bash will fail to source /dev/null (special files
2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131 $as_echo "$as_me: loading cache $cache_file" >&6;}
2132 case $cache_file in
2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134 *) . "./$cache_file";;
2135 esac
2136 fi
2137 else
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139 $as_echo "$as_me: creating cache $cache_file" >&6;}
2140 >$cache_file
2141 fi
2142
2143 # Check that the precious variables saved in the cache have kept the same
2144 # value.
2145 ac_cache_corrupted=false
2146 for ac_var in $ac_precious_vars; do
2147 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2148 eval ac_new_set=\$ac_env_${ac_var}_set
2149 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2150 eval ac_new_val=\$ac_env_${ac_var}_value
2151 case $ac_old_set,$ac_new_set in
2152 set,)
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2156 ,set)
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2158 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2159 ac_cache_corrupted=: ;;
2160 ,);;
2161 *)
2162 if test "x$ac_old_val" != "x$ac_new_val"; then
2163 # differences in whitespace do not lead to failure.
2164 ac_old_val_w=`echo x $ac_old_val`
2165 ac_new_val_w=`echo x $ac_new_val`
2166 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2168 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2169 ac_cache_corrupted=:
2170 else
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2172 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2173 eval $ac_var=\$ac_old_val
2174 fi
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2176 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2178 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2179 fi;;
2180 esac
2181 # Pass precious variables to config.status.
2182 if test "$ac_new_set" = set; then
2183 case $ac_new_val in
2184 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 *) ac_arg=$ac_var=$ac_new_val ;;
2186 esac
2187 case " $ac_configure_args " in
2188 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2189 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2190 esac
2191 fi
2192 done
2193 if $ac_cache_corrupted; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2197 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2198 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2199 fi
2200 ## -------------------- ##
2201 ## Main body of script. ##
2202 ## -------------------- ##
2203
2204 ac_ext=c
2205 ac_cpp='$CPP $CPPFLAGS'
2206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209
2210
2211
2212 ac_config_headers="$ac_config_headers src/setup.h"
2213
2214 am__api_version='1.14'
2215
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2219 ac_aux_dir=$ac_dir
2220 ac_install_sh="$ac_aux_dir/install-sh -c"
2221 break
2222 elif test -f "$ac_dir/install.sh"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/install.sh -c"
2225 break
2226 elif test -f "$ac_dir/shtool"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/shtool install -c"
2229 break
2230 fi
2231 done
2232 if test -z "$ac_aux_dir"; then
2233 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2234 fi
2235
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2243
2244
2245 # Find a good install program. We prefer a C program (faster),
2246 # so one script is as good as another. But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2251 # AIX /bin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if ${ac_cv_path_install+:} false; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in #((
2272 ./ | .// | /[cC]/* | \
2273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2275 /usr/ucb/* ) ;;
2276 *)
2277 # OSF1 and SCO ODT 3.0 have their own names for install.
2278 # Don't use installbsd from OSF since it installs stuff as root
2279 # by default.
2280 for ac_prog in ginstall scoinst install; do
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2286 :
2287 elif test $ac_prog = install &&
2288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2290 :
2291 else
2292 rm -rf conftest.one conftest.two conftest.dir
2293 echo one > conftest.one
2294 echo two > conftest.two
2295 mkdir conftest.dir
2296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297 test -s conftest.one && test -s conftest.two &&
2298 test -s conftest.dir/conftest.one &&
2299 test -s conftest.dir/conftest.two
2300 then
2301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302 break 3
2303 fi
2304 fi
2305 fi
2306 done
2307 done
2308 ;;
2309 esac
2310
2311 done
2312 IFS=$as_save_IFS
2313
2314 rm -rf conftest.one conftest.two conftest.dir
2315
2316 fi
2317 if test "${ac_cv_path_install+set}" = set; then
2318 INSTALL=$ac_cv_path_install
2319 else
2320 # As a last resort, use the slow shell script. Don't cache a
2321 # value for INSTALL within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the value is a relative name.
2324 INSTALL=$ac_install_sh
2325 fi
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2329
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2340 # Reject unsafe characters in $srcdir or the absolute working directory
2341 # name. Accept space and tab only in the latter.
2342 am_lf='
2343 '
2344 case `pwd` in
2345 *[\\\"\#\$\&\'\`$am_lf]*)
2346 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2347 esac
2348 case $srcdir in
2349 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2350 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2351 esac
2352
2353 # Do 'set' in a subshell so we don't clobber the current shell's
2354 # arguments. Must try -L first in case configure is actually a
2355 # symlink; some systems play weird games with the mod time of symlinks
2356 # (eg FreeBSD returns the mod time of the symlink's containing
2357 # directory).
2358 if (
2359 am_has_slept=no
2360 for am_try in 1 2; do
2361 echo "timestamp, slept: $am_has_slept" > conftest.file
2362 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363 if test "$*" = "X"; then
2364 # -L didn't work.
2365 set X `ls -t "$srcdir/configure" conftest.file`
2366 fi
2367 if test "$*" != "X $srcdir/configure conftest.file" \
2368 && test "$*" != "X conftest.file $srcdir/configure"; then
2369
2370 # If neither matched, then we have a broken ls. This can happen
2371 # if, for instance, CONFIG_SHELL is bash and it inherits a
2372 # broken ls alias from the environment. This has actually
2373 # happened. Such a system could not be considered "sane".
2374 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2375 alias in your environment" "$LINENO" 5
2376 fi
2377 if test "$2" = conftest.file || test $am_try -eq 2; then
2378 break
2379 fi
2380 # Just in case.
2381 sleep 1
2382 am_has_slept=yes
2383 done
2384 test "$2" = conftest.file
2385 )
2386 then
2387 # Ok.
2388 :
2389 else
2390 as_fn_error $? "newly created file is older than distributed files!
2391 Check your system clock" "$LINENO" 5
2392 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2394 $as_echo "yes" >&6; }
2395 # If we didn't sleep, we still need to ensure time stamps of config.status and
2396 # generated files are strictly newer.
2397 am_sleep_pid=
2398 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2399 ( sleep 1 ) &
2400 am_sleep_pid=$!
2401 fi
2402
2403 rm -f conftest.file
2404
2405 test "$program_prefix" != NONE &&
2406 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2407 # Use a double $ so make ignores it.
2408 test "$program_suffix" != NONE &&
2409 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2410 # Double any \ or $.
2411 # By default was `s,x,x', remove it if useless.
2412 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2413 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2414
2415 # expand $ac_aux_dir to an absolute path
2416 am_aux_dir=`cd $ac_aux_dir && pwd`
2417
2418 if test x"${MISSING+set}" != xset; then
2419 case $am_aux_dir in
2420 *\ * | *\ *)
2421 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2422 *)
2423 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2424 esac
2425 fi
2426 # Use eval to expand $SHELL
2427 if eval "$MISSING --is-lightweight"; then
2428 am_missing_run="$MISSING "
2429 else
2430 am_missing_run=
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2432 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2433 fi
2434
2435 if test x"${install_sh}" != xset; then
2436 case $am_aux_dir in
2437 *\ * | *\ *)
2438 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2439 *)
2440 install_sh="\${SHELL} $am_aux_dir/install-sh"
2441 esac
2442 fi
2443
2444 # Installed binaries are usually stripped using 'strip' when the user
2445 # run "make install-strip". However 'strip' might not be the right
2446 # tool to use in cross-compilation environments, therefore Automake
2447 # will honor the 'STRIP' environment variable to overrule this program.
2448 if test "$cross_compiling" != no; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$STRIP"; then
2458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 STRIP=$ac_cv_prog_STRIP
2478 if test -n "$STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2480 $as_echo "$STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486
2487 fi
2488 if test -z "$ac_cv_prog_STRIP"; then
2489 ac_ct_STRIP=$STRIP
2490 # Extract the first word of "strip", so it can be a program name with args.
2491 set dummy strip; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$ac_ct_STRIP"; then
2498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2507 ac_cv_prog_ac_ct_STRIP="strip"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2518 if test -n "$ac_ct_STRIP"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2520 $as_echo "$ac_ct_STRIP" >&6; }
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2524 fi
2525
2526 if test "x$ac_ct_STRIP" = x; then
2527 STRIP=":"
2528 else
2529 case $cross_compiling:$ac_tool_warned in
2530 yes:)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2534 esac
2535 STRIP=$ac_ct_STRIP
2536 fi
2537 else
2538 STRIP="$ac_cv_prog_STRIP"
2539 fi
2540
2541 fi
2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2545 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2546 if test -z "$MKDIR_P"; then
2547 if ${ac_cv_path_mkdir+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_prog in mkdir gmkdir; do
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2558 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2559 'mkdir (GNU coreutils) '* | \
2560 'mkdir (coreutils) '* | \
2561 'mkdir (fileutils) '4.1*)
2562 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2563 break 3;;
2564 esac
2565 done
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571
2572 test -d ./--version && rmdir ./--version
2573 if test "${ac_cv_path_mkdir+set}" = set; then
2574 MKDIR_P="$ac_cv_path_mkdir -p"
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for MKDIR_P within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 MKDIR_P="$ac_install_sh -d"
2581 fi
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2584 $as_echo "$MKDIR_P" >&6; }
2585
2586 for ac_prog in gawk mawk nawk awk
2587 do
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy $ac_prog; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_AWK+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$AWK"; then
2596 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_AWK="$ac_prog"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 AWK=$ac_cv_prog_AWK
2616 if test -n "$AWK"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2618 $as_echo "$AWK" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 test -n "$AWK" && break
2626 done
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2629 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2630 set x ${MAKE-make}
2631 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2632 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 cat >conftest.make <<\_ACEOF
2636 SHELL = /bin/sh
2637 all:
2638 @echo '@@@%%%=$(MAKE)=@@@%%%'
2639 _ACEOF
2640 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2641 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2642 *@@@%%%=?*=@@@%%%*)
2643 eval ac_cv_prog_make_${ac_make}_set=yes;;
2644 *)
2645 eval ac_cv_prog_make_${ac_make}_set=no;;
2646 esac
2647 rm -f conftest.make
2648 fi
2649 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651 $as_echo "yes" >&6; }
2652 SET_MAKE=
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 SET_MAKE="MAKE=${MAKE-make}"
2657 fi
2658
2659 rm -rf .tst 2>/dev/null
2660 mkdir .tst 2>/dev/null
2661 if test -d .tst; then
2662 am__leading_dot=.
2663 else
2664 am__leading_dot=_
2665 fi
2666 rmdir .tst 2>/dev/null
2667
2668 # Check whether --enable-silent-rules was given.
2669 if test "${enable_silent_rules+set}" = set; then :
2670 enableval=$enable_silent_rules;
2671 fi
2672
2673 case $enable_silent_rules in # (((
2674 yes) AM_DEFAULT_VERBOSITY=0;;
2675 no) AM_DEFAULT_VERBOSITY=1;;
2676 *) AM_DEFAULT_VERBOSITY=1;;
2677 esac
2678 am_make=${MAKE-make}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2680 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2681 if ${am_cv_make_support_nested_variables+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if $as_echo 'TRUE=$(BAR$(V))
2685 BAR0=false
2686 BAR1=true
2687 V=1
2688 am__doit:
2689 @$(TRUE)
2690 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2691 am_cv_make_support_nested_variables=yes
2692 else
2693 am_cv_make_support_nested_variables=no
2694 fi
2695 fi
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2697 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2698 if test $am_cv_make_support_nested_variables = yes; then
2699 AM_V='$(V)'
2700 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2701 else
2702 AM_V=$AM_DEFAULT_VERBOSITY
2703 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2704 fi
2705 AM_BACKSLASH='\'
2706
2707 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2708 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2709 # is not polluted with repeated "-I."
2710 am__isrc=' -I$(srcdir)'
2711 # test to see if srcdir already configured
2712 if test -f $srcdir/config.status; then
2713 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2714 fi
2715 fi
2716
2717 # test whether we have cygpath
2718 if test -z "$CYGPATH_W"; then
2719 if (cygpath --version) >/dev/null 2>/dev/null; then
2720 CYGPATH_W='cygpath -w'
2721 else
2722 CYGPATH_W=echo
2723 fi
2724 fi
2725
2726
2727 # Define the identity of the package.
2728 PACKAGE='libopm'
2729 VERSION='0.1'
2730
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define PACKAGE "$PACKAGE"
2734 _ACEOF
2735
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define VERSION "$VERSION"
2739 _ACEOF
2740
2741 # Some tools Automake needs.
2742
2743 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2744
2745
2746 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2747
2748
2749 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2750
2751
2752 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2753
2754
2755 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2756
2757 # For better backward compatibility. To be removed once Automake 1.9.x
2758 # dies out for good. For more background, see:
2759 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2760 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2761 mkdir_p='$(MKDIR_P)'
2762
2763 # We need awk for the "check" target. The system "awk" is bad on
2764 # some platforms.
2765 # Always define AMTAR for backward compatibility. Yes, it's still used
2766 # in the wild :-( We should find a proper way to deprecate it ...
2767 AMTAR='$${TAR-tar}'
2768
2769
2770 # We'll loop over all known methods to create a tar archive until one works.
2771 _am_tools='gnutar pax cpio none'
2772
2773 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2774
2775
2776
2777
2778
2779
2780 # POSIX will say in a future version that running "rm -f" with no argument
2781 # is OK; and we want to be able to make that assumption in our Makefile
2782 # recipes. So use an aggressive probe to check that the usage we want is
2783 # actually supported "in the wild" to an acceptable degree.
2784 # See automake bug#10828.
2785 # To make any issue more visible, cause the running configure to be aborted
2786 # by default if the 'rm' program in use doesn't match our expectations; the
2787 # user can still override this though.
2788 if rm -f && rm -fr && rm -rf; then : OK; else
2789 cat >&2 <<'END'
2790 Oops!
2791
2792 Your 'rm' program seems unable to run without file operands specified
2793 on the command line, even when the '-f' option is present. This is contrary
2794 to the behaviour of most rm programs out there, and not conforming with
2795 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2796
2797 Please tell bug-automake@gnu.org about your system, including the value
2798 of your $PATH and any error possibly output before this message. This
2799 can help us improve future automake versions.
2800
2801 END
2802 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2803 echo 'Configuration will proceed anyway, since you have set the' >&2
2804 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2805 echo >&2
2806 else
2807 cat >&2 <<'END'
2808 Aborting the configuration process, to ensure you take notice of the issue.
2809
2810 You can download and install GNU coreutils to get an 'rm' implementation
2811 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2812
2813 If you want to complete the configuration process using your problematic
2814 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2815 to "yes", and re-run configure.
2816
2817 END
2818 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2819 fi
2820 fi
2821
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2824 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2825 # Check whether --enable-maintainer-mode was given.
2826 if test "${enable_maintainer_mode+set}" = set; then :
2827 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2828 else
2829 USE_MAINTAINER_MODE=no
2830 fi
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2833 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2834 if test $USE_MAINTAINER_MODE = yes; then
2835 MAINTAINER_MODE_TRUE=
2836 MAINTAINER_MODE_FALSE='#'
2837 else
2838 MAINTAINER_MODE_TRUE='#'
2839 MAINTAINER_MODE_FALSE=
2840 fi
2841
2842 MAINT=$MAINTAINER_MODE_TRUE
2843
2844
2845
2846 DEPDIR="${am__leading_dot}deps"
2847
2848 ac_config_commands="$ac_config_commands depfiles"
2849
2850
2851 am_make=${MAKE-make}
2852 cat > confinc << 'END'
2853 am__doit:
2854 @echo this is the am__doit target
2855 .PHONY: am__doit
2856 END
2857 # If we don't find an include directive, just comment out the code.
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2859 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2860 am__include="#"
2861 am__quote=
2862 _am_result=none
2863 # First try GNU make style include.
2864 echo "include confinc" > confmf
2865 # Ignore all kinds of additional output from 'make'.
2866 case `$am_make -s -f confmf 2> /dev/null` in #(
2867 *the\ am__doit\ target*)
2868 am__include=include
2869 am__quote=
2870 _am_result=GNU
2871 ;;
2872 esac
2873 # Now try BSD make style include.
2874 if test "$am__include" = "#"; then
2875 echo '.include "confinc"' > confmf
2876 case `$am_make -s -f confmf 2> /dev/null` in #(
2877 *the\ am__doit\ target*)
2878 am__include=.include
2879 am__quote="\""
2880 _am_result=BSD
2881 ;;
2882 esac
2883 fi
2884
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2887 $as_echo "$_am_result" >&6; }
2888 rm -f confinc confmf
2889
2890 # Check whether --enable-dependency-tracking was given.
2891 if test "${enable_dependency_tracking+set}" = set; then :
2892 enableval=$enable_dependency_tracking;
2893 fi
2894
2895 if test "x$enable_dependency_tracking" != xno; then
2896 am_depcomp="$ac_aux_dir/depcomp"
2897 AMDEPBACKSLASH='\'
2898 am__nodep='_no'
2899 fi
2900 if test "x$enable_dependency_tracking" != xno; then
2901 AMDEP_TRUE=
2902 AMDEP_FALSE='#'
2903 else
2904 AMDEP_TRUE='#'
2905 AMDEP_FALSE=
2906 fi
2907
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_CC+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 fi
2953 if test -z "$ac_cv_prog_CC"; then
2954 ac_ct_CC=$CC
2955 # Extract the first word of "gcc", so it can be a program name with args.
2956 set dummy gcc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_ac_ct_CC="gcc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 $as_echo "$ac_ct_CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991 if test "x$ac_ct_CC" = x; then
2992 CC=""
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995 yes:)
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned=yes ;;
2999 esac
3000 CC=$ac_ct_CC
3001 fi
3002 else
3003 CC="$ac_cv_prog_CC"
3004 fi
3005
3006 if test -z "$CC"; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}cc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_CC="${ac_tool_prefix}cc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 $as_echo "$CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 fi
3047 if test -z "$CC"; then
3048 # Extract the first word of "cc", so it can be a program name with args.
3049 set dummy cc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 ac_prog_rejected=no
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3067 ac_prog_rejected=yes
3068 continue
3069 fi
3070 ac_cv_prog_CC="cc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 if test $ac_prog_rejected = yes; then
3079 # We found a bogon in the path, so make sure we never use it.
3080 set dummy $ac_cv_prog_CC
3081 shift
3082 if test $# != 0; then
3083 # We chose a different compiler from the bogus one.
3084 # However, it has the same basename, so the bogon will be chosen
3085 # first if we set CC to just the basename; use the full file name.
3086 shift
3087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088 fi
3089 fi
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102 fi
3103 if test -z "$CC"; then
3104 if test -n "$ac_tool_prefix"; then
3105 for ac_prog in cl.exe
3106 do
3107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 test -n "$CC" && break
3145 done
3146 fi
3147 if test -z "$CC"; then
3148 ac_ct_CC=$CC
3149 for ac_prog in cl.exe
3150 do
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$ac_ct_CC"; then
3159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_ac_ct_CC="$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172 done
3173 done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3179 if test -n "$ac_ct_CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3181 $as_echo "$ac_ct_CC" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 test -n "$ac_ct_CC" && break
3189 done
3190
3191 if test "x$ac_ct_CC" = x; then
3192 CC=""
3193 else
3194 case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200 CC=$ac_ct_CC
3201 fi
3202 fi
3203
3204 fi
3205
3206
3207 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "no acceptable C compiler found in \$PATH
3210 See \`config.log' for more details" "$LINENO" 5; }
3211
3212 # Provide some information about the compiler.
3213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3214 set X $ac_compile
3215 ac_compiler=$2
3216 for ac_option in --version -v -V -qversion; do
3217 { { ac_try="$ac_compiler $ac_option >&5"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3225 ac_status=$?
3226 if test -s conftest.err; then
3227 sed '10a\
3228 ... rest of stderr output deleted ...
3229 10q' conftest.err >conftest.er1
3230 cat conftest.er1 >&5
3231 fi
3232 rm -f conftest.er1 conftest.err
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }
3235 done
3236
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239
3240 int
3241 main ()
3242 {
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 ac_clean_files_save=$ac_clean_files
3249 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3250 # Try to create an executable without -o first, disregard a.out.
3251 # It will help us diagnose broken compilers, and finding out an intuition
3252 # of exeext.
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3254 $as_echo_n "checking whether the C compiler works... " >&6; }
3255 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3256
3257 # The possible output files:
3258 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3259
3260 ac_rmfiles=
3261 for ac_file in $ac_files
3262 do
3263 case $ac_file in
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3265 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3266 esac
3267 done
3268 rm -f $ac_rmfiles
3269
3270 if { { ac_try="$ac_link_default"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_link_default") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3282 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3283 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3284 # so that the user can short-circuit this test for compilers unknown to
3285 # Autoconf.
3286 for ac_file in $ac_files ''
3287 do
3288 test -f "$ac_file" || continue
3289 case $ac_file in
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3291 ;;
3292 [ab].out )
3293 # We found the default executable, but exeext='' is most
3294 # certainly right.
3295 break;;
3296 *.* )
3297 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3298 then :; else
3299 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 fi
3301 # We set ac_cv_exeext here because the later test for it is not
3302 # safe: cross compilers may not add the suffix if given an `-o'
3303 # argument, so we may need to know it at that point already.
3304 # Even if this section looks crufty: it has the advantage of
3305 # actually working.
3306 break;;
3307 * )
3308 break;;
3309 esac
3310 done
3311 test "$ac_cv_exeext" = no && ac_cv_exeext=
3312
3313 else
3314 ac_file=''
3315 fi
3316 if test -z "$ac_file"; then :
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error 77 "C compiler cannot create executables
3325 See \`config.log' for more details" "$LINENO" 5; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3333 $as_echo "$ac_file" >&6; }
3334 ac_exeext=$ac_cv_exeext
3335
3336 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3337 ac_clean_files=$ac_clean_files_save
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3339 $as_echo_n "checking for suffix of executables... " >&6; }
3340 if { { ac_try="$ac_link"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_link") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3354 # `rm'.
3355 for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 break;;
3361 * ) break;;
3362 esac
3363 done
3364 else
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details" "$LINENO" 5; }
3369 fi
3370 rm -f conftest conftest$ac_cv_exeext
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3372 $as_echo "$ac_cv_exeext" >&6; }
3373
3374 rm -f conftest.$ac_ext
3375 EXEEXT=$ac_cv_exeext
3376 ac_exeext=$EXEEXT
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379 #include <stdio.h>
3380 int
3381 main ()
3382 {
3383 FILE *f = fopen ("conftest.out", "w");
3384 return ferror (f) || fclose (f) != 0;
3385
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 ac_clean_files="$ac_clean_files conftest.out"
3391 # Check that the compiler produces executables we can run. If not, either
3392 # the compiler is broken, or we cross compile.
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3394 $as_echo_n "checking whether we are cross compiling... " >&6; }
3395 if test "$cross_compiling" != yes; then
3396 { { ac_try="$ac_link"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3407 if { ac_try='./conftest$ac_cv_exeext'
3408 { { case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_try") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; }; then
3418 cross_compiling=no
3419 else
3420 if test "$cross_compiling" = maybe; then
3421 cross_compiling=yes
3422 else
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot run C compiled programs.
3426 If you meant to cross compile, use \`--host'.
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 fi
3429 fi
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3432 $as_echo "$cross_compiling" >&6; }
3433
3434 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3435 ac_clean_files=$ac_clean_files_save
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3437 $as_echo_n "checking for suffix of object files... " >&6; }
3438 if ${ac_cv_objext+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 rm -f conftest.o conftest.obj
3453 if { { ac_try="$ac_compile"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_compile") 2>&5
3461 ac_status=$?
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }; then :
3464 for ac_file in conftest.o conftest.obj conftest.*; do
3465 test -f "$ac_file" || continue;
3466 case $ac_file in
3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3469 break;;
3470 esac
3471 done
3472 else
3473 $as_echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot compute suffix of object files: cannot compile
3479 See \`config.log' for more details" "$LINENO" 5; }
3480 fi
3481 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3484 $as_echo "$ac_cv_objext" >&6; }
3485 OBJEXT=$ac_cv_objext
3486 ac_objext=$OBJEXT
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3488 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3489 if ${ac_cv_c_compiler_gnu+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498 #ifndef __GNUC__
3499 choke me
3500 #endif
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507 ac_compiler_gnu=yes
3508 else
3509 ac_compiler_gnu=no
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3517 if test $ac_compiler_gnu = yes; then
3518 GCC=yes
3519 else
3520 GCC=
3521 fi
3522 ac_test_CFLAGS=${CFLAGS+set}
3523 ac_save_CFLAGS=$CFLAGS
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3526 if ${ac_cv_prog_cc_g+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 ac_save_c_werror_flag=$ac_c_werror_flag
3530 ac_c_werror_flag=yes
3531 ac_cv_prog_cc_g=no
3532 CFLAGS="-g"
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535
3536 int
3537 main ()
3538 {
3539
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_g=yes
3546 else
3547 CFLAGS=""
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main ()
3553 {
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560
3561 else
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563 CFLAGS="-g"
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576 ac_cv_prog_cc_g=yes
3577 fi
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 fi
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3586 $as_echo "$ac_cv_prog_cc_g" >&6; }
3587 if test "$ac_test_CFLAGS" = set; then
3588 CFLAGS=$ac_save_CFLAGS
3589 elif test $ac_cv_prog_cc_g = yes; then
3590 if test "$GCC" = yes; then
3591 CFLAGS="-g -O2"
3592 else
3593 CFLAGS="-g"
3594 fi
3595 else
3596 if test "$GCC" = yes; then
3597 CFLAGS="-O2"
3598 else
3599 CFLAGS=
3600 fi
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3604 if ${ac_cv_prog_cc_c89+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_cv_prog_cc_c89=no
3608 ac_save_CC=$CC
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611 #include <stdarg.h>
3612 #include <stdio.h>
3613 struct stat;
3614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3615 struct buf { int x; };
3616 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3617 static char *e (p, i)
3618 char **p;
3619 int i;
3620 {
3621 return p[i];
3622 }
3623 static char *f (char * (*g) (char **, int), char **p, ...)
3624 {
3625 char *s;
3626 va_list v;
3627 va_start (v,p);
3628 s = g (p, va_arg (v,int));
3629 va_end (v);
3630 return s;
3631 }
3632
3633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3634 function prototypes and stuff, but not '\xHH' hex character constants.
3635 These don't provoke an error unfortunately, instead are silently treated
3636 as 'x'. The following induces an error, until -std is added to get
3637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3638 array size at least. It's necessary to write '\x00'==0 to get something
3639 that's true only with -std. */
3640 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3641
3642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3643 inside strings and character constants. */
3644 #define FOO(x) 'x'
3645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3646
3647 int test (int i, double x);
3648 struct s1 {int (*f) (int a);};
3649 struct s2 {int (*f) (double a);};
3650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3651 int argc;
3652 char **argv;
3653 int
3654 main ()
3655 {
3656 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3663 do
3664 CC="$ac_save_CC $ac_arg"
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_cv_prog_cc_c89=$ac_arg
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext
3669 test "x$ac_cv_prog_cc_c89" != "xno" && break
3670 done
3671 rm -f conftest.$ac_ext
3672 CC=$ac_save_CC
3673
3674 fi
3675 # AC_CACHE_VAL
3676 case "x$ac_cv_prog_cc_c89" in
3677 x)
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3679 $as_echo "none needed" >&6; } ;;
3680 xno)
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3682 $as_echo "unsupported" >&6; } ;;
3683 *)
3684 CC="$CC $ac_cv_prog_cc_c89"
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3687 esac
3688 if test "x$ac_cv_prog_cc_c89" != xno; then :
3689
3690 fi
3691
3692 ac_ext=c
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3704 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3705 if ${am_cv_prog_cc_c_o+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 # Make sure it works both with $CC and with simple cc.
3720 # Following AC_PROG_CC_C_O, we do the test twice because some
3721 # compilers refuse to overwrite an existing .o file with -o,
3722 # though they will create one.
3723 am_cv_prog_cc_c_o=yes
3724 for am_i in 1 2; do
3725 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3726 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } \
3730 && test -f conftest2.$ac_objext; then
3731 : OK
3732 else
3733 am_cv_prog_cc_c_o=no
3734 break
3735 fi
3736 done
3737 rm -f core conftest*
3738 unset am_i
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3741 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3742 if test "$am_cv_prog_cc_c_o" != yes; then
3743 # Losing compiler, so override with the script.
3744 # FIXME: It is wrong to rewrite CC.
3745 # But if we don't then we get into trouble of one sort or another.
3746 # A longer-term fix would be to have automake use am__CC in this case,
3747 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3748 CC="$am_aux_dir/compile $CC"
3749 fi
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756
3757 depcc="$CC" am_compiler_list=
3758
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3760 $as_echo_n "checking dependency style of $depcc... " >&6; }
3761 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3765 # We make a subdir and do the tests there. Otherwise we can end up
3766 # making bogus files that we don't know about and never remove. For
3767 # instance it was reported that on HP-UX the gcc test will end up
3768 # making a dummy file named 'D' -- because '-MD' means "put the output
3769 # in D".
3770 rm -rf conftest.dir
3771 mkdir conftest.dir
3772 # Copy depcomp to subdir because otherwise we won't find it if we're
3773 # using a relative directory.
3774 cp "$am_depcomp" conftest.dir
3775 cd conftest.dir
3776 # We will build objects and dependencies in a subdirectory because
3777 # it helps to detect inapplicable dependency modes. For instance
3778 # both Tru64's cc and ICC support -MD to output dependencies as a
3779 # side effect of compilation, but ICC will put the dependencies in
3780 # the current directory while Tru64 will put them in the object
3781 # directory.
3782 mkdir sub
3783
3784 am_cv_CC_dependencies_compiler_type=none
3785 if test "$am_compiler_list" = ""; then
3786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3787 fi
3788 am__universal=false
3789 case " $depcc " in #(
3790 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3791 esac
3792
3793 for depmode in $am_compiler_list; do
3794 # Setup a source with many dependencies, because some compilers
3795 # like to wrap large dependency lists on column 80 (with \), and
3796 # we should not choose a depcomp mode which is confused by this.
3797 #
3798 # We need to recreate these files for each test, as the compiler may
3799 # overwrite some of them when testing with obscure command lines.
3800 # This happens at least with the AIX C compiler.
3801 : > sub/conftest.c
3802 for i in 1 2 3 4 5 6; do
3803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3804 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3805 # Solaris 10 /bin/sh.
3806 echo '/* dummy */' > sub/conftst$i.h
3807 done
3808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3809
3810 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3811 # mode. It turns out that the SunPro C++ compiler does not properly
3812 # handle '-M -o', and we need to detect this. Also, some Intel
3813 # versions had trouble with output in subdirs.
3814 am__obj=sub/conftest.${OBJEXT-o}
3815 am__minus_obj="-o $am__obj"
3816 case $depmode in
3817 gcc)
3818 # This depmode causes a compiler race in universal mode.
3819 test "$am__universal" = false || continue
3820 ;;
3821 nosideeffect)
3822 # After this tag, mechanisms are not by side-effect, so they'll
3823 # only be used when explicitly requested.
3824 if test "x$enable_dependency_tracking" = xyes; then
3825 continue
3826 else
3827 break
3828 fi
3829 ;;
3830 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3831 # This compiler won't grok '-c -o', but also, the minuso test has
3832 # not run yet. These depmodes are late enough in the game, and
3833 # so weak that their functioning should not be impacted.
3834 am__obj=conftest.${OBJEXT-o}
3835 am__minus_obj=
3836 ;;
3837 none) break ;;
3838 esac
3839 if depmode=$depmode \
3840 source=sub/conftest.c object=$am__obj \
3841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3843 >/dev/null 2>conftest.err &&
3844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848 # icc doesn't choke on unknown options, it will just issue warnings
3849 # or remarks (even with -Werror). So we grep stderr for any message
3850 # that says an option was ignored or not supported.
3851 # When given -MP, icc 7.0 and 7.1 complain thusly:
3852 # icc: Command line warning: ignoring option '-M'; no argument required
3853 # The diagnosis changed in icc 8.0:
3854 # icc: Command line remark: option '-MP' not supported
3855 if (grep 'ignoring option' conftest.err ||
3856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857 am_cv_CC_dependencies_compiler_type=$depmode
3858 break
3859 fi
3860 fi
3861 done
3862
3863 cd ..
3864 rm -rf conftest.dir
3865 else
3866 am_cv_CC_dependencies_compiler_type=none
3867 fi
3868
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3871 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873
3874 if
3875 test "x$enable_dependency_tracking" != xno \
3876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3877 am__fastdepCC_TRUE=
3878 am__fastdepCC_FALSE='#'
3879 else
3880 am__fastdepCC_TRUE='#'
3881 am__fastdepCC_FALSE=
3882 fi
3883
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3886 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3887 if ${ac_cv_prog_cc_c99+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 ac_cv_prog_cc_c99=no
3891 ac_save_CC=$CC
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894 #include <stdarg.h>
3895 #include <stdbool.h>
3896 #include <stdlib.h>
3897 #include <wchar.h>
3898 #include <stdio.h>
3899
3900 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3901 #define debug(...) fprintf (stderr, __VA_ARGS__)
3902 #define showlist(...) puts (#__VA_ARGS__)
3903 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3904 static void
3905 test_varargs_macros (void)
3906 {
3907 int x = 1234;
3908 int y = 5678;
3909 debug ("Flag");
3910 debug ("X = %d\n", x);
3911 showlist (The first, second, and third items.);
3912 report (x>y, "x is %d but y is %d", x, y);
3913 }
3914
3915 // Check long long types.
3916 #define BIG64 18446744073709551615ull
3917 #define BIG32 4294967295ul
3918 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3919 #if !BIG_OK
3920 your preprocessor is broken;
3921 #endif
3922 #if BIG_OK
3923 #else
3924 your preprocessor is broken;
3925 #endif
3926 static long long int bignum = -9223372036854775807LL;
3927 static unsigned long long int ubignum = BIG64;
3928
3929 struct incomplete_array
3930 {
3931 int datasize;
3932 double data[];
3933 };
3934
3935 struct named_init {
3936 int number;
3937 const wchar_t *name;
3938 double average;
3939 };
3940
3941 typedef const char *ccp;
3942
3943 static inline int
3944 test_restrict (ccp restrict text)
3945 {
3946 // See if C++-style comments work.
3947 // Iterate through items via the restricted pointer.
3948 // Also check for declarations in for loops.
3949 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3950 continue;
3951 return 0;
3952 }
3953
3954 // Check varargs and va_copy.
3955 static void
3956 test_varargs (const char *format, ...)
3957 {
3958 va_list args;
3959 va_start (args, format);
3960 va_list args_copy;
3961 va_copy (args_copy, args);
3962
3963 const char *str;
3964 int number;
3965 float fnumber;
3966
3967 while (*format)
3968 {
3969 switch (*format++)
3970 {
3971 case 's': // string
3972 str = va_arg (args_copy, const char *);
3973 break;
3974 case 'd': // int
3975 number = va_arg (args_copy, int);
3976 break;
3977 case 'f': // float
3978 fnumber = va_arg (args_copy, double);
3979 break;
3980 default:
3981 break;
3982 }
3983 }
3984 va_end (args_copy);
3985 va_end (args);
3986 }
3987
3988 int
3989 main ()
3990 {
3991
3992 // Check bool.
3993 _Bool success = false;
3994
3995 // Check restrict.
3996 if (test_restrict ("String literal") == 0)
3997 success = true;
3998 char *restrict newvar = "Another string";
3999
4000 // Check varargs.
4001 test_varargs ("s, d' f .", "string", 65, 34.234);
4002 test_varargs_macros ();
4003
4004 // Check flexible array members.
4005 struct incomplete_array *ia =
4006 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4007 ia->datasize = 10;
4008 for (int i = 0; i < ia->datasize; ++i)
4009 ia->data[i] = i * 1.234;
4010
4011 // Check named initializers.
4012 struct named_init ni = {
4013 .number = 34,
4014 .name = L"Test wide string",
4015 .average = 543.34343,
4016 };
4017
4018 ni.number = 58;
4019
4020 int dynamic_array[ni.number];
4021 dynamic_array[ni.number - 1] = 543;
4022
4023 // work around unused variable warnings
4024 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4025 || dynamic_array[ni.number - 1] != 543);
4026
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4032 do
4033 CC="$ac_save_CC $ac_arg"
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035 ac_cv_prog_cc_c99=$ac_arg
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext
4038 test "x$ac_cv_prog_cc_c99" != "xno" && break
4039 done
4040 rm -f conftest.$ac_ext
4041 CC=$ac_save_CC
4042
4043 fi
4044 # AC_CACHE_VAL
4045 case "x$ac_cv_prog_cc_c99" in
4046 x)
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4048 $as_echo "none needed" >&6; } ;;
4049 xno)
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4051 $as_echo "unsupported" >&6; } ;;
4052 *)
4053 CC="$CC $ac_cv_prog_cc_c99"
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4055 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4056 esac
4057 if test "x$ac_cv_prog_cc_c99" != xno; then :
4058
4059 fi
4060
4061
4062 if test "$ac_cv_prog_cc_c99" = "no"; then :
4063 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4064 fi
4065 case `pwd` in
4066 *\ * | *\ *)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4069 esac
4070
4071
4072
4073 macro_version='2.4.4'
4074 macro_revision='2.4.4'
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 ltmain=$ac_aux_dir/ltmain.sh
4089
4090 # Make sure we can run config.sub.
4091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4092 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4093
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4095 $as_echo_n "checking build system type... " >&6; }
4096 if ${ac_cv_build+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 ac_build_alias=$build_alias
4100 test "x$ac_build_alias" = x &&
4101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4102 test "x$ac_build_alias" = x &&
4103 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4109 $as_echo "$ac_cv_build" >&6; }
4110 case $ac_cv_build in
4111 *-*-*) ;;
4112 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4113 esac
4114 build=$ac_cv_build
4115 ac_save_IFS=$IFS; IFS='-'
4116 set x $ac_cv_build
4117 shift
4118 build_cpu=$1
4119 build_vendor=$2
4120 shift; shift
4121 # Remember, the first character of IFS is used to create $*,
4122 # except with old shells:
4123 build_os=$*
4124 IFS=$ac_save_IFS
4125 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4129 $as_echo_n "checking host system type... " >&6; }
4130 if ${ac_cv_host+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test "x$host_alias" = x; then
4134 ac_cv_host=$ac_cv_build
4135 else
4136 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4137 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4138 fi
4139
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4142 $as_echo "$ac_cv_host" >&6; }
4143 case $ac_cv_host in
4144 *-*-*) ;;
4145 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4146 esac
4147 host=$ac_cv_host
4148 ac_save_IFS=$IFS; IFS='-'
4149 set x $ac_cv_host
4150 shift
4151 host_cpu=$1
4152 host_vendor=$2
4153 shift; shift
4154 # Remember, the first character of IFS is used to create $*,
4155 # except with old shells:
4156 host_os=$*
4157 IFS=$ac_save_IFS
4158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4159
4160
4161 # Backslashify metacharacters that are still active within
4162 # double-quoted strings.
4163 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4164
4165 # Same as above, but do not quote variable references.
4166 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4167
4168 # Sed substitution to delay expansion of an escaped shell variable in a
4169 # double_quote_subst'ed string.
4170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4171
4172 # Sed substitution to delay expansion of an escaped single quote.
4173 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4174
4175 # Sed substitution to avoid accidental globbing in evaled expressions
4176 no_glob_subst='s/\*/\\\*/g'
4177
4178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4179 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4183 $as_echo_n "checking how to print strings... " >&6; }
4184 # Test print first, because it will be a builtin if present.
4185 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4187 ECHO='print -r --'
4188 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4189 ECHO='printf %s\n'
4190 else
4191 # Use this function as a fallback that always works.
4192 func_fallback_echo ()
4193 {
4194 eval 'cat <<_LTECHO_EOF
4195 $1
4196 _LTECHO_EOF'
4197 }
4198 ECHO='func_fallback_echo'
4199 fi
4200
4201 # func_echo_all arg...
4202 # Invoke $ECHO with all args, space-separated.
4203 func_echo_all ()
4204 {
4205 $ECHO ""
4206 }
4207
4208 case $ECHO in
4209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4210 $as_echo "printf" >&6; } ;;
4211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4212 $as_echo "print -r" >&6; } ;;
4213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4214 $as_echo "cat" >&6; } ;;
4215 esac
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4232 if ${ac_cv_path_SED+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4236 for ac_i in 1 2 3 4 5 6 7; do
4237 ac_script="$ac_script$as_nl$ac_script"
4238 done
4239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4240 { ac_script=; unset ac_script;}
4241 if test -z "$SED"; then
4242 ac_path_SED_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in sed gsed; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4252 as_fn_executable_p "$ac_path_SED" || continue
4253 # Check for GNU ac_path_SED and select it if it is found.
4254 # Check for GNU $ac_path_SED
4255 case `"$ac_path_SED" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4258 *)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo '' >> "conftest.nl"
4267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_SED_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_SED="$ac_path_SED"
4273 ac_path_SED_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281 $ac_path_SED_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_SED"; then
4287 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4288 fi
4289 else
4290 ac_cv_path_SED=$SED
4291 fi
4292
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4295 $as_echo "$ac_cv_path_SED" >&6; }
4296 SED="$ac_cv_path_SED"
4297 rm -f conftest.sed
4298
4299 test -z "$SED" && SED=sed
4300 Xsed="$SED -e 1s/^X//"
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4313 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4314 if ${ac_cv_path_GREP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -z "$GREP"; then
4318 ac_path_GREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in grep ggrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4328 as_fn_executable_p "$ac_path_GREP" || continue
4329 # Check for GNU ac_path_GREP and select it if it is found.
4330 # Check for GNU $ac_path_GREP
4331 case `"$ac_path_GREP" --version 2>&1` in
4332 *GNU*)
4333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4334 *)
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4338 do
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'GREP' >> "conftest.nl"
4343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_GREP="$ac_path_GREP"
4349 ac_path_GREP_max=$ac_count
4350 fi
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357 $ac_path_GREP_found && break 3
4358 done
4359 done
4360 done
4361 IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_GREP"; then
4363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 fi
4365 else
4366 ac_cv_path_GREP=$GREP
4367 fi
4368
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4371 $as_echo "$ac_cv_path_GREP" >&6; }
4372 GREP="$ac_cv_path_GREP"
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4376 $as_echo_n "checking for egrep... " >&6; }
4377 if ${ac_cv_path_EGREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4382 else
4383 if test -z "$EGREP"; then
4384 ac_path_EGREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in egrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_EGREP" || continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
4396 # Check for GNU $ac_path_EGREP
4397 case `"$ac_path_EGREP" --version 2>&1` in
4398 *GNU*)
4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400 *)
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'EGREP' >> "conftest.nl"
4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP="$ac_path_EGREP"
4415 ac_path_EGREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4422
4423 $ac_path_EGREP_found && break 3
4424 done
4425 done
4426 done
4427 IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_EGREP"; then
4429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 fi
4431 else
4432 ac_cv_path_EGREP=$EGREP
4433 fi
4434
4435 fi
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4438 $as_echo "$ac_cv_path_EGREP" >&6; }
4439 EGREP="$ac_cv_path_EGREP"
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4443 $as_echo_n "checking for fgrep... " >&6; }
4444 if ${ac_cv_path_FGREP+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4448 then ac_cv_path_FGREP="$GREP -F"
4449 else
4450 if test -z "$FGREP"; then
4451 ac_path_FGREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in fgrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4461 as_fn_executable_p "$ac_path_FGREP" || continue
4462 # Check for GNU ac_path_FGREP and select it if it is found.
4463 # Check for GNU $ac_path_FGREP
4464 case `"$ac_path_FGREP" --version 2>&1` in
4465 *GNU*)
4466 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4467 *)
4468 ac_count=0
4469 $as_echo_n 0123456789 >"conftest.in"
4470 while :
4471 do
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'FGREP' >> "conftest.nl"
4476 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_FGREP="$ac_path_FGREP"
4482 ac_path_FGREP_max=$ac_count
4483 fi
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4486 done
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 esac
4489
4490 $ac_path_FGREP_found && break 3
4491 done
4492 done
4493 done
4494 IFS=$as_save_IFS
4495 if test -z "$ac_cv_path_FGREP"; then
4496 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 fi
4498 else
4499 ac_cv_path_FGREP=$FGREP
4500 fi
4501
4502 fi
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4505 $as_echo "$ac_cv_path_FGREP" >&6; }
4506 FGREP="$ac_cv_path_FGREP"
4507
4508
4509 test -z "$GREP" && GREP=grep
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 # Check whether --with-gnu-ld was given.
4530 if test "${with_gnu_ld+set}" = set; then :
4531 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4532 else
4533 with_gnu_ld=no
4534 fi
4535
4536 ac_prog=ld
4537 if test yes = "$GCC"; then
4538 # Check if gcc -print-prog-name=ld gives a path.
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4540 $as_echo_n "checking for ld used by $CC... " >&6; }
4541 case $host in
4542 *-*-mingw*)
4543 # gcc leaves a trailing carriage return, which upsets mingw
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4545 *)
4546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4547 esac
4548 case $ac_prog in
4549 # Accept absolute paths.
4550 [\\/]* | ?:[\\/]*)
4551 re_direlt='/[^/][^/]*/\.\./'
4552 # Canonicalize the pathname of ld
4553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4556 done
4557 test -z "$LD" && LD=$ac_prog
4558 ;;
4559 "")
4560 # If it fails, then pretend we aren't using GCC.
4561 ac_prog=ld
4562 ;;
4563 *)
4564 # If it is relative, then search for the first ld in PATH.
4565 with_gnu_ld=unknown
4566 ;;
4567 esac
4568 elif test yes = "$with_gnu_ld"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4570 $as_echo_n "checking for GNU ld... " >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4573 $as_echo_n "checking for non-GNU ld... " >&6; }
4574 fi
4575 if ${lt_cv_path_LD+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -z "$LD"; then
4579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH; do
4581 IFS=$lt_save_ifs
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4584 lt_cv_path_LD=$ac_dir/$ac_prog
4585 # Check to see if the program is GNU ld. I'd rather use --version,
4586 # but apparently some variants of GNU ld only accept -v.
4587 # Break only if it was the GNU/non-GNU ld that we prefer.
4588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4589 *GNU* | *'with BFD'*)
4590 test no != "$with_gnu_ld" && break
4591 ;;
4592 *)
4593 test yes != "$with_gnu_ld" && break
4594 ;;
4595 esac
4596 fi
4597 done
4598 IFS=$lt_save_ifs
4599 else
4600 lt_cv_path_LD=$LD # Let the user override the test with a path.
4601 fi
4602 fi
4603
4604 LD=$lt_cv_path_LD
4605 if test -n "$LD"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4607 $as_echo "$LD" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4615 if ${lt_cv_prog_gnu_ld+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4619 case `$LD -v 2>&1 </dev/null` in
4620 *GNU* | *'with BFD'*)
4621 lt_cv_prog_gnu_ld=yes
4622 ;;
4623 *)
4624 lt_cv_prog_gnu_ld=no
4625 ;;
4626 esac
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4630 with_gnu_ld=$lt_cv_prog_gnu_ld
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4641 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4642 if ${lt_cv_path_NM+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$NM"; then
4646 # Let the user override the test.
4647 lt_cv_path_NM=$NM
4648 else
4649 lt_nm_to_check=${ac_tool_prefix}nm
4650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4651 lt_nm_to_check="$lt_nm_to_check nm"
4652 fi
4653 for lt_tmp_nm in $lt_nm_to_check; do
4654 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4656 IFS=$lt_save_ifs
4657 test -z "$ac_dir" && ac_dir=.
4658 tmp_nm=$ac_dir/$lt_tmp_nm
4659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4660 # Check to see if the nm accepts a BSD-compat flag.
4661 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4662 # nm: unknown option "B" ignored
4663 # Tru64's nm complains that /dev/null is an invalid object file
4664 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4665 case $build_os in
4666 mingw*) lt_bad_file=conftest.nm/nofile ;;
4667 *) lt_bad_file=/dev/null ;;
4668 esac
4669 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4670 *$lt_bad_file* | *'Invalid file or object type'*)
4671 lt_cv_path_NM="$tmp_nm -B"
4672 break 2
4673 ;;
4674 *)
4675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4676 */dev/null*)
4677 lt_cv_path_NM="$tmp_nm -p"
4678 break 2
4679 ;;
4680 *)
4681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4682 continue # so that we can try to find one that supports BSD flags
4683 ;;
4684 esac
4685 ;;
4686 esac
4687 fi
4688 done
4689 IFS=$lt_save_ifs
4690 done
4691 : ${lt_cv_path_NM=no}
4692 fi
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4695 $as_echo "$lt_cv_path_NM" >&6; }
4696 if test no != "$lt_cv_path_NM"; then
4697 NM=$lt_cv_path_NM
4698 else
4699 # Didn't find any BSD compatible name lister, look for dumpbin.
4700 if test -n "$DUMPBIN"; then :
4701 # Let the user override the test.
4702 else
4703 if test -n "$ac_tool_prefix"; then
4704 for ac_prog in dumpbin "link -dump"
4705 do
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_DUMPBIN+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$DUMPBIN"; then
4714 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 DUMPBIN=$ac_cv_prog_DUMPBIN
4734 if test -n "$DUMPBIN"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4736 $as_echo "$DUMPBIN" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742
4743 test -n "$DUMPBIN" && break
4744 done
4745 fi
4746 if test -z "$DUMPBIN"; then
4747 ac_ct_DUMPBIN=$DUMPBIN
4748 for ac_prog in dumpbin "link -dump"
4749 do
4750 # Extract the first word of "$ac_prog", so it can be a program name with args.
4751 set dummy $ac_prog; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$ac_ct_DUMPBIN"; then
4758 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4778 if test -n "$ac_ct_DUMPBIN"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4780 $as_echo "$ac_ct_DUMPBIN" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 test -n "$ac_ct_DUMPBIN" && break
4788 done
4789
4790 if test "x$ac_ct_DUMPBIN" = x; then
4791 DUMPBIN=":"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794 yes:)
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4797 ac_tool_warned=yes ;;
4798 esac
4799 DUMPBIN=$ac_ct_DUMPBIN
4800 fi
4801 fi
4802
4803 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4804 *COFF*)
4805 DUMPBIN="$DUMPBIN -symbols -headers"
4806 ;;
4807 *)
4808 DUMPBIN=:
4809 ;;
4810 esac
4811 fi
4812
4813 if test : != "$DUMPBIN"; then
4814 NM=$DUMPBIN
4815 fi
4816 fi
4817 test -z "$NM" && NM=nm
4818
4819
4820
4821
4822
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4825 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4826 if ${lt_cv_nm_interface+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 lt_cv_nm_interface="BSD nm"
4830 echo "int some_variable = 0;" > conftest.$ac_ext
4831 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4832 (eval "$ac_compile" 2>conftest.err)
4833 cat conftest.err >&5
4834 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4836 cat conftest.err >&5
4837 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4838 cat conftest.out >&5
4839 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4840 lt_cv_nm_interface="MS dumpbin"
4841 fi
4842 rm -f conftest*
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4845 $as_echo "$lt_cv_nm_interface" >&6; }
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4848 $as_echo_n "checking whether ln -s works... " >&6; }
4849 LN_S=$as_ln_s
4850 if test "$LN_S" = "ln -s"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4852 $as_echo "yes" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4855 $as_echo "no, using $LN_S" >&6; }
4856 fi
4857
4858 # find the maximum length of command line arguments
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4860 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4861 if ${lt_cv_sys_max_cmd_len+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 i=0
4865 teststring=ABCD
4866
4867 case $build_os in
4868 msdosdjgpp*)
4869 # On DJGPP, this test can blow up pretty badly due to problems in libc
4870 # (any single argument exceeding 2000 bytes causes a buffer overrun
4871 # during glob expansion). Even if it were fixed, the result of this
4872 # check would be larger than it should be.
4873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4874 ;;
4875
4876 gnu*)
4877 # Under GNU Hurd, this test is not required because there is
4878 # no limit to the length of command line arguments.
4879 # Libtool will interpret -1 as no limit whatsoever
4880 lt_cv_sys_max_cmd_len=-1;
4881 ;;
4882
4883 cygwin* | mingw* | cegcc*)
4884 # On Win9x/ME, this test blows up -- it succeeds, but takes
4885 # about 5 minutes as the teststring grows exponentially.
4886 # Worse, since 9x/ME are not pre-emptively multitasking,
4887 # you end up with a "frozen" computer, even though with patience
4888 # the test eventually succeeds (with a max line length of 256k).
4889 # Instead, let's just punt: use the minimum linelength reported by
4890 # all of the supported platforms: 8192 (on NT/2K/XP).
4891 lt_cv_sys_max_cmd_len=8192;
4892 ;;
4893
4894 mint*)
4895 # On MiNT this can take a long time and run out of memory.
4896 lt_cv_sys_max_cmd_len=8192;
4897 ;;
4898
4899 amigaos*)
4900 # On AmigaOS with pdksh, this test takes hours, literally.
4901 # So we just punt and use a minimum line length of 8192.
4902 lt_cv_sys_max_cmd_len=8192;
4903 ;;
4904
4905 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4906 # This has been around since 386BSD, at least. Likely further.
4907 if test -x /sbin/sysctl; then
4908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4909 elif test -x /usr/sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4911 else
4912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4913 fi
4914 # And add a safety zone
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4917 ;;
4918
4919 interix*)
4920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4921 lt_cv_sys_max_cmd_len=196608
4922 ;;
4923
4924 os2*)
4925 # The test takes a long time on OS/2.
4926 lt_cv_sys_max_cmd_len=8192
4927 ;;
4928
4929 osf*)
4930 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4931 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4932 # nice to cause kernel panics so lets avoid the loop below.
4933 # First set a reasonable default.
4934 lt_cv_sys_max_cmd_len=16384
4935 #
4936 if test -x /sbin/sysconfig; then
4937 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4938 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4939 esac
4940 fi
4941 ;;
4942 sco3.2v5*)
4943 lt_cv_sys_max_cmd_len=102400
4944 ;;
4945 sysv5* | sco5v6* | sysv4.2uw2*)
4946 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4947 if test -n "$kargmax"; then
4948 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4949 else
4950 lt_cv_sys_max_cmd_len=32768
4951 fi
4952 ;;
4953 *)
4954 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4955 if test -n "$lt_cv_sys_max_cmd_len" && \
4956 test undefined != "$lt_cv_sys_max_cmd_len"; then
4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 else
4960 # Make teststring a little bigger before we do anything with it.
4961 # a 1K string should be a reasonable start.
4962 for i in 1 2 3 4 5 6 7 8; do
4963 teststring=$teststring$teststring
4964 done
4965 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4966 # If test is not a shell built-in, we'll probably end up computing a
4967 # maximum length that is only half of the actual maximum length, but
4968 # we can't tell.
4969 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4970 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4971 test 17 != "$i" # 1/2 MB should be enough
4972 do
4973 i=`expr $i + 1`
4974 teststring=$teststring$teststring
4975 done
4976 # Only check the string length outside the loop.
4977 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4978 teststring=
4979 # Add a significant safety factor because C++ compilers can tack on
4980 # massive amounts of additional arguments before passing them to the
4981 # linker. It appears as though 1/2 is a usable value.
4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4983 fi
4984 ;;
4985 esac
4986
4987 fi
4988
4989 if test -n "$lt_cv_sys_max_cmd_len"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4991 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4994 $as_echo "none" >&6; }
4995 fi
4996 max_cmd_len=$lt_cv_sys_max_cmd_len
4997
4998
4999
5000
5001
5002
5003 : ${CP="cp -f"}
5004 : ${MV="mv -f"}
5005 : ${RM="rm -f"}
5006
5007 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5008 lt_unset=unset
5009 else
5010 lt_unset=false
5011 fi
5012
5013
5014
5015
5016
5017 # test EBCDIC or ASCII
5018 case `echo X|tr X '\101'` in
5019 A) # ASCII based system
5020 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5021 lt_SP2NL='tr \040 \012'
5022 lt_NL2SP='tr \015\012 \040\040'
5023 ;;
5024 *) # EBCDIC based system
5025 lt_SP2NL='tr \100 \n'
5026 lt_NL2SP='tr \r\n \100\100'
5027 ;;
5028 esac
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5039 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5040 if ${lt_cv_to_host_file_cmd+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 case $host in
5044 *-*-mingw* )
5045 case $build in
5046 *-*-mingw* ) # actually msys
5047 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5048 ;;
5049 *-*-cygwin* )
5050 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5051 ;;
5052 * ) # otherwise, assume *nix
5053 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5054 ;;
5055 esac
5056 ;;
5057 *-*-cygwin* )
5058 case $build in
5059 *-*-mingw* ) # actually msys
5060 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5061 ;;
5062 *-*-cygwin* )
5063 lt_cv_to_host_file_cmd=func_convert_file_noop
5064 ;;
5065 * ) # otherwise, assume *nix
5066 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5067 ;;
5068 esac
5069 ;;
5070 * ) # unhandled hosts (and "normal" native builds)
5071 lt_cv_to_host_file_cmd=func_convert_file_noop
5072 ;;
5073 esac
5074
5075 fi
5076
5077 to_host_file_cmd=$lt_cv_to_host_file_cmd
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5079 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5080
5081
5082
5083
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5086 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5087 if ${lt_cv_to_tool_file_cmd+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 #assume ordinary cross tools, or native build.
5091 lt_cv_to_tool_file_cmd=func_convert_file_noop
5092 case $host in
5093 *-*-mingw* )
5094 case $build in
5095 *-*-mingw* ) # actually msys
5096 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5097 ;;
5098 esac
5099 ;;
5100 esac
5101
5102 fi
5103
5104 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5106 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5107
5108
5109
5110
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5113 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5114 if ${lt_cv_ld_reload_flag+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 lt_cv_ld_reload_flag='-r'
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5120 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5121 reload_flag=$lt_cv_ld_reload_flag
5122 case $reload_flag in
5123 "" | " "*) ;;
5124 *) reload_flag=" $reload_flag" ;;
5125 esac
5126 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5127 case $host_os in
5128 cygwin* | mingw* | pw32* | cegcc*)
5129 if test yes != "$GCC"; then
5130 reload_cmds=false
5131 fi
5132 ;;
5133 darwin*)
5134 if test yes = "$GCC"; then
5135 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5136 else
5137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5138 fi
5139 ;;
5140 esac
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5152 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_OBJDUMP+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$OBJDUMP"; then
5159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 OBJDUMP=$ac_cv_prog_OBJDUMP
5179 if test -n "$OBJDUMP"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5181 $as_echo "$OBJDUMP" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188 fi
5189 if test -z "$ac_cv_prog_OBJDUMP"; then
5190 ac_ct_OBJDUMP=$OBJDUMP
5191 # Extract the first word of "objdump", so it can be a program name with args.
5192 set dummy objdump; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$ac_ct_OBJDUMP"; then
5199 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5219 if test -n "$ac_ct_OBJDUMP"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5221 $as_echo "$ac_ct_OBJDUMP" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227 if test "x$ac_ct_OBJDUMP" = x; then
5228 OBJDUMP="false"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231 yes:)
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 OBJDUMP=$ac_ct_OBJDUMP
5237 fi
5238 else
5239 OBJDUMP="$ac_cv_prog_OBJDUMP"
5240 fi
5241
5242 test -z "$OBJDUMP" && OBJDUMP=objdump
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5253 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5254 if ${lt_cv_deplibs_check_method+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 lt_cv_file_magic_cmd='$MAGIC_CMD'
5258 lt_cv_file_magic_test_file=
5259 lt_cv_deplibs_check_method='unknown'
5260 # Need to set the preceding variable on all platforms that support
5261 # interlibrary dependencies.
5262 # 'none' -- dependencies not supported.
5263 # 'unknown' -- same as none, but documents that we really don't know.
5264 # 'pass_all' -- all dependencies passed with no checks.
5265 # 'test_compile' -- check by making test program.
5266 # 'file_magic [[regex]]' -- check by looking for files in library path
5267 # that responds to the $file_magic_cmd with a given extended regex.
5268 # If you have 'file' or equivalent on your system and you're not sure
5269 # whether 'pass_all' will *always* work, you probably want this one.
5270
5271 case $host_os in
5272 aix[4-9]*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 beos*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 bsdi[45]*)
5281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5282 lt_cv_file_magic_cmd='/usr/bin/file -L'
5283 lt_cv_file_magic_test_file=/shlib/libc.so
5284 ;;
5285
5286 cygwin*)
5287 # func_win32_libid is a shell function defined in ltmain.sh
5288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5289 lt_cv_file_magic_cmd='func_win32_libid'
5290 ;;
5291
5292 mingw* | pw32*)
5293 # Base MSYS/MinGW do not provide the 'file' command needed by
5294 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5295 # unless we find 'file', for example because we are cross-compiling.
5296 if ( file / ) >/dev/null 2>&1; then
5297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298 lt_cv_file_magic_cmd='func_win32_libid'
5299 else
5300 # Keep this pattern in sync with the one in func_win32_libid.
5301 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5302 lt_cv_file_magic_cmd='$OBJDUMP -f'
5303 fi
5304 ;;
5305
5306 cegcc*)
5307 # use the weaker test based on 'objdump'. See mingw*.
5308 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5310 ;;
5311
5312 darwin* | rhapsody*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 freebsd* | dragonfly*)
5317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5318 case $host_cpu in
5319 i*86 )
5320 # Not sure whether the presence of OpenBSD here was a mistake.
5321 # Let's accept both of them until this is cleared up.
5322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5323 lt_cv_file_magic_cmd=/usr/bin/file
5324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5325 ;;
5326 esac
5327 else
5328 lt_cv_deplibs_check_method=pass_all
5329 fi
5330 ;;
5331
5332 haiku*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336 hpux10.20* | hpux11*)
5337 lt_cv_file_magic_cmd=/usr/bin/file
5338 case $host_cpu in
5339 ia64*)
5340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5342 ;;
5343 hppa*64*)
5344 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]'
5345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5346 ;;
5347 *)
5348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5350 ;;
5351 esac
5352 ;;
5353
5354 interix[3-9]*)
5355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5357 ;;
5358
5359 irix5* | irix6* | nonstopux*)
5360 case $LD in
5361 *-32|*"-32 ") libmagic=32-bit;;
5362 *-n32|*"-n32 ") libmagic=N32;;
5363 *-64|*"-64 ") libmagic=64-bit;;
5364 *) libmagic=never-match;;
5365 esac
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369 # This must be glibc/ELF.
5370 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 netbsd*)
5375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5377 else
5378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5379 fi
5380 ;;
5381
5382 newos6*)
5383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5384 lt_cv_file_magic_cmd=/usr/bin/file
5385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5386 ;;
5387
5388 *nto* | *qnx*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392 openbsd* | bitrig*)
5393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5395 else
5396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5397 fi
5398 ;;
5399
5400 osf3* | osf4* | osf5*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404 rdos*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408 solaris*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416 sysv4 | sysv4.3*)
5417 case $host_vendor in
5418 motorola)
5419 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]'
5420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5421 ;;
5422 ncr)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425 sequent)
5426 lt_cv_file_magic_cmd='/bin/file'
5427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5428 ;;
5429 sni)
5430 lt_cv_file_magic_cmd='/bin/file'
5431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5432 lt_cv_file_magic_test_file=/lib/libc.so
5433 ;;
5434 siemens)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437 pc)
5438 lt_cv_deplibs_check_method=pass_all
5439 ;;
5440 esac
5441 ;;
5442
5443 tpf*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446 os2*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449 esac
5450
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5453 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5454
5455 file_magic_glob=
5456 want_nocaseglob=no
5457 if test "$build" = "$host"; then
5458 case $host_os in
5459 mingw* | pw32*)
5460 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5461 want_nocaseglob=yes
5462 else
5463 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5464 fi
5465 ;;
5466 esac
5467 fi
5468
5469 file_magic_cmd=$lt_cv_file_magic_cmd
5470 deplibs_check_method=$lt_cv_deplibs_check_method
5471 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_DLLTOOL+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$DLLTOOL"; then
5503 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 DLLTOOL=$ac_cv_prog_DLLTOOL
5523 if test -n "$DLLTOOL"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5525 $as_echo "$DLLTOOL" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 fi
5533 if test -z "$ac_cv_prog_DLLTOOL"; then
5534 ac_ct_DLLTOOL=$DLLTOOL
5535 # Extract the first word of "dlltool", so it can be a program name with args.
5536 set dummy dlltool; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$ac_ct_DLLTOOL"; then
5543 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5563 if test -n "$ac_ct_DLLTOOL"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5565 $as_echo "$ac_ct_DLLTOOL" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571 if test "x$ac_ct_DLLTOOL" = x; then
5572 DLLTOOL="false"
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575 yes:)
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578 ac_tool_warned=yes ;;
5579 esac
5580 DLLTOOL=$ac_ct_DLLTOOL
5581 fi
5582 else
5583 DLLTOOL="$ac_cv_prog_DLLTOOL"
5584 fi
5585
5586 test -z "$DLLTOOL" && DLLTOOL=dlltool
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5598 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5599 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 lt_cv_sharedlib_from_linklib_cmd='unknown'
5603
5604 case $host_os in
5605 cygwin* | mingw* | pw32* | cegcc*)
5606 # two different shell functions defined in ltmain.sh;
5607 # decide which one to use based on capabilities of $DLLTOOL
5608 case `$DLLTOOL --help 2>&1` in
5609 *--identify-strict*)
5610 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5611 ;;
5612 *)
5613 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5614 ;;
5615 esac
5616 ;;
5617 *)
5618 # fallback: assume linklib IS sharedlib
5619 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5620 ;;
5621 esac
5622
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5625 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5626 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5627 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5628
5629
5630
5631
5632
5633
5634
5635
5636 if test -n "$ac_tool_prefix"; then
5637 for ac_prog in ar
5638 do
5639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_AR+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$AR"; then
5647 ac_cv_prog_AR="$AR" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 AR=$ac_cv_prog_AR
5667 if test -n "$AR"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5669 $as_echo "$AR" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675
5676 test -n "$AR" && break
5677 done
5678 fi
5679 if test -z "$AR"; then
5680 ac_ct_AR=$AR
5681 for ac_prog in ar
5682 do
5683 # Extract the first word of "$ac_prog", so it can be a program name with args.
5684 set dummy $ac_prog; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 if test -n "$ac_ct_AR"; then
5691 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_AR="$ac_prog"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5711 if test -n "$ac_ct_AR"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5713 $as_echo "$ac_ct_AR" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719
5720 test -n "$ac_ct_AR" && break
5721 done
5722
5723 if test "x$ac_ct_AR" = x; then
5724 AR="false"
5725 else
5726 case $cross_compiling:$ac_tool_warned in
5727 yes:)
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730 ac_tool_warned=yes ;;
5731 esac
5732 AR=$ac_ct_AR
5733 fi
5734 fi
5735
5736 : ${AR=ar}
5737 : ${AR_FLAGS=cru}
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5750 $as_echo_n "checking for archiver @FILE support... " >&6; }
5751 if ${lt_cv_ar_at_file+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 lt_cv_ar_at_file=no
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757
5758 int
5759 main ()
5760 {
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 echo conftest.$ac_objext > conftest.lst
5768 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5770 (eval $lt_ar_try) 2>&5
5771 ac_status=$?
5772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773 test $ac_status = 0; }
5774 if test 0 -eq "$ac_status"; then
5775 # Ensure the archiver fails upon bogus file names.
5776 rm -f conftest.$ac_objext libconftest.a
5777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5778 (eval $lt_ar_try) 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
5782 if test 0 -ne "$ac_status"; then
5783 lt_cv_ar_at_file=@
5784 fi
5785 fi
5786 rm -f conftest.* libconftest.a
5787
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5793 $as_echo "$lt_cv_ar_at_file" >&6; }
5794
5795 if test no = "$lt_cv_ar_at_file"; then
5796 archiver_list_spec=
5797 else
5798 archiver_list_spec=$lt_cv_ar_at_file
5799 fi
5800
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}strip; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_STRIP+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 if test -n "$STRIP"; then
5816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 STRIP=$ac_cv_prog_STRIP
5836 if test -n "$STRIP"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5838 $as_echo "$STRIP" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845 fi
5846 if test -z "$ac_cv_prog_STRIP"; then
5847 ac_ct_STRIP=$STRIP
5848 # Extract the first word of "strip", so it can be a program name with args.
5849 set dummy strip; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$ac_ct_STRIP"; then
5856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_STRIP="strip"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876 if test -n "$ac_ct_STRIP"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5878 $as_echo "$ac_ct_STRIP" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884 if test "x$ac_ct_STRIP" = x; then
5885 STRIP=":"
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893 STRIP=$ac_ct_STRIP
5894 fi
5895 else
5896 STRIP="$ac_cv_prog_STRIP"
5897 fi
5898
5899 test -z "$STRIP" && STRIP=:
5900
5901
5902
5903
5904
5905
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_RANLIB+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$RANLIB"; then
5915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 RANLIB=$ac_cv_prog_RANLIB
5935 if test -n "$RANLIB"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5937 $as_echo "$RANLIB" >&6; }
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943
5944 fi
5945 if test -z "$ac_cv_prog_RANLIB"; then
5946 ac_ct_RANLIB=$RANLIB
5947 # Extract the first word of "ranlib", so it can be a program name with args.
5948 set dummy ranlib; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$ac_ct_RANLIB"; then
5955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_RANLIB="ranlib"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975 if test -n "$ac_ct_RANLIB"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5977 $as_echo "$ac_ct_RANLIB" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983 if test "x$ac_ct_RANLIB" = x; then
5984 RANLIB=":"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 RANLIB=$ac_ct_RANLIB
5993 fi
5994 else
5995 RANLIB="$ac_cv_prog_RANLIB"
5996 fi
5997
5998 test -z "$RANLIB" && RANLIB=:
5999
6000
6001
6002
6003
6004
6005 # Determine commands to create old-style static archives.
6006 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6007 old_postinstall_cmds='chmod 644 $oldlib'
6008 old_postuninstall_cmds=
6009
6010 if test -n "$RANLIB"; then
6011 case $host_os in
6012 bitrig* | openbsd*)
6013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6014 ;;
6015 *)
6016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6017 ;;
6018 esac
6019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6020 fi
6021
6022 case $host_os in
6023 darwin*)
6024 lock_old_archive_extraction=yes ;;
6025 *)
6026 lock_old_archive_extraction=no ;;
6027 esac
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067 # If no C compiler was specified, use CC.
6068 LTCC=${LTCC-"$CC"}
6069
6070 # If no C compiler flags were specified, use CFLAGS.
6071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6072
6073 # Allow CC to be a program name with arguments.
6074 compiler=$CC
6075
6076
6077 # Check for command to grab the raw symbol name followed by C symbol from nm.
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6079 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6080 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083
6084 # These are sane defaults that work on at least a few old systems.
6085 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6086
6087 # Character class describing NM global symbol codes.
6088 symcode='[BCDEGRST]'
6089
6090 # Regexp to match symbols that can be accessed directly from C.
6091 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6092
6093 # Define system-specific variables.
6094 case $host_os in
6095 aix*)
6096 symcode='[BCDT]'
6097 ;;
6098 cygwin* | mingw* | pw32* | cegcc*)
6099 symcode='[ABCDGISTW]'
6100 ;;
6101 hpux*)
6102 if test ia64 = "$host_cpu"; then
6103 symcode='[ABCDEGRST]'
6104 fi
6105 ;;
6106 irix* | nonstopux*)
6107 symcode='[BCDEGRST]'
6108 ;;
6109 osf*)
6110 symcode='[BCDEGQRST]'
6111 ;;
6112 solaris*)
6113 symcode='[BDRT]'
6114 ;;
6115 sco3.2v5*)
6116 symcode='[DT]'
6117 ;;
6118 sysv4.2uw2*)
6119 symcode='[DT]'
6120 ;;
6121 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6122 symcode='[ABDT]'
6123 ;;
6124 sysv4)
6125 symcode='[DFNSTU]'
6126 ;;
6127 esac
6128
6129 # If we're using GNU nm, then use its standard symbol codes.
6130 case `$NM -V 2>&1` in
6131 *GNU* | *'with BFD'*)
6132 symcode='[ABCDGIRSTW]' ;;
6133 esac
6134
6135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 # Gets list of data symbols to import.
6137 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6138 # Adjust the below global symbol transforms to fixup imported variables.
6139 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6140 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6141 lt_c_name_lib_hook="\
6142 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6143 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6144 else
6145 # Disable hooks by default.
6146 lt_cv_sys_global_symbol_to_import=
6147 lt_cdecl_hook=
6148 lt_c_name_hook=
6149 lt_c_name_lib_hook=
6150 fi
6151
6152 # Transform an extracted symbol line into a proper C declaration.
6153 # Some systems (esp. on ia64) link data and code symbols differently,
6154 # so use this general approach.
6155 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6156 $lt_cdecl_hook\
6157 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6158 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6159
6160 # Transform an extracted symbol line into symbol name and symbol address
6161 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6162 $lt_c_name_hook\
6163 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6164 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6165
6166 # Transform an extracted symbol line into symbol name with lib prefix and
6167 # symbol address.
6168 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6169 $lt_c_name_lib_hook\
6170 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6171 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6172 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6173
6174 # Handle CRLF in mingw tool chain
6175 opt_cr=
6176 case $build_os in
6177 mingw*)
6178 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6179 ;;
6180 esac
6181
6182 # Try without a prefix underscore, then with it.
6183 for ac_symprfx in "" "_"; do
6184
6185 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6186 symxfrm="\\1 $ac_symprfx\\2 \\2"
6187
6188 # Write the raw and C identifiers.
6189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6190 # Fake it for dumpbin and say T for any non-static function,
6191 # D for any global variable and I for any imported variable.
6192 # Also find C++ and __fastcall symbols from MSVC++,
6193 # which start with @ or ?.
6194 lt_cv_sys_global_symbol_pipe="$AWK '"\
6195 " {last_section=section; section=\$ 3};"\
6196 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6197 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6198 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6199 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6200 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6201 " \$ 0!~/External *\|/{next};"\
6202 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6203 " {if(hide[section]) next};"\
6204 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6205 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6206 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6207 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6208 " ' prfx=^$ac_symprfx"
6209 else
6210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6211 fi
6212 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6213
6214 # Check to see that the pipe works correctly.
6215 pipe_works=no
6216
6217 rm -f conftest*
6218 cat > conftest.$ac_ext <<_LT_EOF
6219 #ifdef __cplusplus
6220 extern "C" {
6221 #endif
6222 char nm_test_var;
6223 void nm_test_func(void);
6224 void nm_test_func(void){}
6225 #ifdef __cplusplus
6226 }
6227 #endif
6228 int main(){nm_test_var='a';nm_test_func();return(0);}
6229 _LT_EOF
6230
6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6232 (eval $ac_compile) 2>&5
6233 ac_status=$?
6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6235 test $ac_status = 0; }; then
6236 # Now try to grab the symbols.
6237 nlist=conftest.nm
6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6239 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; } && test -s "$nlist"; then
6243 # Try sorting and uniquifying the output.
6244 if sort "$nlist" | uniq > "$nlist"T; then
6245 mv -f "$nlist"T "$nlist"
6246 else
6247 rm -f "$nlist"T
6248 fi
6249
6250 # Make sure that we snagged all the symbols we need.
6251 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6252 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6253 cat <<_LT_EOF > conftest.$ac_ext
6254 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6255 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6256 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6257 relocations are performed -- see ld's documentation on pseudo-relocs. */
6258 # define LT_DLSYM_CONST
6259 #elif defined __osf__
6260 /* This system does not cope well with relocations in const data. */
6261 # define LT_DLSYM_CONST
6262 #else
6263 # define LT_DLSYM_CONST const
6264 #endif
6265
6266 #ifdef __cplusplus
6267 extern "C" {
6268 #endif
6269
6270 _LT_EOF
6271 # Now generate the symbol file.
6272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6273
6274 cat <<_LT_EOF >> conftest.$ac_ext
6275
6276 /* The mapping between symbol names and symbols. */
6277 LT_DLSYM_CONST struct {
6278 const char *name;
6279 void *address;
6280 }
6281 lt__PROGRAM__LTX_preloaded_symbols[] =
6282 {
6283 { "@PROGRAM@", (void *) 0 },
6284 _LT_EOF
6285 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6286 cat <<\_LT_EOF >> conftest.$ac_ext
6287 {0, (void *) 0}
6288 };
6289
6290 /* This works around a problem in FreeBSD linker */
6291 #ifdef FREEBSD_WORKAROUND
6292 static const void *lt_preloaded_setup() {
6293 return lt__PROGRAM__LTX_preloaded_symbols;
6294 }
6295 #endif
6296
6297 #ifdef __cplusplus
6298 }
6299 #endif
6300 _LT_EOF
6301 # Now try linking the two files.
6302 mv conftest.$ac_objext conftstm.$ac_objext
6303 lt_globsym_save_LIBS=$LIBS
6304 lt_globsym_save_CFLAGS=$CFLAGS
6305 LIBS=conftstm.$ac_objext
6306 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6308 (eval $ac_link) 2>&5
6309 ac_status=$?
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6312 pipe_works=yes
6313 fi
6314 LIBS=$lt_globsym_save_LIBS
6315 CFLAGS=$lt_globsym_save_CFLAGS
6316 else
6317 echo "cannot find nm_test_func in $nlist" >&5
6318 fi
6319 else
6320 echo "cannot find nm_test_var in $nlist" >&5
6321 fi
6322 else
6323 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6324 fi
6325 else
6326 echo "$progname: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6328 fi
6329 rm -rf conftest* conftst*
6330
6331 # Do not use the global_symbol_pipe unless it works.
6332 if test yes = "$pipe_works"; then
6333 break
6334 else
6335 lt_cv_sys_global_symbol_pipe=
6336 fi
6337 done
6338
6339 fi
6340
6341 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6342 lt_cv_sys_global_symbol_to_cdecl=
6343 fi
6344 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6346 $as_echo "failed" >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6349 $as_echo "ok" >&6; }
6350 fi
6351
6352 # Response file support.
6353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6354 nm_file_list_spec='@'
6355 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6356 nm_file_list_spec='@'
6357 fi
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6396 $as_echo_n "checking for sysroot... " >&6; }
6397
6398 # Check whether --with-sysroot was given.
6399 if test "${with_sysroot+set}" = set; then :
6400 withval=$with_sysroot;
6401 else
6402 with_sysroot=no
6403 fi
6404
6405
6406 lt_sysroot=
6407 case $with_sysroot in #(
6408 yes)
6409 if test yes = "$GCC"; then
6410 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6411 fi
6412 ;; #(
6413 /*)
6414 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6415 ;; #(
6416 no|'')
6417 ;; #(
6418 *)
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6420 $as_echo "$with_sysroot" >&6; }
6421 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6422 ;;
6423 esac
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6426 $as_echo "${lt_sysroot:-no}" >&6; }
6427
6428
6429
6430
6431
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6433 $as_echo_n "checking for a working dd... " >&6; }
6434 if ${ac_cv_path_lt_DD+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 printf 0123456789abcdef0123456789abcdef >conftest.i
6438 cat conftest.i conftest.i >conftest2.i
6439 : ${lt_DD:=$DD}
6440 if test -z "$lt_DD"; then
6441 ac_path_lt_DD_found=false
6442 # Loop through the user's path and test for each of PROGNAME-LIST
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_prog in dd; do
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6451 as_fn_executable_p "$ac_path_lt_DD" || continue
6452 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6453 cmp -s conftest.i conftest.out \
6454 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6455 fi
6456 $ac_path_lt_DD_found && break 3
6457 done
6458 done
6459 done
6460 IFS=$as_save_IFS
6461 if test -z "$ac_cv_path_lt_DD"; then
6462 :
6463 fi
6464 else
6465 ac_cv_path_lt_DD=$lt_DD
6466 fi
6467
6468 rm -f conftest.i conftest2.i conftest.out
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6471 $as_echo "$ac_cv_path_lt_DD" >&6; }
6472
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6475 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6476 if ${lt_cv_truncate_bin+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 printf 0123456789abcdef0123456789abcdef >conftest.i
6480 cat conftest.i conftest.i >conftest2.i
6481 lt_cv_truncate_bin=
6482 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6483 cmp -s conftest.i conftest.out \
6484 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6485 fi
6486 rm -f conftest.i conftest2.i conftest.out
6487 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6490 $as_echo "$lt_cv_truncate_bin" >&6; }
6491
6492
6493
6494
6495
6496
6497 # Check whether --enable-libtool-lock was given.
6498 if test "${enable_libtool_lock+set}" = set; then :
6499 enableval=$enable_libtool_lock;
6500 fi
6501
6502 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6503
6504 # Some flags need to be propagated to the compiler or linker for good
6505 # libtool support.
6506 case $host in
6507 ia64-*-hpux*)
6508 # Find out what ABI is being produced by ac_compile, and set mode
6509 # options accordingly.
6510 echo 'int i;' > conftest.$ac_ext
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6512 (eval $ac_compile) 2>&5
6513 ac_status=$?
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; }; then
6516 case `/usr/bin/file conftest.$ac_objext` in
6517 *ELF-32*)
6518 HPUX_IA64_MODE=32
6519 ;;
6520 *ELF-64*)
6521 HPUX_IA64_MODE=64
6522 ;;
6523 esac
6524 fi
6525 rm -rf conftest*
6526 ;;
6527 *-*-irix6*)
6528 # Find out what ABI is being produced by ac_compile, and set linker
6529 # options accordingly.
6530 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532 (eval $ac_compile) 2>&5
6533 ac_status=$?
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }; then
6536 if test yes = "$lt_cv_prog_gnu_ld"; then
6537 case `/usr/bin/file conftest.$ac_objext` in
6538 *32-bit*)
6539 LD="${LD-ld} -melf32bsmip"
6540 ;;
6541 *N32*)
6542 LD="${LD-ld} -melf32bmipn32"
6543 ;;
6544 *64-bit*)
6545 LD="${LD-ld} -melf64bmip"
6546 ;;
6547 esac
6548 else
6549 case `/usr/bin/file conftest.$ac_objext` in
6550 *32-bit*)
6551 LD="${LD-ld} -32"
6552 ;;
6553 *N32*)
6554 LD="${LD-ld} -n32"
6555 ;;
6556 *64-bit*)
6557 LD="${LD-ld} -64"
6558 ;;
6559 esac
6560 fi
6561 fi
6562 rm -rf conftest*
6563 ;;
6564
6565 mips64*-*linux*)
6566 # Find out what ABI is being produced by ac_compile, and set linker
6567 # options accordingly.
6568 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; then
6574 emul=elf
6575 case `/usr/bin/file conftest.$ac_objext` in
6576 *32-bit*)
6577 emul="${emul}32"
6578 ;;
6579 *64-bit*)
6580 emul="${emul}64"
6581 ;;
6582 esac
6583 case `/usr/bin/file conftest.$ac_objext` in
6584 *MSB*)
6585 emul="${emul}btsmip"
6586 ;;
6587 *LSB*)
6588 emul="${emul}ltsmip"
6589 ;;
6590 esac
6591 case `/usr/bin/file conftest.$ac_objext` in
6592 *N32*)
6593 emul="${emul}n32"
6594 ;;
6595 esac
6596 LD="${LD-ld} -m $emul"
6597 fi
6598 rm -rf conftest*
6599 ;;
6600
6601 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6602 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6603 # Find out what ABI is being produced by ac_compile, and set linker
6604 # options accordingly. Note that the listed cases only cover the
6605 # situations where additional linker options are needed (such as when
6606 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6607 # vice versa); the common cases where no linker options are needed do
6608 # not appear in the list.
6609 echo 'int i;' > conftest.$ac_ext
6610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6611 (eval $ac_compile) 2>&5
6612 ac_status=$?
6613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614 test $ac_status = 0; }; then
6615 case `/usr/bin/file conftest.o` in
6616 *32-bit*)
6617 case $host in
6618 x86_64-*kfreebsd*-gnu)
6619 LD="${LD-ld} -m elf_i386_fbsd"
6620 ;;
6621 x86_64-*linux*)
6622 case `/usr/bin/file conftest.o` in
6623 *x86-64*)
6624 LD="${LD-ld} -m elf32_x86_64"
6625 ;;
6626 *)
6627 LD="${LD-ld} -m elf_i386"
6628 ;;
6629 esac
6630 ;;
6631 powerpc64le-*linux*)
6632 LD="${LD-ld} -m elf32lppclinux"
6633 ;;
6634 powerpc64-*linux*)
6635 LD="${LD-ld} -m elf32ppclinux"
6636 ;;
6637 s390x-*linux*)
6638 LD="${LD-ld} -m elf_s390"
6639 ;;
6640 sparc64-*linux*)
6641 LD="${LD-ld} -m elf32_sparc"
6642 ;;
6643 esac
6644 ;;
6645 *64-bit*)
6646 case $host in
6647 x86_64-*kfreebsd*-gnu)
6648 LD="${LD-ld} -m elf_x86_64_fbsd"
6649 ;;
6650 x86_64-*linux*)
6651 LD="${LD-ld} -m elf_x86_64"
6652 ;;
6653 powerpcle-*linux*)
6654 LD="${LD-ld} -m elf64lppc"
6655 ;;
6656 powerpc-*linux*)
6657 LD="${LD-ld} -m elf64ppc"
6658 ;;
6659 s390*-*linux*|s390*-*tpf*)
6660 LD="${LD-ld} -m elf64_s390"
6661 ;;
6662 sparc*-*linux*)
6663 LD="${LD-ld} -m elf64_sparc"
6664 ;;
6665 esac
6666 ;;
6667 esac
6668 fi
6669 rm -rf conftest*
6670 ;;
6671
6672 *-*-sco3.2v5*)
6673 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6674 SAVE_CFLAGS=$CFLAGS
6675 CFLAGS="$CFLAGS -belf"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6677 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6678 if ${lt_cv_cc_needs_belf+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 ac_ext=c
6682 ac_cpp='$CPP $CPPFLAGS'
6683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6686
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689
6690 int
6691 main ()
6692 {
6693
6694 ;
6695 return 0;
6696 }
6697 _ACEOF
6698 if ac_fn_c_try_link "$LINENO"; then :
6699 lt_cv_cc_needs_belf=yes
6700 else
6701 lt_cv_cc_needs_belf=no
6702 fi
6703 rm -f core conftest.err conftest.$ac_objext \
6704 conftest$ac_exeext conftest.$ac_ext
6705 ac_ext=c
6706 ac_cpp='$CPP $CPPFLAGS'
6707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710
6711 fi
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6713 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6714 if test yes != "$lt_cv_cc_needs_belf"; then
6715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6716 CFLAGS=$SAVE_CFLAGS
6717 fi
6718 ;;
6719 *-*solaris*)
6720 # Find out what ABI is being produced by ac_compile, and set linker
6721 # options accordingly.
6722 echo 'int i;' > conftest.$ac_ext
6723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724 (eval $ac_compile) 2>&5
6725 ac_status=$?
6726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727 test $ac_status = 0; }; then
6728 case `/usr/bin/file conftest.o` in
6729 *64-bit*)
6730 case $lt_cv_prog_gnu_ld in
6731 yes*)
6732 case $host in
6733 i?86-*-solaris*|x86_64-*-solaris*)
6734 LD="${LD-ld} -m elf_x86_64"
6735 ;;
6736 sparc*-*-solaris*)
6737 LD="${LD-ld} -m elf64_sparc"
6738 ;;
6739 esac
6740 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6741 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6742 LD=${LD-ld}_sol2
6743 fi
6744 ;;
6745 *)
6746 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6747 LD="${LD-ld} -64"
6748 fi
6749 ;;
6750 esac
6751 ;;
6752 esac
6753 fi
6754 rm -rf conftest*
6755 ;;
6756 esac
6757
6758 need_locks=$enable_libtool_lock
6759
6760 if test -n "$ac_tool_prefix"; then
6761 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6762 set dummy ${ac_tool_prefix}mt; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$MANIFEST_TOOL"; then
6769 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6789 if test -n "$MANIFEST_TOOL"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6791 $as_echo "$MANIFEST_TOOL" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797
6798 fi
6799 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6800 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6801 # Extract the first word of "mt", so it can be a program name with args.
6802 set dummy mt; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 if test -n "$ac_ct_MANIFEST_TOOL"; then
6809 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6829 if test -n "$ac_ct_MANIFEST_TOOL"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6831 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6832 else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6838 MANIFEST_TOOL=":"
6839 else
6840 case $cross_compiling:$ac_tool_warned in
6841 yes:)
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6847 fi
6848 else
6849 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6850 fi
6851
6852 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6854 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6855 if ${lt_cv_path_mainfest_tool+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 lt_cv_path_mainfest_tool=no
6859 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6860 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6861 cat conftest.err >&5
6862 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6863 lt_cv_path_mainfest_tool=yes
6864 fi
6865 rm -f conftest*
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6868 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6869 if test yes != "$lt_cv_path_mainfest_tool"; then
6870 MANIFEST_TOOL=:
6871 fi
6872
6873
6874
6875
6876
6877
6878 case $host_os in
6879 rhapsody* | darwin*)
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 if test -n "$DSYMUTIL"; then
6889 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6909 if test -n "$DSYMUTIL"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6911 $as_echo "$DSYMUTIL" >&6; }
6912 else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916
6917
6918 fi
6919 if test -z "$ac_cv_prog_DSYMUTIL"; then
6920 ac_ct_DSYMUTIL=$DSYMUTIL
6921 # Extract the first word of "dsymutil", so it can be a program name with args.
6922 set dummy dsymutil; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 if test -n "$ac_ct_DSYMUTIL"; then
6929 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6945
6946 fi
6947 fi
6948 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6949 if test -n "$ac_ct_DSYMUTIL"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6951 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956
6957 if test "x$ac_ct_DSYMUTIL" = x; then
6958 DSYMUTIL=":"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6965 esac
6966 DSYMUTIL=$ac_ct_DSYMUTIL
6967 fi
6968 else
6969 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6970 fi
6971
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_NMEDIT+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$NMEDIT"; then
6981 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 NMEDIT=$ac_cv_prog_NMEDIT
7001 if test -n "$NMEDIT"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7003 $as_echo "$NMEDIT" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_NMEDIT"; then
7012 ac_ct_NMEDIT=$NMEDIT
7013 # Extract the first word of "nmedit", so it can be a program name with args.
7014 set dummy nmedit; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -n "$ac_ct_NMEDIT"; then
7021 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7041 if test -n "$ac_ct_NMEDIT"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7043 $as_echo "$ac_ct_NMEDIT" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047 fi
7048
7049 if test "x$ac_ct_NMEDIT" = x; then
7050 NMEDIT=":"
7051 else
7052 case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058 NMEDIT=$ac_ct_NMEDIT
7059 fi
7060 else
7061 NMEDIT="$ac_cv_prog_NMEDIT"
7062 fi
7063
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_LIPO+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 if test -n "$LIPO"; then
7073 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 LIPO=$ac_cv_prog_LIPO
7093 if test -n "$LIPO"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7095 $as_echo "$LIPO" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_LIPO"; then
7104 ac_ct_LIPO=$LIPO
7105 # Extract the first word of "lipo", so it can be a program name with args.
7106 set dummy lipo; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 if test -n "$ac_ct_LIPO"; then
7113 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_LIPO="lipo"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7133 if test -n "$ac_ct_LIPO"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7135 $as_echo "$ac_ct_LIPO" >&6; }
7136 else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141 if test "x$ac_ct_LIPO" = x; then
7142 LIPO=":"
7143 else
7144 case $cross_compiling:$ac_tool_warned in
7145 yes:)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150 LIPO=$ac_ct_LIPO
7151 fi
7152 else
7153 LIPO="$ac_cv_prog_LIPO"
7154 fi
7155
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}otool; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_OTOOL+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$OTOOL"; then
7165 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 OTOOL=$ac_cv_prog_OTOOL
7185 if test -n "$OTOOL"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7187 $as_echo "$OTOOL" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_OTOOL"; then
7196 ac_ct_OTOOL=$OTOOL
7197 # Extract the first word of "otool", so it can be a program name with args.
7198 set dummy otool; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$ac_ct_OTOOL"; then
7205 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_OTOOL="otool"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7225 if test -n "$ac_ct_OTOOL"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7227 $as_echo "$ac_ct_OTOOL" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233 if test "x$ac_ct_OTOOL" = x; then
7234 OTOOL=":"
7235 else
7236 case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242 OTOOL=$ac_ct_OTOOL
7243 fi
7244 else
7245 OTOOL="$ac_cv_prog_OTOOL"
7246 fi
7247
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_OTOOL64+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 if test -n "$OTOOL64"; then
7257 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 OTOOL64=$ac_cv_prog_OTOOL64
7277 if test -n "$OTOOL64"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7279 $as_echo "$OTOOL64" >&6; }
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_OTOOL64"; then
7288 ac_ct_OTOOL64=$OTOOL64
7289 # Extract the first word of "otool64", so it can be a program name with args.
7290 set dummy otool64; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 if test -n "$ac_ct_OTOOL64"; then
7297 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_OTOOL64="otool64"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7317 if test -n "$ac_ct_OTOOL64"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7319 $as_echo "$ac_ct_OTOOL64" >&6; }
7320 else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325 if test "x$ac_ct_OTOOL64" = x; then
7326 OTOOL64=":"
7327 else
7328 case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334 OTOOL64=$ac_ct_OTOOL64
7335 fi
7336 else
7337 OTOOL64="$ac_cv_prog_OTOOL64"
7338 fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7367 $as_echo_n "checking for -single_module linker flag... " >&6; }
7368 if ${lt_cv_apple_cc_single_mod+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 lt_cv_apple_cc_single_mod=no
7372 if test -z "$LT_MULTI_MODULE"; then
7373 # By default we will add the -single_module flag. You can override
7374 # by either setting the environment variable LT_MULTI_MODULE
7375 # non-empty at configure time, or by adding -multi_module to the
7376 # link flags.
7377 rm -rf libconftest.dylib*
7378 echo "int foo(void){return 1;}" > conftest.c
7379 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7380 -dynamiclib -Wl,-single_module conftest.c" >&5
7381 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7382 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7383 _lt_result=$?
7384 # If there is a non-empty error log, and "single_module"
7385 # appears in it, assume the flag caused a linker warning
7386 if test -s conftest.err && $GREP single_module conftest.err; then
7387 cat conftest.err >&5
7388 # Otherwise, if the output was created with a 0 exit code from
7389 # the compiler, it worked.
7390 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7391 lt_cv_apple_cc_single_mod=yes
7392 else
7393 cat conftest.err >&5
7394 fi
7395 rm -rf libconftest.dylib*
7396 rm -f conftest.*
7397 fi
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7400 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7403 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7404 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 lt_cv_ld_exported_symbols_list=no
7408 save_LDFLAGS=$LDFLAGS
7409 echo "_main" > conftest.sym
7410 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413
7414 int
7415 main ()
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_c_try_link "$LINENO"; then :
7423 lt_cv_ld_exported_symbols_list=yes
7424 else
7425 lt_cv_ld_exported_symbols_list=no
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext \
7428 conftest$ac_exeext conftest.$ac_ext
7429 LDFLAGS=$save_LDFLAGS
7430
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7433 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7436 $as_echo_n "checking for -force_load linker flag... " >&6; }
7437 if ${lt_cv_ld_force_load+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 lt_cv_ld_force_load=no
7441 cat > conftest.c << _LT_EOF
7442 int forced_loaded() { return 2;}
7443 _LT_EOF
7444 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7445 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7446 echo "$AR cru libconftest.a conftest.o" >&5
7447 $AR cru libconftest.a conftest.o 2>&5
7448 echo "$RANLIB libconftest.a" >&5
7449 $RANLIB libconftest.a 2>&5
7450 cat > conftest.c << _LT_EOF
7451 int main() { return 0;}
7452 _LT_EOF
7453 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7454 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7455 _lt_result=$?
7456 if test -s conftest.err && $GREP force_load conftest.err; then
7457 cat conftest.err >&5
7458 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7459 lt_cv_ld_force_load=yes
7460 else
7461 cat conftest.err >&5
7462 fi
7463 rm -f conftest.err libconftest.a conftest conftest.c
7464 rm -rf conftest.dSYM
7465
7466 fi
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7468 $as_echo "$lt_cv_ld_force_load" >&6; }
7469 case $host_os in
7470 rhapsody* | darwin1.[012])
7471 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7472 darwin1.*)
7473 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7474 darwin*) # darwin 5.x on
7475 # if running on 10.5 or later, the deployment target defaults
7476 # to the OS version, if on x86, and 10.4, the deployment
7477 # target defaults to 10.4. Don't you love it?
7478 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7479 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7480 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7481 10.[012][,.]*)
7482 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7483 10.*)
7484 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7485 esac
7486 ;;
7487 esac
7488 if test yes = "$lt_cv_apple_cc_single_mod"; then
7489 _lt_dar_single_mod='$single_module'
7490 fi
7491 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7492 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7493 else
7494 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7495 fi
7496 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7497 _lt_dsymutil='~$DSYMUTIL $lib || :'
7498 else
7499 _lt_dsymutil=
7500 fi
7501 ;;
7502 esac
7503
7504 ac_ext=c
7505 ac_cpp='$CPP $CPPFLAGS'
7506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7510 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7511 # On Suns, sometimes $CPP names a directory.
7512 if test -n "$CPP" && test -d "$CPP"; then
7513 CPP=
7514 fi
7515 if test -z "$CPP"; then
7516 if ${ac_cv_prog_CPP+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 # Double quotes because CPP needs to be expanded
7520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7521 do
7522 ac_preproc_ok=false
7523 for ac_c_preproc_warn_flag in '' yes
7524 do
7525 # Use a header file that comes with gcc, so configuring glibc
7526 # with a fresh cross-compiler works.
7527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7528 # <limits.h> exists even on freestanding compilers.
7529 # On the NeXT, cc -E runs the code through the compiler's parser,
7530 # not just through cpp. "Syntax error" is here to catch this case.
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #ifdef __STDC__
7534 # include <limits.h>
7535 #else
7536 # include <assert.h>
7537 #endif
7538 Syntax error
7539 _ACEOF
7540 if ac_fn_c_try_cpp "$LINENO"; then :
7541
7542 else
7543 # Broken: fails on valid input.
7544 continue
7545 fi
7546 rm -f conftest.err conftest.i conftest.$ac_ext
7547
7548 # OK, works on sane cases. Now check whether nonexistent headers
7549 # can be detected and how.
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 #include <ac_nonexistent.h>
7553 _ACEOF
7554 if ac_fn_c_try_cpp "$LINENO"; then :
7555 # Broken: success on invalid input.
7556 continue
7557 else
7558 # Passes both tests.
7559 ac_preproc_ok=:
7560 break
7561 fi
7562 rm -f conftest.err conftest.i conftest.$ac_ext
7563
7564 done
7565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7566 rm -f conftest.i conftest.err conftest.$ac_ext
7567 if $ac_preproc_ok; then :
7568 break
7569 fi
7570
7571 done
7572 ac_cv_prog_CPP=$CPP
7573
7574 fi
7575 CPP=$ac_cv_prog_CPP
7576 else
7577 ac_cv_prog_CPP=$CPP
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7580 $as_echo "$CPP" >&6; }
7581 ac_preproc_ok=false
7582 for ac_c_preproc_warn_flag in '' yes
7583 do
7584 # Use a header file that comes with gcc, so configuring glibc
7585 # with a fresh cross-compiler works.
7586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7587 # <limits.h> exists even on freestanding compilers.
7588 # On the NeXT, cc -E runs the code through the compiler's parser,
7589 # not just through cpp. "Syntax error" is here to catch this case.
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 #ifdef __STDC__
7593 # include <limits.h>
7594 #else
7595 # include <assert.h>
7596 #endif
7597 Syntax error
7598 _ACEOF
7599 if ac_fn_c_try_cpp "$LINENO"; then :
7600
7601 else
7602 # Broken: fails on valid input.
7603 continue
7604 fi
7605 rm -f conftest.err conftest.i conftest.$ac_ext
7606
7607 # OK, works on sane cases. Now check whether nonexistent headers
7608 # can be detected and how.
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #include <ac_nonexistent.h>
7612 _ACEOF
7613 if ac_fn_c_try_cpp "$LINENO"; then :
7614 # Broken: success on invalid input.
7615 continue
7616 else
7617 # Passes both tests.
7618 ac_preproc_ok=:
7619 break
7620 fi
7621 rm -f conftest.err conftest.i conftest.$ac_ext
7622
7623 done
7624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7625 rm -f conftest.i conftest.err conftest.$ac_ext
7626 if $ac_preproc_ok; then :
7627
7628 else
7629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7631 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7632 See \`config.log' for more details" "$LINENO" 5; }
7633 fi
7634
7635 ac_ext=c
7636 ac_cpp='$CPP $CPPFLAGS'
7637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7640
7641
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7643 $as_echo_n "checking for ANSI C header files... " >&6; }
7644 if ${ac_cv_header_stdc+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <stdlib.h>
7650 #include <stdarg.h>
7651 #include <string.h>
7652 #include <float.h>
7653
7654 int
7655 main ()
7656 {
7657
7658 ;
7659 return 0;
7660 }
7661 _ACEOF
7662 if ac_fn_c_try_compile "$LINENO"; then :
7663 ac_cv_header_stdc=yes
7664 else
7665 ac_cv_header_stdc=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668
7669 if test $ac_cv_header_stdc = yes; then
7670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 #include <string.h>
7674
7675 _ACEOF
7676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7677 $EGREP "memchr" >/dev/null 2>&1; then :
7678
7679 else
7680 ac_cv_header_stdc=no
7681 fi
7682 rm -f conftest*
7683
7684 fi
7685
7686 if test $ac_cv_header_stdc = yes; then
7687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 #include <stdlib.h>
7691
7692 _ACEOF
7693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694 $EGREP "free" >/dev/null 2>&1; then :
7695
7696 else
7697 ac_cv_header_stdc=no
7698 fi
7699 rm -f conftest*
7700
7701 fi
7702
7703 if test $ac_cv_header_stdc = yes; then
7704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7705 if test "$cross_compiling" = yes; then :
7706 :
7707 else
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 #include <ctype.h>
7711 #include <stdlib.h>
7712 #if ((' ' & 0x0FF) == 0x020)
7713 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7714 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7715 #else
7716 # define ISLOWER(c) \
7717 (('a' <= (c) && (c) <= 'i') \
7718 || ('j' <= (c) && (c) <= 'r') \
7719 || ('s' <= (c) && (c) <= 'z'))
7720 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7721 #endif
7722
7723 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7724 int
7725 main ()
7726 {
7727 int i;
7728 for (i = 0; i < 256; i++)
7729 if (XOR (islower (i), ISLOWER (i))
7730 || toupper (i) != TOUPPER (i))
7731 return 2;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_run "$LINENO"; then :
7736
7737 else
7738 ac_cv_header_stdc=no
7739 fi
7740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7741 conftest.$ac_objext conftest.beam conftest.$ac_ext
7742 fi
7743
7744 fi
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7747 $as_echo "$ac_cv_header_stdc" >&6; }
7748 if test $ac_cv_header_stdc = yes; then
7749
7750 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7751
7752 fi
7753
7754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7756 inttypes.h stdint.h unistd.h
7757 do :
7758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7759 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7760 "
7761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7762 cat >>confdefs.h <<_ACEOF
7763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7764 _ACEOF
7765
7766 fi
7767
7768 done
7769
7770
7771 for ac_header in dlfcn.h
7772 do :
7773 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7774 "
7775 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7776 cat >>confdefs.h <<_ACEOF
7777 #define HAVE_DLFCN_H 1
7778 _ACEOF
7779
7780 fi
7781
7782 done
7783
7784
7785
7786
7787
7788 # Set options
7789
7790
7791
7792 enable_dlopen=no
7793
7794
7795 enable_win32_dll=no
7796
7797
7798 # Check whether --enable-shared was given.
7799 if test "${enable_shared+set}" = set; then :
7800 enableval=$enable_shared; p=${PACKAGE-default}
7801 case $enableval in
7802 yes) enable_shared=yes ;;
7803 no) enable_shared=no ;;
7804 *)
7805 enable_shared=no
7806 # Look at the argument we got. We use all the common list separators.
7807 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7808 for pkg in $enableval; do
7809 IFS=$lt_save_ifs
7810 if test "X$pkg" = "X$p"; then
7811 enable_shared=yes
7812 fi
7813 done
7814 IFS=$lt_save_ifs
7815 ;;
7816 esac
7817 else
7818 enable_shared=yes
7819 fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829 # Check whether --enable-static was given.
7830 if test "${enable_static+set}" = set; then :
7831 enableval=$enable_static; p=${PACKAGE-default}
7832 case $enableval in
7833 yes) enable_static=yes ;;
7834 no) enable_static=no ;;
7835 *)
7836 enable_static=no
7837 # Look at the argument we got. We use all the common list separators.
7838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7839 for pkg in $enableval; do
7840 IFS=$lt_save_ifs
7841 if test "X$pkg" = "X$p"; then
7842 enable_static=yes
7843 fi
7844 done
7845 IFS=$lt_save_ifs
7846 ;;
7847 esac
7848 else
7849 enable_static=yes
7850 fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 # Check whether --with-pic was given.
7862 if test "${with_pic+set}" = set; then :
7863 withval=$with_pic; lt_p=${PACKAGE-default}
7864 case $withval in
7865 yes|no) pic_mode=$withval ;;
7866 *)
7867 pic_mode=default
7868 # Look at the argument we got. We use all the common list separators.
7869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7870 for lt_pkg in $withval; do
7871 IFS=$lt_save_ifs
7872 if test "X$lt_pkg" = "X$lt_p"; then
7873 pic_mode=yes
7874 fi
7875 done
7876 IFS=$lt_save_ifs
7877 ;;
7878 esac
7879 else
7880 pic_mode=default
7881 fi
7882
7883
7884
7885
7886
7887
7888
7889
7890 # Check whether --enable-fast-install was given.
7891 if test "${enable_fast_install+set}" = set; then :
7892 enableval=$enable_fast_install; p=${PACKAGE-default}
7893 case $enableval in
7894 yes) enable_fast_install=yes ;;
7895 no) enable_fast_install=no ;;
7896 *)
7897 enable_fast_install=no
7898 # Look at the argument we got. We use all the common list separators.
7899 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7900 for pkg in $enableval; do
7901 IFS=$lt_save_ifs
7902 if test "X$pkg" = "X$p"; then
7903 enable_fast_install=yes
7904 fi
7905 done
7906 IFS=$lt_save_ifs
7907 ;;
7908 esac
7909 else
7910 enable_fast_install=yes
7911 fi
7912
7913
7914
7915
7916
7917
7918
7919
7920 shared_archive_member_spec=
7921 case $host,$enable_shared in
7922 power*-*-aix[5-9]*,yes)
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7924 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7925
7926 # Check whether --with-aix-soname was given.
7927 if test "${with_aix_soname+set}" = set; then :
7928 withval=$with_aix_soname; case $withval in
7929 aix|svr4|both)
7930 ;;
7931 *)
7932 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7933 ;;
7934 esac
7935 lt_cv_with_aix_soname=$with_aix_soname
7936 else
7937 if ${lt_cv_with_aix_soname+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 lt_cv_with_aix_soname=aix
7941 fi
7942
7943 with_aix_soname=$lt_cv_with_aix_soname
7944 fi
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7947 $as_echo "$with_aix_soname" >&6; }
7948 if test aix != "$with_aix_soname"; then
7949 # For the AIX way of multilib, we name the shared archive member
7950 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7951 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7952 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7953 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7954 if test 64 = "${OBJECT_MODE-32}"; then
7955 shared_archive_member_spec=shr_64
7956 else
7957 shared_archive_member_spec=shr
7958 fi
7959 fi
7960 ;;
7961 *)
7962 with_aix_soname=aix
7963 ;;
7964 esac
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 # This can be used to rebuild libtool when needed
7976 LIBTOOL_DEPS=$ltmain
7977
7978 # Always use our own libtool.
7979 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010 test -z "$LN_S" && LN_S="ln -s"
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 if test -n "${ZSH_VERSION+set}"; then
8026 setopt NO_GLOB_SUBST
8027 fi
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8030 $as_echo_n "checking for objdir... " >&6; }
8031 if ${lt_cv_objdir+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 rm -f .libs 2>/dev/null
8035 mkdir .libs 2>/dev/null
8036 if test -d .libs; then
8037 lt_cv_objdir=.libs
8038 else
8039 # MS-DOS does not allow filenames that begin with a dot.
8040 lt_cv_objdir=_libs
8041 fi
8042 rmdir .libs 2>/dev/null
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8045 $as_echo "$lt_cv_objdir" >&6; }
8046 objdir=$lt_cv_objdir
8047
8048
8049
8050
8051
8052 cat >>confdefs.h <<_ACEOF
8053 #define LT_OBJDIR "$lt_cv_objdir/"
8054 _ACEOF
8055
8056
8057
8058
8059 case $host_os in
8060 aix3*)
8061 # AIX sometimes has problems with the GCC collect2 program. For some
8062 # reason, if we set the COLLECT_NAMES environment variable, the problems
8063 # vanish in a puff of smoke.
8064 if test set != "${COLLECT_NAMES+set}"; then
8065 COLLECT_NAMES=
8066 export COLLECT_NAMES
8067 fi
8068 ;;
8069 esac
8070
8071 # Global variables:
8072 ofile=libtool
8073 can_build_shared=yes
8074
8075 # All known linkers require a '.a' archive for static linking (except MSVC,
8076 # which needs '.lib').
8077 libext=a
8078
8079 with_gnu_ld=$lt_cv_prog_gnu_ld
8080
8081 old_CC=$CC
8082 old_CFLAGS=$CFLAGS
8083
8084 # Set sane defaults for various variables
8085 test -z "$CC" && CC=cc
8086 test -z "$LTCC" && LTCC=$CC
8087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8088 test -z "$LD" && LD=ld
8089 test -z "$ac_objext" && ac_objext=o
8090
8091 for cc_temp in $compiler""; do
8092 case $cc_temp in
8093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095 \-*) ;;
8096 *) break;;
8097 esac
8098 done
8099 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8100
8101
8102 # Only perform the check for file, if the check method requires it
8103 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8104 case $deplibs_check_method in
8105 file_magic*)
8106 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8108 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8109 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 case $MAGIC_CMD in
8113 [\\/*] | ?:[\\/]*)
8114 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8115 ;;
8116 *)
8117 lt_save_MAGIC_CMD=$MAGIC_CMD
8118 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8120 for ac_dir in $ac_dummy; do
8121 IFS=$lt_save_ifs
8122 test -z "$ac_dir" && ac_dir=.
8123 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8124 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8125 if test -n "$file_magic_test_file"; then
8126 case $deplibs_check_method in
8127 "file_magic "*)
8128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8131 $EGREP "$file_magic_regex" > /dev/null; then
8132 :
8133 else
8134 cat <<_LT_EOF 1>&2
8135
8136 *** Warning: the command libtool uses to detect shared libraries,
8137 *** $file_magic_cmd, produces output that libtool cannot recognize.
8138 *** The result is that libtool may fail to recognize shared libraries
8139 *** as such. This will affect the creation of libtool libraries that
8140 *** depend on shared libraries, but programs linked with such libtool
8141 *** libraries will work regardless of this problem. Nevertheless, you
8142 *** may want to report the problem to your system manager and/or to
8143 *** bug-libtool@gnu.org
8144
8145 _LT_EOF
8146 fi ;;
8147 esac
8148 fi
8149 break
8150 fi
8151 done
8152 IFS=$lt_save_ifs
8153 MAGIC_CMD=$lt_save_MAGIC_CMD
8154 ;;
8155 esac
8156 fi
8157
8158 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8159 if test -n "$MAGIC_CMD"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8161 $as_echo "$MAGIC_CMD" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168
8169
8170
8171 if test -z "$lt_cv_path_MAGIC_CMD"; then
8172 if test -n "$ac_tool_prefix"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8174 $as_echo_n "checking for file... " >&6; }
8175 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 case $MAGIC_CMD in
8179 [\\/*] | ?:[\\/]*)
8180 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8181 ;;
8182 *)
8183 lt_save_MAGIC_CMD=$MAGIC_CMD
8184 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8186 for ac_dir in $ac_dummy; do
8187 IFS=$lt_save_ifs
8188 test -z "$ac_dir" && ac_dir=.
8189 if test -f "$ac_dir/file"; then
8190 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8191 if test -n "$file_magic_test_file"; then
8192 case $deplibs_check_method in
8193 "file_magic "*)
8194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8195 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8197 $EGREP "$file_magic_regex" > /dev/null; then
8198 :
8199 else
8200 cat <<_LT_EOF 1>&2
8201
8202 *** Warning: the command libtool uses to detect shared libraries,
8203 *** $file_magic_cmd, produces output that libtool cannot recognize.
8204 *** The result is that libtool may fail to recognize shared libraries
8205 *** as such. This will affect the creation of libtool libraries that
8206 *** depend on shared libraries, but programs linked with such libtool
8207 *** libraries will work regardless of this problem. Nevertheless, you
8208 *** may want to report the problem to your system manager and/or to
8209 *** bug-libtool@gnu.org
8210
8211 _LT_EOF
8212 fi ;;
8213 esac
8214 fi
8215 break
8216 fi
8217 done
8218 IFS=$lt_save_ifs
8219 MAGIC_CMD=$lt_save_MAGIC_CMD
8220 ;;
8221 esac
8222 fi
8223
8224 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8225 if test -n "$MAGIC_CMD"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8227 $as_echo "$MAGIC_CMD" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233
8234 else
8235 MAGIC_CMD=:
8236 fi
8237 fi
8238
8239 fi
8240 ;;
8241 esac
8242
8243 # Use C for the default configuration in the libtool script
8244
8245 lt_save_CC=$CC
8246 ac_ext=c
8247 ac_cpp='$CPP $CPPFLAGS'
8248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252
8253 # Source file extension for C test sources.
8254 ac_ext=c
8255
8256 # Object file extension for compiled C test sources.
8257 objext=o
8258 objext=$objext
8259
8260 # Code to be used in simple compile tests
8261 lt_simple_compile_test_code="int some_variable = 0;"
8262
8263 # Code to be used in simple link tests
8264 lt_simple_link_test_code='int main(){return(0);}'
8265
8266
8267
8268
8269
8270
8271
8272 # If no C compiler was specified, use CC.
8273 LTCC=${LTCC-"$CC"}
8274
8275 # If no C compiler flags were specified, use CFLAGS.
8276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8277
8278 # Allow CC to be a program name with arguments.
8279 compiler=$CC
8280
8281 # Save the default compiler, since it gets overwritten when the other
8282 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8283 compiler_DEFAULT=$CC
8284
8285 # save warnings/boilerplate of simple test code
8286 ac_outfile=conftest.$ac_objext
8287 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8288 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8289 _lt_compiler_boilerplate=`cat conftest.err`
8290 $RM conftest*
8291
8292 ac_outfile=conftest.$ac_objext
8293 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8294 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8295 _lt_linker_boilerplate=`cat conftest.err`
8296 $RM -r conftest*
8297
8298
8299 if test -n "$compiler"; then
8300
8301 lt_prog_compiler_no_builtin_flag=
8302
8303 if test yes = "$GCC"; then
8304 case $cc_basename in
8305 nvcc*)
8306 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8307 *)
8308 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8309 esac
8310
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8312 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8313 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 lt_cv_prog_compiler_rtti_exceptions=no
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 # The option is referenced via a variable to avoid confusing sed.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>conftest.err)
8331 ac_status=$?
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s "$ac_outfile"; then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings other than the usual output.
8337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_rtti_exceptions=yes
8341 fi
8342 fi
8343 $RM conftest*
8344
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8347 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8348
8349 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8350 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8351 else
8352 :
8353 fi
8354
8355 fi
8356
8357
8358
8359
8360
8361
8362 lt_prog_compiler_wl=
8363 lt_prog_compiler_pic=
8364 lt_prog_compiler_static=
8365
8366
8367 if test yes = "$GCC"; then
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_static='-static'
8370
8371 case $host_os in
8372 aix*)
8373 # All AIX code is PIC.
8374 if test ia64 = "$host_cpu"; then
8375 # AIX 5 now supports IA64 processor
8376 lt_prog_compiler_static='-Bstatic'
8377 fi
8378 lt_prog_compiler_pic='-fPIC'
8379 ;;
8380
8381 amigaos*)
8382 case $host_cpu in
8383 powerpc)
8384 # see comment about AmigaOS4 .so support
8385 lt_prog_compiler_pic='-fPIC'
8386 ;;
8387 m68k)
8388 # FIXME: we need at least 68020 code to build shared libraries, but
8389 # adding the '-m68020' flag to GCC prevents building anything better,
8390 # like '-m68040'.
8391 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8392 ;;
8393 esac
8394 ;;
8395
8396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8397 # PIC is the default for these OSes.
8398 ;;
8399
8400 mingw* | cygwin* | pw32* | os2* | cegcc*)
8401 # This hack is so that the source file can tell whether it is being
8402 # built for inclusion in a dll (and should export symbols for example).
8403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8404 # (--disable-auto-import) libraries
8405 lt_prog_compiler_pic='-DDLL_EXPORT'
8406 case $host_os in
8407 os2*)
8408 lt_prog_compiler_static='$wl-static'
8409 ;;
8410 esac
8411 ;;
8412
8413 darwin* | rhapsody*)
8414 # PIC is the default on this platform
8415 # Common symbols not allowed in MH_DYLIB files
8416 lt_prog_compiler_pic='-fno-common'
8417 ;;
8418
8419 haiku*)
8420 # PIC is the default for Haiku.
8421 # The "-static" flag exists, but is broken.
8422 lt_prog_compiler_static=
8423 ;;
8424
8425 hpux*)
8426 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8427 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8428 # sets the default TLS model and affects inlining.
8429 case $host_cpu in
8430 hppa*64*)
8431 # +Z the default
8432 ;;
8433 *)
8434 lt_prog_compiler_pic='-fPIC'
8435 ;;
8436 esac
8437 ;;
8438
8439 interix[3-9]*)
8440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8441 # Instead, we relocate shared libraries at runtime.
8442 ;;
8443
8444 msdosdjgpp*)
8445 # Just because we use GCC doesn't mean we suddenly get shared libraries
8446 # on systems that don't support them.
8447 lt_prog_compiler_can_build_shared=no
8448 enable_shared=no
8449 ;;
8450
8451 *nto* | *qnx*)
8452 # QNX uses GNU C++, but need to define -shared option too, otherwise
8453 # it will coredump.
8454 lt_prog_compiler_pic='-fPIC -shared'
8455 ;;
8456
8457 sysv4*MP*)
8458 if test -d /usr/nec; then
8459 lt_prog_compiler_pic=-Kconform_pic
8460 fi
8461 ;;
8462
8463 *)
8464 lt_prog_compiler_pic='-fPIC'
8465 ;;
8466 esac
8467
8468 case $cc_basename in
8469 nvcc*) # Cuda Compiler Driver 2.2
8470 lt_prog_compiler_wl='-Xlinker '
8471 if test -n "$lt_prog_compiler_pic"; then
8472 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8473 fi
8474 ;;
8475 esac
8476 else
8477 # PORTME Check for flag to pass linker flags through the system compiler.
8478 case $host_os in
8479 aix*)
8480 lt_prog_compiler_wl='-Wl,'
8481 if test ia64 = "$host_cpu"; then
8482 # AIX 5 now supports IA64 processor
8483 lt_prog_compiler_static='-Bstatic'
8484 else
8485 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8486 fi
8487 ;;
8488
8489 darwin* | rhapsody*)
8490 # PIC is the default on this platform
8491 # Common symbols not allowed in MH_DYLIB files
8492 lt_prog_compiler_pic='-fno-common'
8493 case $cc_basename in
8494 nagfor*)
8495 # NAG Fortran compiler
8496 lt_prog_compiler_wl='-Wl,-Wl,,'
8497 lt_prog_compiler_pic='-PIC'
8498 lt_prog_compiler_static='-Bstatic'
8499 ;;
8500 esac
8501 ;;
8502
8503 mingw* | cygwin* | pw32* | os2* | cegcc*)
8504 # This hack is so that the source file can tell whether it is being
8505 # built for inclusion in a dll (and should export symbols for example).
8506 lt_prog_compiler_pic='-DDLL_EXPORT'
8507 case $host_os in
8508 os2*)
8509 lt_prog_compiler_static='$wl-static'
8510 ;;
8511 esac
8512 ;;
8513
8514 hpux9* | hpux10* | hpux11*)
8515 lt_prog_compiler_wl='-Wl,'
8516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8517 # not for PA HP-UX.
8518 case $host_cpu in
8519 hppa*64*|ia64*)
8520 # +Z the default
8521 ;;
8522 *)
8523 lt_prog_compiler_pic='+Z'
8524 ;;
8525 esac
8526 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8527 lt_prog_compiler_static='$wl-a ${wl}archive'
8528 ;;
8529
8530 irix5* | irix6* | nonstopux*)
8531 lt_prog_compiler_wl='-Wl,'
8532 # PIC (with -KPIC) is the default.
8533 lt_prog_compiler_static='-non_shared'
8534 ;;
8535
8536 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8537 case $cc_basename in
8538 # old Intel for x86_64, which still supported -KPIC.
8539 ecc*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-KPIC'
8542 lt_prog_compiler_static='-static'
8543 ;;
8544 # icc used to be incompatible with GCC.
8545 # ICC 10 doesn't accept -KPIC any more.
8546 icc* | ifort*)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-fPIC'
8549 lt_prog_compiler_static='-static'
8550 ;;
8551 # Lahey Fortran 8.1.
8552 lf95*)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='--shared'
8555 lt_prog_compiler_static='--static'
8556 ;;
8557 nagfor*)
8558 # NAG Fortran compiler
8559 lt_prog_compiler_wl='-Wl,-Wl,,'
8560 lt_prog_compiler_pic='-PIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 ;;
8563 tcc*)
8564 # Fabrice Bellard et al's Tiny C Compiler
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-fPIC'
8567 lt_prog_compiler_static='-static'
8568 ;;
8569 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8570 # Portland Group compilers (*not* the Pentium gcc compiler,
8571 # which looks to be a dead project)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-fpic'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576 ccc*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # All Alpha code is PIC.
8579 lt_prog_compiler_static='-non_shared'
8580 ;;
8581 xl* | bgxl* | bgf* | mpixl*)
8582 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8583 lt_prog_compiler_wl='-Wl,'
8584 lt_prog_compiler_pic='-qpic'
8585 lt_prog_compiler_static='-qstaticlink'
8586 ;;
8587 *)
8588 case `$CC -V 2>&1 | sed 5q` in
8589 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8590 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-Bstatic'
8593 lt_prog_compiler_wl=''
8594 ;;
8595 *Sun\ F* | *Sun*Fortran*)
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-Bstatic'
8598 lt_prog_compiler_wl='-Qoption ld '
8599 ;;
8600 *Sun\ C*)
8601 # Sun C 5.9
8602 lt_prog_compiler_pic='-KPIC'
8603 lt_prog_compiler_static='-Bstatic'
8604 lt_prog_compiler_wl='-Wl,'
8605 ;;
8606 *Intel*\ [CF]*Compiler*)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='-fPIC'
8609 lt_prog_compiler_static='-static'
8610 ;;
8611 *Portland\ Group*)
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-fpic'
8614 lt_prog_compiler_static='-Bstatic'
8615 ;;
8616 esac
8617 ;;
8618 esac
8619 ;;
8620
8621 newsos6)
8622 lt_prog_compiler_pic='-KPIC'
8623 lt_prog_compiler_static='-Bstatic'
8624 ;;
8625
8626 *nto* | *qnx*)
8627 # QNX uses GNU C++, but need to define -shared option too, otherwise
8628 # it will coredump.
8629 lt_prog_compiler_pic='-fPIC -shared'
8630 ;;
8631
8632 osf3* | osf4* | osf5*)
8633 lt_prog_compiler_wl='-Wl,'
8634 # All OSF/1 code is PIC.
8635 lt_prog_compiler_static='-non_shared'
8636 ;;
8637
8638 rdos*)
8639 lt_prog_compiler_static='-non_shared'
8640 ;;
8641
8642 solaris*)
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 case $cc_basename in
8646 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8647 lt_prog_compiler_wl='-Qoption ld ';;
8648 *)
8649 lt_prog_compiler_wl='-Wl,';;
8650 esac
8651 ;;
8652
8653 sunos4*)
8654 lt_prog_compiler_wl='-Qoption ld '
8655 lt_prog_compiler_pic='-PIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 ;;
8658
8659 sysv4 | sysv4.2uw2* | sysv4.3*)
8660 lt_prog_compiler_wl='-Wl,'
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 ;;
8664
8665 sysv4*MP*)
8666 if test -d /usr/nec; then
8667 lt_prog_compiler_pic='-Kconform_pic'
8668 lt_prog_compiler_static='-Bstatic'
8669 fi
8670 ;;
8671
8672 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 unicos*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_can_build_shared=no
8681 ;;
8682
8683 uts4*)
8684 lt_prog_compiler_pic='-pic'
8685 lt_prog_compiler_static='-Bstatic'
8686 ;;
8687
8688 *)
8689 lt_prog_compiler_can_build_shared=no
8690 ;;
8691 esac
8692 fi
8693
8694 case $host_os in
8695 # For platforms that do not support PIC, -DPIC is meaningless:
8696 *djgpp*)
8697 lt_prog_compiler_pic=
8698 ;;
8699 *)
8700 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8701 ;;
8702 esac
8703
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8705 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8706 if ${lt_cv_prog_compiler_pic+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8712 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8713 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8714
8715 #
8716 # Check to make sure the PIC flag actually works.
8717 #
8718 if test -n "$lt_prog_compiler_pic"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8720 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8721 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 lt_cv_prog_compiler_pic_works=no
8725 ac_outfile=conftest.$ac_objext
8726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8727 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8728 # Insert the option either (1) after the last *FLAGS variable, or
8729 # (2) before a word containing "conftest.", or (3) at the end.
8730 # Note that $ac_compile itself does not contain backslashes and begins
8731 # with a dollar sign (not a hyphen), so the echo should work correctly.
8732 # The option is referenced via a variable to avoid confusing sed.
8733 lt_compile=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>conftest.err)
8739 ac_status=$?
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 if (exit $ac_status) && test -s "$ac_outfile"; then
8743 # The compiler can only warn and ignore the option if not recognized
8744 # So say no if there are warnings other than the usual output.
8745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8748 lt_cv_prog_compiler_pic_works=yes
8749 fi
8750 fi
8751 $RM conftest*
8752
8753 fi
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8755 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8756
8757 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8758 case $lt_prog_compiler_pic in
8759 "" | " "*) ;;
8760 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8761 esac
8762 else
8763 lt_prog_compiler_pic=
8764 lt_prog_compiler_can_build_shared=no
8765 fi
8766
8767 fi
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779 #
8780 # Check to make sure the static flag actually works.
8781 #
8782 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8784 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8785 if ${lt_cv_prog_compiler_static_works+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_prog_compiler_static_works=no
8789 save_LDFLAGS=$LDFLAGS
8790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8793 # The linker can only warn and ignore the option if not recognized
8794 # So say no if there are warnings
8795 if test -s conftest.err; then
8796 # Append any errors to the config.log.
8797 cat conftest.err 1>&5
8798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8800 if diff conftest.exp conftest.er2 >/dev/null; then
8801 lt_cv_prog_compiler_static_works=yes
8802 fi
8803 else
8804 lt_cv_prog_compiler_static_works=yes
8805 fi
8806 fi
8807 $RM -r conftest*
8808 LDFLAGS=$save_LDFLAGS
8809
8810 fi
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8812 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8813
8814 if test yes = "$lt_cv_prog_compiler_static_works"; then
8815 :
8816 else
8817 lt_prog_compiler_static=
8818 fi
8819
8820
8821
8822
8823
8824
8825
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8827 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8828 if ${lt_cv_prog_compiler_c_o+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_prog_compiler_c_o=no
8832 $RM -r conftest 2>/dev/null
8833 mkdir conftest
8834 cd conftest
8835 mkdir out
8836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8837
8838 lt_compiler_flag="-o out/conftest2.$ac_objext"
8839 # Insert the option either (1) after the last *FLAGS variable, or
8840 # (2) before a word containing "conftest.", or (3) at the end.
8841 # Note that $ac_compile itself does not contain backslashes and begins
8842 # with a dollar sign (not a hyphen), so the echo should work correctly.
8843 lt_compile=`echo "$ac_compile" | $SED \
8844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8846 -e 's:$: $lt_compiler_flag:'`
8847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8848 (eval "$lt_compile" 2>out/conftest.err)
8849 ac_status=$?
8850 cat out/conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8853 then
8854 # The compiler can only warn and ignore the option if not recognized
8855 # So say no if there are warnings
8856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8859 lt_cv_prog_compiler_c_o=yes
8860 fi
8861 fi
8862 chmod u+w . 2>&5
8863 $RM conftest*
8864 # SGI C++ compiler will create directory out/ii_files/ for
8865 # template instantiation
8866 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8867 $RM out/* && rmdir out
8868 cd ..
8869 $RM -r conftest
8870 $RM conftest*
8871
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8874 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8875
8876
8877
8878
8879
8880
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8882 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8883 if ${lt_cv_prog_compiler_c_o+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 lt_cv_prog_compiler_c_o=no
8887 $RM -r conftest 2>/dev/null
8888 mkdir conftest
8889 cd conftest
8890 mkdir out
8891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892
8893 lt_compiler_flag="-o out/conftest2.$ac_objext"
8894 # Insert the option either (1) after the last *FLAGS variable, or
8895 # (2) before a word containing "conftest.", or (3) at the end.
8896 # Note that $ac_compile itself does not contain backslashes and begins
8897 # with a dollar sign (not a hyphen), so the echo should work correctly.
8898 lt_compile=`echo "$ac_compile" | $SED \
8899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901 -e 's:$: $lt_compiler_flag:'`
8902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903 (eval "$lt_compile" 2>out/conftest.err)
8904 ac_status=$?
8905 cat out/conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8908 then
8909 # The compiler can only warn and ignore the option if not recognized
8910 # So say no if there are warnings
8911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8914 lt_cv_prog_compiler_c_o=yes
8915 fi
8916 fi
8917 chmod u+w . 2>&5
8918 $RM conftest*
8919 # SGI C++ compiler will create directory out/ii_files/ for
8920 # template instantiation
8921 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8922 $RM out/* && rmdir out
8923 cd ..
8924 $RM -r conftest
8925 $RM conftest*
8926
8927 fi
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8929 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8930
8931
8932
8933
8934 hard_links=nottested
8935 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8936 # do not overwrite the value of need_locks provided by the user
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8938 $as_echo_n "checking if we can lock with hard links... " >&6; }
8939 hard_links=yes
8940 $RM conftest*
8941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8942 touch conftest.a
8943 ln conftest.a conftest.b 2>&5 || hard_links=no
8944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8946 $as_echo "$hard_links" >&6; }
8947 if test no = "$hard_links"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8949 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8950 need_locks=warn
8951 fi
8952 else
8953 need_locks=no
8954 fi
8955
8956
8957
8958
8959
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8963
8964 runpath_var=
8965 allow_undefined_flag=
8966 always_export_symbols=no
8967 archive_cmds=
8968 archive_expsym_cmds=
8969 compiler_needs_object=no
8970 enable_shared_with_static_runtimes=no
8971 export_dynamic_flag_spec=
8972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8973 hardcode_automatic=no
8974 hardcode_direct=no
8975 hardcode_direct_absolute=no
8976 hardcode_libdir_flag_spec=
8977 hardcode_libdir_separator=
8978 hardcode_minus_L=no
8979 hardcode_shlibpath_var=unsupported
8980 inherit_rpath=no
8981 link_all_deplibs=unknown
8982 module_cmds=
8983 module_expsym_cmds=
8984 old_archive_from_new_cmds=
8985 old_archive_from_expsyms_cmds=
8986 thread_safe_flag_spec=
8987 whole_archive_flag_spec=
8988 # include_expsyms should be a list of space-separated symbols to be *always*
8989 # included in the symbol list
8990 include_expsyms=
8991 # exclude_expsyms can be an extended regexp of symbols to exclude
8992 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8993 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8994 # as well as any symbol that contains 'd'.
8995 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8996 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8997 # platforms (ab)use it in PIC code, but their linkers get confused if
8998 # the symbol is explicitly referenced. Since portable code cannot
8999 # rely on this symbol name, it's probably fine to never include it in
9000 # preloaded symbol tables.
9001 # Exclude shared library initialization/finalization symbols.
9002 extract_expsyms_cmds=
9003
9004 case $host_os in
9005 cygwin* | mingw* | pw32* | cegcc*)
9006 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9007 # When not using gcc, we currently assume that we are using
9008 # Microsoft Visual C++.
9009 if test yes != "$GCC"; then
9010 with_gnu_ld=no
9011 fi
9012 ;;
9013 interix*)
9014 # we just hope/assume this is gcc and not c89 (= MSVC++)
9015 with_gnu_ld=yes
9016 ;;
9017 openbsd* | bitrig*)
9018 with_gnu_ld=no
9019 ;;
9020 esac
9021
9022 ld_shlibs=yes
9023
9024 # On some targets, GNU ld is compatible enough with the native linker
9025 # that we're better off using the native interface for both.
9026 lt_use_gnu_ld_interface=no
9027 if test yes = "$with_gnu_ld"; then
9028 case $host_os in
9029 aix*)
9030 # The AIX port of GNU ld has always aspired to compatibility
9031 # with the native linker. However, as the warning in the GNU ld
9032 # block says, versions before 2.19.5* couldn't really create working
9033 # shared libraries, regardless of the interface used.
9034 case `$LD -v 2>&1` in
9035 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9036 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9037 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9038 *)
9039 lt_use_gnu_ld_interface=yes
9040 ;;
9041 esac
9042 ;;
9043 *)
9044 lt_use_gnu_ld_interface=yes
9045 ;;
9046 esac
9047 fi
9048
9049 if test yes = "$lt_use_gnu_ld_interface"; then
9050 # If archive_cmds runs LD, not CC, wlarc should be empty
9051 wlarc='$wl'
9052
9053 # Set some defaults for GNU ld with shared library support. These
9054 # are reset later if shared libraries are not supported. Putting them
9055 # here allows them to be overridden if necessary.
9056 runpath_var=LD_RUN_PATH
9057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9058 export_dynamic_flag_spec='$wl--export-dynamic'
9059 # ancient GNU ld didn't support --whole-archive et. al.
9060 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9061 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9062 else
9063 whole_archive_flag_spec=
9064 fi
9065 supports_anon_versioning=no
9066 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9067 *GNU\ gold*) supports_anon_versioning=yes ;;
9068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9071 *\ 2.11.*) ;; # other 2.11 versions
9072 *) supports_anon_versioning=yes ;;
9073 esac
9074
9075 # See if GNU ld supports shared libraries.
9076 case $host_os in
9077 aix[3-9]*)
9078 # On AIX/PPC, the GNU linker is very broken
9079 if test ia64 != "$host_cpu"; then
9080 ld_shlibs=no
9081 cat <<_LT_EOF 1>&2
9082
9083 *** Warning: the GNU linker, at least up to release 2.19, is reported
9084 *** to be unable to reliably create shared libraries on AIX.
9085 *** Therefore, libtool is disabling shared libraries support. If you
9086 *** really care for shared libraries, you may want to install binutils
9087 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9088 *** You will then need to restart the configuration process.
9089
9090 _LT_EOF
9091 fi
9092 ;;
9093
9094 amigaos*)
9095 case $host_cpu in
9096 powerpc)
9097 # see comment about AmigaOS4 .so support
9098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9099 archive_expsym_cmds=''
9100 ;;
9101 m68k)
9102 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)'
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_minus_L=yes
9105 ;;
9106 esac
9107 ;;
9108
9109 beos*)
9110 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9111 allow_undefined_flag=unsupported
9112 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9113 # support --undefined. This deserves some investigation. FIXME
9114 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9115 else
9116 ld_shlibs=no
9117 fi
9118 ;;
9119
9120 cygwin* | mingw* | pw32* | cegcc*)
9121 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9122 # as there is no search path for DLLs.
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 export_dynamic_flag_spec='$wl--export-all-symbols'
9125 allow_undefined_flag=unsupported
9126 always_export_symbols=no
9127 enable_shared_with_static_runtimes=yes
9128 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'
9129 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9130
9131 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9133 # If the export-symbols file already is a .def file, use it as
9134 # is; otherwise, prepend EXPORTS...
9135 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9136 cp $export_symbols $output_objdir/$soname.def;
9137 else
9138 echo EXPORTS > $output_objdir/$soname.def;
9139 cat $export_symbols >> $output_objdir/$soname.def;
9140 fi~
9141 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142 else
9143 ld_shlibs=no
9144 fi
9145 ;;
9146
9147 haiku*)
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9149 link_all_deplibs=yes
9150 ;;
9151
9152 os2*)
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 hardcode_minus_L=yes
9155 allow_undefined_flag=unsupported
9156 shrext_cmds=.dll
9157 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9160 $ECHO EXPORTS >> $output_objdir/$libname.def~
9161 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9162 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9163 emximp -o $lib $output_objdir/$libname.def'
9164 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9165 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9166 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9167 $ECHO EXPORTS >> $output_objdir/$libname.def~
9168 prefix_cmds="$SED"~
9169 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9170 prefix_cmds="$prefix_cmds -e 1d";
9171 fi~
9172 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9173 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9175 emximp -o $lib $output_objdir/$libname.def'
9176 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9177 enable_shared_with_static_runtimes=yes
9178 ;;
9179
9180 interix[3-9]*)
9181 hardcode_direct=no
9182 hardcode_shlibpath_var=no
9183 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9184 export_dynamic_flag_spec='$wl-E'
9185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9186 # Instead, shared libraries are loaded at an image base (0x10000000 by
9187 # default) and relocated if they conflict, which is a slow very memory
9188 # consuming and fragmenting process. To avoid this, we pick a random,
9189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9192 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'
9193 ;;
9194
9195 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9196 tmp_diet=no
9197 if test linux-dietlibc = "$host_os"; then
9198 case $cc_basename in
9199 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9200 esac
9201 fi
9202 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9203 && test no = "$tmp_diet"
9204 then
9205 tmp_addflag=' $pic_flag'
9206 tmp_sharedflag='-shared'
9207 case $cc_basename,$host_cpu in
9208 pgcc*) # Portland Group C compiler
9209 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'
9210 tmp_addflag=' $pic_flag'
9211 ;;
9212 pgf77* | pgf90* | pgf95* | pgfortran*)
9213 # Portland Group f77 and f90 compilers
9214 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'
9215 tmp_addflag=' $pic_flag -Mnomain' ;;
9216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9217 tmp_addflag=' -i_dynamic' ;;
9218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9219 tmp_addflag=' -i_dynamic -nofor_main' ;;
9220 ifc* | ifort*) # Intel Fortran compiler
9221 tmp_addflag=' -nofor_main' ;;
9222 lf95*) # Lahey Fortran 8.1
9223 whole_archive_flag_spec=
9224 tmp_sharedflag='--shared' ;;
9225 nagfor*) # NAGFOR 5.3
9226 tmp_sharedflag='-Wl,-shared' ;;
9227 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9228 tmp_sharedflag='-qmkshrobj'
9229 tmp_addflag= ;;
9230 nvcc*) # Cuda Compiler Driver 2.2
9231 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'
9232 compiler_needs_object=yes
9233 ;;
9234 esac
9235 case `$CC -V 2>&1 | sed 5q` in
9236 *Sun\ C*) # Sun C 5.9
9237 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'
9238 compiler_needs_object=yes
9239 tmp_sharedflag='-G' ;;
9240 *Sun\ F*) # Sun Fortran 8.3
9241 tmp_sharedflag='-G' ;;
9242 esac
9243 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9244
9245 if test yes = "$supports_anon_versioning"; then
9246 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9248 echo "local: *; };" >> $output_objdir/$libname.ver~
9249 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9250 fi
9251
9252 case $cc_basename in
9253 tcc*)
9254 export_dynamic_flag_spec='-rdynamic'
9255 ;;
9256 xlf* | bgf* | bgxlf* | mpixlf*)
9257 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9258 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9260 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9261 if test yes = "$supports_anon_versioning"; then
9262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264 echo "local: *; };" >> $output_objdir/$libname.ver~
9265 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9266 fi
9267 ;;
9268 esac
9269 else
9270 ld_shlibs=no
9271 fi
9272 ;;
9273
9274 netbsd*)
9275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9277 wlarc=
9278 else
9279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9280 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9281 fi
9282 ;;
9283
9284 solaris*)
9285 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9286 ld_shlibs=no
9287 cat <<_LT_EOF 1>&2
9288
9289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9290 *** create shared libraries on Solaris systems. Therefore, libtool
9291 *** is disabling shared libraries support. We urge you to upgrade GNU
9292 *** binutils to release 2.9.1 or newer. Another option is to modify
9293 *** your PATH or compiler configuration so that the native linker is
9294 *** used, and then restart.
9295
9296 _LT_EOF
9297 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9299 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9300 else
9301 ld_shlibs=no
9302 fi
9303 ;;
9304
9305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9306 case `$LD -v 2>&1` in
9307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9308 ld_shlibs=no
9309 cat <<_LT_EOF 1>&2
9310
9311 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9312 *** reliably create shared libraries on SCO systems. Therefore, libtool
9313 *** is disabling shared libraries support. We urge you to upgrade GNU
9314 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9315 *** your PATH or compiler configuration so that the native linker is
9316 *** used, and then restart.
9317
9318 _LT_EOF
9319 ;;
9320 *)
9321 # For security reasons, it is highly recommended that you always
9322 # use absolute paths for naming shared libraries, and exclude the
9323 # DT_RUNPATH tag from executables and libraries. But doing so
9324 # requires that you compile everything twice, which is a pain.
9325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9329 else
9330 ld_shlibs=no
9331 fi
9332 ;;
9333 esac
9334 ;;
9335
9336 sunos4*)
9337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338 wlarc=
9339 hardcode_direct=yes
9340 hardcode_shlibpath_var=no
9341 ;;
9342
9343 *)
9344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9346 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351 esac
9352
9353 if test no = "$ld_shlibs"; then
9354 runpath_var=
9355 hardcode_libdir_flag_spec=
9356 export_dynamic_flag_spec=
9357 whole_archive_flag_spec=
9358 fi
9359 else
9360 # PORTME fill in a description of your system's linker (not GNU ld)
9361 case $host_os in
9362 aix3*)
9363 allow_undefined_flag=unsupported
9364 always_export_symbols=yes
9365 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'
9366 # Note: this linker hardcodes the directories in LIBPATH if there
9367 # are no directories specified by -L.
9368 hardcode_minus_L=yes
9369 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9370 # Neither direct hardcoding nor static linking is supported with a
9371 # broken collect2.
9372 hardcode_direct=unsupported
9373 fi
9374 ;;
9375
9376 aix[4-9]*)
9377 if test ia64 = "$host_cpu"; then
9378 # On IA64, the linker does run time linking by default, so we don't
9379 # have to do anything special.
9380 aix_use_runtimelinking=no
9381 exp_sym_flag='-Bexport'
9382 no_entry_flag=
9383 else
9384 # If we're using GNU nm, then we don't want the "-C" option.
9385 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9386 # Without the "-l" option, or with the "-B" option, AIX nm treats
9387 # weak defined symbols like other global defined symbols, whereas
9388 # GNU nm marks them as "W".
9389 # While the 'weak' keyword is ignored in the Export File, we need
9390 # it in the Import File for the 'aix-soname' feature, so we have
9391 # to replace the "-B" option with "-P" for AIX nm.
9392 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9393 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9394 else
9395 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9396 fi
9397 aix_use_runtimelinking=no
9398
9399 # Test if we are trying to use run time linking or normal
9400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9401 # have runtime linking enabled, and use it for executables.
9402 # For shared libraries, we enable/disable runtime linking
9403 # depending on the kind of the shared library created -
9404 # when "with_aix_soname,aix_use_runtimelinking" is:
9405 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9406 # "aix,yes" lib.so shared, rtl:yes, for executables
9407 # lib.a static archive
9408 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9409 # lib.a(lib.so.V) shared, rtl:no, for executables
9410 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9411 # lib.a(lib.so.V) shared, rtl:no
9412 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9413 # lib.a static archive
9414 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9415 for ld_flag in $LDFLAGS; do
9416 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9417 aix_use_runtimelinking=yes
9418 break
9419 fi
9420 done
9421 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9422 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9423 # so we don't have lib.a shared libs to link our executables.
9424 # We have to force runtime linking in this case.
9425 aix_use_runtimelinking=yes
9426 LDFLAGS="$LDFLAGS -Wl,-brtl"
9427 fi
9428 ;;
9429 esac
9430
9431 exp_sym_flag='-bexport'
9432 no_entry_flag='-bnoentry'
9433 fi
9434
9435 # When large executables or shared objects are built, AIX ld can
9436 # have problems creating the table of contents. If linking a library
9437 # or program results in "error TOC overflow" add -mminimal-toc to
9438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9440
9441 archive_cmds=''
9442 hardcode_direct=yes
9443 hardcode_direct_absolute=yes
9444 hardcode_libdir_separator=':'
9445 link_all_deplibs=yes
9446 file_list_spec='$wl-f,'
9447 case $with_aix_soname,$aix_use_runtimelinking in
9448 aix,*) ;; # traditional, no import file
9449 svr4,* | *,yes) # use import file
9450 # The Import File defines what to hardcode.
9451 hardcode_direct=no
9452 hardcode_direct_absolute=no
9453 ;;
9454 esac
9455
9456 if test yes = "$GCC"; then
9457 case $host_os in aix4.[012]|aix4.[012].*)
9458 # We only want to do this on AIX 4.2 and lower, the check
9459 # below for broken collect2 doesn't work under 4.3+
9460 collect2name=`$CC -print-prog-name=collect2`
9461 if test -f "$collect2name" &&
9462 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9463 then
9464 # We have reworked collect2
9465 :
9466 else
9467 # We have old collect2
9468 hardcode_direct=unsupported
9469 # It fails to find uninstalled libraries when the uninstalled
9470 # path is not listed in the libpath. Setting hardcode_minus_L
9471 # to unsupported forces relinking
9472 hardcode_minus_L=yes
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_libdir_separator=
9475 fi
9476 ;;
9477 esac
9478 shared_flag='-shared'
9479 if test yes = "$aix_use_runtimelinking"; then
9480 shared_flag="$shared_flag "'$wl-G'
9481 fi
9482 # Need to ensure runtime linking is disabled for the traditional
9483 # shared library, or the linker may eventually find shared libraries
9484 # /with/ Import File - we do not want to mix them.
9485 shared_flag_aix='-shared'
9486 shared_flag_svr4='-shared $wl-G'
9487 else
9488 # not using gcc
9489 if test ia64 = "$host_cpu"; then
9490 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9491 # chokes on -Wl,-G. The following line is correct:
9492 shared_flag='-G'
9493 else
9494 if test yes = "$aix_use_runtimelinking"; then
9495 shared_flag='$wl-G'
9496 else
9497 shared_flag='$wl-bM:SRE'
9498 fi
9499 shared_flag_aix='$wl-bM:SRE'
9500 shared_flag_svr4='$wl-G'
9501 fi
9502 fi
9503
9504 export_dynamic_flag_spec='$wl-bexpall'
9505 # It seems that -bexpall does not export symbols beginning with
9506 # underscore (_), so it is better to generate a list of symbols to export.
9507 always_export_symbols=yes
9508 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9509 # Warning - without using the other runtime loading flags (-brtl),
9510 # -berok will link without error, but may produce a broken library.
9511 allow_undefined_flag='-berok'
9512 # Determine the default libpath from the value encoded in an
9513 # empty executable.
9514 if test set = "${lt_cv_aix_libpath+set}"; then
9515 aix_libpath=$lt_cv_aix_libpath
9516 else
9517 if ${lt_cv_aix_libpath_+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522
9523 int
9524 main ()
9525 {
9526
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532
9533 lt_aix_libpath_sed='
9534 /Import File Strings/,/^$/ {
9535 /^0/ {
9536 s/^0 *\([^ ]*\) *$/\1/
9537 p
9538 }
9539 }'
9540 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9541 # Check for a 64-bit object if we didn't find anything.
9542 if test -z "$lt_cv_aix_libpath_"; then
9543 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544 fi
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 if test -z "$lt_cv_aix_libpath_"; then
9549 lt_cv_aix_libpath_=/usr/lib:/lib
9550 fi
9551
9552 fi
9553
9554 aix_libpath=$lt_cv_aix_libpath_
9555 fi
9556
9557 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9558 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9559 else
9560 if test ia64 = "$host_cpu"; then
9561 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9562 allow_undefined_flag="-z nodefs"
9563 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"
9564 else
9565 # Determine the default libpath from the value encoded in an
9566 # empty executable.
9567 if test set = "${lt_cv_aix_libpath+set}"; then
9568 aix_libpath=$lt_cv_aix_libpath
9569 else
9570 if ${lt_cv_aix_libpath_+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575
9576 int
9577 main ()
9578 {
9579
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"; then :
9585
9586 lt_aix_libpath_sed='
9587 /Import File Strings/,/^$/ {
9588 /^0/ {
9589 s/^0 *\([^ ]*\) *$/\1/
9590 p
9591 }
9592 }'
9593 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9594 # Check for a 64-bit object if we didn't find anything.
9595 if test -z "$lt_cv_aix_libpath_"; then
9596 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9597 fi
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 if test -z "$lt_cv_aix_libpath_"; then
9602 lt_cv_aix_libpath_=/usr/lib:/lib
9603 fi
9604
9605 fi
9606
9607 aix_libpath=$lt_cv_aix_libpath_
9608 fi
9609
9610 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9611 # Warning - without using the other run time loading flags,
9612 # -berok will link without error, but may produce a broken library.
9613 no_undefined_flag=' $wl-bernotok'
9614 allow_undefined_flag=' $wl-berok'
9615 if test yes = "$with_gnu_ld"; then
9616 # We only use this code for GNU lds that support --whole-archive.
9617 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9618 else
9619 # Exported symbols can be pulled into shared objects from archives
9620 whole_archive_flag_spec='$convenience'
9621 fi
9622 archive_cmds_need_lc=yes
9623 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9624 # -brtl affects multiple linker settings, -berok does not and is overridden later
9625 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9626 if test svr4 != "$with_aix_soname"; then
9627 # This is similar to how AIX traditionally builds its shared libraries.
9628 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9629 fi
9630 if test aix != "$with_aix_soname"; then
9631 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9632 else
9633 # used by -dlpreopen to get the symbols
9634 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9635 fi
9636 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9637 fi
9638 fi
9639 ;;
9640
9641 amigaos*)
9642 case $host_cpu in
9643 powerpc)
9644 # see comment about AmigaOS4 .so support
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9646 archive_expsym_cmds=''
9647 ;;
9648 m68k)
9649 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)'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_minus_L=yes
9652 ;;
9653 esac
9654 ;;
9655
9656 bsdi[45]*)
9657 export_dynamic_flag_spec=-rdynamic
9658 ;;
9659
9660 cygwin* | mingw* | pw32* | cegcc*)
9661 # When not using gcc, we currently assume that we are using
9662 # Microsoft Visual C++.
9663 # hardcode_libdir_flag_spec is actually meaningless, as there is
9664 # no search path for DLLs.
9665 case $cc_basename in
9666 cl*)
9667 # Native MSVC
9668 hardcode_libdir_flag_spec=' '
9669 allow_undefined_flag=unsupported
9670 always_export_symbols=yes
9671 file_list_spec='@'
9672 # Tell ltmain to make .lib files, not .a files.
9673 libext=lib
9674 # Tell ltmain to make .dll files, not .so files.
9675 shrext_cmds=.dll
9676 # FIXME: Setting linknames here is a bad hack.
9677 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9678 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9679 cp "$export_symbols" "$output_objdir/$soname.def";
9680 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9681 else
9682 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9683 fi~
9684 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9685 linknames='
9686 # The linker will not automatically build a static lib if we build a DLL.
9687 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9688 enable_shared_with_static_runtimes=yes
9689 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9691 # Don't use ranlib
9692 old_postinstall_cmds='chmod 644 $oldlib'
9693 postlink_cmds='lt_outputfile="@OUTPUT@"~
9694 lt_tool_outputfile="@TOOL_OUTPUT@"~
9695 case $lt_outputfile in
9696 *.exe|*.EXE) ;;
9697 *)
9698 lt_outputfile=$lt_outputfile.exe
9699 lt_tool_outputfile=$lt_tool_outputfile.exe
9700 ;;
9701 esac~
9702 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9703 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9704 $RM "$lt_outputfile.manifest";
9705 fi'
9706 ;;
9707 *)
9708 # Assume MSVC wrapper
9709 hardcode_libdir_flag_spec=' '
9710 allow_undefined_flag=unsupported
9711 # Tell ltmain to make .lib files, not .a files.
9712 libext=lib
9713 # Tell ltmain to make .dll files, not .so files.
9714 shrext_cmds=.dll
9715 # FIXME: Setting linknames here is a bad hack.
9716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9717 # The linker will automatically build a .lib file if we build a DLL.
9718 old_archive_from_new_cmds='true'
9719 # FIXME: Should let the user specify the lib program.
9720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9721 enable_shared_with_static_runtimes=yes
9722 ;;
9723 esac
9724 ;;
9725
9726 darwin* | rhapsody*)
9727
9728
9729 archive_cmds_need_lc=no
9730 hardcode_direct=no
9731 hardcode_automatic=yes
9732 hardcode_shlibpath_var=unsupported
9733 if test yes = "$lt_cv_ld_force_load"; then
9734 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\"`'
9735
9736 else
9737 whole_archive_flag_spec=''
9738 fi
9739 link_all_deplibs=yes
9740 allow_undefined_flag=$_lt_dar_allow_undefined
9741 case $cc_basename in
9742 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9743 *) _lt_dar_can_shared=$GCC ;;
9744 esac
9745 if test yes = "$_lt_dar_can_shared"; then
9746 output_verbose_link_cmd=func_echo_all
9747 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9748 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9749 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"
9750 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"
9751
9752 else
9753 ld_shlibs=no
9754 fi
9755
9756 ;;
9757
9758 dgux*)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_shlibpath_var=no
9762 ;;
9763
9764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9765 # support. Future versions do this automatically, but an explicit c++rt0.o
9766 # does not break anything, and helps significantly (at the cost of a little
9767 # extra space).
9768 freebsd2.2*)
9769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9770 hardcode_libdir_flag_spec='-R$libdir'
9771 hardcode_direct=yes
9772 hardcode_shlibpath_var=no
9773 ;;
9774
9775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9776 freebsd2.*)
9777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_direct=yes
9779 hardcode_minus_L=yes
9780 hardcode_shlibpath_var=no
9781 ;;
9782
9783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9784 freebsd* | dragonfly*)
9785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9786 hardcode_libdir_flag_spec='-R$libdir'
9787 hardcode_direct=yes
9788 hardcode_shlibpath_var=no
9789 ;;
9790
9791 hpux9*)
9792 if test yes = "$GCC"; then
9793 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9794 else
9795 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9796 fi
9797 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9798 hardcode_libdir_separator=:
9799 hardcode_direct=yes
9800
9801 # hardcode_minus_L: Not really in the search PATH,
9802 # but as the default location of the library.
9803 hardcode_minus_L=yes
9804 export_dynamic_flag_spec='$wl-E'
9805 ;;
9806
9807 hpux10*)
9808 if test yes,no = "$GCC,$with_gnu_ld"; then
9809 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810 else
9811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9812 fi
9813 if test no = "$with_gnu_ld"; then
9814 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9815 hardcode_libdir_separator=:
9816 hardcode_direct=yes
9817 hardcode_direct_absolute=yes
9818 export_dynamic_flag_spec='$wl-E'
9819 # hardcode_minus_L: Not really in the search PATH,
9820 # but as the default location of the library.
9821 hardcode_minus_L=yes
9822 fi
9823 ;;
9824
9825 hpux11*)
9826 if test yes,no = "$GCC,$with_gnu_ld"; then
9827 case $host_cpu in
9828 hppa*64*)
9829 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 ;;
9831 ia64*)
9832 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833 ;;
9834 *)
9835 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836 ;;
9837 esac
9838 else
9839 case $host_cpu in
9840 hppa*64*)
9841 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 ;;
9843 ia64*)
9844 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9845 ;;
9846 *)
9847
9848 # Older versions of the 11.00 compiler do not understand -b yet
9849 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9851 $as_echo_n "checking if $CC understands -b... " >&6; }
9852 if ${lt_cv_prog_compiler__b+:} false; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 lt_cv_prog_compiler__b=no
9856 save_LDFLAGS=$LDFLAGS
9857 LDFLAGS="$LDFLAGS -b"
9858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9860 # The linker can only warn and ignore the option if not recognized
9861 # So say no if there are warnings
9862 if test -s conftest.err; then
9863 # Append any errors to the config.log.
9864 cat conftest.err 1>&5
9865 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9867 if diff conftest.exp conftest.er2 >/dev/null; then
9868 lt_cv_prog_compiler__b=yes
9869 fi
9870 else
9871 lt_cv_prog_compiler__b=yes
9872 fi
9873 fi
9874 $RM -r conftest*
9875 LDFLAGS=$save_LDFLAGS
9876
9877 fi
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9879 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9880
9881 if test yes = "$lt_cv_prog_compiler__b"; then
9882 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9883 else
9884 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9885 fi
9886
9887 ;;
9888 esac
9889 fi
9890 if test no = "$with_gnu_ld"; then
9891 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9892 hardcode_libdir_separator=:
9893
9894 case $host_cpu in
9895 hppa*64*|ia64*)
9896 hardcode_direct=no
9897 hardcode_shlibpath_var=no
9898 ;;
9899 *)
9900 hardcode_direct=yes
9901 hardcode_direct_absolute=yes
9902 export_dynamic_flag_spec='$wl-E'
9903
9904 # hardcode_minus_L: Not really in the search PATH,
9905 # but as the default location of the library.
9906 hardcode_minus_L=yes
9907 ;;
9908 esac
9909 fi
9910 ;;
9911
9912 irix5* | irix6* | nonstopux*)
9913 if test yes = "$GCC"; then
9914 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'
9915 # Try to use the -exported_symbol ld option, if it does not
9916 # work, assume that -exports_file does not work either and
9917 # implicitly export all symbols.
9918 # This should be the same for all languages, so no per-tag cache variable.
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9920 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9921 if ${lt_cv_irix_exported_symbol+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 save_LDFLAGS=$LDFLAGS
9925 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 int foo (void) { return 0; }
9929 _ACEOF
9930 if ac_fn_c_try_link "$LINENO"; then :
9931 lt_cv_irix_exported_symbol=yes
9932 else
9933 lt_cv_irix_exported_symbol=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 LDFLAGS=$save_LDFLAGS
9938 fi
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9940 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9941 if test yes = "$lt_cv_irix_exported_symbol"; then
9942 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'
9943 fi
9944 else
9945 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'
9946 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'
9947 fi
9948 archive_cmds_need_lc='no'
9949 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9950 hardcode_libdir_separator=:
9951 inherit_rpath=yes
9952 link_all_deplibs=yes
9953 ;;
9954
9955 linux*)
9956 case $cc_basename in
9957 tcc*)
9958 # Fabrice Bellard et al's Tiny C Compiler
9959 ld_shlibs=yes
9960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961 ;;
9962 esac
9963 ;;
9964
9965 netbsd*)
9966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9968 else
9969 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9970 fi
9971 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 newsos6)
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_direct=yes
9979 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9980 hardcode_libdir_separator=:
9981 hardcode_shlibpath_var=no
9982 ;;
9983
9984 *nto* | *qnx*)
9985 ;;
9986
9987 openbsd* | bitrig*)
9988 if test -f /usr/libexec/ld.so; then
9989 hardcode_direct=yes
9990 hardcode_shlibpath_var=no
9991 hardcode_direct_absolute=yes
9992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9995 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9996 export_dynamic_flag_spec='$wl-E'
9997 else
9998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10000 fi
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005
10006 os2*)
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_minus_L=yes
10009 allow_undefined_flag=unsupported
10010 shrext_cmds=.dll
10011 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10012 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10013 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10014 $ECHO EXPORTS >> $output_objdir/$libname.def~
10015 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10016 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10017 emximp -o $lib $output_objdir/$libname.def'
10018 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10019 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10020 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10021 $ECHO EXPORTS >> $output_objdir/$libname.def~
10022 prefix_cmds="$SED"~
10023 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10024 prefix_cmds="$prefix_cmds -e 1d";
10025 fi~
10026 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10027 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10028 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10029 emximp -o $lib $output_objdir/$libname.def'
10030 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10031 enable_shared_with_static_runtimes=yes
10032 ;;
10033
10034 osf3*)
10035 if test yes = "$GCC"; then
10036 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10037 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'
10038 else
10039 allow_undefined_flag=' -expect_unresolved \*'
10040 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'
10041 fi
10042 archive_cmds_need_lc='no'
10043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10044 hardcode_libdir_separator=:
10045 ;;
10046
10047 osf4* | osf5*) # as osf3* with the addition of -msym flag
10048 if test yes = "$GCC"; then
10049 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10050 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'
10051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10052 else
10053 allow_undefined_flag=' -expect_unresolved \*'
10054 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'
10055 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~
10056 $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'
10057
10058 # Both c and cxx compiler support -rpath directly
10059 hardcode_libdir_flag_spec='-rpath $libdir'
10060 fi
10061 archive_cmds_need_lc='no'
10062 hardcode_libdir_separator=:
10063 ;;
10064
10065 solaris*)
10066 no_undefined_flag=' -z defs'
10067 if test yes = "$GCC"; then
10068 wlarc='$wl'
10069 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071 $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'
10072 else
10073 case `$CC -V 2>&1` in
10074 *"Compilers 5.0"*)
10075 wlarc=''
10076 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10078 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10079 ;;
10080 *)
10081 wlarc='$wl'
10082 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10084 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10085 ;;
10086 esac
10087 fi
10088 hardcode_libdir_flag_spec='-R$libdir'
10089 hardcode_shlibpath_var=no
10090 case $host_os in
10091 solaris2.[0-5] | solaris2.[0-5].*) ;;
10092 *)
10093 # The compiler driver will combine and reorder linker options,
10094 # but understands '-z linker_flag'. GCC discards it without '$wl',
10095 # but is careful enough not to reorder.
10096 # Supported since Solaris 2.6 (maybe 2.5.1?)
10097 if test yes = "$GCC"; then
10098 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10099 else
10100 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10101 fi
10102 ;;
10103 esac
10104 link_all_deplibs=yes
10105 ;;
10106
10107 sunos4*)
10108 if test sequent = "$host_vendor"; then
10109 # Use $CC to link under sequent, because it throws in some extra .o
10110 # files that make .init and .fini sections work.
10111 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10112 else
10113 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10114 fi
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_direct=yes
10117 hardcode_minus_L=yes
10118 hardcode_shlibpath_var=no
10119 ;;
10120
10121 sysv4)
10122 case $host_vendor in
10123 sni)
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_direct=yes # is this really true???
10126 ;;
10127 siemens)
10128 ## LD is ld it makes a PLAMLIB
10129 ## CC just makes a GrossModule.
10130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10131 reload_cmds='$CC -r -o $output$reload_objs'
10132 hardcode_direct=no
10133 ;;
10134 motorola)
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10137 ;;
10138 esac
10139 runpath_var='LD_RUN_PATH'
10140 hardcode_shlibpath_var=no
10141 ;;
10142
10143 sysv4.3*)
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_shlibpath_var=no
10146 export_dynamic_flag_spec='-Bexport'
10147 ;;
10148
10149 sysv4*MP*)
10150 if test -d /usr/nec; then
10151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152 hardcode_shlibpath_var=no
10153 runpath_var=LD_RUN_PATH
10154 hardcode_runpath_var=yes
10155 ld_shlibs=yes
10156 fi
10157 ;;
10158
10159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10160 no_undefined_flag='$wl-z,text'
10161 archive_cmds_need_lc=no
10162 hardcode_shlibpath_var=no
10163 runpath_var='LD_RUN_PATH'
10164
10165 if test yes = "$GCC"; then
10166 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168 else
10169 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 fi
10172 ;;
10173
10174 sysv5* | sco3.2v5* | sco5v6*)
10175 # Note: We CANNOT use -z defs as we might desire, because we do not
10176 # link with -lc, and that would cause any symbols used from libc to
10177 # always be unresolved, which means just about no library would
10178 # ever link correctly. If we're not using GNU ld we use -z text
10179 # though, which does catch some bad symbols but isn't as heavy-handed
10180 # as -z defs.
10181 no_undefined_flag='$wl-z,text'
10182 allow_undefined_flag='$wl-z,nodefs'
10183 archive_cmds_need_lc=no
10184 hardcode_shlibpath_var=no
10185 hardcode_libdir_flag_spec='$wl-R,$libdir'
10186 hardcode_libdir_separator=':'
10187 link_all_deplibs=yes
10188 export_dynamic_flag_spec='$wl-Bexport'
10189 runpath_var='LD_RUN_PATH'
10190
10191 if test yes = "$GCC"; then
10192 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 else
10195 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 fi
10198 ;;
10199
10200 uts4*)
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_libdir_flag_spec='-L$libdir'
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 *)
10207 ld_shlibs=no
10208 ;;
10209 esac
10210
10211 if test sni = "$host_vendor"; then
10212 case $host in
10213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10214 export_dynamic_flag_spec='$wl-Blargedynsym'
10215 ;;
10216 esac
10217 fi
10218 fi
10219
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10221 $as_echo "$ld_shlibs" >&6; }
10222 test no = "$ld_shlibs" && can_build_shared=no
10223
10224 with_gnu_ld=$with_gnu_ld
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240 #
10241 # Do we need to explicitly link libc?
10242 #
10243 case "x$archive_cmds_need_lc" in
10244 x|xyes)
10245 # Assume -lc should be added
10246 archive_cmds_need_lc=yes
10247
10248 if test yes,yes = "$GCC,$enable_shared"; then
10249 case $archive_cmds in
10250 *'~'*)
10251 # FIXME: we may have to deal with multi-command sequences.
10252 ;;
10253 '$CC '*)
10254 # Test whether the compiler implicitly links with -lc since on some
10255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10256 # to ld, don't add -lc before -lgcc.
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10258 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10259 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 $RM conftest*
10263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10264
10265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10266 (eval $ac_compile) 2>&5
10267 ac_status=$?
10268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10269 test $ac_status = 0; } 2>conftest.err; then
10270 soname=conftest
10271 lib=conftest
10272 libobjs=conftest.$ac_objext
10273 deplibs=
10274 wl=$lt_prog_compiler_wl
10275 pic_flag=$lt_prog_compiler_pic
10276 compiler_flags=-v
10277 linker_flags=-v
10278 verstring=
10279 output_objdir=.
10280 libname=conftest
10281 lt_save_allow_undefined_flag=$allow_undefined_flag
10282 allow_undefined_flag=
10283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10284 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10285 ac_status=$?
10286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10287 test $ac_status = 0; }
10288 then
10289 lt_cv_archive_cmds_need_lc=no
10290 else
10291 lt_cv_archive_cmds_need_lc=yes
10292 fi
10293 allow_undefined_flag=$lt_save_allow_undefined_flag
10294 else
10295 cat conftest.err 1>&5
10296 fi
10297 $RM conftest*
10298
10299 fi
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10301 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10302 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10303 ;;
10304 esac
10305 fi
10306 ;;
10307 esac
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10461 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10462
10463 if test yes = "$GCC"; then
10464 case $host_os in
10465 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10466 *) lt_awk_arg='/^libraries:/' ;;
10467 esac
10468 case $host_os in
10469 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10470 *) lt_sed_strip_eq='s|=/|/|g' ;;
10471 esac
10472 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10473 case $lt_search_path_spec in
10474 *\;*)
10475 # if the path contains ";" then we assume it to be the separator
10476 # otherwise default to the standard path separator (i.e. ":") - it is
10477 # assumed that no part of a normal pathname contains ";" but that should
10478 # okay in the real world where ";" in dirpaths is itself problematic.
10479 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10480 ;;
10481 *)
10482 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10483 ;;
10484 esac
10485 # Ok, now we have the path, separated by spaces, we can step through it
10486 # and add multilib dir if necessary...
10487 lt_tmp_lt_search_path_spec=
10488 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10489 # ...but if some path component already ends with the multilib dir we assume
10490 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10491 case "$lt_multi_os_dir; $lt_search_path_spec " in
10492 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10493 lt_multi_os_dir=
10494 ;;
10495 esac
10496 for lt_sys_path in $lt_search_path_spec; do
10497 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10498 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10499 elif test -n "$lt_multi_os_dir"; then
10500 test -d "$lt_sys_path" && \
10501 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10502 fi
10503 done
10504 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10505 BEGIN {RS = " "; FS = "/|\n";} {
10506 lt_foo = "";
10507 lt_count = 0;
10508 for (lt_i = NF; lt_i > 0; lt_i--) {
10509 if ($lt_i != "" && $lt_i != ".") {
10510 if ($lt_i == "..") {
10511 lt_count++;
10512 } else {
10513 if (lt_count == 0) {
10514 lt_foo = "/" $lt_i lt_foo;
10515 } else {
10516 lt_count--;
10517 }
10518 }
10519 }
10520 }
10521 if (lt_foo != "") { lt_freq[lt_foo]++; }
10522 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10523 }'`
10524 # AWK program above erroneously prepends '/' to C:/dos/paths
10525 # for these hosts.
10526 case $host_os in
10527 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10528 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10529 esac
10530 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10531 else
10532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10533 fi
10534 library_names_spec=
10535 libname_spec='lib$name'
10536 soname_spec=
10537 shrext_cmds=.so
10538 postinstall_cmds=
10539 postuninstall_cmds=
10540 finish_cmds=
10541 finish_eval=
10542 shlibpath_var=
10543 shlibpath_overrides_runpath=unknown
10544 version_type=none
10545 dynamic_linker="$host_os ld.so"
10546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10547 need_lib_prefix=unknown
10548 hardcode_into_libs=no
10549
10550 # when you set need_version to no, make sure it does not cause -set_version
10551 # flags to be left without arguments
10552 need_version=unknown
10553
10554 case $host_os in
10555 aix3*)
10556 version_type=linux # correct to gnu/linux during the next big refactor
10557 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10558 shlibpath_var=LIBPATH
10559
10560 # AIX 3 has no versioning support, so we append a major version to the name.
10561 soname_spec='$libname$release$shared_ext$major'
10562 ;;
10563
10564 aix[4-9]*)
10565 version_type=linux # correct to gnu/linux during the next big refactor
10566 need_lib_prefix=no
10567 need_version=no
10568 hardcode_into_libs=yes
10569 if test ia64 = "$host_cpu"; then
10570 # AIX 5 supports IA64
10571 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 else
10574 # With GCC up to 2.95.x, collect2 would create an import file
10575 # for dependence libraries. The import file would start with
10576 # the line '#! .'. This would cause the generated library to
10577 # depend on '.', always an invalid library. This was fixed in
10578 # development snapshots of GCC prior to 3.0.
10579 case $host_os in
10580 aix4 | aix4.[01] | aix4.[01].*)
10581 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10582 echo ' yes '
10583 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10584 :
10585 else
10586 can_build_shared=no
10587 fi
10588 ;;
10589 esac
10590 # Using Import Files as archive members, it is possible to support
10591 # filename-based versioning of shared library archives on AIX. While
10592 # this would work for both with and without runtime linking, it will
10593 # prevent static linking of such archives. So we do filename-based
10594 # shared library versioning with .so extension only, which is used
10595 # when both runtime linking and shared linking is enabled.
10596 # Unfortunately, runtime linking may impact performance, so we do
10597 # not want this to be the default eventually. Also, we use the
10598 # versioned .so libs for executables only if there is the -brtl
10599 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10600 # To allow for filename-based versioning support, we need to create
10601 # libNAME.so.V as an archive file, containing:
10602 # *) an Import File, referring to the versioned filename of the
10603 # archive as well as the shared archive member, telling the
10604 # bitwidth (32 or 64) of that shared object, and providing the
10605 # list of exported symbols of that shared object, eventually
10606 # decorated with the 'weak' keyword
10607 # *) the shared object with the F_LOADONLY flag set, to really avoid
10608 # it being seen by the linker.
10609 # At run time we better use the real file rather than another symlink,
10610 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10611
10612 case $with_aix_soname,$aix_use_runtimelinking in
10613 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10614 # soname into executable. Probably we can add versioning support to
10615 # collect2, so additional links can be useful in future.
10616 aix,yes) # traditional libtool
10617 dynamic_linker='AIX unversionable lib.so'
10618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10619 # instead of lib<name>.a to let people know that these are not
10620 # typical AIX shared libraries.
10621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10622 ;;
10623 aix,no) # traditional AIX only
10624 dynamic_linker='AIX lib.a(lib.so.V)'
10625 # We preserve .a as extension for shared libraries through AIX4.2
10626 # and later when we are not doing run time linking.
10627 library_names_spec='$libname$release.a $libname.a'
10628 soname_spec='$libname$release$shared_ext$major'
10629 ;;
10630 svr4,*) # full svr4 only
10631 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10632 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10633 # We do not specify a path in Import Files, so LIBPATH fires.
10634 shlibpath_overrides_runpath=yes
10635 ;;
10636 *,yes) # both, prefer svr4
10637 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10638 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10639 # unpreferred sharedlib libNAME.a needs extra handling
10640 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10641 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10642 # We do not specify a path in Import Files, so LIBPATH fires.
10643 shlibpath_overrides_runpath=yes
10644 ;;
10645 *,no) # both, prefer aix
10646 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10647 library_names_spec='$libname$release.a $libname.a'
10648 soname_spec='$libname$release$shared_ext$major'
10649 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10650 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10651 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10652 ;;
10653 esac
10654 shlibpath_var=LIBPATH
10655 fi
10656 ;;
10657
10658 amigaos*)
10659 case $host_cpu in
10660 powerpc)
10661 # Since July 2007 AmigaOS4 officially supports .so libraries.
10662 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10664 ;;
10665 m68k)
10666 library_names_spec='$libname.ixlibrary $libname.a'
10667 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10668 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10669 ;;
10670 esac
10671 ;;
10672
10673 beos*)
10674 library_names_spec='$libname$shared_ext'
10675 dynamic_linker="$host_os ld.so"
10676 shlibpath_var=LIBRARY_PATH
10677 ;;
10678
10679 bsdi[45]*)
10680 version_type=linux # correct to gnu/linux during the next big refactor
10681 need_version=no
10682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10683 soname_spec='$libname$release$shared_ext$major'
10684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10688 # the default ld.so.conf also contains /usr/contrib/lib and
10689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10690 # libtool to hard-code these into programs
10691 ;;
10692
10693 cygwin* | mingw* | pw32* | cegcc*)
10694 version_type=windows
10695 shrext_cmds=.dll
10696 need_version=no
10697 need_lib_prefix=no
10698
10699 case $GCC,$cc_basename in
10700 yes,*)
10701 # gcc
10702 library_names_spec='$libname.dll.a'
10703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10704 postinstall_cmds='base_file=`basename \$file`~
10705 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10706 dldir=$destdir/`dirname \$dlpath`~
10707 test -d \$dldir || mkdir -p \$dldir~
10708 $install_prog $dir/$dlname \$dldir/$dlname~
10709 chmod a+x \$dldir/$dlname~
10710 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10711 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10712 fi'
10713 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10714 dlpath=$dir/\$dldll~
10715 $RM \$dlpath'
10716 shlibpath_overrides_runpath=yes
10717
10718 case $host_os in
10719 cygwin*)
10720 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10721 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10722
10723 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10724 ;;
10725 mingw* | cegcc*)
10726 # MinGW DLLs use traditional 'lib' prefix
10727 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10728 ;;
10729 pw32*)
10730 # pw32 DLLs use 'pw' prefix rather than 'lib'
10731 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10732 ;;
10733 esac
10734 dynamic_linker='Win32 ld.exe'
10735 ;;
10736
10737 *,cl*)
10738 # Native MSVC
10739 libname_spec='$name'
10740 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10741 library_names_spec='$libname.dll.lib'
10742
10743 case $build_os in
10744 mingw*)
10745 sys_lib_search_path_spec=
10746 lt_save_ifs=$IFS
10747 IFS=';'
10748 for lt_path in $LIB
10749 do
10750 IFS=$lt_save_ifs
10751 # Let DOS variable expansion print the short 8.3 style file name.
10752 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10753 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10754 done
10755 IFS=$lt_save_ifs
10756 # Convert to MSYS style.
10757 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10758 ;;
10759 cygwin*)
10760 # Convert to unix form, then to dos form, then back to unix form
10761 # but this time dos style (no spaces!) so that the unix form looks
10762 # like /cygdrive/c/PROGRA~1:/cygdr...
10763 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10764 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10765 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10766 ;;
10767 *)
10768 sys_lib_search_path_spec=$LIB
10769 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10770 # It is most probably a Windows format PATH.
10771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10772 else
10773 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10774 fi
10775 # FIXME: find the short name or the path components, as spaces are
10776 # common. (e.g. "Program Files" -> "PROGRA~1")
10777 ;;
10778 esac
10779
10780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10781 postinstall_cmds='base_file=`basename \$file`~
10782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10783 dldir=$destdir/`dirname \$dlpath`~
10784 test -d \$dldir || mkdir -p \$dldir~
10785 $install_prog $dir/$dlname \$dldir/$dlname'
10786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10787 dlpath=$dir/\$dldll~
10788 $RM \$dlpath'
10789 shlibpath_overrides_runpath=yes
10790 dynamic_linker='Win32 link.exe'
10791 ;;
10792
10793 *)
10794 # Assume MSVC wrapper
10795 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10796 dynamic_linker='Win32 ld.exe'
10797 ;;
10798 esac
10799 # FIXME: first we should search . and the directory the executable is in
10800 shlibpath_var=PATH
10801 ;;
10802
10803 darwin* | rhapsody*)
10804 dynamic_linker="$host_os dyld"
10805 version_type=darwin
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10809 soname_spec='$libname$release$major$shared_ext'
10810 shlibpath_overrides_runpath=yes
10811 shlibpath_var=DYLD_LIBRARY_PATH
10812 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10813
10814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10815 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10816 ;;
10817
10818 dgux*)
10819 version_type=linux # correct to gnu/linux during the next big refactor
10820 need_lib_prefix=no
10821 need_version=no
10822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10823 soname_spec='$libname$release$shared_ext$major'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 ;;
10826
10827 freebsd* | dragonfly*)
10828 # DragonFly does not have aout. When/if they implement a new
10829 # versioning mechanism, adjust this.
10830 if test -x /usr/bin/objformat; then
10831 objformat=`/usr/bin/objformat`
10832 else
10833 case $host_os in
10834 freebsd[23].*) objformat=aout ;;
10835 *) objformat=elf ;;
10836 esac
10837 fi
10838 version_type=freebsd-$objformat
10839 case $version_type in
10840 freebsd-elf*)
10841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10842 need_version=no
10843 need_lib_prefix=no
10844 ;;
10845 freebsd-*)
10846 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10847 need_version=yes
10848 ;;
10849 esac
10850 shlibpath_var=LD_LIBRARY_PATH
10851 case $host_os in
10852 freebsd2.*)
10853 shlibpath_overrides_runpath=yes
10854 ;;
10855 freebsd3.[01]* | freebsdelf3.[01]*)
10856 shlibpath_overrides_runpath=yes
10857 hardcode_into_libs=yes
10858 ;;
10859 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10860 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10861 shlibpath_overrides_runpath=no
10862 hardcode_into_libs=yes
10863 ;;
10864 *) # from 4.6 on, and DragonFly
10865 shlibpath_overrides_runpath=yes
10866 hardcode_into_libs=yes
10867 ;;
10868 esac
10869 ;;
10870
10871 haiku*)
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 need_lib_prefix=no
10874 need_version=no
10875 dynamic_linker="$host_os runtime_loader"
10876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10877 soname_spec='$libname$release$shared_ext$major'
10878 shlibpath_var=LIBRARY_PATH
10879 shlibpath_overrides_runpath=no
10880 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10881 hardcode_into_libs=yes
10882 ;;
10883
10884 hpux9* | hpux10* | hpux11*)
10885 # Give a soname corresponding to the major version so that dld.sl refuses to
10886 # link against other versions.
10887 version_type=sunos
10888 need_lib_prefix=no
10889 need_version=no
10890 case $host_cpu in
10891 ia64*)
10892 shrext_cmds='.so'
10893 hardcode_into_libs=yes
10894 dynamic_linker="$host_os dld.so"
10895 shlibpath_var=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10898 soname_spec='$libname$release$shared_ext$major'
10899 if test 32 = "$HPUX_IA64_MODE"; then
10900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10901 else
10902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10903 fi
10904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10905 ;;
10906 hppa*64*)
10907 shrext_cmds='.sl'
10908 hardcode_into_libs=yes
10909 dynamic_linker="$host_os dld.sl"
10910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10913 soname_spec='$libname$release$shared_ext$major'
10914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10916 ;;
10917 *)
10918 shrext_cmds='.sl'
10919 dynamic_linker="$host_os dld.sl"
10920 shlibpath_var=SHLIB_PATH
10921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923 soname_spec='$libname$release$shared_ext$major'
10924 ;;
10925 esac
10926 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10927 postinstall_cmds='chmod 555 $lib'
10928 # or fails outright, so override atomically:
10929 install_override_mode=555
10930 ;;
10931
10932 interix[3-9]*)
10933 version_type=linux # correct to gnu/linux during the next big refactor
10934 need_lib_prefix=no
10935 need_version=no
10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937 soname_spec='$libname$release$shared_ext$major'
10938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=no
10941 hardcode_into_libs=yes
10942 ;;
10943
10944 irix5* | irix6* | nonstopux*)
10945 case $host_os in
10946 nonstopux*) version_type=nonstopux ;;
10947 *)
10948 if test yes = "$lt_cv_prog_gnu_ld"; then
10949 version_type=linux # correct to gnu/linux during the next big refactor
10950 else
10951 version_type=irix
10952 fi ;;
10953 esac
10954 need_lib_prefix=no
10955 need_version=no
10956 soname_spec='$libname$release$shared_ext$major'
10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10958 case $host_os in
10959 irix5* | nonstopux*)
10960 libsuff= shlibsuff=
10961 ;;
10962 *)
10963 case $LD in # libtool.m4 will add one of these switches to LD
10964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10965 libsuff= shlibsuff= libmagic=32-bit;;
10966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10967 libsuff=32 shlibsuff=N32 libmagic=N32;;
10968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10970 *) libsuff= shlibsuff= libmagic=never-match;;
10971 esac
10972 ;;
10973 esac
10974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10975 shlibpath_overrides_runpath=no
10976 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10977 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10978 hardcode_into_libs=yes
10979 ;;
10980
10981 # No shared lib support for Linux oldld, aout, or coff.
10982 linux*oldld* | linux*aout* | linux*coff*)
10983 dynamic_linker=no
10984 ;;
10985
10986 linux*android*)
10987 version_type=none # Android doesn't support versioned libraries.
10988 need_lib_prefix=no
10989 need_version=no
10990 library_names_spec='$libname$release$shared_ext'
10991 soname_spec='$libname$release$shared_ext'
10992 finish_cmds=
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=yes
10995
10996 # This implies no fast_install, which is unacceptable.
10997 # Some rework will be needed to allow for fast_install
10998 # before this can be enabled.
10999 hardcode_into_libs=yes
11000
11001 dynamic_linker='Android linker'
11002 # Don't embed -rpath directories since the linker doesn't support them.
11003 hardcode_libdir_flag_spec='-L$libdir'
11004 ;;
11005
11006 # This must be glibc/ELF.
11007 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11008 version_type=linux # correct to gnu/linux during the next big refactor
11009 need_lib_prefix=no
11010 need_version=no
11011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11012 soname_spec='$libname$release$shared_ext$major'
11013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=no
11016
11017 # Some binutils ld are patched to set DT_RUNPATH
11018 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 lt_cv_shlibpath_overrides_runpath=no
11022 save_LDFLAGS=$LDFLAGS
11023 save_libdir=$libdir
11024 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11025 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028
11029 int
11030 main ()
11031 {
11032
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11039 lt_cv_shlibpath_overrides_runpath=yes
11040 fi
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 LDFLAGS=$save_LDFLAGS
11045 libdir=$save_libdir
11046
11047 fi
11048
11049 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11050
11051 # This implies no fast_install, which is unacceptable.
11052 # Some rework will be needed to allow for fast_install
11053 # before this can be enabled.
11054 hardcode_into_libs=yes
11055
11056 # Append ld.so.conf contents to the search path
11057 if test -f /etc/ld.so.conf; then
11058 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' ' '`
11059 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11060 fi
11061
11062 # We used to test for /lib/ld.so.1 and disable shared libraries on
11063 # powerpc, because MkLinux only supported shared libraries with the
11064 # GNU dynamic linker. Since this was broken with cross compilers,
11065 # most powerpc-linux boxes support dynamic linking these days and
11066 # people can always --disable-shared, the test was removed, and we
11067 # assume the GNU/Linux dynamic linker is in use.
11068 dynamic_linker='GNU/Linux ld.so'
11069 ;;
11070
11071 netbsd*)
11072 version_type=sunos
11073 need_lib_prefix=no
11074 need_version=no
11075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11076 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11078 dynamic_linker='NetBSD (a.out) ld.so'
11079 else
11080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081 soname_spec='$libname$release$shared_ext$major'
11082 dynamic_linker='NetBSD ld.elf_so'
11083 fi
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=yes
11086 hardcode_into_libs=yes
11087 ;;
11088
11089 newsos6)
11090 version_type=linux # correct to gnu/linux during the next big refactor
11091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=yes
11094 ;;
11095
11096 *nto* | *qnx*)
11097 version_type=qnx
11098 need_lib_prefix=no
11099 need_version=no
11100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11101 soname_spec='$libname$release$shared_ext$major'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=no
11104 hardcode_into_libs=yes
11105 dynamic_linker='ldqnx.so'
11106 ;;
11107
11108 openbsd* | bitrig*)
11109 version_type=sunos
11110 sys_lib_dlsearch_path_spec=/usr/lib
11111 need_lib_prefix=no
11112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11113 need_version=no
11114 else
11115 need_version=yes
11116 fi
11117 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
11121 ;;
11122
11123 os2*)
11124 libname_spec='$name'
11125 version_type=windows
11126 shrext_cmds=.dll
11127 need_version=no
11128 need_lib_prefix=no
11129 # OS/2 can only load a DLL with a base name of 8 characters or less.
11130 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11131 v=$($ECHO $release$versuffix | tr -d .-);
11132 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11133 $ECHO $n$v`$shared_ext'
11134 library_names_spec='${libname}_dll.$libext'
11135 dynamic_linker='OS/2 ld.exe'
11136 shlibpath_var=BEGINLIBPATH
11137 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11139 postinstall_cmds='base_file=`basename \$file`~
11140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11141 dldir=$destdir/`dirname \$dlpath`~
11142 test -d \$dldir || mkdir -p \$dldir~
11143 $install_prog $dir/$dlname \$dldir/$dlname~
11144 chmod a+x \$dldir/$dlname~
11145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11147 fi'
11148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11149 dlpath=$dir/\$dldll~
11150 $RM \$dlpath'
11151 ;;
11152
11153 osf3* | osf4* | osf5*)
11154 version_type=osf
11155 need_lib_prefix=no
11156 need_version=no
11157 soname_spec='$libname$release$shared_ext$major'
11158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11162 ;;
11163
11164 rdos*)
11165 dynamic_linker=no
11166 ;;
11167
11168 solaris*)
11169 version_type=linux # correct to gnu/linux during the next big refactor
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11173 soname_spec='$libname$release$shared_ext$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11176 hardcode_into_libs=yes
11177 # ldd complains unless libraries are executable
11178 postinstall_cmds='chmod +x $lib'
11179 ;;
11180
11181 sunos4*)
11182 version_type=sunos
11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=yes
11187 if test yes = "$with_gnu_ld"; then
11188 need_lib_prefix=no
11189 fi
11190 need_version=yes
11191 ;;
11192
11193 sysv4 | sysv4.3*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196 soname_spec='$libname$release$shared_ext$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 case $host_vendor in
11199 sni)
11200 shlibpath_overrides_runpath=no
11201 need_lib_prefix=no
11202 runpath_var=LD_RUN_PATH
11203 ;;
11204 siemens)
11205 need_lib_prefix=no
11206 ;;
11207 motorola)
11208 need_lib_prefix=no
11209 need_version=no
11210 shlibpath_overrides_runpath=no
11211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11212 ;;
11213 esac
11214 ;;
11215
11216 sysv4*MP*)
11217 if test -d /usr/nec; then
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11220 soname_spec='$libname$shared_ext.$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 fi
11223 ;;
11224
11225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11226 version_type=sco
11227 need_lib_prefix=no
11228 need_version=no
11229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11230 soname_spec='$libname$release$shared_ext$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 shlibpath_overrides_runpath=yes
11233 hardcode_into_libs=yes
11234 if test yes = "$with_gnu_ld"; then
11235 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11236 else
11237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11238 case $host_os in
11239 sco3.2v5*)
11240 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11241 ;;
11242 esac
11243 fi
11244 sys_lib_dlsearch_path_spec='/usr/lib'
11245 ;;
11246
11247 tpf*)
11248 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11249 version_type=linux # correct to gnu/linux during the next big refactor
11250 need_lib_prefix=no
11251 need_version=no
11252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=no
11255 hardcode_into_libs=yes
11256 ;;
11257
11258 uts4*)
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11261 soname_spec='$libname$release$shared_ext$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 ;;
11264
11265 *)
11266 dynamic_linker=no
11267 ;;
11268 esac
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11270 $as_echo "$dynamic_linker" >&6; }
11271 test no = "$dynamic_linker" && can_build_shared=no
11272
11273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11274 if test yes = "$GCC"; then
11275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11276 fi
11277
11278 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11279 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11280 fi
11281 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11282 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11283 fi
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11377 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11378 hardcode_action=
11379 if test -n "$hardcode_libdir_flag_spec" ||
11380 test -n "$runpath_var" ||
11381 test yes = "$hardcode_automatic"; then
11382
11383 # We can hardcode non-existent directories.
11384 if test no != "$hardcode_direct" &&
11385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11386 # have to relink, otherwise we might link with an installed library
11387 # when we should be linking with a yet-to-be-installed one
11388 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11389 test no != "$hardcode_minus_L"; then
11390 # Linking always hardcodes the temporary library directory.
11391 hardcode_action=relink
11392 else
11393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11394 hardcode_action=immediate
11395 fi
11396 else
11397 # We cannot hardcode anything, or else we can only hardcode existing
11398 # directories.
11399 hardcode_action=unsupported
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11402 $as_echo "$hardcode_action" >&6; }
11403
11404 if test relink = "$hardcode_action" ||
11405 test yes = "$inherit_rpath"; then
11406 # Fast installation is not supported
11407 enable_fast_install=no
11408 elif test yes = "$shlibpath_overrides_runpath" ||
11409 test no = "$enable_shared"; then
11410 # Fast installation is not necessary
11411 enable_fast_install=needless
11412 fi
11413
11414
11415
11416
11417
11418
11419 if test yes != "$enable_dlopen"; then
11420 enable_dlopen=unknown
11421 enable_dlopen_self=unknown
11422 enable_dlopen_self_static=unknown
11423 else
11424 lt_cv_dlopen=no
11425 lt_cv_dlopen_libs=
11426
11427 case $host_os in
11428 beos*)
11429 lt_cv_dlopen=load_add_on
11430 lt_cv_dlopen_libs=
11431 lt_cv_dlopen_self=yes
11432 ;;
11433
11434 mingw* | pw32* | cegcc*)
11435 lt_cv_dlopen=LoadLibrary
11436 lt_cv_dlopen_libs=
11437 ;;
11438
11439 cygwin*)
11440 lt_cv_dlopen=dlopen
11441 lt_cv_dlopen_libs=
11442 ;;
11443
11444 darwin*)
11445 # if libdl is installed we need to link against it
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11447 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11448 if ${ac_cv_lib_dl_dlopen+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-ldl $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char dlopen ();
11463 int
11464 main ()
11465 {
11466 return dlopen ();
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_dl_dlopen=yes
11473 else
11474 ac_cv_lib_dl_dlopen=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11482 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11483 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11484 else
11485
11486 lt_cv_dlopen=dyld
11487 lt_cv_dlopen_libs=
11488 lt_cv_dlopen_self=yes
11489
11490 fi
11491
11492 ;;
11493
11494 tpf*)
11495 # Don't try to run any link tests for TPF. We know it's impossible
11496 # because TPF is a cross-compiler, and we know how we open DSOs.
11497 lt_cv_dlopen=dlopen
11498 lt_cv_dlopen_libs=
11499 lt_cv_dlopen_self=no
11500 ;;
11501
11502 *)
11503 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11504 if test "x$ac_cv_func_shl_load" = xyes; then :
11505 lt_cv_dlopen=shl_load
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11508 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11509 if ${ac_cv_lib_dld_shl_load+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 ac_check_lib_save_LIBS=$LIBS
11513 LIBS="-ldld $LIBS"
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char shl_load ();
11524 int
11525 main ()
11526 {
11527 return shl_load ();
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_link "$LINENO"; then :
11533 ac_cv_lib_dld_shl_load=yes
11534 else
11535 ac_cv_lib_dld_shl_load=no
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11542 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11543 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11544 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11545 else
11546 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11547 if test "x$ac_cv_func_dlopen" = xyes; then :
11548 lt_cv_dlopen=dlopen
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11551 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11552 if ${ac_cv_lib_dl_dlopen+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 ac_check_lib_save_LIBS=$LIBS
11556 LIBS="-ldl $LIBS"
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char dlopen ();
11567 int
11568 main ()
11569 {
11570 return dlopen ();
11571 ;
11572 return 0;
11573 }
11574 _ACEOF
11575 if ac_fn_c_try_link "$LINENO"; then :
11576 ac_cv_lib_dl_dlopen=yes
11577 else
11578 ac_cv_lib_dl_dlopen=no
11579 fi
11580 rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11582 LIBS=$ac_check_lib_save_LIBS
11583 fi
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11585 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11586 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11587 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11590 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11591 if ${ac_cv_lib_svld_dlopen+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 ac_check_lib_save_LIBS=$LIBS
11595 LIBS="-lsvld $LIBS"
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 char dlopen ();
11606 int
11607 main ()
11608 {
11609 return dlopen ();
11610 ;
11611 return 0;
11612 }
11613 _ACEOF
11614 if ac_fn_c_try_link "$LINENO"; then :
11615 ac_cv_lib_svld_dlopen=yes
11616 else
11617 ac_cv_lib_svld_dlopen=no
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11622 fi
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11624 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11625 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11626 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11629 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11630 if ${ac_cv_lib_dld_dld_link+:} false; then :
11631 $as_echo_n "(cached) " >&6
11632 else
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-ldld $LIBS"
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char dld_link ();
11645 int
11646 main ()
11647 {
11648 return dld_link ();
11649 ;
11650 return 0;
11651 }
11652 _ACEOF
11653 if ac_fn_c_try_link "$LINENO"; then :
11654 ac_cv_lib_dld_dld_link=yes
11655 else
11656 ac_cv_lib_dld_dld_link=no
11657 fi
11658 rm -f core conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11660 LIBS=$ac_check_lib_save_LIBS
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11663 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11664 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11665 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11666 fi
11667
11668
11669 fi
11670
11671
11672 fi
11673
11674
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683 ;;
11684 esac
11685
11686 if test no = "$lt_cv_dlopen"; then
11687 enable_dlopen=no
11688 else
11689 enable_dlopen=yes
11690 fi
11691
11692 case $lt_cv_dlopen in
11693 dlopen)
11694 save_CPPFLAGS=$CPPFLAGS
11695 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11696
11697 save_LDFLAGS=$LDFLAGS
11698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11699
11700 save_LIBS=$LIBS
11701 LIBS="$lt_cv_dlopen_libs $LIBS"
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11704 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11705 if ${lt_cv_dlopen_self+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 if test yes = "$cross_compiling"; then :
11709 lt_cv_dlopen_self=cross
11710 else
11711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11712 lt_status=$lt_dlunknown
11713 cat > conftest.$ac_ext <<_LT_EOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716
11717 #if HAVE_DLFCN_H
11718 #include <dlfcn.h>
11719 #endif
11720
11721 #include <stdio.h>
11722
11723 #ifdef RTLD_GLOBAL
11724 # define LT_DLGLOBAL RTLD_GLOBAL
11725 #else
11726 # ifdef DL_GLOBAL
11727 # define LT_DLGLOBAL DL_GLOBAL
11728 # else
11729 # define LT_DLGLOBAL 0
11730 # endif
11731 #endif
11732
11733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11734 find out it does not work in some platform. */
11735 #ifndef LT_DLLAZY_OR_NOW
11736 # ifdef RTLD_LAZY
11737 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11738 # else
11739 # ifdef DL_LAZY
11740 # define LT_DLLAZY_OR_NOW DL_LAZY
11741 # else
11742 # ifdef RTLD_NOW
11743 # define LT_DLLAZY_OR_NOW RTLD_NOW
11744 # else
11745 # ifdef DL_NOW
11746 # define LT_DLLAZY_OR_NOW DL_NOW
11747 # else
11748 # define LT_DLLAZY_OR_NOW 0
11749 # endif
11750 # endif
11751 # endif
11752 # endif
11753 #endif
11754
11755 /* When -fvisibility=hidden is used, assume the code has been annotated
11756 correspondingly for the symbols needed. */
11757 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11758 int fnord () __attribute__((visibility("default")));
11759 #endif
11760
11761 int fnord () { return 42; }
11762 int main ()
11763 {
11764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11765 int status = $lt_dlunknown;
11766
11767 if (self)
11768 {
11769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11770 else
11771 {
11772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11773 else puts (dlerror ());
11774 }
11775 /* dlclose (self); */
11776 }
11777 else
11778 puts (dlerror ());
11779
11780 return status;
11781 }
11782 _LT_EOF
11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11784 (eval $ac_link) 2>&5
11785 ac_status=$?
11786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11787 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11788 (./conftest; exit; ) >&5 2>/dev/null
11789 lt_status=$?
11790 case x$lt_status in
11791 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11792 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11793 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11794 esac
11795 else :
11796 # compilation failed
11797 lt_cv_dlopen_self=no
11798 fi
11799 fi
11800 rm -fr conftest*
11801
11802
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11805 $as_echo "$lt_cv_dlopen_self" >&6; }
11806
11807 if test yes = "$lt_cv_dlopen_self"; then
11808 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11810 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11811 if ${lt_cv_dlopen_self_static+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 if test yes = "$cross_compiling"; then :
11815 lt_cv_dlopen_self_static=cross
11816 else
11817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11818 lt_status=$lt_dlunknown
11819 cat > conftest.$ac_ext <<_LT_EOF
11820 #line $LINENO "configure"
11821 #include "confdefs.h"
11822
11823 #if HAVE_DLFCN_H
11824 #include <dlfcn.h>
11825 #endif
11826
11827 #include <stdio.h>
11828
11829 #ifdef RTLD_GLOBAL
11830 # define LT_DLGLOBAL RTLD_GLOBAL
11831 #else
11832 # ifdef DL_GLOBAL
11833 # define LT_DLGLOBAL DL_GLOBAL
11834 # else
11835 # define LT_DLGLOBAL 0
11836 # endif
11837 #endif
11838
11839 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11840 find out it does not work in some platform. */
11841 #ifndef LT_DLLAZY_OR_NOW
11842 # ifdef RTLD_LAZY
11843 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11844 # else
11845 # ifdef DL_LAZY
11846 # define LT_DLLAZY_OR_NOW DL_LAZY
11847 # else
11848 # ifdef RTLD_NOW
11849 # define LT_DLLAZY_OR_NOW RTLD_NOW
11850 # else
11851 # ifdef DL_NOW
11852 # define LT_DLLAZY_OR_NOW DL_NOW
11853 # else
11854 # define LT_DLLAZY_OR_NOW 0
11855 # endif
11856 # endif
11857 # endif
11858 # endif
11859 #endif
11860
11861 /* When -fvisibility=hidden is used, assume the code has been annotated
11862 correspondingly for the symbols needed. */
11863 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11864 int fnord () __attribute__((visibility("default")));
11865 #endif
11866
11867 int fnord () { return 42; }
11868 int main ()
11869 {
11870 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11871 int status = $lt_dlunknown;
11872
11873 if (self)
11874 {
11875 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11876 else
11877 {
11878 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11879 else puts (dlerror ());
11880 }
11881 /* dlclose (self); */
11882 }
11883 else
11884 puts (dlerror ());
11885
11886 return status;
11887 }
11888 _LT_EOF
11889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11890 (eval $ac_link) 2>&5
11891 ac_status=$?
11892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11893 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11894 (./conftest; exit; ) >&5 2>/dev/null
11895 lt_status=$?
11896 case x$lt_status in
11897 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11898 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11899 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11900 esac
11901 else :
11902 # compilation failed
11903 lt_cv_dlopen_self_static=no
11904 fi
11905 fi
11906 rm -fr conftest*
11907
11908
11909 fi
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11911 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11912 fi
11913
11914 CPPFLAGS=$save_CPPFLAGS
11915 LDFLAGS=$save_LDFLAGS
11916 LIBS=$save_LIBS
11917 ;;
11918 esac
11919
11920 case $lt_cv_dlopen_self in
11921 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11922 *) enable_dlopen_self=unknown ;;
11923 esac
11924
11925 case $lt_cv_dlopen_self_static in
11926 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11927 *) enable_dlopen_self_static=unknown ;;
11928 esac
11929 fi
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947 striplib=
11948 old_striplib=
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11950 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11951 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11952 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11953 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11955 $as_echo "yes" >&6; }
11956 else
11957 # FIXME - insert some real tests, host_os isn't really good enough
11958 case $host_os in
11959 darwin*)
11960 if test -n "$STRIP"; then
11961 striplib="$STRIP -x"
11962 old_striplib="$STRIP -S"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965 else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968 fi
11969 ;;
11970 *)
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 ;;
11974 esac
11975 fi
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988 # Report what library types will actually be built
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11990 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11992 $as_echo "$can_build_shared" >&6; }
11993
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11995 $as_echo_n "checking whether to build shared libraries... " >&6; }
11996 test no = "$can_build_shared" && enable_shared=no
11997
11998 # On AIX, shared libraries and static libraries use the same namespace, and
11999 # are all built from PIC.
12000 case $host_os in
12001 aix3*)
12002 test yes = "$enable_shared" && enable_static=no
12003 if test -n "$RANLIB"; then
12004 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12005 postinstall_cmds='$RANLIB $lib'
12006 fi
12007 ;;
12008
12009 aix[4-9]*)
12010 if test ia64 != "$host_cpu"; then
12011 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12012 yes,aix,yes) ;; # shared object as lib.so file only
12013 yes,svr4,*) ;; # shared object as lib.so archive member only
12014 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12015 esac
12016 fi
12017 ;;
12018 esac
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12020 $as_echo "$enable_shared" >&6; }
12021
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12023 $as_echo_n "checking whether to build static libraries... " >&6; }
12024 # Make sure either enable_shared or enable_static is yes.
12025 test yes = "$enable_shared" || enable_static=yes
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12027 $as_echo "$enable_static" >&6; }
12028
12029
12030
12031
12032 fi
12033 ac_ext=c
12034 ac_cpp='$CPP $CPPFLAGS'
12035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12038
12039 CC=$lt_save_CC
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055 ac_config_commands="$ac_config_commands libtool"
12056
12057
12058
12059
12060 # Only expand once:
12061
12062
12063
12064
12065 for ac_header in fcntl.h sys/time.h unistd.h
12066 do :
12067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12068 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12070 cat >>confdefs.h <<_ACEOF
12071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12072 _ACEOF
12073
12074 fi
12075
12076 done
12077
12078
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12080 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12081 if ${ac_cv_header_time+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 #include <sys/types.h>
12087 #include <sys/time.h>
12088 #include <time.h>
12089
12090 int
12091 main ()
12092 {
12093 if ((struct tm *) 0)
12094 return 0;
12095 ;
12096 return 0;
12097 }
12098 _ACEOF
12099 if ac_fn_c_try_compile "$LINENO"; then :
12100 ac_cv_header_time=yes
12101 else
12102 ac_cv_header_time=no
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12107 $as_echo "$ac_cv_header_time" >&6; }
12108 if test $ac_cv_header_time = yes; then
12109
12110 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12111
12112 fi
12113
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12116 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12117 if ${ac_cv_c_bigendian+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_cv_c_bigendian=unknown
12121 # See if we're dealing with a universal compiler.
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 #ifndef __APPLE_CC__
12125 not a universal capable compiler
12126 #endif
12127 typedef int dummy;
12128
12129 _ACEOF
12130 if ac_fn_c_try_compile "$LINENO"; then :
12131
12132 # Check for potential -arch flags. It is not universal unless
12133 # there are at least two -arch flags with different values.
12134 ac_arch=
12135 ac_prev=
12136 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12137 if test -n "$ac_prev"; then
12138 case $ac_word in
12139 i?86 | x86_64 | ppc | ppc64)
12140 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12141 ac_arch=$ac_word
12142 else
12143 ac_cv_c_bigendian=universal
12144 break
12145 fi
12146 ;;
12147 esac
12148 ac_prev=
12149 elif test "x$ac_word" = "x-arch"; then
12150 ac_prev=arch
12151 fi
12152 done
12153 fi
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 if test $ac_cv_c_bigendian = unknown; then
12156 # See if sys/param.h defines the BYTE_ORDER macro.
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #include <sys/types.h>
12160 #include <sys/param.h>
12161
12162 int
12163 main ()
12164 {
12165 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12166 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12167 && LITTLE_ENDIAN)
12168 bogus endian macros
12169 #endif
12170
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176 # It does; now see whether it defined to BIG_ENDIAN or not.
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179 #include <sys/types.h>
12180 #include <sys/param.h>
12181
12182 int
12183 main ()
12184 {
12185 #if BYTE_ORDER != BIG_ENDIAN
12186 not big endian
12187 #endif
12188
12189 ;
12190 return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_compile "$LINENO"; then :
12194 ac_cv_c_bigendian=yes
12195 else
12196 ac_cv_c_bigendian=no
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 if test $ac_cv_c_bigendian = unknown; then
12203 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206 #include <limits.h>
12207
12208 int
12209 main ()
12210 {
12211 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12212 bogus endian macros
12213 #endif
12214
12215 ;
12216 return 0;
12217 }
12218 _ACEOF
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 # It does; now see whether it defined to _BIG_ENDIAN or not.
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12223 #include <limits.h>
12224
12225 int
12226 main ()
12227 {
12228 #ifndef _BIG_ENDIAN
12229 not big endian
12230 #endif
12231
12232 ;
12233 return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_compile "$LINENO"; then :
12237 ac_cv_c_bigendian=yes
12238 else
12239 ac_cv_c_bigendian=no
12240 fi
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 fi
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 fi
12245 if test $ac_cv_c_bigendian = unknown; then
12246 # Compile a test program.
12247 if test "$cross_compiling" = yes; then :
12248 # Try to guess by grepping values from an object file.
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 short int ascii_mm[] =
12252 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12253 short int ascii_ii[] =
12254 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12255 int use_ascii (int i) {
12256 return ascii_mm[i] + ascii_ii[i];
12257 }
12258 short int ebcdic_ii[] =
12259 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12260 short int ebcdic_mm[] =
12261 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12262 int use_ebcdic (int i) {
12263 return ebcdic_mm[i] + ebcdic_ii[i];
12264 }
12265 extern int foo;
12266
12267 int
12268 main ()
12269 {
12270 return use_ascii (foo) == use_ebcdic (foo);
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"; then :
12276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12277 ac_cv_c_bigendian=yes
12278 fi
12279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12280 if test "$ac_cv_c_bigendian" = unknown; then
12281 ac_cv_c_bigendian=no
12282 else
12283 # finding both strings is unlikely to happen, but who knows?
12284 ac_cv_c_bigendian=unknown
12285 fi
12286 fi
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 else
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 int
12294 main ()
12295 {
12296
12297 /* Are we little or big endian? From Harbison&Steele. */
12298 union
12299 {
12300 long int l;
12301 char c[sizeof (long int)];
12302 } u;
12303 u.l = 1;
12304 return u.c[sizeof (long int) - 1] == 1;
12305
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_run "$LINENO"; then :
12311 ac_cv_c_bigendian=no
12312 else
12313 ac_cv_c_bigendian=yes
12314 fi
12315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12316 conftest.$ac_objext conftest.beam conftest.$ac_ext
12317 fi
12318
12319 fi
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12322 $as_echo "$ac_cv_c_bigendian" >&6; }
12323 case $ac_cv_c_bigendian in #(
12324 yes)
12325 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12326 ;; #(
12327 no)
12328 ;; #(
12329 universal)
12330
12331 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12332
12333 ;; #(
12334 *)
12335 as_fn_error $? "unknown endianness
12336 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12337 esac
12338
12339
12340 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12341 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12342
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12345 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12346 if ${ac_cv_search_getaddrinfo+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 ac_func_search_save_LIBS=$LIBS
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352
12353 /* Override any GCC internal prototype to avoid an error.
12354 Use char because int might match the return type of a GCC
12355 builtin and then its argument prototype would still apply. */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 char getaddrinfo ();
12360 int
12361 main ()
12362 {
12363 return getaddrinfo ();
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 for ac_lib in '' nsl; do
12369 if test -z "$ac_lib"; then
12370 ac_res="none required"
12371 else
12372 ac_res=-l$ac_lib
12373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12374 fi
12375 if ac_fn_c_try_link "$LINENO"; then :
12376 ac_cv_search_getaddrinfo=$ac_res
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext
12380 if ${ac_cv_search_getaddrinfo+:} false; then :
12381 break
12382 fi
12383 done
12384 if ${ac_cv_search_getaddrinfo+:} false; then :
12385
12386 else
12387 ac_cv_search_getaddrinfo=no
12388 fi
12389 rm conftest.$ac_ext
12390 LIBS=$ac_func_search_save_LIBS
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12393 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12394 ac_res=$ac_cv_search_getaddrinfo
12395 if test "$ac_res" != no; then :
12396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12397
12398 fi
12399
12400 fi
12401
12402 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12403 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12404
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12407 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12408 if ${ac_cv_search_getnameinfo+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 ac_func_search_save_LIBS=$LIBS
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char getnameinfo ();
12422 int
12423 main ()
12424 {
12425 return getnameinfo ();
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 for ac_lib in '' nsl; do
12431 if test -z "$ac_lib"; then
12432 ac_res="none required"
12433 else
12434 ac_res=-l$ac_lib
12435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12436 fi
12437 if ac_fn_c_try_link "$LINENO"; then :
12438 ac_cv_search_getnameinfo=$ac_res
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext
12442 if ${ac_cv_search_getnameinfo+:} false; then :
12443 break
12444 fi
12445 done
12446 if ${ac_cv_search_getnameinfo+:} false; then :
12447
12448 else
12449 ac_cv_search_getnameinfo=no
12450 fi
12451 rm conftest.$ac_ext
12452 LIBS=$ac_func_search_save_LIBS
12453 fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12455 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12456 ac_res=$ac_cv_search_getnameinfo
12457 if test "$ac_res" != no; then :
12458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12459
12460 fi
12461
12462 fi
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12465 $as_echo_n "checking for library containing socket... " >&6; }
12466 if ${ac_cv_search_socket+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_func_search_save_LIBS=$LIBS
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472
12473 /* Override any GCC internal prototype to avoid an error.
12474 Use char because int might match the return type of a GCC
12475 builtin and then its argument prototype would still apply. */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char socket ();
12480 int
12481 main ()
12482 {
12483 return socket ();
12484 ;
12485 return 0;
12486 }
12487 _ACEOF
12488 for ac_lib in '' socket; do
12489 if test -z "$ac_lib"; then
12490 ac_res="none required"
12491 else
12492 ac_res=-l$ac_lib
12493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12494 fi
12495 if ac_fn_c_try_link "$LINENO"; then :
12496 ac_cv_search_socket=$ac_res
12497 fi
12498 rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext
12500 if ${ac_cv_search_socket+:} false; then :
12501 break
12502 fi
12503 done
12504 if ${ac_cv_search_socket+:} false; then :
12505
12506 else
12507 ac_cv_search_socket=no
12508 fi
12509 rm conftest.$ac_ext
12510 LIBS=$ac_func_search_save_LIBS
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12513 $as_echo "$ac_cv_search_socket" >&6; }
12514 ac_res=$ac_cv_search_socket
12515 if test "$ac_res" != no; then :
12516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12517
12518 else
12519 as_fn_error $? "socket library not found" "$LINENO" 5
12520 fi
12521
12522
12523 LTLIBOBJS=`echo "$LIBOBJS" |
12524 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
12525
12526
12527 ac_config_files="$ac_config_files Makefile src/Makefile"
12528
12529 cat >confcache <<\_ACEOF
12530 # This file is a shell script that caches the results of configure
12531 # tests run on this system so they can be shared between configure
12532 # scripts and configure runs, see configure's option --config-cache.
12533 # It is not useful on other systems. If it contains results you don't
12534 # want to keep, you may remove or edit it.
12535 #
12536 # config.status only pays attention to the cache file if you give it
12537 # the --recheck option to rerun configure.
12538 #
12539 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12540 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12541 # following values.
12542
12543 _ACEOF
12544
12545 # The following way of writing the cache mishandles newlines in values,
12546 # but we know of no workaround that is simple, portable, and efficient.
12547 # So, we kill variables containing newlines.
12548 # Ultrix sh set writes to stderr and can't be redirected directly,
12549 # and sets the high bit in the cache file unless we assign to the vars.
12550 (
12551 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12552 eval ac_val=\$$ac_var
12553 case $ac_val in #(
12554 *${as_nl}*)
12555 case $ac_var in #(
12556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12558 esac
12559 case $ac_var in #(
12560 _ | IFS | as_nl) ;; #(
12561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12562 *) { eval $ac_var=; unset $ac_var;} ;;
12563 esac ;;
12564 esac
12565 done
12566
12567 (set) 2>&1 |
12568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12569 *${as_nl}ac_space=\ *)
12570 # `set' does not quote correctly, so add quotes: double-quote
12571 # substitution turns \\\\ into \\, and sed turns \\ into \.
12572 sed -n \
12573 "s/'/'\\\\''/g;
12574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12575 ;; #(
12576 *)
12577 # `set' quotes correctly as required by POSIX, so do not add quotes.
12578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12579 ;;
12580 esac |
12581 sort
12582 ) |
12583 sed '
12584 /^ac_cv_env_/b end
12585 t clear
12586 :clear
12587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12588 t end
12589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12590 :end' >>confcache
12591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12592 if test -w "$cache_file"; then
12593 if test "x$cache_file" != "x/dev/null"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12595 $as_echo "$as_me: updating cache $cache_file" >&6;}
12596 if test ! -f "$cache_file" || test -h "$cache_file"; then
12597 cat confcache >"$cache_file"
12598 else
12599 case $cache_file in #(
12600 */* | ?:*)
12601 mv -f confcache "$cache_file"$$ &&
12602 mv -f "$cache_file"$$ "$cache_file" ;; #(
12603 *)
12604 mv -f confcache "$cache_file" ;;
12605 esac
12606 fi
12607 fi
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12610 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12611 fi
12612 fi
12613 rm -f confcache
12614
12615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12616 # Let make expand exec_prefix.
12617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12618
12619 DEFS=-DHAVE_CONFIG_H
12620
12621 ac_libobjs=
12622 ac_ltlibobjs=
12623 U=
12624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12625 # 1. Remove the extension, and $U if already installed.
12626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12629 # will be set to the directory where LIBOBJS objects are built.
12630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12632 done
12633 LIBOBJS=$ac_libobjs
12634
12635 LTLIBOBJS=$ac_ltlibobjs
12636
12637
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12639 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12640 if test -n "$am_sleep_pid"; then
12641 # Hide warnings about reused PIDs.
12642 wait $am_sleep_pid 2>/dev/null
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12645 $as_echo "done" >&6; }
12646 if test -n "$EXEEXT"; then
12647 am__EXEEXT_TRUE=
12648 am__EXEEXT_FALSE='#'
12649 else
12650 am__EXEEXT_TRUE='#'
12651 am__EXEEXT_FALSE=
12652 fi
12653
12654 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12655 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12657 fi
12658 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12659 as_fn_error $? "conditional \"AMDEP\" was never defined.
12660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12661 fi
12662 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12663 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12665 fi
12666
12667
12668 : "${CONFIG_STATUS=./config.status}"
12669 ac_write_fail=0
12670 ac_clean_files_save=$ac_clean_files
12671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12673 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12674 as_write_fail=0
12675 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12676 #! $SHELL
12677 # Generated by $as_me.
12678 # Run this file to recreate the current configuration.
12679 # Compiler output produced by configure, useful for debugging
12680 # configure, is in config.log if it exists.
12681
12682 debug=false
12683 ac_cs_recheck=false
12684 ac_cs_silent=false
12685
12686 SHELL=\${CONFIG_SHELL-$SHELL}
12687 export SHELL
12688 _ASEOF
12689 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12690 ## -------------------- ##
12691 ## M4sh Initialization. ##
12692 ## -------------------- ##
12693
12694 # Be more Bourne compatible
12695 DUALCASE=1; export DUALCASE # for MKS sh
12696 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12697 emulate sh
12698 NULLCMD=:
12699 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12700 # is contrary to our usage. Disable this feature.
12701 alias -g '${1+"$@"}'='"$@"'
12702 setopt NO_GLOB_SUBST
12703 else
12704 case `(set -o) 2>/dev/null` in #(
12705 *posix*) :
12706 set -o posix ;; #(
12707 *) :
12708 ;;
12709 esac
12710 fi
12711
12712
12713 as_nl='
12714 '
12715 export as_nl
12716 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12717 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12720 # Prefer a ksh shell builtin over an external printf program on Solaris,
12721 # but without wasting forks for bash or zsh.
12722 if test -z "$BASH_VERSION$ZSH_VERSION" \
12723 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12724 as_echo='print -r --'
12725 as_echo_n='print -rn --'
12726 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12727 as_echo='printf %s\n'
12728 as_echo_n='printf %s'
12729 else
12730 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12731 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12732 as_echo_n='/usr/ucb/echo -n'
12733 else
12734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12735 as_echo_n_body='eval
12736 arg=$1;
12737 case $arg in #(
12738 *"$as_nl"*)
12739 expr "X$arg" : "X\\(.*\\)$as_nl";
12740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12741 esac;
12742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12743 '
12744 export as_echo_n_body
12745 as_echo_n='sh -c $as_echo_n_body as_echo'
12746 fi
12747 export as_echo_body
12748 as_echo='sh -c $as_echo_body as_echo'
12749 fi
12750
12751 # The user is always right.
12752 if test "${PATH_SEPARATOR+set}" != set; then
12753 PATH_SEPARATOR=:
12754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12756 PATH_SEPARATOR=';'
12757 }
12758 fi
12759
12760
12761 # IFS
12762 # We need space, tab and new line, in precisely that order. Quoting is
12763 # there to prevent editors from complaining about space-tab.
12764 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12765 # splitting by setting IFS to empty value.)
12766 IFS=" "" $as_nl"
12767
12768 # Find who we are. Look in the path if we contain no directory separator.
12769 as_myself=
12770 case $0 in #((
12771 *[\\/]* ) as_myself=$0 ;;
12772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12778 done
12779 IFS=$as_save_IFS
12780
12781 ;;
12782 esac
12783 # We did not find ourselves, most probably we were run as `sh COMMAND'
12784 # in which case we are not to be found in the path.
12785 if test "x$as_myself" = x; then
12786 as_myself=$0
12787 fi
12788 if test ! -f "$as_myself"; then
12789 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12790 exit 1
12791 fi
12792
12793 # Unset variables that we do not need and which cause bugs (e.g. in
12794 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12795 # suppresses any "Segmentation fault" message there. '((' could
12796 # trigger a bug in pdksh 5.2.14.
12797 for as_var in BASH_ENV ENV MAIL MAILPATH
12798 do eval test x\${$as_var+set} = xset \
12799 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12800 done
12801 PS1='$ '
12802 PS2='> '
12803 PS4='+ '
12804
12805 # NLS nuisances.
12806 LC_ALL=C
12807 export LC_ALL
12808 LANGUAGE=C
12809 export LANGUAGE
12810
12811 # CDPATH.
12812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12813
12814
12815 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12816 # ----------------------------------------
12817 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12818 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12819 # script with STATUS, using 1 if that was 0.
12820 as_fn_error ()
12821 {
12822 as_status=$1; test $as_status -eq 0 && as_status=1
12823 if test "$4"; then
12824 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12825 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12826 fi
12827 $as_echo "$as_me: error: $2" >&2
12828 as_fn_exit $as_status
12829 } # as_fn_error
12830
12831
12832 # as_fn_set_status STATUS
12833 # -----------------------
12834 # Set $? to STATUS, without forking.
12835 as_fn_set_status ()
12836 {
12837 return $1
12838 } # as_fn_set_status
12839
12840 # as_fn_exit STATUS
12841 # -----------------
12842 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12843 as_fn_exit ()
12844 {
12845 set +e
12846 as_fn_set_status $1
12847 exit $1
12848 } # as_fn_exit
12849
12850 # as_fn_unset VAR
12851 # ---------------
12852 # Portably unset VAR.
12853 as_fn_unset ()
12854 {
12855 { eval $1=; unset $1;}
12856 }
12857 as_unset=as_fn_unset
12858 # as_fn_append VAR VALUE
12859 # ----------------------
12860 # Append the text in VALUE to the end of the definition contained in VAR. Take
12861 # advantage of any shell optimizations that allow amortized linear growth over
12862 # repeated appends, instead of the typical quadratic growth present in naive
12863 # implementations.
12864 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12865 eval 'as_fn_append ()
12866 {
12867 eval $1+=\$2
12868 }'
12869 else
12870 as_fn_append ()
12871 {
12872 eval $1=\$$1\$2
12873 }
12874 fi # as_fn_append
12875
12876 # as_fn_arith ARG...
12877 # ------------------
12878 # Perform arithmetic evaluation on the ARGs, and store the result in the
12879 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12880 # must be portable across $(()) and expr.
12881 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12882 eval 'as_fn_arith ()
12883 {
12884 as_val=$(( $* ))
12885 }'
12886 else
12887 as_fn_arith ()
12888 {
12889 as_val=`expr "$@" || test $? -eq 1`
12890 }
12891 fi # as_fn_arith
12892
12893
12894 if expr a : '\(a\)' >/dev/null 2>&1 &&
12895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12896 as_expr=expr
12897 else
12898 as_expr=false
12899 fi
12900
12901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12902 as_basename=basename
12903 else
12904 as_basename=false
12905 fi
12906
12907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12908 as_dirname=dirname
12909 else
12910 as_dirname=false
12911 fi
12912
12913 as_me=`$as_basename -- "$0" ||
12914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12915 X"$0" : 'X\(//\)$' \| \
12916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12917 $as_echo X/"$0" |
12918 sed '/^.*\/\([^/][^/]*\)\/*$/{
12919 s//\1/
12920 q
12921 }
12922 /^X\/\(\/\/\)$/{
12923 s//\1/
12924 q
12925 }
12926 /^X\/\(\/\).*/{
12927 s//\1/
12928 q
12929 }
12930 s/.*/./; q'`
12931
12932 # Avoid depending upon Character Ranges.
12933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12936 as_cr_digits='0123456789'
12937 as_cr_alnum=$as_cr_Letters$as_cr_digits
12938
12939 ECHO_C= ECHO_N= ECHO_T=
12940 case `echo -n x` in #(((((
12941 -n*)
12942 case `echo 'xy\c'` in
12943 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12944 xy) ECHO_C='\c';;
12945 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12946 ECHO_T=' ';;
12947 esac;;
12948 *)
12949 ECHO_N='-n';;
12950 esac
12951
12952 rm -f conf$$ conf$$.exe conf$$.file
12953 if test -d conf$$.dir; then
12954 rm -f conf$$.dir/conf$$.file
12955 else
12956 rm -f conf$$.dir
12957 mkdir conf$$.dir 2>/dev/null
12958 fi
12959 if (echo >conf$$.file) 2>/dev/null; then
12960 if ln -s conf$$.file conf$$ 2>/dev/null; then
12961 as_ln_s='ln -s'
12962 # ... but there are two gotchas:
12963 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12964 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12965 # In both cases, we have to default to `cp -pR'.
12966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12967 as_ln_s='cp -pR'
12968 elif ln conf$$.file conf$$ 2>/dev/null; then
12969 as_ln_s=ln
12970 else
12971 as_ln_s='cp -pR'
12972 fi
12973 else
12974 as_ln_s='cp -pR'
12975 fi
12976 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12977 rmdir conf$$.dir 2>/dev/null
12978
12979
12980 # as_fn_mkdir_p
12981 # -------------
12982 # Create "$as_dir" as a directory, including parents if necessary.
12983 as_fn_mkdir_p ()
12984 {
12985
12986 case $as_dir in #(
12987 -*) as_dir=./$as_dir;;
12988 esac
12989 test -d "$as_dir" || eval $as_mkdir_p || {
12990 as_dirs=
12991 while :; do
12992 case $as_dir in #(
12993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12994 *) as_qdir=$as_dir;;
12995 esac
12996 as_dirs="'$as_qdir' $as_dirs"
12997 as_dir=`$as_dirname -- "$as_dir" ||
12998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12999 X"$as_dir" : 'X\(//\)[^/]' \| \
13000 X"$as_dir" : 'X\(//\)$' \| \
13001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13002 $as_echo X"$as_dir" |
13003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13004 s//\1/
13005 q
13006 }
13007 /^X\(\/\/\)[^/].*/{
13008 s//\1/
13009 q
13010 }
13011 /^X\(\/\/\)$/{
13012 s//\1/
13013 q
13014 }
13015 /^X\(\/\).*/{
13016 s//\1/
13017 q
13018 }
13019 s/.*/./; q'`
13020 test -d "$as_dir" && break
13021 done
13022 test -z "$as_dirs" || eval "mkdir $as_dirs"
13023 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13024
13025
13026 } # as_fn_mkdir_p
13027 if mkdir -p . 2>/dev/null; then
13028 as_mkdir_p='mkdir -p "$as_dir"'
13029 else
13030 test -d ./-p && rmdir ./-p
13031 as_mkdir_p=false
13032 fi
13033
13034
13035 # as_fn_executable_p FILE
13036 # -----------------------
13037 # Test if FILE is an executable regular file.
13038 as_fn_executable_p ()
13039 {
13040 test -f "$1" && test -x "$1"
13041 } # as_fn_executable_p
13042 as_test_x='test -x'
13043 as_executable_p=as_fn_executable_p
13044
13045 # Sed expression to map a string onto a valid CPP name.
13046 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13047
13048 # Sed expression to map a string onto a valid variable name.
13049 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13050
13051
13052 exec 6>&1
13053 ## ----------------------------------- ##
13054 ## Main body of $CONFIG_STATUS script. ##
13055 ## ----------------------------------- ##
13056 _ASEOF
13057 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13058
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13060 # Save the log message, to keep $0 and so on meaningful, and to
13061 # report actual input values of CONFIG_FILES etc. instead of their
13062 # values after options handling.
13063 ac_log="
13064 This file was extended by libopm $as_me 0.1, which was
13065 generated by GNU Autoconf 2.69. Invocation command line was
13066
13067 CONFIG_FILES = $CONFIG_FILES
13068 CONFIG_HEADERS = $CONFIG_HEADERS
13069 CONFIG_LINKS = $CONFIG_LINKS
13070 CONFIG_COMMANDS = $CONFIG_COMMANDS
13071 $ $0 $@
13072
13073 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13074 "
13075
13076 _ACEOF
13077
13078 case $ac_config_files in *"
13079 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13080 esac
13081
13082 case $ac_config_headers in *"
13083 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13084 esac
13085
13086
13087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13088 # Files that config.status was made for.
13089 config_files="$ac_config_files"
13090 config_headers="$ac_config_headers"
13091 config_commands="$ac_config_commands"
13092
13093 _ACEOF
13094
13095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13096 ac_cs_usage="\
13097 \`$as_me' instantiates files and other configuration actions
13098 from templates according to the current configuration. Unless the files
13099 and actions are specified as TAGs, all are instantiated by default.
13100
13101 Usage: $0 [OPTION]... [TAG]...
13102
13103 -h, --help print this help, then exit
13104 -V, --version print version number and configuration settings, then exit
13105 --config print configuration, then exit
13106 -q, --quiet, --silent
13107 do not print progress messages
13108 -d, --debug don't remove temporary files
13109 --recheck update $as_me by reconfiguring in the same conditions
13110 --file=FILE[:TEMPLATE]
13111 instantiate the configuration file FILE
13112 --header=FILE[:TEMPLATE]
13113 instantiate the configuration header FILE
13114
13115 Configuration files:
13116 $config_files
13117
13118 Configuration headers:
13119 $config_headers
13120
13121 Configuration commands:
13122 $config_commands
13123
13124 Report bugs to the package provider."
13125
13126 _ACEOF
13127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13129 ac_cs_version="\\
13130 libopm config.status 0.1
13131 configured by $0, generated by GNU Autoconf 2.69,
13132 with options \\"\$ac_cs_config\\"
13133
13134 Copyright (C) 2012 Free Software Foundation, Inc.
13135 This config.status script is free software; the Free Software Foundation
13136 gives unlimited permission to copy, distribute and modify it."
13137
13138 ac_pwd='$ac_pwd'
13139 srcdir='$srcdir'
13140 INSTALL='$INSTALL'
13141 MKDIR_P='$MKDIR_P'
13142 AWK='$AWK'
13143 test -n "\$AWK" || AWK=awk
13144 _ACEOF
13145
13146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13147 # The default lists apply if the user does not specify any file.
13148 ac_need_defaults=:
13149 while test $# != 0
13150 do
13151 case $1 in
13152 --*=?*)
13153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13155 ac_shift=:
13156 ;;
13157 --*=)
13158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13159 ac_optarg=
13160 ac_shift=:
13161 ;;
13162 *)
13163 ac_option=$1
13164 ac_optarg=$2
13165 ac_shift=shift
13166 ;;
13167 esac
13168
13169 case $ac_option in
13170 # Handling of the options.
13171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13172 ac_cs_recheck=: ;;
13173 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13174 $as_echo "$ac_cs_version"; exit ;;
13175 --config | --confi | --conf | --con | --co | --c )
13176 $as_echo "$ac_cs_config"; exit ;;
13177 --debug | --debu | --deb | --de | --d | -d )
13178 debug=: ;;
13179 --file | --fil | --fi | --f )
13180 $ac_shift
13181 case $ac_optarg in
13182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13183 '') as_fn_error $? "missing file argument" ;;
13184 esac
13185 as_fn_append CONFIG_FILES " '$ac_optarg'"
13186 ac_need_defaults=false;;
13187 --header | --heade | --head | --hea )
13188 $ac_shift
13189 case $ac_optarg in
13190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13191 esac
13192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13193 ac_need_defaults=false;;
13194 --he | --h)
13195 # Conflict between --help and --header
13196 as_fn_error $? "ambiguous option: \`$1'
13197 Try \`$0 --help' for more information.";;
13198 --help | --hel | -h )
13199 $as_echo "$ac_cs_usage"; exit ;;
13200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13202 ac_cs_silent=: ;;
13203
13204 # This is an error.
13205 -*) as_fn_error $? "unrecognized option: \`$1'
13206 Try \`$0 --help' for more information." ;;
13207
13208 *) as_fn_append ac_config_targets " $1"
13209 ac_need_defaults=false ;;
13210
13211 esac
13212 shift
13213 done
13214
13215 ac_configure_extra_args=
13216
13217 if $ac_cs_silent; then
13218 exec 6>/dev/null
13219 ac_configure_extra_args="$ac_configure_extra_args --silent"
13220 fi
13221
13222 _ACEOF
13223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13224 if \$ac_cs_recheck; then
13225 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13226 shift
13227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13228 CONFIG_SHELL='$SHELL'
13229 export CONFIG_SHELL
13230 exec "\$@"
13231 fi
13232
13233 _ACEOF
13234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13235 exec 5>>config.log
13236 {
13237 echo
13238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13239 ## Running $as_me. ##
13240 _ASBOX
13241 $as_echo "$ac_log"
13242 } >&5
13243
13244 _ACEOF
13245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13246 #
13247 # INIT-COMMANDS
13248 #
13249 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13250
13251
13252 # The HP-UX ksh and POSIX shell print the target directory to stdout
13253 # if CDPATH is set.
13254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13255
13256 sed_quote_subst='$sed_quote_subst'
13257 double_quote_subst='$double_quote_subst'
13258 delay_variable_subst='$delay_variable_subst'
13259 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13260 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13261 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13262 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13263 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13264 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13265 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13266 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13267 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13268 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13269 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13270 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13271 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13272 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13273 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13274 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13275 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13276 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13277 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13278 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13279 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13280 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13281 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13282 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13283 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13284 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13285 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13286 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13287 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13288 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13289 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13290 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13291 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13292 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13293 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13294 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13295 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13296 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13297 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13298 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13299 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13300 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13301 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13302 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13303 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13304 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13305 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13306 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13307 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13308 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13309 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13310 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13311 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13312 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13313 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13314 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13315 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13316 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13317 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"`'
13318 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13319 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13320 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13321 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13322 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13323 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13324 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13325 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13326 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13327 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13328 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13329 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13330 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13331 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13332 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13333 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13334 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13335 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13336 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13337 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13338 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13339 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13340 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13341 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13342 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13343 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13344 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13345 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13346 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13347 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13348 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13349 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13350 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13351 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13352 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13353 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13354 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13355 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13356 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13357 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13358 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13359 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13360 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13361 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13362 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13363 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13364 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13365 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13366 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13367 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13368 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13369 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13370 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13371 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13372 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13373 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13374 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13375 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13376 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13377 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13378 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13379 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13380 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13381 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13382 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13383 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13384 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13385 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13386 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13387 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13388 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13389 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13390 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13391 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13392 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13393
13394 LTCC='$LTCC'
13395 LTCFLAGS='$LTCFLAGS'
13396 compiler='$compiler_DEFAULT'
13397
13398 # A function that is used when there is no print builtin or printf.
13399 func_fallback_echo ()
13400 {
13401 eval 'cat <<_LTECHO_EOF
13402 \$1
13403 _LTECHO_EOF'
13404 }
13405
13406 # Quote evaled strings.
13407 for var in SHELL \
13408 ECHO \
13409 PATH_SEPARATOR \
13410 SED \
13411 GREP \
13412 EGREP \
13413 FGREP \
13414 LD \
13415 NM \
13416 LN_S \
13417 lt_SP2NL \
13418 lt_NL2SP \
13419 reload_flag \
13420 OBJDUMP \
13421 deplibs_check_method \
13422 file_magic_cmd \
13423 file_magic_glob \
13424 want_nocaseglob \
13425 DLLTOOL \
13426 sharedlib_from_linklib_cmd \
13427 AR \
13428 AR_FLAGS \
13429 archiver_list_spec \
13430 STRIP \
13431 RANLIB \
13432 CC \
13433 CFLAGS \
13434 compiler \
13435 lt_cv_sys_global_symbol_pipe \
13436 lt_cv_sys_global_symbol_to_cdecl \
13437 lt_cv_sys_global_symbol_to_import \
13438 lt_cv_sys_global_symbol_to_c_name_address \
13439 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13440 lt_cv_nm_interface \
13441 nm_file_list_spec \
13442 lt_cv_truncate_bin \
13443 lt_prog_compiler_no_builtin_flag \
13444 lt_prog_compiler_pic \
13445 lt_prog_compiler_wl \
13446 lt_prog_compiler_static \
13447 lt_cv_prog_compiler_c_o \
13448 need_locks \
13449 MANIFEST_TOOL \
13450 DSYMUTIL \
13451 NMEDIT \
13452 LIPO \
13453 OTOOL \
13454 OTOOL64 \
13455 shrext_cmds \
13456 export_dynamic_flag_spec \
13457 whole_archive_flag_spec \
13458 compiler_needs_object \
13459 with_gnu_ld \
13460 allow_undefined_flag \
13461 no_undefined_flag \
13462 hardcode_libdir_flag_spec \
13463 hardcode_libdir_separator \
13464 exclude_expsyms \
13465 include_expsyms \
13466 file_list_spec \
13467 variables_saved_for_relink \
13468 libname_spec \
13469 library_names_spec \
13470 soname_spec \
13471 install_override_mode \
13472 finish_eval \
13473 old_striplib \
13474 striplib; do
13475 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13476 *[\\\\\\\`\\"\\\$]*)
13477 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13478 ;;
13479 *)
13480 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13481 ;;
13482 esac
13483 done
13484
13485 # Double-quote double-evaled strings.
13486 for var in reload_cmds \
13487 old_postinstall_cmds \
13488 old_postuninstall_cmds \
13489 old_archive_cmds \
13490 extract_expsyms_cmds \
13491 old_archive_from_new_cmds \
13492 old_archive_from_expsyms_cmds \
13493 archive_cmds \
13494 archive_expsym_cmds \
13495 module_cmds \
13496 module_expsym_cmds \
13497 export_symbols_cmds \
13498 prelink_cmds \
13499 postlink_cmds \
13500 postinstall_cmds \
13501 postuninstall_cmds \
13502 finish_cmds \
13503 sys_lib_search_path_spec \
13504 sys_lib_dlsearch_path_spec; do
13505 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13506 *[\\\\\\\`\\"\\\$]*)
13507 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13508 ;;
13509 *)
13510 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13511 ;;
13512 esac
13513 done
13514
13515 ac_aux_dir='$ac_aux_dir'
13516
13517 # See if we are running on zsh, and set the options that allow our
13518 # commands through without removal of \ escapes INIT.
13519 if test -n "\${ZSH_VERSION+set}"; then
13520 setopt NO_GLOB_SUBST
13521 fi
13522
13523
13524 PACKAGE='$PACKAGE'
13525 VERSION='$VERSION'
13526 RM='$RM'
13527 ofile='$ofile'
13528
13529
13530
13531
13532 _ACEOF
13533
13534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535
13536 # Handling of arguments.
13537 for ac_config_target in $ac_config_targets
13538 do
13539 case $ac_config_target in
13540 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13541 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13542 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13543 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13544 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/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 that 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 # Generated automatically by $as_me ($PACKAGE) $VERSION
14248 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14249 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14250
14251 # Provide generalized library-building support services.
14252 # Written by Gordon Matzigkeit, 1996
14253
14254 # Copyright (C) 2014 Free Software Foundation, Inc.
14255 # This is free software; see the source for copying conditions. There is NO
14256 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14257
14258 # GNU Libtool is free software; you can redistribute it and/or modify
14259 # it under the terms of the GNU General Public License as published by
14260 # the Free Software Foundation; either version 2 of of the License, or
14261 # (at your option) any later version.
14262 #
14263 # As a special exception to the GNU General Public License, if you
14264 # distribute this file as part of a program or library that is built
14265 # using GNU Libtool, you may include this file under the same
14266 # distribution terms that you use for the rest of that program.
14267 #
14268 # GNU Libtool is distributed in the hope that it will be useful, but
14269 # WITHOUT ANY WARRANTY; without even the implied warranty of
14270 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14271 # GNU General Public License for more details.
14272 #
14273 # You should have received a copy of the GNU General Public License
14274 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14275
14276
14277 # The names of the tagged configurations supported by this script.
14278 available_tags=''
14279
14280 # ### BEGIN LIBTOOL CONFIG
14281
14282 # Which release of libtool.m4 was used?
14283 macro_version=$macro_version
14284 macro_revision=$macro_revision
14285
14286 # Whether or not to build shared libraries.
14287 build_libtool_libs=$enable_shared
14288
14289 # Whether or not to build static libraries.
14290 build_old_libs=$enable_static
14291
14292 # What type of objects to build.
14293 pic_mode=$pic_mode
14294
14295 # Whether or not to optimize for fast installation.
14296 fast_install=$enable_fast_install
14297
14298 # Shared archive member basename,for filename based shared library versioning on AIX.
14299 shared_archive_member_spec=$shared_archive_member_spec
14300
14301 # Shell to use when invoking shell scripts.
14302 SHELL=$lt_SHELL
14303
14304 # An echo program that protects backslashes.
14305 ECHO=$lt_ECHO
14306
14307 # The PATH separator for the build system.
14308 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14309
14310 # The host system.
14311 host_alias=$host_alias
14312 host=$host
14313 host_os=$host_os
14314
14315 # The build system.
14316 build_alias=$build_alias
14317 build=$build
14318 build_os=$build_os
14319
14320 # A sed program that does not truncate output.
14321 SED=$lt_SED
14322
14323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14324 Xsed="\$SED -e 1s/^X//"
14325
14326 # A grep program that handles long lines.
14327 GREP=$lt_GREP
14328
14329 # An ERE matcher.
14330 EGREP=$lt_EGREP
14331
14332 # A literal string matcher.
14333 FGREP=$lt_FGREP
14334
14335 # A BSD- or MS-compatible name lister.
14336 NM=$lt_NM
14337
14338 # Whether we need soft or hard links.
14339 LN_S=$lt_LN_S
14340
14341 # What is the maximum length of a command?
14342 max_cmd_len=$max_cmd_len
14343
14344 # Object file suffix (normally "o").
14345 objext=$ac_objext
14346
14347 # Executable file suffix (normally "").
14348 exeext=$exeext
14349
14350 # whether the shell understands "unset".
14351 lt_unset=$lt_unset
14352
14353 # turn spaces into newlines.
14354 SP2NL=$lt_lt_SP2NL
14355
14356 # turn newlines into spaces.
14357 NL2SP=$lt_lt_NL2SP
14358
14359 # convert \$build file names to \$host format.
14360 to_host_file_cmd=$lt_cv_to_host_file_cmd
14361
14362 # convert \$build files to toolchain format.
14363 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14364
14365 # An object symbol dumper.
14366 OBJDUMP=$lt_OBJDUMP
14367
14368 # Method to check whether dependent libraries are shared objects.
14369 deplibs_check_method=$lt_deplibs_check_method
14370
14371 # Command to use when deplibs_check_method = "file_magic".
14372 file_magic_cmd=$lt_file_magic_cmd
14373
14374 # How to find potential files when deplibs_check_method = "file_magic".
14375 file_magic_glob=$lt_file_magic_glob
14376
14377 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14378 want_nocaseglob=$lt_want_nocaseglob
14379
14380 # DLL creation program.
14381 DLLTOOL=$lt_DLLTOOL
14382
14383 # Command to associate shared and link libraries.
14384 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14385
14386 # The archiver.
14387 AR=$lt_AR
14388
14389 # Flags to create an archive.
14390 AR_FLAGS=$lt_AR_FLAGS
14391
14392 # How to feed a file listing to the archiver.
14393 archiver_list_spec=$lt_archiver_list_spec
14394
14395 # A symbol stripping program.
14396 STRIP=$lt_STRIP
14397
14398 # Commands used to install an old-style archive.
14399 RANLIB=$lt_RANLIB
14400 old_postinstall_cmds=$lt_old_postinstall_cmds
14401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14402
14403 # Whether to use a lock for old archive extraction.
14404 lock_old_archive_extraction=$lock_old_archive_extraction
14405
14406 # A C compiler.
14407 LTCC=$lt_CC
14408
14409 # LTCC compiler flags.
14410 LTCFLAGS=$lt_CFLAGS
14411
14412 # Take the output of nm and produce a listing of raw symbols and C names.
14413 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14414
14415 # Transform the output of nm in a proper C declaration.
14416 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14417
14418 # Transform the output of nm into a list of symbols to manually relocate.
14419 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14420
14421 # Transform the output of nm in a C name address pair.
14422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14423
14424 # Transform the output of nm in a C name address pair when lib prefix is needed.
14425 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14426
14427 # The name lister interface.
14428 nm_interface=$lt_lt_cv_nm_interface
14429
14430 # Specify filename containing input files for \$NM.
14431 nm_file_list_spec=$lt_nm_file_list_spec
14432
14433 # The root where to search for dependent libraries,and where our libraries should be installed.
14434 lt_sysroot=$lt_sysroot
14435
14436 # Command to truncate a binary pipe.
14437 lt_truncate_bin=$lt_lt_cv_truncate_bin
14438
14439 # The name of the directory that contains temporary libtool files.
14440 objdir=$objdir
14441
14442 # Used to examine libraries when file_magic_cmd begins with "file".
14443 MAGIC_CMD=$MAGIC_CMD
14444
14445 # Must we lock files when doing compilation?
14446 need_locks=$lt_need_locks
14447
14448 # Manifest tool.
14449 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14450
14451 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14452 DSYMUTIL=$lt_DSYMUTIL
14453
14454 # Tool to change global to local symbols on Mac OS X.
14455 NMEDIT=$lt_NMEDIT
14456
14457 # Tool to manipulate fat objects and archives on Mac OS X.
14458 LIPO=$lt_LIPO
14459
14460 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14461 OTOOL=$lt_OTOOL
14462
14463 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14464 OTOOL64=$lt_OTOOL64
14465
14466 # Old archive suffix (normally "a").
14467 libext=$libext
14468
14469 # Shared library suffix (normally ".so").
14470 shrext_cmds=$lt_shrext_cmds
14471
14472 # The commands to extract the exported symbol list from a shared archive.
14473 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14474
14475 # Variables whose values should be saved in libtool wrapper scripts and
14476 # restored at link time.
14477 variables_saved_for_relink=$lt_variables_saved_for_relink
14478
14479 # Do we need the "lib" prefix for modules?
14480 need_lib_prefix=$need_lib_prefix
14481
14482 # Do we need a version for libraries?
14483 need_version=$need_version
14484
14485 # Library versioning type.
14486 version_type=$version_type
14487
14488 # Shared library runtime path variable.
14489 runpath_var=$runpath_var
14490
14491 # Shared library path variable.
14492 shlibpath_var=$shlibpath_var
14493
14494 # Is shlibpath searched before the hard-coded library search path?
14495 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14496
14497 # Format of library name prefix.
14498 libname_spec=$lt_libname_spec
14499
14500 # List of archive names. First name is the real one, the rest are links.
14501 # The last name is the one that the linker finds with -lNAME
14502 library_names_spec=$lt_library_names_spec
14503
14504 # The coded name of the library, if different from the real name.
14505 soname_spec=$lt_soname_spec
14506
14507 # Permission mode override for installation of shared libraries.
14508 install_override_mode=$lt_install_override_mode
14509
14510 # Command to use after installation of a shared archive.
14511 postinstall_cmds=$lt_postinstall_cmds
14512
14513 # Command to use after uninstallation of a shared archive.
14514 postuninstall_cmds=$lt_postuninstall_cmds
14515
14516 # Commands used to finish a libtool library installation in a directory.
14517 finish_cmds=$lt_finish_cmds
14518
14519 # As "finish_cmds", except a single script fragment to be evaled but
14520 # not shown.
14521 finish_eval=$lt_finish_eval
14522
14523 # Whether we should hardcode library paths into libraries.
14524 hardcode_into_libs=$hardcode_into_libs
14525
14526 # Compile-time system search path for libraries.
14527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14528
14529 # Run-time system search path for libraries.
14530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14531
14532 # Whether dlopen is supported.
14533 dlopen_support=$enable_dlopen
14534
14535 # Whether dlopen of programs is supported.
14536 dlopen_self=$enable_dlopen_self
14537
14538 # Whether dlopen of statically linked programs is supported.
14539 dlopen_self_static=$enable_dlopen_self_static
14540
14541 # Commands to strip libraries.
14542 old_striplib=$lt_old_striplib
14543 striplib=$lt_striplib
14544
14545
14546 # The linker used to build libraries.
14547 LD=$lt_LD
14548
14549 # How to create reloadable object files.
14550 reload_flag=$lt_reload_flag
14551 reload_cmds=$lt_reload_cmds
14552
14553 # Commands used to build an old-style archive.
14554 old_archive_cmds=$lt_old_archive_cmds
14555
14556 # A language specific compiler.
14557 CC=$lt_compiler
14558
14559 # Is the compiler the GNU compiler?
14560 with_gcc=$GCC
14561
14562 # Compiler flag to turn off builtin functions.
14563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14564
14565 # Additional compiler flags for building library objects.
14566 pic_flag=$lt_lt_prog_compiler_pic
14567
14568 # How to pass a linker flag through the compiler.
14569 wl=$lt_lt_prog_compiler_wl
14570
14571 # Compiler flag to prevent dynamic linking.
14572 link_static_flag=$lt_lt_prog_compiler_static
14573
14574 # Does compiler simultaneously support -c and -o options?
14575 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14576
14577 # Whether or not to add -lc for building shared libraries.
14578 build_libtool_need_lc=$archive_cmds_need_lc
14579
14580 # Whether or not to disallow shared libs when runtime libs are static.
14581 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14582
14583 # Compiler flag to allow reflexive dlopens.
14584 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14585
14586 # Compiler flag to generate shared objects directly from archives.
14587 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14588
14589 # Whether the compiler copes with passing no objects directly.
14590 compiler_needs_object=$lt_compiler_needs_object
14591
14592 # Create an old-style archive from a shared archive.
14593 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14594
14595 # Create a temporary old-style archive to link instead of a shared archive.
14596 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14597
14598 # Commands used to build a shared archive.
14599 archive_cmds=$lt_archive_cmds
14600 archive_expsym_cmds=$lt_archive_expsym_cmds
14601
14602 # Commands used to build a loadable module if different from building
14603 # a shared archive.
14604 module_cmds=$lt_module_cmds
14605 module_expsym_cmds=$lt_module_expsym_cmds
14606
14607 # Whether we are building with GNU ld or not.
14608 with_gnu_ld=$lt_with_gnu_ld
14609
14610 # Flag that allows shared libraries with undefined symbols to be built.
14611 allow_undefined_flag=$lt_allow_undefined_flag
14612
14613 # Flag that enforces no undefined symbols.
14614 no_undefined_flag=$lt_no_undefined_flag
14615
14616 # Flag to hardcode \$libdir into a binary during linking.
14617 # This must work even if \$libdir does not exist
14618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14619
14620 # Whether we need a single "-rpath" flag with a separated argument.
14621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14622
14623 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14624 # DIR into the resulting binary.
14625 hardcode_direct=$hardcode_direct
14626
14627 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14628 # DIR into the resulting binary and the resulting library dependency is
14629 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14630 # library is relocated.
14631 hardcode_direct_absolute=$hardcode_direct_absolute
14632
14633 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14634 # into the resulting binary.
14635 hardcode_minus_L=$hardcode_minus_L
14636
14637 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14638 # into the resulting binary.
14639 hardcode_shlibpath_var=$hardcode_shlibpath_var
14640
14641 # Set to "yes" if building a shared library automatically hardcodes DIR
14642 # into the library and all subsequent libraries and executables linked
14643 # against it.
14644 hardcode_automatic=$hardcode_automatic
14645
14646 # Set to yes if linker adds runtime paths of dependent libraries
14647 # to runtime path list.
14648 inherit_rpath=$inherit_rpath
14649
14650 # Whether libtool must link a program against all its dependency libraries.
14651 link_all_deplibs=$link_all_deplibs
14652
14653 # Set to "yes" if exported symbols are required.
14654 always_export_symbols=$always_export_symbols
14655
14656 # The commands to list exported symbols.
14657 export_symbols_cmds=$lt_export_symbols_cmds
14658
14659 # Symbols that should not be listed in the preloaded symbols.
14660 exclude_expsyms=$lt_exclude_expsyms
14661
14662 # Symbols that must always be exported.
14663 include_expsyms=$lt_include_expsyms
14664
14665 # Commands necessary for linking programs (against libraries) with templates.
14666 prelink_cmds=$lt_prelink_cmds
14667
14668 # Commands necessary for finishing linking programs.
14669 postlink_cmds=$lt_postlink_cmds
14670
14671 # Specify filename containing input files.
14672 file_list_spec=$lt_file_list_spec
14673
14674 # How to hardcode a shared library path into an executable.
14675 hardcode_action=$hardcode_action
14676
14677 # ### END LIBTOOL CONFIG
14678
14679 _LT_EOF
14680
14681 case $host_os in
14682 aix3*)
14683 cat <<\_LT_EOF >> "$cfgfile"
14684 # AIX sometimes has problems with the GCC collect2 program. For some
14685 # reason, if we set the COLLECT_NAMES environment variable, the problems
14686 # vanish in a puff of smoke.
14687 if test set != "${COLLECT_NAMES+set}"; then
14688 COLLECT_NAMES=
14689 export COLLECT_NAMES
14690 fi
14691 _LT_EOF
14692 ;;
14693 esac
14694
14695
14696 ltmain=$ac_aux_dir/ltmain.sh
14697
14698
14699 # We use sed instead of cat because bash on DJGPP gets confused if
14700 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14701 # text mode, it properly converts lines to CR/LF. This bash problem
14702 # is reportedly fixed, but why not run on old versions too?
14703 sed '$q' "$ltmain" >> "$cfgfile" \
14704 || (rm -f "$cfgfile"; exit 1)
14705
14706 mv -f "$cfgfile" "$ofile" ||
14707 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14708 chmod +x "$ofile"
14709
14710 ;;
14711
14712 esac
14713 done # for ac_tag
14714
14715
14716 as_fn_exit 0
14717 _ACEOF
14718 ac_clean_files=$ac_clean_files_save
14719
14720 test $ac_write_fail = 0 ||
14721 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14722
14723
14724 # configure is writing to config.log, and then calls config.status.
14725 # config.status does its own redirection, appending to config.log.
14726 # Unfortunately, on DOS this fails, as config.log is still kept open
14727 # by configure, so config.status won't be able to write to it; its
14728 # output is simply discarded. So we exec the FD to /dev/null,
14729 # effectively closing config.log, so it can be properly (re)opened and
14730 # appended to by config.status. When coming back to configure, we
14731 # need to make the FD available again.
14732 if test "$no_create" != yes; then
14733 ac_cs_success=:
14734 ac_config_status_args=
14735 test "$silent" = yes &&
14736 ac_config_status_args="$ac_config_status_args --quiet"
14737 exec 5>/dev/null
14738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14739 exec 5>>config.log
14740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14741 # would make configure fail if this is the last instruction.
14742 $ac_cs_success || as_fn_exit 1
14743 fi
14744 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14746 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14747 fi
14748

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id